@aws-sdk/client-lex-runtime-v2 3.34.0 → 3.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/LexRuntimeV2.js +1 -5
- package/{dist/cjs → dist-cjs}/LexRuntimeV2Client.js +10 -19
- package/dist-cjs/commands/DeleteSessionCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/GetSessionCommand.js +2 -35
- package/{dist/cjs → dist-cjs}/commands/PutSessionCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/RecognizeTextCommand.js +2 -31
- package/dist-cjs/commands/RecognizeUtteranceCommand.js +36 -0
- package/dist-cjs/commands/StartConversationCommand.js +38 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +2 -145
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +1 -7
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/LexRuntimeV2.js +1 -2
- package/{dist/es → dist-es}/LexRuntimeV2Client.js +1 -2
- package/{dist/es → dist-es}/commands/DeleteSessionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetSessionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutSessionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/RecognizeTextCommand.js +2 -3
- package/{dist/es → dist-es}/commands/RecognizeUtteranceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/StartConversationCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +2 -1
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/types/ts3.4 → dist-types}/LexRuntimeV2.d.ts +223 -139
- package/{dist/types → dist-types}/LexRuntimeV2Client.d.ts +7 -7
- package/{dist/types → dist-types}/commands/DeleteSessionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetSessionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutSessionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/RecognizeTextCommand.d.ts +28 -2
- package/{dist/types → dist-types}/commands/RecognizeUtteranceCommand.d.ts +28 -2
- package/{dist/types → dist-types}/commands/StartConversationCommand.d.ts +34 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +15 -9
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/LexRuntimeV2.d.ts +35 -0
- package/{dist/types → dist-types}/ts3.4/LexRuntimeV2Client.d.ts +33 -103
- package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutSessionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RecognizeTextCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RecognizeUtteranceCommand.d.ts +24 -0
- package/dist-types/ts3.4/commands/StartConversationCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +348 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +50 -47
- package/LexRuntimeV2.ts +0 -299
- package/LexRuntimeV2Client.ts +0 -282
- package/commands/DeleteSessionCommand.ts +0 -107
- package/commands/GetSessionCommand.ts +0 -102
- package/commands/PutSessionCommand.ts +0 -96
- package/commands/RecognizeTextCommand.ts +0 -98
- package/commands/RecognizeUtteranceCommand.ts +0 -139
- package/commands/StartConversationCommand.ts +0 -130
- package/dist/cjs/LexRuntimeV2.js.map +0 -1
- package/dist/cjs/LexRuntimeV2Client.js.map +0 -1
- package/dist/cjs/commands/DeleteSessionCommand.js +0 -74
- package/dist/cjs/commands/DeleteSessionCommand.js.map +0 -1
- package/dist/cjs/commands/GetSessionCommand.js.map +0 -1
- package/dist/cjs/commands/PutSessionCommand.js.map +0 -1
- package/dist/cjs/commands/RecognizeTextCommand.js.map +0 -1
- package/dist/cjs/commands/RecognizeUtteranceCommand.js +0 -97
- package/dist/cjs/commands/RecognizeUtteranceCommand.js.map +0 -1
- package/dist/cjs/commands/StartConversationCommand.js +0 -90
- package/dist/cjs/commands/StartConversationCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -96
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/LexRuntimeV2.js.map +0 -1
- package/dist/es/LexRuntimeV2Client.js.map +0 -1
- package/dist/es/commands/DeleteSessionCommand.js.map +0 -1
- package/dist/es/commands/GetSessionCommand.js.map +0 -1
- package/dist/es/commands/PutSessionCommand.js.map +0 -1
- package/dist/es/commands/RecognizeTextCommand.js.map +0 -1
- package/dist/es/commands/RecognizeUtteranceCommand.js.map +0 -1
- package/dist/es/commands/StartConversationCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -10
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -96
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/LexRuntimeV2.d.ts +0 -139
- package/dist/types/ts3.4/commands/DeleteSessionCommand.d.ts +0 -48
- package/dist/types/ts3.4/commands/GetSessionCommand.d.ts +0 -43
- package/dist/types/ts3.4/commands/PutSessionCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/RecognizeTextCommand.d.ts +0 -39
- package/dist/types/ts3.4/commands/RecognizeUtteranceCommand.d.ts +0 -82
- package/dist/types/ts3.4/commands/StartConversationCommand.d.ts +0 -62
- package/dist/types/ts3.4/models/models_0.d.ts +0 -2035
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -2458
- package/protocols/Aws_restJson1.ts +0 -2458
- package/runtimeConfig.browser.ts +0 -45
- package/runtimeConfig.native.ts +0 -20
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -49
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
package/models/models_0.ts
DELETED
|
@@ -1,2458 +0,0 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
2
|
-
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
3
|
-
import { Readable } from "stream";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* <p></p>
|
|
7
|
-
*/
|
|
8
|
-
export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
|
|
9
|
-
name: "AccessDeniedException";
|
|
10
|
-
$fault: "client";
|
|
11
|
-
message: string | undefined;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export namespace AccessDeniedException {
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
|
-
export const filterSensitiveLog = (obj: AccessDeniedException): any => ({
|
|
19
|
-
...obj,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>The time that a context is active. You can specify the time to live
|
|
25
|
-
* in seconds or in conversation turns.</p>
|
|
26
|
-
*/
|
|
27
|
-
export interface ActiveContextTimeToLive {
|
|
28
|
-
/**
|
|
29
|
-
* <p>The number of seconds that the context is active. You can specify
|
|
30
|
-
* between 5 and 86400 seconds (24 hours).</p>
|
|
31
|
-
*/
|
|
32
|
-
timeToLiveInSeconds: number | undefined;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* <p>The number of turns that the context is active. You can specify up
|
|
36
|
-
* to 20 turns. Each request and response from the bot is a turn.</p>
|
|
37
|
-
*/
|
|
38
|
-
turnsToLive: number | undefined;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export namespace ActiveContextTimeToLive {
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
|
-
export const filterSensitiveLog = (obj: ActiveContextTimeToLive): any => ({
|
|
46
|
-
...obj,
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* <p>Contains information about the contexts that a user is using in a
|
|
52
|
-
* session. You can configure Amazon Lex V2 to set a context when an intent is
|
|
53
|
-
* fulfilled, or you can set a context using the , , or operations.</p>
|
|
54
|
-
* <p>Use a context to indicate to Amazon Lex V2 intents that should be used as
|
|
55
|
-
* follow-up intents. For example, if the active context is
|
|
56
|
-
* <code>order-fulfilled</code>, only intents that have
|
|
57
|
-
* <code>order-fulfilled</code> configured as a trigger are considered
|
|
58
|
-
* for follow up.</p>
|
|
59
|
-
*/
|
|
60
|
-
export interface ActiveContext {
|
|
61
|
-
/**
|
|
62
|
-
* <p>The name of the context.</p>
|
|
63
|
-
*/
|
|
64
|
-
name: string | undefined;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* <p>Indicates the number of turns or seconds that the context is active.
|
|
68
|
-
* Once the time to live expires, the context is no longer returned in a
|
|
69
|
-
* response.</p>
|
|
70
|
-
*/
|
|
71
|
-
timeToLive: ActiveContextTimeToLive | undefined;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* <p>A lis tof contexts active for the request. A context can be
|
|
75
|
-
* activated when a previous intent is fulfilled, or by including the
|
|
76
|
-
* context in the request.</p>
|
|
77
|
-
* <p>If you don't specify a list of contexts, Amazon Lex will use the
|
|
78
|
-
* current list of contexts for the session. If you specify an empty list,
|
|
79
|
-
* all contexts for the session are cleared. </p>
|
|
80
|
-
*/
|
|
81
|
-
contextAttributes: { [key: string]: string } | undefined;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export namespace ActiveContext {
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
|
-
export const filterSensitiveLog = (obj: ActiveContext): any => ({
|
|
89
|
-
...obj,
|
|
90
|
-
...(obj.contextAttributes && { contextAttributes: SENSITIVE_STRING }),
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* <p>Represents a chunk of audio sent from the client application to
|
|
96
|
-
* Amazon Lex V2. The audio is all or part of an utterance from the user.</p>
|
|
97
|
-
* <p>Amazon Lex V2 accumulates audio chunks until it recognizes a natural pause
|
|
98
|
-
* in speech before processing the input.</p>
|
|
99
|
-
*/
|
|
100
|
-
export interface AudioInputEvent {
|
|
101
|
-
/**
|
|
102
|
-
* <p>An encoded stream of audio.</p>
|
|
103
|
-
*/
|
|
104
|
-
audioChunk?: Uint8Array;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* <p>The encoding used for the audio chunk. You must use 8 KHz PCM 16-bit
|
|
108
|
-
* mono-channel little-endian format. The value of the field should
|
|
109
|
-
* be:</p>
|
|
110
|
-
* <p>
|
|
111
|
-
* <code>audio/lpcm; sample-rate=8000; sample-size-bits=16;
|
|
112
|
-
* channel-count=1; is-big-endian=false</code>
|
|
113
|
-
* </p>
|
|
114
|
-
*/
|
|
115
|
-
contentType: string | undefined;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* <p>A unique identifier that your application assigns to the event. You
|
|
119
|
-
* can use this to identify events in logs.</p>
|
|
120
|
-
*/
|
|
121
|
-
eventId?: string;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* <p>A timestamp set by the client of the date and time that the event
|
|
125
|
-
* was sent to Amazon Lex V2.</p>
|
|
126
|
-
*/
|
|
127
|
-
clientTimestampMillis?: number;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export namespace AudioInputEvent {
|
|
131
|
-
/**
|
|
132
|
-
* @internal
|
|
133
|
-
*/
|
|
134
|
-
export const filterSensitiveLog = (obj: AudioInputEvent): any => ({
|
|
135
|
-
...obj,
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* <p>An event sent from Amazon Lex V2 to your client application containing audio
|
|
141
|
-
* to play to the user. </p>
|
|
142
|
-
*/
|
|
143
|
-
export interface AudioResponseEvent {
|
|
144
|
-
/**
|
|
145
|
-
* <p>A chunk of the audio to play. </p>
|
|
146
|
-
*/
|
|
147
|
-
audioChunk?: Uint8Array;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* <p>The encoding of the audio chunk. This is the same as the encoding
|
|
151
|
-
* configure in the <code>contentType</code> field of the
|
|
152
|
-
* <code>ConfigurationEvent</code>.</p>
|
|
153
|
-
*/
|
|
154
|
-
contentType?: string;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* <p>A unique identifier of the event sent by Amazon Lex V2. The identifier is in
|
|
158
|
-
* the form <code>RESPONSE-N</code>, where N is a number starting with one
|
|
159
|
-
* and incremented for each event sent by Amazon Lex V2 in the current
|
|
160
|
-
* session.</p>
|
|
161
|
-
*/
|
|
162
|
-
eventId?: string;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export namespace AudioResponseEvent {
|
|
166
|
-
/**
|
|
167
|
-
* @internal
|
|
168
|
-
*/
|
|
169
|
-
export const filterSensitiveLog = (obj: AudioResponseEvent): any => ({
|
|
170
|
-
...obj,
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* <p></p>
|
|
176
|
-
*/
|
|
177
|
-
export interface ConflictException extends __SmithyException, $MetadataBearer {
|
|
178
|
-
name: "ConflictException";
|
|
179
|
-
$fault: "client";
|
|
180
|
-
message: string | undefined;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export namespace ConflictException {
|
|
184
|
-
/**
|
|
185
|
-
* @internal
|
|
186
|
-
*/
|
|
187
|
-
export const filterSensitiveLog = (obj: ConflictException): any => ({
|
|
188
|
-
...obj,
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export interface DeleteSessionRequest {
|
|
193
|
-
/**
|
|
194
|
-
* <p>The identifier of the bot that contains the session data.</p>
|
|
195
|
-
*/
|
|
196
|
-
botId: string | undefined;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* <p>The alias identifier in use for the bot that contains the session
|
|
200
|
-
* data.</p>
|
|
201
|
-
*/
|
|
202
|
-
botAliasId: string | undefined;
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* <p>The locale where the session is in use.</p>
|
|
206
|
-
*/
|
|
207
|
-
localeId: string | undefined;
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* <p>The identifier of the session to delete.</p>
|
|
211
|
-
*/
|
|
212
|
-
sessionId: string | undefined;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export namespace DeleteSessionRequest {
|
|
216
|
-
/**
|
|
217
|
-
* @internal
|
|
218
|
-
*/
|
|
219
|
-
export const filterSensitiveLog = (obj: DeleteSessionRequest): any => ({
|
|
220
|
-
...obj,
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
export interface DeleteSessionResponse {
|
|
225
|
-
/**
|
|
226
|
-
* <p>The identifier of the bot that contained the session data.</p>
|
|
227
|
-
*/
|
|
228
|
-
botId?: string;
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* <p>The alias identifier in use for the bot that contained the session
|
|
232
|
-
* data.</p>
|
|
233
|
-
*/
|
|
234
|
-
botAliasId?: string;
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* <p>The locale where the session was used.</p>
|
|
238
|
-
*/
|
|
239
|
-
localeId?: string;
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* <p>The identifier of the deleted session.</p>
|
|
243
|
-
*/
|
|
244
|
-
sessionId?: string;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export namespace DeleteSessionResponse {
|
|
248
|
-
/**
|
|
249
|
-
* @internal
|
|
250
|
-
*/
|
|
251
|
-
export const filterSensitiveLog = (obj: DeleteSessionResponse): any => ({
|
|
252
|
-
...obj,
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* <p></p>
|
|
258
|
-
*/
|
|
259
|
-
export interface InternalServerException extends __SmithyException, $MetadataBearer {
|
|
260
|
-
name: "InternalServerException";
|
|
261
|
-
$fault: "server";
|
|
262
|
-
message: string | undefined;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
export namespace InternalServerException {
|
|
266
|
-
/**
|
|
267
|
-
* @internal
|
|
268
|
-
*/
|
|
269
|
-
export const filterSensitiveLog = (obj: InternalServerException): any => ({
|
|
270
|
-
...obj,
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* <p></p>
|
|
276
|
-
*/
|
|
277
|
-
export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
|
|
278
|
-
name: "ResourceNotFoundException";
|
|
279
|
-
$fault: "client";
|
|
280
|
-
message: string | undefined;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
export namespace ResourceNotFoundException {
|
|
284
|
-
/**
|
|
285
|
-
* @internal
|
|
286
|
-
*/
|
|
287
|
-
export const filterSensitiveLog = (obj: ResourceNotFoundException): any => ({
|
|
288
|
-
...obj,
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* <p></p>
|
|
294
|
-
*/
|
|
295
|
-
export interface ThrottlingException extends __SmithyException, $MetadataBearer {
|
|
296
|
-
name: "ThrottlingException";
|
|
297
|
-
$fault: "client";
|
|
298
|
-
message: string | undefined;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
export namespace ThrottlingException {
|
|
302
|
-
/**
|
|
303
|
-
* @internal
|
|
304
|
-
*/
|
|
305
|
-
export const filterSensitiveLog = (obj: ThrottlingException): any => ({
|
|
306
|
-
...obj,
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* <p></p>
|
|
312
|
-
*/
|
|
313
|
-
export interface ValidationException extends __SmithyException, $MetadataBearer {
|
|
314
|
-
name: "ValidationException";
|
|
315
|
-
$fault: "client";
|
|
316
|
-
message: string | undefined;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
export namespace ValidationException {
|
|
320
|
-
/**
|
|
321
|
-
* @internal
|
|
322
|
-
*/
|
|
323
|
-
export const filterSensitiveLog = (obj: ValidationException): any => ({
|
|
324
|
-
...obj,
|
|
325
|
-
});
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
export interface GetSessionRequest {
|
|
329
|
-
/**
|
|
330
|
-
* <p>The identifier of the bot that contains the session data.</p>
|
|
331
|
-
*/
|
|
332
|
-
botId: string | undefined;
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* <p>The alias identifier in use for the bot that contains the session
|
|
336
|
-
* data.</p>
|
|
337
|
-
*/
|
|
338
|
-
botAliasId: string | undefined;
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* <p>The locale where the session is in use.</p>
|
|
342
|
-
*/
|
|
343
|
-
localeId: string | undefined;
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* <p>The identifier of the session to return.</p>
|
|
347
|
-
*/
|
|
348
|
-
sessionId: string | undefined;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
export namespace GetSessionRequest {
|
|
352
|
-
/**
|
|
353
|
-
* @internal
|
|
354
|
-
*/
|
|
355
|
-
export const filterSensitiveLog = (obj: GetSessionRequest): any => ({
|
|
356
|
-
...obj,
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
export enum ConfirmationState {
|
|
361
|
-
CONFIRMED = "Confirmed",
|
|
362
|
-
DENIED = "Denied",
|
|
363
|
-
NONE = "None",
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
export enum Shape {
|
|
367
|
-
LIST = "List",
|
|
368
|
-
SCALAR = "Scalar",
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* <p>The value of a slot.</p>
|
|
373
|
-
*/
|
|
374
|
-
export interface Value {
|
|
375
|
-
/**
|
|
376
|
-
* <p>The text of the utterance from the user that was entered for the
|
|
377
|
-
* slot.</p>
|
|
378
|
-
*/
|
|
379
|
-
originalValue?: string;
|
|
380
|
-
|
|
381
|
-
/**
|
|
382
|
-
* <p>The value that Amazon Lex V2 determines for the slot. The actual value
|
|
383
|
-
* depends on the setting of the value selection strategy for the bot. You
|
|
384
|
-
* can choose to use the value entered by the user, or you can have Amazon Lex V2
|
|
385
|
-
* choose the first value in the <code>resolvedValues</code> list.</p>
|
|
386
|
-
*/
|
|
387
|
-
interpretedValue: string | undefined;
|
|
388
|
-
|
|
389
|
-
/**
|
|
390
|
-
* <p>A list of additional values that have been recognized for the
|
|
391
|
-
* slot.</p>
|
|
392
|
-
*/
|
|
393
|
-
resolvedValues?: string[];
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
export namespace Value {
|
|
397
|
-
/**
|
|
398
|
-
* @internal
|
|
399
|
-
*/
|
|
400
|
-
export const filterSensitiveLog = (obj: Value): any => ({
|
|
401
|
-
...obj,
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
export enum IntentState {
|
|
406
|
-
FAILED = "Failed",
|
|
407
|
-
FULFILLED = "Fulfilled",
|
|
408
|
-
IN_PROGRESS = "InProgress",
|
|
409
|
-
READY_FOR_FULFILLMENT = "ReadyForFulfillment",
|
|
410
|
-
WAITING = "Waiting",
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
/**
|
|
414
|
-
* <p>Provides a score that indicates the confidence that Amazon Lex V2 has that
|
|
415
|
-
* an intent is the one that satisfies the user's intent.</p>
|
|
416
|
-
*/
|
|
417
|
-
export interface ConfidenceScore {
|
|
418
|
-
/**
|
|
419
|
-
* <p>A score that indicates how confident Amazon Lex V2 is that an intent
|
|
420
|
-
* satisfies the user's intent. Ranges between 0.00 and 1.00. Higher
|
|
421
|
-
* scores indicate higher confidence.</p>
|
|
422
|
-
*/
|
|
423
|
-
score?: number;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
export namespace ConfidenceScore {
|
|
427
|
-
/**
|
|
428
|
-
* @internal
|
|
429
|
-
*/
|
|
430
|
-
export const filterSensitiveLog = (obj: ConfidenceScore): any => ({
|
|
431
|
-
...obj,
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
export enum SentimentType {
|
|
436
|
-
MIXED = "MIXED",
|
|
437
|
-
NEGATIVE = "NEGATIVE",
|
|
438
|
-
NEUTRAL = "NEUTRAL",
|
|
439
|
-
POSITIVE = "POSITIVE",
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* <p>The individual sentiment responses for the utterance.</p>
|
|
444
|
-
*/
|
|
445
|
-
export interface SentimentScore {
|
|
446
|
-
/**
|
|
447
|
-
* <p>The level of confidence that Amazon Comprehend has in the accuracy
|
|
448
|
-
* of its detection of the <code>POSITIVE</code> sentiment.</p>
|
|
449
|
-
*/
|
|
450
|
-
positive?: number;
|
|
451
|
-
|
|
452
|
-
/**
|
|
453
|
-
* <p>The level of confidence that Amazon Comprehend has in the accuracy
|
|
454
|
-
* of its detection of the <code>NEGATIVE</code> sentiment.</p>
|
|
455
|
-
*/
|
|
456
|
-
negative?: number;
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* <p>The level of confidence that Amazon Comprehend has in the accuracy
|
|
460
|
-
* of its detection of the <code>NEUTRAL</code> sentiment.</p>
|
|
461
|
-
*/
|
|
462
|
-
neutral?: number;
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* <p>The level of confidence that Amazon Comprehend has in the accuracy
|
|
466
|
-
* of its detection of the <code>MIXED</code> sentiment.</p>
|
|
467
|
-
*/
|
|
468
|
-
mixed?: number;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
export namespace SentimentScore {
|
|
472
|
-
/**
|
|
473
|
-
* @internal
|
|
474
|
-
*/
|
|
475
|
-
export const filterSensitiveLog = (obj: SentimentScore): any => ({
|
|
476
|
-
...obj,
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
/**
|
|
481
|
-
* <p>Provides information about the sentiment expressed in a user's
|
|
482
|
-
* response in a conversation. Sentiments are determined using Amazon
|
|
483
|
-
* Comprehend. Sentiments are only returned if they are enabled for the
|
|
484
|
-
* bot.</p>
|
|
485
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-sentiment.html">
|
|
486
|
-
* Determine Sentiment </a> in the <i>Amazon Comprehend
|
|
487
|
-
* developer guide</i>.</p>
|
|
488
|
-
*/
|
|
489
|
-
export interface SentimentResponse {
|
|
490
|
-
/**
|
|
491
|
-
* <p>The overall sentiment expressed in the user's response. This is the
|
|
492
|
-
* sentiment most likely expressed by the user based on the analysis by
|
|
493
|
-
* Amazon Comprehend.</p>
|
|
494
|
-
*/
|
|
495
|
-
sentiment?: SentimentType | string;
|
|
496
|
-
|
|
497
|
-
/**
|
|
498
|
-
* <p>The individual sentiment responses for the utterance.</p>
|
|
499
|
-
*/
|
|
500
|
-
sentimentScore?: SentimentScore;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
export namespace SentimentResponse {
|
|
504
|
-
/**
|
|
505
|
-
* @internal
|
|
506
|
-
*/
|
|
507
|
-
export const filterSensitiveLog = (obj: SentimentResponse): any => ({
|
|
508
|
-
...obj,
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
export enum MessageContentType {
|
|
513
|
-
CUSTOM_PAYLOAD = "CustomPayload",
|
|
514
|
-
IMAGE_RESPONSE_CARD = "ImageResponseCard",
|
|
515
|
-
PLAIN_TEXT = "PlainText",
|
|
516
|
-
SSML = "SSML",
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
/**
|
|
520
|
-
* <p>A button that appears on a response card show to the user.</p>
|
|
521
|
-
*/
|
|
522
|
-
export interface Button {
|
|
523
|
-
/**
|
|
524
|
-
* <p>The text that is displayed on the button.</p>
|
|
525
|
-
*/
|
|
526
|
-
text: string | undefined;
|
|
527
|
-
|
|
528
|
-
/**
|
|
529
|
-
* <p>The value returned to Amazon Lex V2 when a user chooses the button.</p>
|
|
530
|
-
*/
|
|
531
|
-
value: string | undefined;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
export namespace Button {
|
|
535
|
-
/**
|
|
536
|
-
* @internal
|
|
537
|
-
*/
|
|
538
|
-
export const filterSensitiveLog = (obj: Button): any => ({
|
|
539
|
-
...obj,
|
|
540
|
-
});
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
/**
|
|
544
|
-
* <p>A card that is shown to the user by a messaging platform. You define
|
|
545
|
-
* the contents of the card, the card is displayed by the platform. </p>
|
|
546
|
-
* <p>When you use a response card, the response from the user is
|
|
547
|
-
* constrained to the text associated with a button on the card.</p>
|
|
548
|
-
*/
|
|
549
|
-
export interface ImageResponseCard {
|
|
550
|
-
/**
|
|
551
|
-
* <p>The title to display on the response card. The format of the title
|
|
552
|
-
* is determined by the platform displaying the response card.</p>
|
|
553
|
-
*/
|
|
554
|
-
title: string | undefined;
|
|
555
|
-
|
|
556
|
-
/**
|
|
557
|
-
* <p>The subtitle to display on the response card. The format of the
|
|
558
|
-
* subtitle is determined by the platform displaying the response
|
|
559
|
-
* card.</p>
|
|
560
|
-
*/
|
|
561
|
-
subtitle?: string;
|
|
562
|
-
|
|
563
|
-
/**
|
|
564
|
-
* <p>The URL of an image to display on the response card. The image URL
|
|
565
|
-
* must be publicly available so that the platform displaying the response
|
|
566
|
-
* card has access to the image.</p>
|
|
567
|
-
*/
|
|
568
|
-
imageUrl?: string;
|
|
569
|
-
|
|
570
|
-
/**
|
|
571
|
-
* <p>A list of buttons that should be displayed on the response card. The
|
|
572
|
-
* arrangement of the buttons is determined by the platform that displays
|
|
573
|
-
* the button.</p>
|
|
574
|
-
*/
|
|
575
|
-
buttons?: Button[];
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
export namespace ImageResponseCard {
|
|
579
|
-
/**
|
|
580
|
-
* @internal
|
|
581
|
-
*/
|
|
582
|
-
export const filterSensitiveLog = (obj: ImageResponseCard): any => ({
|
|
583
|
-
...obj,
|
|
584
|
-
});
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
/**
|
|
588
|
-
* <p>Container for text that is returned to the customer..</p>
|
|
589
|
-
*/
|
|
590
|
-
export interface Message {
|
|
591
|
-
/**
|
|
592
|
-
* <p>The text of the message.</p>
|
|
593
|
-
*/
|
|
594
|
-
content?: string;
|
|
595
|
-
|
|
596
|
-
/**
|
|
597
|
-
* <p>Indicates the type of response.</p>
|
|
598
|
-
*/
|
|
599
|
-
contentType: MessageContentType | string | undefined;
|
|
600
|
-
|
|
601
|
-
/**
|
|
602
|
-
* <p>A card that is shown to the user by a messaging platform. You define
|
|
603
|
-
* the contents of the card, the card is displayed by the platform. </p>
|
|
604
|
-
* <p>When you use a response card, the response from the user is
|
|
605
|
-
* constrained to the text associated with a button on the card.</p>
|
|
606
|
-
*/
|
|
607
|
-
imageResponseCard?: ImageResponseCard;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
export namespace Message {
|
|
611
|
-
/**
|
|
612
|
-
* @internal
|
|
613
|
-
*/
|
|
614
|
-
export const filterSensitiveLog = (obj: Message): any => ({
|
|
615
|
-
...obj,
|
|
616
|
-
...(obj.content && { content: SENSITIVE_STRING }),
|
|
617
|
-
});
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
export enum DialogActionType {
|
|
621
|
-
CLOSE = "Close",
|
|
622
|
-
CONFIRM_INTENT = "ConfirmIntent",
|
|
623
|
-
DELEGATE = "Delegate",
|
|
624
|
-
ELICIT_INTENT = "ElicitIntent",
|
|
625
|
-
ELICIT_SLOT = "ElicitSlot",
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* <p>The next action that Amazon Lex V2 should take.</p>
|
|
630
|
-
*/
|
|
631
|
-
export interface DialogAction {
|
|
632
|
-
/**
|
|
633
|
-
* <p>The next action that the bot should take in its interaction with the
|
|
634
|
-
* user. The possible values are:</p>
|
|
635
|
-
* <ul>
|
|
636
|
-
* <li>
|
|
637
|
-
* <p>
|
|
638
|
-
* <code>Close</code> - Indicates that there will not be a
|
|
639
|
-
* response from the user. For example, the statement "Your order
|
|
640
|
-
* has been placed" does not require a response.</p>
|
|
641
|
-
* </li>
|
|
642
|
-
* <li>
|
|
643
|
-
* <p>
|
|
644
|
-
* <code>ConfirmIntent</code> - The next action is asking the
|
|
645
|
-
* user if the intent is complete and ready to be fulfilled. This is
|
|
646
|
-
* a yes/no question such as "Place the order?"</p>
|
|
647
|
-
* </li>
|
|
648
|
-
* <li>
|
|
649
|
-
* <p>
|
|
650
|
-
* <code>Delegate</code> - The next action is determined by
|
|
651
|
-
* Amazon Lex V2.</p>
|
|
652
|
-
* </li>
|
|
653
|
-
* <li>
|
|
654
|
-
* <p>
|
|
655
|
-
* <code>ElicitSlot</code> - The next action is to elicit a slot
|
|
656
|
-
* value from the user.</p>
|
|
657
|
-
* </li>
|
|
658
|
-
* </ul>
|
|
659
|
-
*/
|
|
660
|
-
type: DialogActionType | string | undefined;
|
|
661
|
-
|
|
662
|
-
/**
|
|
663
|
-
* <p>The name of the slot that should be elicited from the user.</p>
|
|
664
|
-
*/
|
|
665
|
-
slotToElicit?: string;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
export namespace DialogAction {
|
|
669
|
-
/**
|
|
670
|
-
* @internal
|
|
671
|
-
*/
|
|
672
|
-
export const filterSensitiveLog = (obj: DialogAction): any => ({
|
|
673
|
-
...obj,
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
/**
|
|
678
|
-
* <p></p>
|
|
679
|
-
*/
|
|
680
|
-
export interface BadGatewayException extends __SmithyException, $MetadataBearer {
|
|
681
|
-
name: "BadGatewayException";
|
|
682
|
-
$fault: "server";
|
|
683
|
-
message: string | undefined;
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
export namespace BadGatewayException {
|
|
687
|
-
/**
|
|
688
|
-
* @internal
|
|
689
|
-
*/
|
|
690
|
-
export const filterSensitiveLog = (obj: BadGatewayException): any => ({
|
|
691
|
-
...obj,
|
|
692
|
-
});
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
/**
|
|
696
|
-
* <p></p>
|
|
697
|
-
*/
|
|
698
|
-
export interface DependencyFailedException extends __SmithyException, $MetadataBearer {
|
|
699
|
-
name: "DependencyFailedException";
|
|
700
|
-
$fault: "client";
|
|
701
|
-
message: string | undefined;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
export namespace DependencyFailedException {
|
|
705
|
-
/**
|
|
706
|
-
* @internal
|
|
707
|
-
*/
|
|
708
|
-
export const filterSensitiveLog = (obj: DependencyFailedException): any => ({
|
|
709
|
-
...obj,
|
|
710
|
-
});
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
export interface PutSessionResponse {
|
|
714
|
-
/**
|
|
715
|
-
* <p>The type of response. Same as the type specified in the
|
|
716
|
-
* <code>responseContentType</code> field in the request.</p>
|
|
717
|
-
*/
|
|
718
|
-
contentType?: string;
|
|
719
|
-
|
|
720
|
-
/**
|
|
721
|
-
* <p>A list of messages that were last sent to the user. The messages are
|
|
722
|
-
* ordered based on how you return the messages from you Lambda function
|
|
723
|
-
* or the order that the messages are defined in the bot.</p>
|
|
724
|
-
*/
|
|
725
|
-
messages?: string;
|
|
726
|
-
|
|
727
|
-
/**
|
|
728
|
-
* <p>Represents the current state of the dialog between the user and the
|
|
729
|
-
* bot.</p>
|
|
730
|
-
* <p>Use this to determine the progress of the conversation and what the
|
|
731
|
-
* next action may be.</p>
|
|
732
|
-
*/
|
|
733
|
-
sessionState?: string;
|
|
734
|
-
|
|
735
|
-
/**
|
|
736
|
-
* <p>Request-specific information passed between the client application
|
|
737
|
-
* and Amazon Lex V2. These are the same as the <code>requestAttribute</code>
|
|
738
|
-
* parameter in the call to the <code>PutSession</code> operation.</p>
|
|
739
|
-
*/
|
|
740
|
-
requestAttributes?: string;
|
|
741
|
-
|
|
742
|
-
/**
|
|
743
|
-
* <p>The identifier of the session that received the data.</p>
|
|
744
|
-
*/
|
|
745
|
-
sessionId?: string;
|
|
746
|
-
|
|
747
|
-
/**
|
|
748
|
-
* <p>If the requested content type was audio, the audio version of the
|
|
749
|
-
* message to convey to the user.</p>
|
|
750
|
-
*/
|
|
751
|
-
audioStream?: Readable | ReadableStream | Blob;
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
export namespace PutSessionResponse {
|
|
755
|
-
/**
|
|
756
|
-
* @internal
|
|
757
|
-
*/
|
|
758
|
-
export const filterSensitiveLog = (obj: PutSessionResponse): any => ({
|
|
759
|
-
...obj,
|
|
760
|
-
});
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
export interface RecognizeUtteranceRequest {
|
|
764
|
-
/**
|
|
765
|
-
* <p>The identifier of the bot that should receive the request.</p>
|
|
766
|
-
*/
|
|
767
|
-
botId: string | undefined;
|
|
768
|
-
|
|
769
|
-
/**
|
|
770
|
-
* <p>The alias identifier in use for the bot that should receive the
|
|
771
|
-
* request.</p>
|
|
772
|
-
*/
|
|
773
|
-
botAliasId: string | undefined;
|
|
774
|
-
|
|
775
|
-
/**
|
|
776
|
-
* <p>The locale where the session is in use.</p>
|
|
777
|
-
*/
|
|
778
|
-
localeId: string | undefined;
|
|
779
|
-
|
|
780
|
-
/**
|
|
781
|
-
* <p>The identifier of the session in use.</p>
|
|
782
|
-
*/
|
|
783
|
-
sessionId: string | undefined;
|
|
784
|
-
|
|
785
|
-
/**
|
|
786
|
-
* <p>Sets the state of the session with the user. You can use this to set
|
|
787
|
-
* the current intent, attributes, context, and dialog action. Use the
|
|
788
|
-
* dialog action to determine the next step that Amazon Lex V2 should use in the
|
|
789
|
-
* conversation with the user.</p>
|
|
790
|
-
* <p>The <code>sessionState</code> field must be compressed using gzip
|
|
791
|
-
* and then base64 encoded before sending to Amazon Lex V2.</p>
|
|
792
|
-
*/
|
|
793
|
-
sessionState?: string;
|
|
794
|
-
|
|
795
|
-
/**
|
|
796
|
-
* <p>Request-specific information passed between the client application
|
|
797
|
-
* and Amazon Lex V2 </p>
|
|
798
|
-
* <p>The namespace <code>x-amz-lex:</code> is reserved for special
|
|
799
|
-
* attributes. Don't create any request attributes for prefix
|
|
800
|
-
* <code>x-amz-lex:</code>.</p>
|
|
801
|
-
* <p>The <code>requestAttributes</code> field must be compressed using
|
|
802
|
-
* gzip and then base64 encoded before sending to Amazon Lex V2.</p>
|
|
803
|
-
*/
|
|
804
|
-
requestAttributes?: string;
|
|
805
|
-
|
|
806
|
-
/**
|
|
807
|
-
* <p>Indicates the format for audio input or that the content is text.
|
|
808
|
-
* The header must start with one of the following prefixes:</p>
|
|
809
|
-
* <ul>
|
|
810
|
-
* <li>
|
|
811
|
-
* <p>PCM format, audio data must be in little-endian byte
|
|
812
|
-
* order.</p>
|
|
813
|
-
* <ul>
|
|
814
|
-
* <li>
|
|
815
|
-
* <p>audio/l16; rate=16000; channels=1</p>
|
|
816
|
-
* </li>
|
|
817
|
-
* <li>
|
|
818
|
-
* <p>audio/x-l16; sample-rate=16000; channel-count=1</p>
|
|
819
|
-
* </li>
|
|
820
|
-
* <li>
|
|
821
|
-
* <p>audio/lpcm; sample-rate=8000; sample-size-bits=16;
|
|
822
|
-
* channel-count=1; is-big-endian=false</p>
|
|
823
|
-
* </li>
|
|
824
|
-
* </ul>
|
|
825
|
-
* </li>
|
|
826
|
-
* <li>
|
|
827
|
-
* <p>Opus format</p>
|
|
828
|
-
* <ul>
|
|
829
|
-
* <li>
|
|
830
|
-
* <p>audio/x-cbr-opus-with-preamble;preamble-size=0;bit-rate=256000;frame-size-milliseconds=4</p>
|
|
831
|
-
* </li>
|
|
832
|
-
* </ul>
|
|
833
|
-
* </li>
|
|
834
|
-
* <li>
|
|
835
|
-
* <p>Text format</p>
|
|
836
|
-
* <ul>
|
|
837
|
-
* <li>
|
|
838
|
-
* <p>text/plain; charset=utf-8</p>
|
|
839
|
-
* </li>
|
|
840
|
-
* </ul>
|
|
841
|
-
* </li>
|
|
842
|
-
* </ul>
|
|
843
|
-
*/
|
|
844
|
-
requestContentType: string | undefined;
|
|
845
|
-
|
|
846
|
-
/**
|
|
847
|
-
* <p>The message that Amazon Lex V2 returns in the response can be either text or
|
|
848
|
-
* speech based on the <code>responseContentType</code> value.</p>
|
|
849
|
-
* <ul>
|
|
850
|
-
* <li>
|
|
851
|
-
* <p>If the value is <code>text/plain;charset=utf-8</code>, Amazon Lex V2
|
|
852
|
-
* returns text in the response.</p>
|
|
853
|
-
* </li>
|
|
854
|
-
* <li>
|
|
855
|
-
* <p>If the value begins with <code>audio/</code>, Amazon Lex V2 returns
|
|
856
|
-
* speech in the response. Amazon Lex V2 uses Amazon Polly to generate the speech
|
|
857
|
-
* using the configuration that you specified in the
|
|
858
|
-
* <code>requestContentType</code> parameter. For example, if you
|
|
859
|
-
* specify <code>audio/mpeg</code> as the value, Amazon Lex V2 returns
|
|
860
|
-
* speech in the MPEG format.</p>
|
|
861
|
-
* </li>
|
|
862
|
-
* <li>
|
|
863
|
-
* <p>If the value is <code>audio/pcm</code>, the speech returned is
|
|
864
|
-
* <code>audio/pcm</code> at 16 KHz in 16-bit, little-endian
|
|
865
|
-
* format.</p>
|
|
866
|
-
* </li>
|
|
867
|
-
* <li>
|
|
868
|
-
* <p>The following are the accepted values:</p>
|
|
869
|
-
* <ul>
|
|
870
|
-
* <li>
|
|
871
|
-
* <p>audio/mpeg</p>
|
|
872
|
-
* </li>
|
|
873
|
-
* <li>
|
|
874
|
-
* <p>audio/ogg</p>
|
|
875
|
-
* </li>
|
|
876
|
-
* <li>
|
|
877
|
-
* <p>audio/pcm (16 KHz)</p>
|
|
878
|
-
* </li>
|
|
879
|
-
* <li>
|
|
880
|
-
* <p>audio/* (defaults to mpeg)</p>
|
|
881
|
-
* </li>
|
|
882
|
-
* <li>
|
|
883
|
-
* <p>text/plain; charset=utf-8</p>
|
|
884
|
-
* </li>
|
|
885
|
-
* </ul>
|
|
886
|
-
* </li>
|
|
887
|
-
* </ul>
|
|
888
|
-
*/
|
|
889
|
-
responseContentType?: string;
|
|
890
|
-
|
|
891
|
-
/**
|
|
892
|
-
* <p>User input in PCM or Opus audio format or text format as described
|
|
893
|
-
* in the <code>requestContentType</code> parameter.</p>
|
|
894
|
-
*/
|
|
895
|
-
inputStream?: Readable | ReadableStream | Blob;
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
export namespace RecognizeUtteranceRequest {
|
|
899
|
-
/**
|
|
900
|
-
* @internal
|
|
901
|
-
*/
|
|
902
|
-
export const filterSensitiveLog = (obj: RecognizeUtteranceRequest): any => ({
|
|
903
|
-
...obj,
|
|
904
|
-
...(obj.sessionState && { sessionState: SENSITIVE_STRING }),
|
|
905
|
-
...(obj.requestAttributes && { requestAttributes: SENSITIVE_STRING }),
|
|
906
|
-
});
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
export interface RecognizeUtteranceResponse {
|
|
910
|
-
/**
|
|
911
|
-
* <p>Indicates whether the input mode to the operation was text or
|
|
912
|
-
* speech.
|
|
913
|
-
* </p>
|
|
914
|
-
*/
|
|
915
|
-
inputMode?: string;
|
|
916
|
-
|
|
917
|
-
/**
|
|
918
|
-
* <p>Content type as specified in the <code>responseContentType</code> in
|
|
919
|
-
* the request.</p>
|
|
920
|
-
*/
|
|
921
|
-
contentType?: string;
|
|
922
|
-
|
|
923
|
-
/**
|
|
924
|
-
* <p>A list of messages that were last sent to the user. The messages are
|
|
925
|
-
* ordered based on the order that you returned the messages from your
|
|
926
|
-
* Lambda function or the order that the messages are defined in the
|
|
927
|
-
* bot.</p>
|
|
928
|
-
* <p>The <code>messages</code> field is compressed with gzip and then
|
|
929
|
-
* base64 encoded. Before you can use the contents of the field, you must
|
|
930
|
-
* decode and decompress the contents. See the example for a simple
|
|
931
|
-
* function to decode and decompress the contents.</p>
|
|
932
|
-
*/
|
|
933
|
-
messages?: string;
|
|
934
|
-
|
|
935
|
-
/**
|
|
936
|
-
* <p>A list of intents that Amazon Lex V2 determined might satisfy the user's
|
|
937
|
-
* utterance.</p>
|
|
938
|
-
* <p>Each interpretation includes the intent, a score that indicates how
|
|
939
|
-
* confident Amazon Lex V2 is that the interpretation is the correct one, and an
|
|
940
|
-
* optional sentiment response that indicates the sentiment expressed in
|
|
941
|
-
* the utterance.</p>
|
|
942
|
-
* <p>The <code>interpretations</code> field is compressed with gzip and
|
|
943
|
-
* then base64 encoded. Before you can use the contents of the field, you
|
|
944
|
-
* must decode and decompress the contents. See the example for a simple
|
|
945
|
-
* function to decode and decompress the contents.</p>
|
|
946
|
-
*/
|
|
947
|
-
interpretations?: string;
|
|
948
|
-
|
|
949
|
-
/**
|
|
950
|
-
* <p>Represents the current state of the dialog between the user and the
|
|
951
|
-
* bot.</p>
|
|
952
|
-
* <p>Use this to determine the progress of the conversation and what the
|
|
953
|
-
* next action might be.</p>
|
|
954
|
-
* <p>The <code>sessionState</code> field is compressed with gzip and then
|
|
955
|
-
* base64 encoded. Before you can use the contents of the field, you must
|
|
956
|
-
* decode and decompress the contents. See the example for a simple
|
|
957
|
-
* function to decode and decompress the contents.</p>
|
|
958
|
-
*/
|
|
959
|
-
sessionState?: string;
|
|
960
|
-
|
|
961
|
-
/**
|
|
962
|
-
* <p>The attributes sent in the request.</p>
|
|
963
|
-
* <p>The <code>requestAttributes</code> field is compressed with gzip and
|
|
964
|
-
* then base64 encoded. Before you can use the contents of the field, you
|
|
965
|
-
* must decode and decompress the contents.</p>
|
|
966
|
-
*/
|
|
967
|
-
requestAttributes?: string;
|
|
968
|
-
|
|
969
|
-
/**
|
|
970
|
-
* <p>The identifier of the session in use.</p>
|
|
971
|
-
*/
|
|
972
|
-
sessionId?: string;
|
|
973
|
-
|
|
974
|
-
/**
|
|
975
|
-
* <p>The text used to process the request.</p>
|
|
976
|
-
* <p>If the input was an audio stream, the <code>inputTranscript</code>
|
|
977
|
-
* field contains the text extracted from the audio stream. This is the
|
|
978
|
-
* text that is actually processed to recognize intents and slot values.
|
|
979
|
-
* You can use this information to determine if Amazon Lex V2 is correctly
|
|
980
|
-
* processing the audio that you send.</p>
|
|
981
|
-
* <p>The <code>inputTranscript</code> field is compressed with gzip and
|
|
982
|
-
* then base64 encoded. Before you can use the contents of the field, you
|
|
983
|
-
* must decode and decompress the contents. See the example for a simple
|
|
984
|
-
* function to decode and decompress the contents.</p>
|
|
985
|
-
*/
|
|
986
|
-
inputTranscript?: string;
|
|
987
|
-
|
|
988
|
-
/**
|
|
989
|
-
* <p>The prompt or statement to send to the user. This is based on the
|
|
990
|
-
* bot configuration and context. For example, if Amazon Lex V2 did not understand
|
|
991
|
-
* the user intent, it sends the <code>clarificationPrompt</code>
|
|
992
|
-
* configured for the bot. If the intent requires confirmation before
|
|
993
|
-
* taking the fulfillment action, it sends the
|
|
994
|
-
* <code>confirmationPrompt</code>. Another example: Suppose that the
|
|
995
|
-
* Lambda function successfully fulfilled the intent, and sent a message
|
|
996
|
-
* to convey to the user. Then Amazon Lex V2 sends that message in the
|
|
997
|
-
* response.</p>
|
|
998
|
-
*/
|
|
999
|
-
audioStream?: Readable | ReadableStream | Blob;
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
export namespace RecognizeUtteranceResponse {
|
|
1003
|
-
/**
|
|
1004
|
-
* @internal
|
|
1005
|
-
*/
|
|
1006
|
-
export const filterSensitiveLog = (obj: RecognizeUtteranceResponse): any => ({
|
|
1007
|
-
...obj,
|
|
1008
|
-
});
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
export enum ConversationMode {
|
|
1012
|
-
AUDIO = "AUDIO",
|
|
1013
|
-
TEXT = "TEXT",
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
/**
|
|
1017
|
-
* <p>A notification from the client that it is disconnecting from Amazon Lex V2.
|
|
1018
|
-
* Sending a <code>DisconnectionEvent</code> event is optional, but can
|
|
1019
|
-
* help identify a conversation in logs.</p>
|
|
1020
|
-
*/
|
|
1021
|
-
export interface DisconnectionEvent {
|
|
1022
|
-
/**
|
|
1023
|
-
* <p>A unique identifier that your application assigns to the event. You
|
|
1024
|
-
* can use this to identify events in logs.</p>
|
|
1025
|
-
*/
|
|
1026
|
-
eventId?: string;
|
|
1027
|
-
|
|
1028
|
-
/**
|
|
1029
|
-
* <p>A timestamp set by the client of the date and time that the event
|
|
1030
|
-
* was sent to Amazon Lex V2.</p>
|
|
1031
|
-
*/
|
|
1032
|
-
clientTimestampMillis?: number;
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
export namespace DisconnectionEvent {
|
|
1036
|
-
/**
|
|
1037
|
-
* @internal
|
|
1038
|
-
*/
|
|
1039
|
-
export const filterSensitiveLog = (obj: DisconnectionEvent): any => ({
|
|
1040
|
-
...obj,
|
|
1041
|
-
});
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
/**
|
|
1045
|
-
* <p>A DTMF character sent from the client application. DTMF characters
|
|
1046
|
-
* are typically sent from a phone keypad to represent numbers. For
|
|
1047
|
-
* example, you can have Amazon Lex V2 process a credit card number input from a
|
|
1048
|
-
* phone.</p>
|
|
1049
|
-
*/
|
|
1050
|
-
export interface DTMFInputEvent {
|
|
1051
|
-
/**
|
|
1052
|
-
* <p>The DTMF character that the user pressed. The allowed characters are
|
|
1053
|
-
* A - D, 0 - 9, # and *.</p>
|
|
1054
|
-
*/
|
|
1055
|
-
inputCharacter: string | undefined;
|
|
1056
|
-
|
|
1057
|
-
/**
|
|
1058
|
-
* <p>A unique identifier that your application assigns to the event. You
|
|
1059
|
-
* can use this to identify events in logs.</p>
|
|
1060
|
-
*/
|
|
1061
|
-
eventId?: string;
|
|
1062
|
-
|
|
1063
|
-
/**
|
|
1064
|
-
* <p>A timestamp set by the client of the date and time that the event
|
|
1065
|
-
* was sent to Amazon Lex V2.</p>
|
|
1066
|
-
*/
|
|
1067
|
-
clientTimestampMillis?: number;
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
export namespace DTMFInputEvent {
|
|
1071
|
-
/**
|
|
1072
|
-
* @internal
|
|
1073
|
-
*/
|
|
1074
|
-
export const filterSensitiveLog = (obj: DTMFInputEvent): any => ({
|
|
1075
|
-
...obj,
|
|
1076
|
-
...(obj.inputCharacter && { inputCharacter: SENSITIVE_STRING }),
|
|
1077
|
-
});
|
|
1078
|
-
}
|
|
1079
|
-
|
|
1080
|
-
/**
|
|
1081
|
-
* <p>Event sent from the client application to Amazon Lex V2 to indicate that
|
|
1082
|
-
* playback of audio is complete and that Amazon Lex V2 should start processing
|
|
1083
|
-
* the user's input.</p>
|
|
1084
|
-
*/
|
|
1085
|
-
export interface PlaybackCompletionEvent {
|
|
1086
|
-
/**
|
|
1087
|
-
* <p>A unique identifier that your application assigns to the event. You
|
|
1088
|
-
* can use this to identify events in logs.</p>
|
|
1089
|
-
*/
|
|
1090
|
-
eventId?: string;
|
|
1091
|
-
|
|
1092
|
-
/**
|
|
1093
|
-
* <p>A timestamp set by the client of the date and time that the event
|
|
1094
|
-
* was sent to Amazon Lex V2.</p>
|
|
1095
|
-
*/
|
|
1096
|
-
clientTimestampMillis?: number;
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1099
|
-
export namespace PlaybackCompletionEvent {
|
|
1100
|
-
/**
|
|
1101
|
-
* @internal
|
|
1102
|
-
*/
|
|
1103
|
-
export const filterSensitiveLog = (obj: PlaybackCompletionEvent): any => ({
|
|
1104
|
-
...obj,
|
|
1105
|
-
});
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
/**
|
|
1109
|
-
* <p>The event sent from your client application to Amazon Lex V2 with text input
|
|
1110
|
-
* from the user.</p>
|
|
1111
|
-
*/
|
|
1112
|
-
export interface TextInputEvent {
|
|
1113
|
-
/**
|
|
1114
|
-
* <p>The text from the user. Amazon Lex V2 processes this as a complete
|
|
1115
|
-
* statement.</p>
|
|
1116
|
-
*/
|
|
1117
|
-
text: string | undefined;
|
|
1118
|
-
|
|
1119
|
-
/**
|
|
1120
|
-
* <p>A unique identifier that your application assigns to the event. You
|
|
1121
|
-
* can use this to identify events in logs.</p>
|
|
1122
|
-
*/
|
|
1123
|
-
eventId?: string;
|
|
1124
|
-
|
|
1125
|
-
/**
|
|
1126
|
-
* <p>A timestamp set by the client of the date and time that the event
|
|
1127
|
-
* was sent to Amazon Lex V2.</p>
|
|
1128
|
-
*/
|
|
1129
|
-
clientTimestampMillis?: number;
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
export namespace TextInputEvent {
|
|
1133
|
-
/**
|
|
1134
|
-
* @internal
|
|
1135
|
-
*/
|
|
1136
|
-
export const filterSensitiveLog = (obj: TextInputEvent): any => ({
|
|
1137
|
-
...obj,
|
|
1138
|
-
...(obj.text && { text: SENSITIVE_STRING }),
|
|
1139
|
-
});
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
/**
|
|
1143
|
-
* <p>Event that Amazon Lex V2 sends to indicate that the stream is still open
|
|
1144
|
-
* between the client application and Amazon Lex V2 </p>
|
|
1145
|
-
*/
|
|
1146
|
-
export interface HeartbeatEvent {
|
|
1147
|
-
/**
|
|
1148
|
-
* <p>A unique identifier of the event sent by Amazon Lex V2. The identifier is in
|
|
1149
|
-
* the form <code>RESPONSE-N</code>, where N is a number starting with one
|
|
1150
|
-
* and incremented for each event sent by Amazon Lex V2 in the current
|
|
1151
|
-
* session.</p>
|
|
1152
|
-
*/
|
|
1153
|
-
eventId?: string;
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
export namespace HeartbeatEvent {
|
|
1157
|
-
/**
|
|
1158
|
-
* @internal
|
|
1159
|
-
*/
|
|
1160
|
-
export const filterSensitiveLog = (obj: HeartbeatEvent): any => ({
|
|
1161
|
-
...obj,
|
|
1162
|
-
});
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
export enum InputMode {
|
|
1166
|
-
DTMF = "DTMF",
|
|
1167
|
-
SPEECH = "Speech",
|
|
1168
|
-
TEXT = "Text",
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
export enum PlaybackInterruptionReason {
|
|
1172
|
-
DTMF_START_DETECTED = "DTMF_START_DETECTED",
|
|
1173
|
-
TEXT_DETECTED = "TEXT_DETECTED",
|
|
1174
|
-
VOICE_START_DETECTED = "VOICE_START_DETECTED",
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
/**
|
|
1178
|
-
* <p>Event sent from Amazon Lex V2 to indicate to the client application should
|
|
1179
|
-
* stop playback of audio. For example, if the client is playing a prompt
|
|
1180
|
-
* that asks for the user's telephone number, the user might start to say
|
|
1181
|
-
* the phone number before the prompt is complete. Amazon Lex V2 sends this event
|
|
1182
|
-
* to the client application to indicate that the user is responding and
|
|
1183
|
-
* that Amazon Lex V2 is processing their input.</p>
|
|
1184
|
-
*/
|
|
1185
|
-
export interface PlaybackInterruptionEvent {
|
|
1186
|
-
/**
|
|
1187
|
-
* <p>Indicates the type of user input that Amazon Lex V2 detected.</p>
|
|
1188
|
-
*/
|
|
1189
|
-
eventReason?: PlaybackInterruptionReason | string;
|
|
1190
|
-
|
|
1191
|
-
/**
|
|
1192
|
-
* <p>The identifier of the event that contained the audio, DTMF, or text
|
|
1193
|
-
* that caused the interruption.</p>
|
|
1194
|
-
*/
|
|
1195
|
-
causedByEventId?: string;
|
|
1196
|
-
|
|
1197
|
-
/**
|
|
1198
|
-
* <p>A unique identifier of the event sent by Amazon Lex V2. The identifier is in
|
|
1199
|
-
* the form <code>RESPONSE-N</code>, where N is a number starting with one
|
|
1200
|
-
* and incremented for each event sent by Amazon Lex V2 in the current
|
|
1201
|
-
* session.</p>
|
|
1202
|
-
*/
|
|
1203
|
-
eventId?: string;
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
|
-
export namespace PlaybackInterruptionEvent {
|
|
1207
|
-
/**
|
|
1208
|
-
* @internal
|
|
1209
|
-
*/
|
|
1210
|
-
export const filterSensitiveLog = (obj: PlaybackInterruptionEvent): any => ({
|
|
1211
|
-
...obj,
|
|
1212
|
-
});
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
/**
|
|
1216
|
-
* <p>The event sent from Amazon Lex V2 to your application with text to present
|
|
1217
|
-
* to the user.</p>
|
|
1218
|
-
*/
|
|
1219
|
-
export interface TextResponseEvent {
|
|
1220
|
-
/**
|
|
1221
|
-
* <p>A list of messages to send to the user. Messages are ordered based
|
|
1222
|
-
* on the order that you returned the messages from your Lambda function
|
|
1223
|
-
* or the order that the messages are defined in the bot.</p>
|
|
1224
|
-
*/
|
|
1225
|
-
messages?: Message[];
|
|
1226
|
-
|
|
1227
|
-
/**
|
|
1228
|
-
* <p>A unique identifier of the event sent by Amazon Lex V2. The identifier is in
|
|
1229
|
-
* the form <code>RESPONSE-N</code>, where N is a number starting with one
|
|
1230
|
-
* and incremented for each event sent by Amazon Lex V2 in the current
|
|
1231
|
-
* session.</p>
|
|
1232
|
-
*/
|
|
1233
|
-
eventId?: string;
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
export namespace TextResponseEvent {
|
|
1237
|
-
/**
|
|
1238
|
-
* @internal
|
|
1239
|
-
*/
|
|
1240
|
-
export const filterSensitiveLog = (obj: TextResponseEvent): any => ({
|
|
1241
|
-
...obj,
|
|
1242
|
-
...(obj.messages && { messages: obj.messages.map((item) => Message.filterSensitiveLog(item)) }),
|
|
1243
|
-
});
|
|
1244
|
-
}
|
|
1245
|
-
|
|
1246
|
-
/**
|
|
1247
|
-
* <p>Event sent from Amazon Lex V2 to your client application that contains a
|
|
1248
|
-
* transcript of voice audio. </p>
|
|
1249
|
-
*/
|
|
1250
|
-
export interface TranscriptEvent {
|
|
1251
|
-
/**
|
|
1252
|
-
* <p>The transcript of the voice audio from the user.</p>
|
|
1253
|
-
*/
|
|
1254
|
-
transcript?: string;
|
|
1255
|
-
|
|
1256
|
-
/**
|
|
1257
|
-
* <p>A unique identifier of the event sent by Amazon Lex V2. The identifier is in
|
|
1258
|
-
* the form <code>RESPONSE-N</code>, where N is a number starting with one
|
|
1259
|
-
* and incremented for each event sent by Amazon Lex V2 in the current
|
|
1260
|
-
* session.</p>
|
|
1261
|
-
*/
|
|
1262
|
-
eventId?: string;
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
export namespace TranscriptEvent {
|
|
1266
|
-
/**
|
|
1267
|
-
* @internal
|
|
1268
|
-
*/
|
|
1269
|
-
export const filterSensitiveLog = (obj: TranscriptEvent): any => ({
|
|
1270
|
-
...obj,
|
|
1271
|
-
});
|
|
1272
|
-
}
|
|
1273
|
-
|
|
1274
|
-
/**
|
|
1275
|
-
* <p>A value that Amazon Lex V2 uses to fulfill an intent. </p>
|
|
1276
|
-
*/
|
|
1277
|
-
export interface Slot {
|
|
1278
|
-
/**
|
|
1279
|
-
* <p>The current value of the slot.</p>
|
|
1280
|
-
*/
|
|
1281
|
-
value?: Value;
|
|
1282
|
-
|
|
1283
|
-
/**
|
|
1284
|
-
* <p>When the <code>shape</code> value is <code>List</code>, it indicates
|
|
1285
|
-
* that the <code>values</code> field contains a list of slot values. When
|
|
1286
|
-
* the value is <code>Scalar</code>, it indicates that the
|
|
1287
|
-
* <code>value</code> field contains a single value.</p>
|
|
1288
|
-
*/
|
|
1289
|
-
shape?: Shape | string;
|
|
1290
|
-
|
|
1291
|
-
/**
|
|
1292
|
-
* <p>A list of one or more values that the user provided for the slot.
|
|
1293
|
-
* For example, if a for a slot that elicits pizza toppings, the values might
|
|
1294
|
-
* be "pepperoni" and "pineapple." </p>
|
|
1295
|
-
*/
|
|
1296
|
-
values?: Slot[];
|
|
1297
|
-
}
|
|
1298
|
-
|
|
1299
|
-
export namespace Slot {
|
|
1300
|
-
/**
|
|
1301
|
-
* @internal
|
|
1302
|
-
*/
|
|
1303
|
-
export const filterSensitiveLog = (obj: Slot): any => ({
|
|
1304
|
-
...obj,
|
|
1305
|
-
});
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
/**
|
|
1309
|
-
* <p>The current intent that Amazon Lex V2 is attempting to fulfill.</p>
|
|
1310
|
-
*/
|
|
1311
|
-
export interface Intent {
|
|
1312
|
-
/**
|
|
1313
|
-
* <p>The name of the intent.</p>
|
|
1314
|
-
*/
|
|
1315
|
-
name: string | undefined;
|
|
1316
|
-
|
|
1317
|
-
/**
|
|
1318
|
-
* <p>A map of all of the slots for the intent. The name of the slot maps
|
|
1319
|
-
* to the value of the slot. If a slot has not been filled, the value is
|
|
1320
|
-
* null.</p>
|
|
1321
|
-
*/
|
|
1322
|
-
slots?: { [key: string]: Slot };
|
|
1323
|
-
|
|
1324
|
-
/**
|
|
1325
|
-
* <p>Contains fulfillment information for the intent. </p>
|
|
1326
|
-
*/
|
|
1327
|
-
state?: IntentState | string;
|
|
1328
|
-
|
|
1329
|
-
/**
|
|
1330
|
-
* <p>Contains information about whether fulfillment of the intent has
|
|
1331
|
-
* been confirmed.</p>
|
|
1332
|
-
*/
|
|
1333
|
-
confirmationState?: ConfirmationState | string;
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
|
-
export namespace Intent {
|
|
1337
|
-
/**
|
|
1338
|
-
* @internal
|
|
1339
|
-
*/
|
|
1340
|
-
export const filterSensitiveLog = (obj: Intent): any => ({
|
|
1341
|
-
...obj,
|
|
1342
|
-
});
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
/**
|
|
1346
|
-
* <p>An intent that Amazon Lex V2 determined might satisfy the user's utterance.
|
|
1347
|
-
* The intents are ordered by the confidence score. </p>
|
|
1348
|
-
*/
|
|
1349
|
-
export interface Interpretation {
|
|
1350
|
-
/**
|
|
1351
|
-
* <p>Determines the threshold where Amazon Lex V2 will insert the
|
|
1352
|
-
* <code>AMAZON.FallbackIntent</code>,
|
|
1353
|
-
* <code>AMAZON.KendraSearchIntent</code>, or both when returning
|
|
1354
|
-
* alternative intents in a response. <code>AMAZON.FallbackIntent</code>
|
|
1355
|
-
* and <code>AMAZON.KendraSearchIntent</code> are only inserted if they
|
|
1356
|
-
* are configured for the bot.</p>
|
|
1357
|
-
*/
|
|
1358
|
-
nluConfidence?: ConfidenceScore;
|
|
1359
|
-
|
|
1360
|
-
/**
|
|
1361
|
-
* <p>The sentiment expressed in an utterance. </p>
|
|
1362
|
-
* <p>When the bot is configured to send utterances to Amazon Comprehend
|
|
1363
|
-
* for sentiment analysis, this field contains the result of the
|
|
1364
|
-
* analysis.</p>
|
|
1365
|
-
*/
|
|
1366
|
-
sentimentResponse?: SentimentResponse;
|
|
1367
|
-
|
|
1368
|
-
/**
|
|
1369
|
-
* <p>A list of intents that might satisfy the user's utterance. The
|
|
1370
|
-
* intents are ordered by the confidence score.</p>
|
|
1371
|
-
*/
|
|
1372
|
-
intent?: Intent;
|
|
1373
|
-
}
|
|
1374
|
-
|
|
1375
|
-
export namespace Interpretation {
|
|
1376
|
-
/**
|
|
1377
|
-
* @internal
|
|
1378
|
-
*/
|
|
1379
|
-
export const filterSensitiveLog = (obj: Interpretation): any => ({
|
|
1380
|
-
...obj,
|
|
1381
|
-
});
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
|
-
/**
|
|
1385
|
-
* <p>The state of the user's session with Amazon Lex V2.</p>
|
|
1386
|
-
*/
|
|
1387
|
-
export interface SessionState {
|
|
1388
|
-
/**
|
|
1389
|
-
* <p>The next step that Amazon Lex V2 should take in the conversation with a
|
|
1390
|
-
* user.</p>
|
|
1391
|
-
*/
|
|
1392
|
-
dialogAction?: DialogAction;
|
|
1393
|
-
|
|
1394
|
-
/**
|
|
1395
|
-
* <p>The active intent that Amazon Lex V2 is processing.</p>
|
|
1396
|
-
*/
|
|
1397
|
-
intent?: Intent;
|
|
1398
|
-
|
|
1399
|
-
/**
|
|
1400
|
-
* <p>One or more contexts that indicate to Amazon Lex V2 the context of a
|
|
1401
|
-
* request. When a context is active, Amazon Lex V2 considers intents with the
|
|
1402
|
-
* matching context as a trigger as the next intent in a session.</p>
|
|
1403
|
-
*/
|
|
1404
|
-
activeContexts?: ActiveContext[];
|
|
1405
|
-
|
|
1406
|
-
/**
|
|
1407
|
-
* <p>Map of key/value pairs representing session-specific context
|
|
1408
|
-
* information. It contains application information passed between Amazon Lex V2
|
|
1409
|
-
* and a client application.</p>
|
|
1410
|
-
*/
|
|
1411
|
-
sessionAttributes?: { [key: string]: string };
|
|
1412
|
-
|
|
1413
|
-
/**
|
|
1414
|
-
* <p></p>
|
|
1415
|
-
*/
|
|
1416
|
-
originatingRequestId?: string;
|
|
1417
|
-
}
|
|
1418
|
-
|
|
1419
|
-
export namespace SessionState {
|
|
1420
|
-
/**
|
|
1421
|
-
* @internal
|
|
1422
|
-
*/
|
|
1423
|
-
export const filterSensitiveLog = (obj: SessionState): any => ({
|
|
1424
|
-
...obj,
|
|
1425
|
-
...(obj.activeContexts && {
|
|
1426
|
-
activeContexts: obj.activeContexts.map((item) => ActiveContext.filterSensitiveLog(item)),
|
|
1427
|
-
}),
|
|
1428
|
-
});
|
|
1429
|
-
}
|
|
1430
|
-
|
|
1431
|
-
/**
|
|
1432
|
-
* <p>The initial event sent from the application to Amazon Lex V2 to configure
|
|
1433
|
-
* the conversation, including session and request attributes and the
|
|
1434
|
-
* response content type.</p>
|
|
1435
|
-
*/
|
|
1436
|
-
export interface ConfigurationEvent {
|
|
1437
|
-
/**
|
|
1438
|
-
* <p>Request-specific information passed between the client application
|
|
1439
|
-
* and Amazon Lex V2.</p>
|
|
1440
|
-
* <p>The namespace <code>x-amz-lex:</code> is reserved for special
|
|
1441
|
-
* attributes. Don't create any request attributes for prefix
|
|
1442
|
-
* <code>x-amz-lex:</code>.</p>
|
|
1443
|
-
*/
|
|
1444
|
-
requestAttributes?: { [key: string]: string };
|
|
1445
|
-
|
|
1446
|
-
/**
|
|
1447
|
-
* <p>The message that Amazon Lex V2 returns in the response can be either text or
|
|
1448
|
-
* speech based on the <code>responseContentType</code> value.</p>
|
|
1449
|
-
* <ul>
|
|
1450
|
-
* <li>
|
|
1451
|
-
* <p>If the value is <code>text/plain;charset=utf-8</code>, Amazon Lex V2
|
|
1452
|
-
* returns text in the response.</p>
|
|
1453
|
-
* </li>
|
|
1454
|
-
* <li>
|
|
1455
|
-
* <p>If the value begins with <code>audio/</code>, Amazon Lex V2 returns
|
|
1456
|
-
* speech in the response. Amazon Lex V2 uses Amazon Polly to generate the speech
|
|
1457
|
-
* using the configuration that you specified in the
|
|
1458
|
-
* <code>requestContentType</code> parameter. For example, if you
|
|
1459
|
-
* specify <code>audio/mpeg</code> as the value, Amazon Lex V2 returns
|
|
1460
|
-
* speech in the MPEG format.</p>
|
|
1461
|
-
* </li>
|
|
1462
|
-
* <li>
|
|
1463
|
-
* <p>If the value is <code>audio/pcm</code>, the speech returned is
|
|
1464
|
-
* audio/pcm in 16-bit, little-endian format.</p>
|
|
1465
|
-
* </li>
|
|
1466
|
-
* <li>
|
|
1467
|
-
* <p>The following are the accepted values:</p>
|
|
1468
|
-
* <ul>
|
|
1469
|
-
* <li>
|
|
1470
|
-
* <p>audio/mpeg</p>
|
|
1471
|
-
* </li>
|
|
1472
|
-
* <li>
|
|
1473
|
-
* <p>audio/ogg</p>
|
|
1474
|
-
* </li>
|
|
1475
|
-
* <li>
|
|
1476
|
-
* <p>audio/pcm</p>
|
|
1477
|
-
* </li>
|
|
1478
|
-
* <li>
|
|
1479
|
-
* <p>audio/* (defaults to mpeg)</p>
|
|
1480
|
-
* </li>
|
|
1481
|
-
* <li>
|
|
1482
|
-
* <p>text/plain; charset=utf-8</p>
|
|
1483
|
-
* </li>
|
|
1484
|
-
* </ul>
|
|
1485
|
-
* </li>
|
|
1486
|
-
* </ul>
|
|
1487
|
-
*/
|
|
1488
|
-
responseContentType: string | undefined;
|
|
1489
|
-
|
|
1490
|
-
/**
|
|
1491
|
-
* <p>The state of the user's session with Amazon Lex V2.</p>
|
|
1492
|
-
*/
|
|
1493
|
-
sessionState?: SessionState;
|
|
1494
|
-
|
|
1495
|
-
/**
|
|
1496
|
-
* <p>A list of messages to send to the user.</p>
|
|
1497
|
-
*/
|
|
1498
|
-
welcomeMessages?: Message[];
|
|
1499
|
-
|
|
1500
|
-
/**
|
|
1501
|
-
* <p>Determines whether Amazon Lex V2 should send audio responses to the client
|
|
1502
|
-
* application. When this parameter if <code>false</code>, the client
|
|
1503
|
-
* application needs to create responses for the user.
|
|
1504
|
-
* </p>
|
|
1505
|
-
*/
|
|
1506
|
-
disablePlayback?: boolean;
|
|
1507
|
-
|
|
1508
|
-
/**
|
|
1509
|
-
* <p>A unique identifier that your application assigns to the event. You
|
|
1510
|
-
* can use this to identify events in logs.</p>
|
|
1511
|
-
*/
|
|
1512
|
-
eventId?: string;
|
|
1513
|
-
|
|
1514
|
-
/**
|
|
1515
|
-
* <p>A timestamp set by the client of the date and time that the event
|
|
1516
|
-
* was sent to Amazon Lex V2.</p>
|
|
1517
|
-
*/
|
|
1518
|
-
clientTimestampMillis?: number;
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
export namespace ConfigurationEvent {
|
|
1522
|
-
/**
|
|
1523
|
-
* @internal
|
|
1524
|
-
*/
|
|
1525
|
-
export const filterSensitiveLog = (obj: ConfigurationEvent): any => ({
|
|
1526
|
-
...obj,
|
|
1527
|
-
...(obj.welcomeMessages && {
|
|
1528
|
-
welcomeMessages: obj.welcomeMessages.map((item) => Message.filterSensitiveLog(item)),
|
|
1529
|
-
}),
|
|
1530
|
-
});
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
export interface PutSessionRequest {
|
|
1534
|
-
/**
|
|
1535
|
-
* <p>The identifier of the bot that receives the session data.</p>
|
|
1536
|
-
*/
|
|
1537
|
-
botId: string | undefined;
|
|
1538
|
-
|
|
1539
|
-
/**
|
|
1540
|
-
* <p>The alias identifier of the bot that receives the session
|
|
1541
|
-
* data.</p>
|
|
1542
|
-
*/
|
|
1543
|
-
botAliasId: string | undefined;
|
|
1544
|
-
|
|
1545
|
-
/**
|
|
1546
|
-
* <p>The locale where the session is in use.</p>
|
|
1547
|
-
*/
|
|
1548
|
-
localeId: string | undefined;
|
|
1549
|
-
|
|
1550
|
-
/**
|
|
1551
|
-
* <p>The identifier of the session that receives the session data.</p>
|
|
1552
|
-
*/
|
|
1553
|
-
sessionId: string | undefined;
|
|
1554
|
-
|
|
1555
|
-
/**
|
|
1556
|
-
* <p>A list of messages to send to the user. Messages are sent in the
|
|
1557
|
-
* order that they are defined in the list.</p>
|
|
1558
|
-
*/
|
|
1559
|
-
messages?: Message[];
|
|
1560
|
-
|
|
1561
|
-
/**
|
|
1562
|
-
* <p>Sets the state of the session with the user. You can use this to set
|
|
1563
|
-
* the current intent, attributes, context, and dialog action. Use the
|
|
1564
|
-
* dialog action to determine the next step that Amazon Lex V2 should use in the
|
|
1565
|
-
* conversation with the user.</p>
|
|
1566
|
-
*/
|
|
1567
|
-
sessionState: SessionState | undefined;
|
|
1568
|
-
|
|
1569
|
-
/**
|
|
1570
|
-
* <p>Request-specific information passed between Amazon Lex V2 and the client
|
|
1571
|
-
* application.</p>
|
|
1572
|
-
* <p>The namespace <code>x-amz-lex:</code> is reserved for special
|
|
1573
|
-
* attributes. Don't create any request attributes with the prefix
|
|
1574
|
-
* <code>x-amz-lex:</code>.</p>
|
|
1575
|
-
*/
|
|
1576
|
-
requestAttributes?: { [key: string]: string };
|
|
1577
|
-
|
|
1578
|
-
/**
|
|
1579
|
-
* <p>The message that Amazon Lex V2 returns in the response can be either text or
|
|
1580
|
-
* speech depending on the value of this parameter. </p>
|
|
1581
|
-
* <ul>
|
|
1582
|
-
* <li>
|
|
1583
|
-
* <p>If the value is <code>text/plain; charset=utf-8</code>, Amazon Lex V2
|
|
1584
|
-
* returns text in the response.</p>
|
|
1585
|
-
* </li>
|
|
1586
|
-
* </ul>
|
|
1587
|
-
*/
|
|
1588
|
-
responseContentType?: string;
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
|
-
export namespace PutSessionRequest {
|
|
1592
|
-
/**
|
|
1593
|
-
* @internal
|
|
1594
|
-
*/
|
|
1595
|
-
export const filterSensitiveLog = (obj: PutSessionRequest): any => ({
|
|
1596
|
-
...obj,
|
|
1597
|
-
...(obj.messages && { messages: obj.messages.map((item) => Message.filterSensitiveLog(item)) }),
|
|
1598
|
-
});
|
|
1599
|
-
}
|
|
1600
|
-
|
|
1601
|
-
export interface RecognizeTextRequest {
|
|
1602
|
-
/**
|
|
1603
|
-
* <p>The identifier of the bot that processes the request.</p>
|
|
1604
|
-
*/
|
|
1605
|
-
botId: string | undefined;
|
|
1606
|
-
|
|
1607
|
-
/**
|
|
1608
|
-
* <p>The alias identifier in use for the bot that processes the
|
|
1609
|
-
* request.</p>
|
|
1610
|
-
*/
|
|
1611
|
-
botAliasId: string | undefined;
|
|
1612
|
-
|
|
1613
|
-
/**
|
|
1614
|
-
* <p>The locale where the session is in use.</p>
|
|
1615
|
-
*/
|
|
1616
|
-
localeId: string | undefined;
|
|
1617
|
-
|
|
1618
|
-
/**
|
|
1619
|
-
* <p>The identifier of the user session that is having the
|
|
1620
|
-
* conversation.</p>
|
|
1621
|
-
*/
|
|
1622
|
-
sessionId: string | undefined;
|
|
1623
|
-
|
|
1624
|
-
/**
|
|
1625
|
-
* <p>The text that the user entered. Amazon Lex V2 interprets this text.</p>
|
|
1626
|
-
*/
|
|
1627
|
-
text: string | undefined;
|
|
1628
|
-
|
|
1629
|
-
/**
|
|
1630
|
-
* <p>The current state of the dialog between the user and the bot.</p>
|
|
1631
|
-
*/
|
|
1632
|
-
sessionState?: SessionState;
|
|
1633
|
-
|
|
1634
|
-
/**
|
|
1635
|
-
* <p>Request-specific information passed between the client application
|
|
1636
|
-
* and Amazon Lex V2 </p>
|
|
1637
|
-
* <p>The namespace <code>x-amz-lex:</code> is reserved for special
|
|
1638
|
-
* attributes. Don't create any request attributes with the prefix
|
|
1639
|
-
* <code>x-amz-lex:</code>.</p>
|
|
1640
|
-
*/
|
|
1641
|
-
requestAttributes?: { [key: string]: string };
|
|
1642
|
-
}
|
|
1643
|
-
|
|
1644
|
-
export namespace RecognizeTextRequest {
|
|
1645
|
-
/**
|
|
1646
|
-
* @internal
|
|
1647
|
-
*/
|
|
1648
|
-
export const filterSensitiveLog = (obj: RecognizeTextRequest): any => ({
|
|
1649
|
-
...obj,
|
|
1650
|
-
...(obj.text && { text: SENSITIVE_STRING }),
|
|
1651
|
-
});
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
/**
|
|
1655
|
-
* <p>Represents a stream of events between your application and
|
|
1656
|
-
* Amazon Lex V2.</p>
|
|
1657
|
-
*/
|
|
1658
|
-
export type StartConversationRequestEventStream =
|
|
1659
|
-
| StartConversationRequestEventStream.AudioInputEventMember
|
|
1660
|
-
| StartConversationRequestEventStream.ConfigurationEventMember
|
|
1661
|
-
| StartConversationRequestEventStream.DTMFInputEventMember
|
|
1662
|
-
| StartConversationRequestEventStream.DisconnectionEventMember
|
|
1663
|
-
| StartConversationRequestEventStream.PlaybackCompletionEventMember
|
|
1664
|
-
| StartConversationRequestEventStream.TextInputEventMember
|
|
1665
|
-
| StartConversationRequestEventStream.$UnknownMember;
|
|
1666
|
-
|
|
1667
|
-
export namespace StartConversationRequestEventStream {
|
|
1668
|
-
/**
|
|
1669
|
-
* <p>Configuration information sent from your client application to
|
|
1670
|
-
* Amazon Lex V2</p>
|
|
1671
|
-
*/
|
|
1672
|
-
export interface ConfigurationEventMember {
|
|
1673
|
-
ConfigurationEvent: ConfigurationEvent;
|
|
1674
|
-
AudioInputEvent?: never;
|
|
1675
|
-
DTMFInputEvent?: never;
|
|
1676
|
-
TextInputEvent?: never;
|
|
1677
|
-
PlaybackCompletionEvent?: never;
|
|
1678
|
-
DisconnectionEvent?: never;
|
|
1679
|
-
$unknown?: never;
|
|
1680
|
-
}
|
|
1681
|
-
|
|
1682
|
-
/**
|
|
1683
|
-
* <p>Speech audio sent from your client application to Amazon Lex V2. Audio
|
|
1684
|
-
* starts accumulating when Amazon Lex V2 identifies a voice and continues until a
|
|
1685
|
-
* natural pause in the speech is found before processing.</p>
|
|
1686
|
-
*/
|
|
1687
|
-
export interface AudioInputEventMember {
|
|
1688
|
-
ConfigurationEvent?: never;
|
|
1689
|
-
AudioInputEvent: AudioInputEvent;
|
|
1690
|
-
DTMFInputEvent?: never;
|
|
1691
|
-
TextInputEvent?: never;
|
|
1692
|
-
PlaybackCompletionEvent?: never;
|
|
1693
|
-
DisconnectionEvent?: never;
|
|
1694
|
-
$unknown?: never;
|
|
1695
|
-
}
|
|
1696
|
-
|
|
1697
|
-
/**
|
|
1698
|
-
* <p>DTMF information sent to Amazon Lex V2 by your application. Amazon Lex V2
|
|
1699
|
-
* accumulates the DMTF information from when the user sends the first
|
|
1700
|
-
* character and ends</p>
|
|
1701
|
-
* <ul>
|
|
1702
|
-
* <li>
|
|
1703
|
-
* <p>when there's a pause longer that the value configured for the
|
|
1704
|
-
* end timeout.</p>
|
|
1705
|
-
* </li>
|
|
1706
|
-
* <li>
|
|
1707
|
-
* <p>when there's a digit that is the configured end
|
|
1708
|
-
* character.</p>
|
|
1709
|
-
* </li>
|
|
1710
|
-
* <li>
|
|
1711
|
-
* <p>when Amazon Lex V2 accumulates characters equal to the maximum DTMF
|
|
1712
|
-
* character configuration.</p>
|
|
1713
|
-
* </li>
|
|
1714
|
-
* </ul>
|
|
1715
|
-
*/
|
|
1716
|
-
export interface DTMFInputEventMember {
|
|
1717
|
-
ConfigurationEvent?: never;
|
|
1718
|
-
AudioInputEvent?: never;
|
|
1719
|
-
DTMFInputEvent: DTMFInputEvent;
|
|
1720
|
-
TextInputEvent?: never;
|
|
1721
|
-
PlaybackCompletionEvent?: never;
|
|
1722
|
-
DisconnectionEvent?: never;
|
|
1723
|
-
$unknown?: never;
|
|
1724
|
-
}
|
|
1725
|
-
|
|
1726
|
-
/**
|
|
1727
|
-
* <p>Text sent from your client application to Amazon Lex V2. Each
|
|
1728
|
-
* <code>TextInputEvent</code> is processed individually.</p>
|
|
1729
|
-
*/
|
|
1730
|
-
export interface TextInputEventMember {
|
|
1731
|
-
ConfigurationEvent?: never;
|
|
1732
|
-
AudioInputEvent?: never;
|
|
1733
|
-
DTMFInputEvent?: never;
|
|
1734
|
-
TextInputEvent: TextInputEvent;
|
|
1735
|
-
PlaybackCompletionEvent?: never;
|
|
1736
|
-
DisconnectionEvent?: never;
|
|
1737
|
-
$unknown?: never;
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1740
|
-
/**
|
|
1741
|
-
* <p>Event sent from the client application to Amazon Lex V2 to indicate that it
|
|
1742
|
-
* has finished playing audio and that Amazon Lex V2 should start listening for
|
|
1743
|
-
* user input.</p>
|
|
1744
|
-
*/
|
|
1745
|
-
export interface PlaybackCompletionEventMember {
|
|
1746
|
-
ConfigurationEvent?: never;
|
|
1747
|
-
AudioInputEvent?: never;
|
|
1748
|
-
DTMFInputEvent?: never;
|
|
1749
|
-
TextInputEvent?: never;
|
|
1750
|
-
PlaybackCompletionEvent: PlaybackCompletionEvent;
|
|
1751
|
-
DisconnectionEvent?: never;
|
|
1752
|
-
$unknown?: never;
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1755
|
-
/**
|
|
1756
|
-
* <p>Event sent from the client application to indicate to Amazon Lex V2 that the
|
|
1757
|
-
* conversation is over.</p>
|
|
1758
|
-
*/
|
|
1759
|
-
export interface DisconnectionEventMember {
|
|
1760
|
-
ConfigurationEvent?: never;
|
|
1761
|
-
AudioInputEvent?: never;
|
|
1762
|
-
DTMFInputEvent?: never;
|
|
1763
|
-
TextInputEvent?: never;
|
|
1764
|
-
PlaybackCompletionEvent?: never;
|
|
1765
|
-
DisconnectionEvent: DisconnectionEvent;
|
|
1766
|
-
$unknown?: never;
|
|
1767
|
-
}
|
|
1768
|
-
|
|
1769
|
-
export interface $UnknownMember {
|
|
1770
|
-
ConfigurationEvent?: never;
|
|
1771
|
-
AudioInputEvent?: never;
|
|
1772
|
-
DTMFInputEvent?: never;
|
|
1773
|
-
TextInputEvent?: never;
|
|
1774
|
-
PlaybackCompletionEvent?: never;
|
|
1775
|
-
DisconnectionEvent?: never;
|
|
1776
|
-
$unknown: [string, any];
|
|
1777
|
-
}
|
|
1778
|
-
|
|
1779
|
-
export interface Visitor<T> {
|
|
1780
|
-
ConfigurationEvent: (value: ConfigurationEvent) => T;
|
|
1781
|
-
AudioInputEvent: (value: AudioInputEvent) => T;
|
|
1782
|
-
DTMFInputEvent: (value: DTMFInputEvent) => T;
|
|
1783
|
-
TextInputEvent: (value: TextInputEvent) => T;
|
|
1784
|
-
PlaybackCompletionEvent: (value: PlaybackCompletionEvent) => T;
|
|
1785
|
-
DisconnectionEvent: (value: DisconnectionEvent) => T;
|
|
1786
|
-
_: (name: string, value: any) => T;
|
|
1787
|
-
}
|
|
1788
|
-
|
|
1789
|
-
export const visit = <T>(value: StartConversationRequestEventStream, visitor: Visitor<T>): T => {
|
|
1790
|
-
if (value.ConfigurationEvent !== undefined) return visitor.ConfigurationEvent(value.ConfigurationEvent);
|
|
1791
|
-
if (value.AudioInputEvent !== undefined) return visitor.AudioInputEvent(value.AudioInputEvent);
|
|
1792
|
-
if (value.DTMFInputEvent !== undefined) return visitor.DTMFInputEvent(value.DTMFInputEvent);
|
|
1793
|
-
if (value.TextInputEvent !== undefined) return visitor.TextInputEvent(value.TextInputEvent);
|
|
1794
|
-
if (value.PlaybackCompletionEvent !== undefined)
|
|
1795
|
-
return visitor.PlaybackCompletionEvent(value.PlaybackCompletionEvent);
|
|
1796
|
-
if (value.DisconnectionEvent !== undefined) return visitor.DisconnectionEvent(value.DisconnectionEvent);
|
|
1797
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1798
|
-
};
|
|
1799
|
-
|
|
1800
|
-
/**
|
|
1801
|
-
* @internal
|
|
1802
|
-
*/
|
|
1803
|
-
export const filterSensitiveLog = (obj: StartConversationRequestEventStream): any => {
|
|
1804
|
-
if (obj.ConfigurationEvent !== undefined)
|
|
1805
|
-
return { ConfigurationEvent: ConfigurationEvent.filterSensitiveLog(obj.ConfigurationEvent) };
|
|
1806
|
-
if (obj.AudioInputEvent !== undefined)
|
|
1807
|
-
return { AudioInputEvent: AudioInputEvent.filterSensitiveLog(obj.AudioInputEvent) };
|
|
1808
|
-
if (obj.DTMFInputEvent !== undefined)
|
|
1809
|
-
return { DTMFInputEvent: DTMFInputEvent.filterSensitiveLog(obj.DTMFInputEvent) };
|
|
1810
|
-
if (obj.TextInputEvent !== undefined)
|
|
1811
|
-
return { TextInputEvent: TextInputEvent.filterSensitiveLog(obj.TextInputEvent) };
|
|
1812
|
-
if (obj.PlaybackCompletionEvent !== undefined)
|
|
1813
|
-
return { PlaybackCompletionEvent: PlaybackCompletionEvent.filterSensitiveLog(obj.PlaybackCompletionEvent) };
|
|
1814
|
-
if (obj.DisconnectionEvent !== undefined)
|
|
1815
|
-
return { DisconnectionEvent: DisconnectionEvent.filterSensitiveLog(obj.DisconnectionEvent) };
|
|
1816
|
-
if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1817
|
-
};
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
|
-
export interface StartConversationRequest {
|
|
1821
|
-
/**
|
|
1822
|
-
* <p>The identifier of the bot to process the request.</p>
|
|
1823
|
-
*/
|
|
1824
|
-
botId: string | undefined;
|
|
1825
|
-
|
|
1826
|
-
/**
|
|
1827
|
-
* <p>The alias identifier in use for the bot that processes the
|
|
1828
|
-
* request.</p>
|
|
1829
|
-
*/
|
|
1830
|
-
botAliasId: string | undefined;
|
|
1831
|
-
|
|
1832
|
-
/**
|
|
1833
|
-
* <p>The locale where the session is in use.</p>
|
|
1834
|
-
*/
|
|
1835
|
-
localeId: string | undefined;
|
|
1836
|
-
|
|
1837
|
-
/**
|
|
1838
|
-
* <p>The identifier of the user session that is having the
|
|
1839
|
-
* conversation.</p>
|
|
1840
|
-
*/
|
|
1841
|
-
sessionId: string | undefined;
|
|
1842
|
-
|
|
1843
|
-
/**
|
|
1844
|
-
* <p>The conversation type that you are using the Amazon Lex V2. If the
|
|
1845
|
-
* conversation mode is <code>AUDIO</code> you can send both audio and
|
|
1846
|
-
* DTMF information. If the mode is <code>TEXT</code> you can only send
|
|
1847
|
-
* text.</p>
|
|
1848
|
-
*/
|
|
1849
|
-
conversationMode?: ConversationMode | string;
|
|
1850
|
-
|
|
1851
|
-
/**
|
|
1852
|
-
* <p>Represents the stream of events to Amazon Lex V2 from your application. The
|
|
1853
|
-
* events are encoded as HTTP/2 data frames.</p>
|
|
1854
|
-
*/
|
|
1855
|
-
requestEventStream: AsyncIterable<StartConversationRequestEventStream> | undefined;
|
|
1856
|
-
}
|
|
1857
|
-
|
|
1858
|
-
export namespace StartConversationRequest {
|
|
1859
|
-
/**
|
|
1860
|
-
* @internal
|
|
1861
|
-
*/
|
|
1862
|
-
export const filterSensitiveLog = (obj: StartConversationRequest): any => ({
|
|
1863
|
-
...obj,
|
|
1864
|
-
...(obj.requestEventStream && { requestEventStream: "STREAMING_CONTENT" }),
|
|
1865
|
-
});
|
|
1866
|
-
}
|
|
1867
|
-
|
|
1868
|
-
export interface GetSessionResponse {
|
|
1869
|
-
/**
|
|
1870
|
-
* <p>The identifier of the returned session.</p>
|
|
1871
|
-
*/
|
|
1872
|
-
sessionId?: string;
|
|
1873
|
-
|
|
1874
|
-
/**
|
|
1875
|
-
* <p>A list of messages that were last sent to the user. The messages are
|
|
1876
|
-
* ordered based on the order that your returned the messages from your
|
|
1877
|
-
* Lambda function or the order that messages are defined in the bot.
|
|
1878
|
-
* </p>
|
|
1879
|
-
*/
|
|
1880
|
-
messages?: Message[];
|
|
1881
|
-
|
|
1882
|
-
/**
|
|
1883
|
-
* <p>A list of intents that Amazon Lex V2 determined might satisfy the user's
|
|
1884
|
-
* utterance. </p>
|
|
1885
|
-
* <p>Each interpretation includes the intent, a score that indicates how
|
|
1886
|
-
* confident Amazon Lex V2 is that the interpretation is the correct one, and an
|
|
1887
|
-
* optional sentiment response that indicates the sentiment expressed in
|
|
1888
|
-
* the utterance.</p>
|
|
1889
|
-
*/
|
|
1890
|
-
interpretations?: Interpretation[];
|
|
1891
|
-
|
|
1892
|
-
/**
|
|
1893
|
-
* <p>Represents the current state of the dialog between the user and the
|
|
1894
|
-
* bot.</p>
|
|
1895
|
-
* <p>You can use this to determine the progress of the conversation and
|
|
1896
|
-
* what the next action might be.</p>
|
|
1897
|
-
*/
|
|
1898
|
-
sessionState?: SessionState;
|
|
1899
|
-
}
|
|
1900
|
-
|
|
1901
|
-
export namespace GetSessionResponse {
|
|
1902
|
-
/**
|
|
1903
|
-
* @internal
|
|
1904
|
-
*/
|
|
1905
|
-
export const filterSensitiveLog = (obj: GetSessionResponse): any => ({
|
|
1906
|
-
...obj,
|
|
1907
|
-
...(obj.messages && { messages: obj.messages.map((item) => Message.filterSensitiveLog(item)) }),
|
|
1908
|
-
});
|
|
1909
|
-
}
|
|
1910
|
-
|
|
1911
|
-
/**
|
|
1912
|
-
* <p>Contains the current state of the conversation between the client
|
|
1913
|
-
* application and Amazon Lex V2.</p>
|
|
1914
|
-
*/
|
|
1915
|
-
export interface IntentResultEvent {
|
|
1916
|
-
/**
|
|
1917
|
-
* <p>Indicates whether the input to the operation was text or
|
|
1918
|
-
* speech.</p>
|
|
1919
|
-
*/
|
|
1920
|
-
inputMode?: InputMode | string;
|
|
1921
|
-
|
|
1922
|
-
/**
|
|
1923
|
-
* <p>A list of intents that Amazon Lex V2 determined might satisfy the user's
|
|
1924
|
-
* utterance.</p>
|
|
1925
|
-
*
|
|
1926
|
-
* <p>Each interpretation includes the intent, a score that indicates how
|
|
1927
|
-
* confident Amazon Lex V2 is that the interpretation is the correct one, and an
|
|
1928
|
-
* optional sentiment response that indicates the sentiment expressed in
|
|
1929
|
-
* the utterance.</p>
|
|
1930
|
-
*/
|
|
1931
|
-
interpretations?: Interpretation[];
|
|
1932
|
-
|
|
1933
|
-
/**
|
|
1934
|
-
* <p>The state of the user's session with Amazon Lex V2.</p>
|
|
1935
|
-
*/
|
|
1936
|
-
sessionState?: SessionState;
|
|
1937
|
-
|
|
1938
|
-
/**
|
|
1939
|
-
* <p>The attributes sent in the request.</p>
|
|
1940
|
-
*/
|
|
1941
|
-
requestAttributes?: { [key: string]: string };
|
|
1942
|
-
|
|
1943
|
-
/**
|
|
1944
|
-
* <p>The identifier of the session in use.</p>
|
|
1945
|
-
*/
|
|
1946
|
-
sessionId?: string;
|
|
1947
|
-
|
|
1948
|
-
/**
|
|
1949
|
-
* <p>A unique identifier of the event sent by Amazon Lex V2. The identifier is in
|
|
1950
|
-
* the form <code>RESPONSE-N</code>, where N is a number starting with one
|
|
1951
|
-
* and incremented for each event sent by Amazon Lex V2 in the current
|
|
1952
|
-
* session.</p>
|
|
1953
|
-
*/
|
|
1954
|
-
eventId?: string;
|
|
1955
|
-
}
|
|
1956
|
-
|
|
1957
|
-
export namespace IntentResultEvent {
|
|
1958
|
-
/**
|
|
1959
|
-
* @internal
|
|
1960
|
-
*/
|
|
1961
|
-
export const filterSensitiveLog = (obj: IntentResultEvent): any => ({
|
|
1962
|
-
...obj,
|
|
1963
|
-
});
|
|
1964
|
-
}
|
|
1965
|
-
|
|
1966
|
-
export interface RecognizeTextResponse {
|
|
1967
|
-
/**
|
|
1968
|
-
* <p>A list of messages last sent to the user. The messages are ordered
|
|
1969
|
-
* based on the order that you returned the messages from your Lambda
|
|
1970
|
-
* function or the order that the messages are defined in the bot.</p>
|
|
1971
|
-
*/
|
|
1972
|
-
messages?: Message[];
|
|
1973
|
-
|
|
1974
|
-
/**
|
|
1975
|
-
* <p>Represents the current state of the dialog between the user and the
|
|
1976
|
-
* bot. </p>
|
|
1977
|
-
* <p>Use this to determine the progress of the conversation and what the
|
|
1978
|
-
* next action may be.</p>
|
|
1979
|
-
*/
|
|
1980
|
-
sessionState?: SessionState;
|
|
1981
|
-
|
|
1982
|
-
/**
|
|
1983
|
-
* <p>A list of intents that Amazon Lex V2 determined might satisfy the user's
|
|
1984
|
-
* utterance. </p>
|
|
1985
|
-
* <p>Each interpretation includes the intent, a score that indicates now
|
|
1986
|
-
* confident Amazon Lex V2 is that the interpretation is the correct one, and an
|
|
1987
|
-
* optional sentiment response that indicates the sentiment expressed in
|
|
1988
|
-
* the utterance.</p>
|
|
1989
|
-
*/
|
|
1990
|
-
interpretations?: Interpretation[];
|
|
1991
|
-
|
|
1992
|
-
/**
|
|
1993
|
-
* <p>The attributes sent in the request.</p>
|
|
1994
|
-
*/
|
|
1995
|
-
requestAttributes?: { [key: string]: string };
|
|
1996
|
-
|
|
1997
|
-
/**
|
|
1998
|
-
* <p>The identifier of the session in use.</p>
|
|
1999
|
-
*/
|
|
2000
|
-
sessionId?: string;
|
|
2001
|
-
}
|
|
2002
|
-
|
|
2003
|
-
export namespace RecognizeTextResponse {
|
|
2004
|
-
/**
|
|
2005
|
-
* @internal
|
|
2006
|
-
*/
|
|
2007
|
-
export const filterSensitiveLog = (obj: RecognizeTextResponse): any => ({
|
|
2008
|
-
...obj,
|
|
2009
|
-
...(obj.messages && { messages: obj.messages.map((item) => Message.filterSensitiveLog(item)) }),
|
|
2010
|
-
});
|
|
2011
|
-
}
|
|
2012
|
-
|
|
2013
|
-
/**
|
|
2014
|
-
* <p>Represents a stream of events between Amazon Lex V2 and your
|
|
2015
|
-
* application.</p>
|
|
2016
|
-
*/
|
|
2017
|
-
export type StartConversationResponseEventStream =
|
|
2018
|
-
| StartConversationResponseEventStream.AccessDeniedExceptionMember
|
|
2019
|
-
| StartConversationResponseEventStream.AudioResponseEventMember
|
|
2020
|
-
| StartConversationResponseEventStream.BadGatewayExceptionMember
|
|
2021
|
-
| StartConversationResponseEventStream.ConflictExceptionMember
|
|
2022
|
-
| StartConversationResponseEventStream.DependencyFailedExceptionMember
|
|
2023
|
-
| StartConversationResponseEventStream.HeartbeatEventMember
|
|
2024
|
-
| StartConversationResponseEventStream.IntentResultEventMember
|
|
2025
|
-
| StartConversationResponseEventStream.InternalServerExceptionMember
|
|
2026
|
-
| StartConversationResponseEventStream.PlaybackInterruptionEventMember
|
|
2027
|
-
| StartConversationResponseEventStream.ResourceNotFoundExceptionMember
|
|
2028
|
-
| StartConversationResponseEventStream.TextResponseEventMember
|
|
2029
|
-
| StartConversationResponseEventStream.ThrottlingExceptionMember
|
|
2030
|
-
| StartConversationResponseEventStream.TranscriptEventMember
|
|
2031
|
-
| StartConversationResponseEventStream.ValidationExceptionMember
|
|
2032
|
-
| StartConversationResponseEventStream.$UnknownMember;
|
|
2033
|
-
|
|
2034
|
-
export namespace StartConversationResponseEventStream {
|
|
2035
|
-
/**
|
|
2036
|
-
* <p>Event sent from Amazon Lex V2 to indicate to the client application should
|
|
2037
|
-
* stop playback of audio. For example, if the client is playing a prompt
|
|
2038
|
-
* that asks for the user's telephone number, the user might start to say
|
|
2039
|
-
* the phone number before the prompt is complete. Amazon Lex V2 sends this event
|
|
2040
|
-
* to the client application to indicate that the user is responding and
|
|
2041
|
-
* that Amazon Lex V2 is processing their input.</p>
|
|
2042
|
-
*/
|
|
2043
|
-
export interface PlaybackInterruptionEventMember {
|
|
2044
|
-
PlaybackInterruptionEvent: PlaybackInterruptionEvent;
|
|
2045
|
-
TranscriptEvent?: never;
|
|
2046
|
-
IntentResultEvent?: never;
|
|
2047
|
-
TextResponseEvent?: never;
|
|
2048
|
-
AudioResponseEvent?: never;
|
|
2049
|
-
HeartbeatEvent?: never;
|
|
2050
|
-
AccessDeniedException?: never;
|
|
2051
|
-
ResourceNotFoundException?: never;
|
|
2052
|
-
ValidationException?: never;
|
|
2053
|
-
ThrottlingException?: never;
|
|
2054
|
-
InternalServerException?: never;
|
|
2055
|
-
ConflictException?: never;
|
|
2056
|
-
DependencyFailedException?: never;
|
|
2057
|
-
BadGatewayException?: never;
|
|
2058
|
-
$unknown?: never;
|
|
2059
|
-
}
|
|
2060
|
-
|
|
2061
|
-
/**
|
|
2062
|
-
* <p>Event sent from Amazon Lex V2 to your client application that contains a
|
|
2063
|
-
* transcript of voice audio. </p>
|
|
2064
|
-
*/
|
|
2065
|
-
export interface TranscriptEventMember {
|
|
2066
|
-
PlaybackInterruptionEvent?: never;
|
|
2067
|
-
TranscriptEvent: TranscriptEvent;
|
|
2068
|
-
IntentResultEvent?: never;
|
|
2069
|
-
TextResponseEvent?: never;
|
|
2070
|
-
AudioResponseEvent?: never;
|
|
2071
|
-
HeartbeatEvent?: never;
|
|
2072
|
-
AccessDeniedException?: never;
|
|
2073
|
-
ResourceNotFoundException?: never;
|
|
2074
|
-
ValidationException?: never;
|
|
2075
|
-
ThrottlingException?: never;
|
|
2076
|
-
InternalServerException?: never;
|
|
2077
|
-
ConflictException?: never;
|
|
2078
|
-
DependencyFailedException?: never;
|
|
2079
|
-
BadGatewayException?: never;
|
|
2080
|
-
$unknown?: never;
|
|
2081
|
-
}
|
|
2082
|
-
|
|
2083
|
-
/**
|
|
2084
|
-
* <p>Event sent from Amazon Lex V2 to the client application containing the
|
|
2085
|
-
* current state of the conversation between the user and Amazon Lex V2.</p>
|
|
2086
|
-
*/
|
|
2087
|
-
export interface IntentResultEventMember {
|
|
2088
|
-
PlaybackInterruptionEvent?: never;
|
|
2089
|
-
TranscriptEvent?: never;
|
|
2090
|
-
IntentResultEvent: IntentResultEvent;
|
|
2091
|
-
TextResponseEvent?: never;
|
|
2092
|
-
AudioResponseEvent?: never;
|
|
2093
|
-
HeartbeatEvent?: never;
|
|
2094
|
-
AccessDeniedException?: never;
|
|
2095
|
-
ResourceNotFoundException?: never;
|
|
2096
|
-
ValidationException?: never;
|
|
2097
|
-
ThrottlingException?: never;
|
|
2098
|
-
InternalServerException?: never;
|
|
2099
|
-
ConflictException?: never;
|
|
2100
|
-
DependencyFailedException?: never;
|
|
2101
|
-
BadGatewayException?: never;
|
|
2102
|
-
$unknown?: never;
|
|
2103
|
-
}
|
|
2104
|
-
|
|
2105
|
-
/**
|
|
2106
|
-
* <p>The event sent from Amazon Lex V2 to your application with text to present
|
|
2107
|
-
* to the user.</p>
|
|
2108
|
-
*/
|
|
2109
|
-
export interface TextResponseEventMember {
|
|
2110
|
-
PlaybackInterruptionEvent?: never;
|
|
2111
|
-
TranscriptEvent?: never;
|
|
2112
|
-
IntentResultEvent?: never;
|
|
2113
|
-
TextResponseEvent: TextResponseEvent;
|
|
2114
|
-
AudioResponseEvent?: never;
|
|
2115
|
-
HeartbeatEvent?: never;
|
|
2116
|
-
AccessDeniedException?: never;
|
|
2117
|
-
ResourceNotFoundException?: never;
|
|
2118
|
-
ValidationException?: never;
|
|
2119
|
-
ThrottlingException?: never;
|
|
2120
|
-
InternalServerException?: never;
|
|
2121
|
-
ConflictException?: never;
|
|
2122
|
-
DependencyFailedException?: never;
|
|
2123
|
-
BadGatewayException?: never;
|
|
2124
|
-
$unknown?: never;
|
|
2125
|
-
}
|
|
2126
|
-
|
|
2127
|
-
/**
|
|
2128
|
-
* <p>An event sent from Amazon Lex V2 to your client application containing audio
|
|
2129
|
-
* to play to the user. </p>
|
|
2130
|
-
*/
|
|
2131
|
-
export interface AudioResponseEventMember {
|
|
2132
|
-
PlaybackInterruptionEvent?: never;
|
|
2133
|
-
TranscriptEvent?: never;
|
|
2134
|
-
IntentResultEvent?: never;
|
|
2135
|
-
TextResponseEvent?: never;
|
|
2136
|
-
AudioResponseEvent: AudioResponseEvent;
|
|
2137
|
-
HeartbeatEvent?: never;
|
|
2138
|
-
AccessDeniedException?: never;
|
|
2139
|
-
ResourceNotFoundException?: never;
|
|
2140
|
-
ValidationException?: never;
|
|
2141
|
-
ThrottlingException?: never;
|
|
2142
|
-
InternalServerException?: never;
|
|
2143
|
-
ConflictException?: never;
|
|
2144
|
-
DependencyFailedException?: never;
|
|
2145
|
-
BadGatewayException?: never;
|
|
2146
|
-
$unknown?: never;
|
|
2147
|
-
}
|
|
2148
|
-
|
|
2149
|
-
/**
|
|
2150
|
-
* <p>Event that Amazon Lex V2 sends to indicate that the stream is still open
|
|
2151
|
-
* between the client application and Amazon Lex V2 </p>
|
|
2152
|
-
*/
|
|
2153
|
-
export interface HeartbeatEventMember {
|
|
2154
|
-
PlaybackInterruptionEvent?: never;
|
|
2155
|
-
TranscriptEvent?: never;
|
|
2156
|
-
IntentResultEvent?: never;
|
|
2157
|
-
TextResponseEvent?: never;
|
|
2158
|
-
AudioResponseEvent?: never;
|
|
2159
|
-
HeartbeatEvent: HeartbeatEvent;
|
|
2160
|
-
AccessDeniedException?: never;
|
|
2161
|
-
ResourceNotFoundException?: never;
|
|
2162
|
-
ValidationException?: never;
|
|
2163
|
-
ThrottlingException?: never;
|
|
2164
|
-
InternalServerException?: never;
|
|
2165
|
-
ConflictException?: never;
|
|
2166
|
-
DependencyFailedException?: never;
|
|
2167
|
-
BadGatewayException?: never;
|
|
2168
|
-
$unknown?: never;
|
|
2169
|
-
}
|
|
2170
|
-
|
|
2171
|
-
/**
|
|
2172
|
-
* <p>Exception thrown when the credentials passed with the request are
|
|
2173
|
-
* invalid or expired. Also thrown when the credentials in the request do
|
|
2174
|
-
* not have permission to access the <code>StartConversation</code>
|
|
2175
|
-
* operation.</p>
|
|
2176
|
-
*/
|
|
2177
|
-
export interface AccessDeniedExceptionMember {
|
|
2178
|
-
PlaybackInterruptionEvent?: never;
|
|
2179
|
-
TranscriptEvent?: never;
|
|
2180
|
-
IntentResultEvent?: never;
|
|
2181
|
-
TextResponseEvent?: never;
|
|
2182
|
-
AudioResponseEvent?: never;
|
|
2183
|
-
HeartbeatEvent?: never;
|
|
2184
|
-
AccessDeniedException: AccessDeniedException;
|
|
2185
|
-
ResourceNotFoundException?: never;
|
|
2186
|
-
ValidationException?: never;
|
|
2187
|
-
ThrottlingException?: never;
|
|
2188
|
-
InternalServerException?: never;
|
|
2189
|
-
ConflictException?: never;
|
|
2190
|
-
DependencyFailedException?: never;
|
|
2191
|
-
BadGatewayException?: never;
|
|
2192
|
-
$unknown?: never;
|
|
2193
|
-
}
|
|
2194
|
-
|
|
2195
|
-
/**
|
|
2196
|
-
* <p>Exception thrown if one of the input parameters points to a resource
|
|
2197
|
-
* that does not exist. For example, if the bot ID specified does not
|
|
2198
|
-
* exist.</p>
|
|
2199
|
-
*/
|
|
2200
|
-
export interface ResourceNotFoundExceptionMember {
|
|
2201
|
-
PlaybackInterruptionEvent?: never;
|
|
2202
|
-
TranscriptEvent?: never;
|
|
2203
|
-
IntentResultEvent?: never;
|
|
2204
|
-
TextResponseEvent?: never;
|
|
2205
|
-
AudioResponseEvent?: never;
|
|
2206
|
-
HeartbeatEvent?: never;
|
|
2207
|
-
AccessDeniedException?: never;
|
|
2208
|
-
ResourceNotFoundException: ResourceNotFoundException;
|
|
2209
|
-
ValidationException?: never;
|
|
2210
|
-
ThrottlingException?: never;
|
|
2211
|
-
InternalServerException?: never;
|
|
2212
|
-
ConflictException?: never;
|
|
2213
|
-
DependencyFailedException?: never;
|
|
2214
|
-
BadGatewayException?: never;
|
|
2215
|
-
$unknown?: never;
|
|
2216
|
-
}
|
|
2217
|
-
|
|
2218
|
-
/**
|
|
2219
|
-
* <p>Exception thrown when one or more parameters could not be validated.
|
|
2220
|
-
* The <code>message</code> contains the name of the field that isn't
|
|
2221
|
-
* valid.</p>
|
|
2222
|
-
*/
|
|
2223
|
-
export interface ValidationExceptionMember {
|
|
2224
|
-
PlaybackInterruptionEvent?: never;
|
|
2225
|
-
TranscriptEvent?: never;
|
|
2226
|
-
IntentResultEvent?: never;
|
|
2227
|
-
TextResponseEvent?: never;
|
|
2228
|
-
AudioResponseEvent?: never;
|
|
2229
|
-
HeartbeatEvent?: never;
|
|
2230
|
-
AccessDeniedException?: never;
|
|
2231
|
-
ResourceNotFoundException?: never;
|
|
2232
|
-
ValidationException: ValidationException;
|
|
2233
|
-
ThrottlingException?: never;
|
|
2234
|
-
InternalServerException?: never;
|
|
2235
|
-
ConflictException?: never;
|
|
2236
|
-
DependencyFailedException?: never;
|
|
2237
|
-
BadGatewayException?: never;
|
|
2238
|
-
$unknown?: never;
|
|
2239
|
-
}
|
|
2240
|
-
|
|
2241
|
-
/**
|
|
2242
|
-
* <p>Exception thrown when your application exceeds the maximum number of
|
|
2243
|
-
* concurrent requests. </p>
|
|
2244
|
-
*/
|
|
2245
|
-
export interface ThrottlingExceptionMember {
|
|
2246
|
-
PlaybackInterruptionEvent?: never;
|
|
2247
|
-
TranscriptEvent?: never;
|
|
2248
|
-
IntentResultEvent?: never;
|
|
2249
|
-
TextResponseEvent?: never;
|
|
2250
|
-
AudioResponseEvent?: never;
|
|
2251
|
-
HeartbeatEvent?: never;
|
|
2252
|
-
AccessDeniedException?: never;
|
|
2253
|
-
ResourceNotFoundException?: never;
|
|
2254
|
-
ValidationException?: never;
|
|
2255
|
-
ThrottlingException: ThrottlingException;
|
|
2256
|
-
InternalServerException?: never;
|
|
2257
|
-
ConflictException?: never;
|
|
2258
|
-
DependencyFailedException?: never;
|
|
2259
|
-
BadGatewayException?: never;
|
|
2260
|
-
$unknown?: never;
|
|
2261
|
-
}
|
|
2262
|
-
|
|
2263
|
-
/**
|
|
2264
|
-
* <p>An error occurred with Amazon Lex V2.</p>
|
|
2265
|
-
*/
|
|
2266
|
-
export interface InternalServerExceptionMember {
|
|
2267
|
-
PlaybackInterruptionEvent?: never;
|
|
2268
|
-
TranscriptEvent?: never;
|
|
2269
|
-
IntentResultEvent?: never;
|
|
2270
|
-
TextResponseEvent?: never;
|
|
2271
|
-
AudioResponseEvent?: never;
|
|
2272
|
-
HeartbeatEvent?: never;
|
|
2273
|
-
AccessDeniedException?: never;
|
|
2274
|
-
ResourceNotFoundException?: never;
|
|
2275
|
-
ValidationException?: never;
|
|
2276
|
-
ThrottlingException?: never;
|
|
2277
|
-
InternalServerException: InternalServerException;
|
|
2278
|
-
ConflictException?: never;
|
|
2279
|
-
DependencyFailedException?: never;
|
|
2280
|
-
BadGatewayException?: never;
|
|
2281
|
-
$unknown?: never;
|
|
2282
|
-
}
|
|
2283
|
-
|
|
2284
|
-
/**
|
|
2285
|
-
* <p>Exception thrown when two clients are using the same AWS account,
|
|
2286
|
-
* Amazon Lex V2 bot, and session ID.</p>
|
|
2287
|
-
*/
|
|
2288
|
-
export interface ConflictExceptionMember {
|
|
2289
|
-
PlaybackInterruptionEvent?: never;
|
|
2290
|
-
TranscriptEvent?: never;
|
|
2291
|
-
IntentResultEvent?: never;
|
|
2292
|
-
TextResponseEvent?: never;
|
|
2293
|
-
AudioResponseEvent?: never;
|
|
2294
|
-
HeartbeatEvent?: never;
|
|
2295
|
-
AccessDeniedException?: never;
|
|
2296
|
-
ResourceNotFoundException?: never;
|
|
2297
|
-
ValidationException?: never;
|
|
2298
|
-
ThrottlingException?: never;
|
|
2299
|
-
InternalServerException?: never;
|
|
2300
|
-
ConflictException: ConflictException;
|
|
2301
|
-
DependencyFailedException?: never;
|
|
2302
|
-
BadGatewayException?: never;
|
|
2303
|
-
$unknown?: never;
|
|
2304
|
-
}
|
|
2305
|
-
|
|
2306
|
-
/**
|
|
2307
|
-
* <p></p>
|
|
2308
|
-
*/
|
|
2309
|
-
export interface DependencyFailedExceptionMember {
|
|
2310
|
-
PlaybackInterruptionEvent?: never;
|
|
2311
|
-
TranscriptEvent?: never;
|
|
2312
|
-
IntentResultEvent?: never;
|
|
2313
|
-
TextResponseEvent?: never;
|
|
2314
|
-
AudioResponseEvent?: never;
|
|
2315
|
-
HeartbeatEvent?: never;
|
|
2316
|
-
AccessDeniedException?: never;
|
|
2317
|
-
ResourceNotFoundException?: never;
|
|
2318
|
-
ValidationException?: never;
|
|
2319
|
-
ThrottlingException?: never;
|
|
2320
|
-
InternalServerException?: never;
|
|
2321
|
-
ConflictException?: never;
|
|
2322
|
-
DependencyFailedException: DependencyFailedException;
|
|
2323
|
-
BadGatewayException?: never;
|
|
2324
|
-
$unknown?: never;
|
|
2325
|
-
}
|
|
2326
|
-
|
|
2327
|
-
/**
|
|
2328
|
-
* <p></p>
|
|
2329
|
-
*/
|
|
2330
|
-
export interface BadGatewayExceptionMember {
|
|
2331
|
-
PlaybackInterruptionEvent?: never;
|
|
2332
|
-
TranscriptEvent?: never;
|
|
2333
|
-
IntentResultEvent?: never;
|
|
2334
|
-
TextResponseEvent?: never;
|
|
2335
|
-
AudioResponseEvent?: never;
|
|
2336
|
-
HeartbeatEvent?: never;
|
|
2337
|
-
AccessDeniedException?: never;
|
|
2338
|
-
ResourceNotFoundException?: never;
|
|
2339
|
-
ValidationException?: never;
|
|
2340
|
-
ThrottlingException?: never;
|
|
2341
|
-
InternalServerException?: never;
|
|
2342
|
-
ConflictException?: never;
|
|
2343
|
-
DependencyFailedException?: never;
|
|
2344
|
-
BadGatewayException: BadGatewayException;
|
|
2345
|
-
$unknown?: never;
|
|
2346
|
-
}
|
|
2347
|
-
|
|
2348
|
-
export interface $UnknownMember {
|
|
2349
|
-
PlaybackInterruptionEvent?: never;
|
|
2350
|
-
TranscriptEvent?: never;
|
|
2351
|
-
IntentResultEvent?: never;
|
|
2352
|
-
TextResponseEvent?: never;
|
|
2353
|
-
AudioResponseEvent?: never;
|
|
2354
|
-
HeartbeatEvent?: never;
|
|
2355
|
-
AccessDeniedException?: never;
|
|
2356
|
-
ResourceNotFoundException?: never;
|
|
2357
|
-
ValidationException?: never;
|
|
2358
|
-
ThrottlingException?: never;
|
|
2359
|
-
InternalServerException?: never;
|
|
2360
|
-
ConflictException?: never;
|
|
2361
|
-
DependencyFailedException?: never;
|
|
2362
|
-
BadGatewayException?: never;
|
|
2363
|
-
$unknown: [string, any];
|
|
2364
|
-
}
|
|
2365
|
-
|
|
2366
|
-
export interface Visitor<T> {
|
|
2367
|
-
PlaybackInterruptionEvent: (value: PlaybackInterruptionEvent) => T;
|
|
2368
|
-
TranscriptEvent: (value: TranscriptEvent) => T;
|
|
2369
|
-
IntentResultEvent: (value: IntentResultEvent) => T;
|
|
2370
|
-
TextResponseEvent: (value: TextResponseEvent) => T;
|
|
2371
|
-
AudioResponseEvent: (value: AudioResponseEvent) => T;
|
|
2372
|
-
HeartbeatEvent: (value: HeartbeatEvent) => T;
|
|
2373
|
-
AccessDeniedException: (value: AccessDeniedException) => T;
|
|
2374
|
-
ResourceNotFoundException: (value: ResourceNotFoundException) => T;
|
|
2375
|
-
ValidationException: (value: ValidationException) => T;
|
|
2376
|
-
ThrottlingException: (value: ThrottlingException) => T;
|
|
2377
|
-
InternalServerException: (value: InternalServerException) => T;
|
|
2378
|
-
ConflictException: (value: ConflictException) => T;
|
|
2379
|
-
DependencyFailedException: (value: DependencyFailedException) => T;
|
|
2380
|
-
BadGatewayException: (value: BadGatewayException) => T;
|
|
2381
|
-
_: (name: string, value: any) => T;
|
|
2382
|
-
}
|
|
2383
|
-
|
|
2384
|
-
export const visit = <T>(value: StartConversationResponseEventStream, visitor: Visitor<T>): T => {
|
|
2385
|
-
if (value.PlaybackInterruptionEvent !== undefined)
|
|
2386
|
-
return visitor.PlaybackInterruptionEvent(value.PlaybackInterruptionEvent);
|
|
2387
|
-
if (value.TranscriptEvent !== undefined) return visitor.TranscriptEvent(value.TranscriptEvent);
|
|
2388
|
-
if (value.IntentResultEvent !== undefined) return visitor.IntentResultEvent(value.IntentResultEvent);
|
|
2389
|
-
if (value.TextResponseEvent !== undefined) return visitor.TextResponseEvent(value.TextResponseEvent);
|
|
2390
|
-
if (value.AudioResponseEvent !== undefined) return visitor.AudioResponseEvent(value.AudioResponseEvent);
|
|
2391
|
-
if (value.HeartbeatEvent !== undefined) return visitor.HeartbeatEvent(value.HeartbeatEvent);
|
|
2392
|
-
if (value.AccessDeniedException !== undefined) return visitor.AccessDeniedException(value.AccessDeniedException);
|
|
2393
|
-
if (value.ResourceNotFoundException !== undefined)
|
|
2394
|
-
return visitor.ResourceNotFoundException(value.ResourceNotFoundException);
|
|
2395
|
-
if (value.ValidationException !== undefined) return visitor.ValidationException(value.ValidationException);
|
|
2396
|
-
if (value.ThrottlingException !== undefined) return visitor.ThrottlingException(value.ThrottlingException);
|
|
2397
|
-
if (value.InternalServerException !== undefined)
|
|
2398
|
-
return visitor.InternalServerException(value.InternalServerException);
|
|
2399
|
-
if (value.ConflictException !== undefined) return visitor.ConflictException(value.ConflictException);
|
|
2400
|
-
if (value.DependencyFailedException !== undefined)
|
|
2401
|
-
return visitor.DependencyFailedException(value.DependencyFailedException);
|
|
2402
|
-
if (value.BadGatewayException !== undefined) return visitor.BadGatewayException(value.BadGatewayException);
|
|
2403
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
2404
|
-
};
|
|
2405
|
-
|
|
2406
|
-
/**
|
|
2407
|
-
* @internal
|
|
2408
|
-
*/
|
|
2409
|
-
export const filterSensitiveLog = (obj: StartConversationResponseEventStream): any => {
|
|
2410
|
-
if (obj.PlaybackInterruptionEvent !== undefined)
|
|
2411
|
-
return { PlaybackInterruptionEvent: PlaybackInterruptionEvent.filterSensitiveLog(obj.PlaybackInterruptionEvent) };
|
|
2412
|
-
if (obj.TranscriptEvent !== undefined)
|
|
2413
|
-
return { TranscriptEvent: TranscriptEvent.filterSensitiveLog(obj.TranscriptEvent) };
|
|
2414
|
-
if (obj.IntentResultEvent !== undefined)
|
|
2415
|
-
return { IntentResultEvent: IntentResultEvent.filterSensitiveLog(obj.IntentResultEvent) };
|
|
2416
|
-
if (obj.TextResponseEvent !== undefined)
|
|
2417
|
-
return { TextResponseEvent: TextResponseEvent.filterSensitiveLog(obj.TextResponseEvent) };
|
|
2418
|
-
if (obj.AudioResponseEvent !== undefined)
|
|
2419
|
-
return { AudioResponseEvent: AudioResponseEvent.filterSensitiveLog(obj.AudioResponseEvent) };
|
|
2420
|
-
if (obj.HeartbeatEvent !== undefined)
|
|
2421
|
-
return { HeartbeatEvent: HeartbeatEvent.filterSensitiveLog(obj.HeartbeatEvent) };
|
|
2422
|
-
if (obj.AccessDeniedException !== undefined)
|
|
2423
|
-
return { AccessDeniedException: AccessDeniedException.filterSensitiveLog(obj.AccessDeniedException) };
|
|
2424
|
-
if (obj.ResourceNotFoundException !== undefined)
|
|
2425
|
-
return { ResourceNotFoundException: ResourceNotFoundException.filterSensitiveLog(obj.ResourceNotFoundException) };
|
|
2426
|
-
if (obj.ValidationException !== undefined)
|
|
2427
|
-
return { ValidationException: ValidationException.filterSensitiveLog(obj.ValidationException) };
|
|
2428
|
-
if (obj.ThrottlingException !== undefined)
|
|
2429
|
-
return { ThrottlingException: ThrottlingException.filterSensitiveLog(obj.ThrottlingException) };
|
|
2430
|
-
if (obj.InternalServerException !== undefined)
|
|
2431
|
-
return { InternalServerException: InternalServerException.filterSensitiveLog(obj.InternalServerException) };
|
|
2432
|
-
if (obj.ConflictException !== undefined)
|
|
2433
|
-
return { ConflictException: ConflictException.filterSensitiveLog(obj.ConflictException) };
|
|
2434
|
-
if (obj.DependencyFailedException !== undefined)
|
|
2435
|
-
return { DependencyFailedException: DependencyFailedException.filterSensitiveLog(obj.DependencyFailedException) };
|
|
2436
|
-
if (obj.BadGatewayException !== undefined)
|
|
2437
|
-
return { BadGatewayException: BadGatewayException.filterSensitiveLog(obj.BadGatewayException) };
|
|
2438
|
-
if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
2439
|
-
};
|
|
2440
|
-
}
|
|
2441
|
-
|
|
2442
|
-
export interface StartConversationResponse {
|
|
2443
|
-
/**
|
|
2444
|
-
* <p>Represents the stream of events from Amazon Lex V2 to your application. The
|
|
2445
|
-
* events are encoded as HTTP/2 data frames.</p>
|
|
2446
|
-
*/
|
|
2447
|
-
responseEventStream?: AsyncIterable<StartConversationResponseEventStream>;
|
|
2448
|
-
}
|
|
2449
|
-
|
|
2450
|
-
export namespace StartConversationResponse {
|
|
2451
|
-
/**
|
|
2452
|
-
* @internal
|
|
2453
|
-
*/
|
|
2454
|
-
export const filterSensitiveLog = (obj: StartConversationResponse): any => ({
|
|
2455
|
-
...obj,
|
|
2456
|
-
...(obj.responseEventStream && { responseEventStream: "STREAMING_CONTENT" }),
|
|
2457
|
-
});
|
|
2458
|
-
}
|