@aws-sdk/client-lex-runtime-v2 3.181.0 → 3.183.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 +8 -0
- package/dist-es/LexRuntimeV2.js +26 -33
- package/dist-es/LexRuntimeV2Client.js +24 -30
- package/dist-es/commands/DeleteSessionCommand.js +21 -28
- package/dist-es/commands/GetSessionCommand.js +21 -28
- package/dist-es/commands/PutSessionCommand.js +21 -28
- package/dist-es/commands/RecognizeTextCommand.js +21 -28
- package/dist-es/commands/RecognizeUtteranceCommand.js +21 -28
- package/dist-es/commands/StartConversationCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/LexRuntimeV2ServiceException.js +5 -10
- package/dist-es/models/models_0.js +237 -141
- package/dist-es/protocols/Aws_restJson1.js +1063 -1301
- package/dist-es/runtimeConfig.browser.js +29 -12
- package/dist-es/runtimeConfig.js +33 -19
- package/dist-es/runtimeConfig.native.js +10 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +38 -38
|
@@ -1,78 +1,77 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
1
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
2
|
import { LexRuntimeV2ServiceException as __BaseException } from "./LexRuntimeV2ServiceException";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
export class AccessDeniedException extends __BaseException {
|
|
4
|
+
constructor(opts) {
|
|
5
|
+
super({
|
|
6
|
+
name: "AccessDeniedException",
|
|
7
|
+
$fault: "client",
|
|
8
|
+
...opts,
|
|
9
|
+
});
|
|
10
|
+
this.name = "AccessDeniedException";
|
|
11
|
+
this.$fault = "client";
|
|
12
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
}
|
|
15
|
+
export class ConflictException extends __BaseException {
|
|
16
|
+
constructor(opts) {
|
|
17
|
+
super({
|
|
18
|
+
name: "ConflictException",
|
|
19
|
+
$fault: "client",
|
|
20
|
+
...opts,
|
|
21
|
+
});
|
|
22
|
+
this.name = "ConflictException";
|
|
23
|
+
this.$fault = "client";
|
|
24
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
24
25
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
}
|
|
27
|
+
export class InternalServerException extends __BaseException {
|
|
28
|
+
constructor(opts) {
|
|
29
|
+
super({
|
|
30
|
+
name: "InternalServerException",
|
|
31
|
+
$fault: "server",
|
|
32
|
+
...opts,
|
|
33
|
+
});
|
|
34
|
+
this.name = "InternalServerException";
|
|
35
|
+
this.$fault = "server";
|
|
36
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
}
|
|
39
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
40
|
+
constructor(opts) {
|
|
41
|
+
super({
|
|
42
|
+
name: "ResourceNotFoundException",
|
|
43
|
+
$fault: "client",
|
|
44
|
+
...opts,
|
|
45
|
+
});
|
|
46
|
+
this.name = "ResourceNotFoundException";
|
|
47
|
+
this.$fault = "client";
|
|
48
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
48
49
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
50
|
+
}
|
|
51
|
+
export class ThrottlingException extends __BaseException {
|
|
52
|
+
constructor(opts) {
|
|
53
|
+
super({
|
|
54
|
+
name: "ThrottlingException",
|
|
55
|
+
$fault: "client",
|
|
56
|
+
...opts,
|
|
57
|
+
});
|
|
58
|
+
this.name = "ThrottlingException";
|
|
59
|
+
this.$fault = "client";
|
|
60
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
60
61
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
62
|
+
}
|
|
63
|
+
export class ValidationException extends __BaseException {
|
|
64
|
+
constructor(opts) {
|
|
65
|
+
super({
|
|
66
|
+
name: "ValidationException",
|
|
67
|
+
$fault: "client",
|
|
68
|
+
...opts,
|
|
69
|
+
});
|
|
70
|
+
this.name = "ValidationException";
|
|
71
|
+
this.$fault = "client";
|
|
72
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
72
73
|
}
|
|
73
|
-
|
|
74
|
-
}(__BaseException));
|
|
75
|
-
export { ValidationException };
|
|
74
|
+
}
|
|
76
75
|
export var ConfirmationState;
|
|
77
76
|
(function (ConfirmationState) {
|
|
78
77
|
ConfirmationState["CONFIRMED"] = "Confirmed";
|
|
@@ -123,30 +122,30 @@ export var DialogActionType;
|
|
|
123
122
|
DialogActionType["ELICIT_SLOT"] = "ElicitSlot";
|
|
124
123
|
DialogActionType["NONE"] = "None";
|
|
125
124
|
})(DialogActionType || (DialogActionType = {}));
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
125
|
+
export class BadGatewayException extends __BaseException {
|
|
126
|
+
constructor(opts) {
|
|
127
|
+
super({
|
|
128
|
+
name: "BadGatewayException",
|
|
129
|
+
$fault: "server",
|
|
130
|
+
...opts,
|
|
131
|
+
});
|
|
132
|
+
this.name = "BadGatewayException";
|
|
133
|
+
this.$fault = "server";
|
|
134
|
+
Object.setPrototypeOf(this, BadGatewayException.prototype);
|
|
134
135
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
136
|
+
}
|
|
137
|
+
export class DependencyFailedException extends __BaseException {
|
|
138
|
+
constructor(opts) {
|
|
139
|
+
super({
|
|
140
|
+
name: "DependencyFailedException",
|
|
141
|
+
$fault: "client",
|
|
142
|
+
...opts,
|
|
143
|
+
});
|
|
144
|
+
this.name = "DependencyFailedException";
|
|
145
|
+
this.$fault = "client";
|
|
146
|
+
Object.setPrototypeOf(this, DependencyFailedException.prototype);
|
|
146
147
|
}
|
|
147
|
-
|
|
148
|
-
}(__BaseException));
|
|
149
|
-
export { DependencyFailedException };
|
|
148
|
+
}
|
|
150
149
|
export var ConversationMode;
|
|
151
150
|
(function (ConversationMode) {
|
|
152
151
|
ConversationMode["AUDIO"] = "AUDIO";
|
|
@@ -166,7 +165,7 @@ export var PlaybackInterruptionReason;
|
|
|
166
165
|
})(PlaybackInterruptionReason || (PlaybackInterruptionReason = {}));
|
|
167
166
|
export var StartConversationRequestEventStream;
|
|
168
167
|
(function (StartConversationRequestEventStream) {
|
|
169
|
-
StartConversationRequestEventStream.visit =
|
|
168
|
+
StartConversationRequestEventStream.visit = (value, visitor) => {
|
|
170
169
|
if (value.ConfigurationEvent !== undefined)
|
|
171
170
|
return visitor.ConfigurationEvent(value.ConfigurationEvent);
|
|
172
171
|
if (value.AudioInputEvent !== undefined)
|
|
@@ -184,7 +183,7 @@ export var StartConversationRequestEventStream;
|
|
|
184
183
|
})(StartConversationRequestEventStream || (StartConversationRequestEventStream = {}));
|
|
185
184
|
export var StartConversationResponseEventStream;
|
|
186
185
|
(function (StartConversationResponseEventStream) {
|
|
187
|
-
StartConversationResponseEventStream.visit =
|
|
186
|
+
StartConversationResponseEventStream.visit = (value, visitor) => {
|
|
188
187
|
if (value.PlaybackInterruptionEvent !== undefined)
|
|
189
188
|
return visitor.PlaybackInterruptionEvent(value.PlaybackInterruptionEvent);
|
|
190
189
|
if (value.TranscriptEvent !== undefined)
|
|
@@ -216,47 +215,131 @@ export var StartConversationResponseEventStream;
|
|
|
216
215
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
217
216
|
};
|
|
218
217
|
})(StartConversationResponseEventStream || (StartConversationResponseEventStream = {}));
|
|
219
|
-
export
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
export
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
export
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
export
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
export
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
export
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
export
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
export
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
export
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
export
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
export
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
export
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
218
|
+
export const ActiveContextTimeToLiveFilterSensitiveLog = (obj) => ({
|
|
219
|
+
...obj,
|
|
220
|
+
});
|
|
221
|
+
export const ActiveContextFilterSensitiveLog = (obj) => ({
|
|
222
|
+
...obj,
|
|
223
|
+
...(obj.contextAttributes && { contextAttributes: SENSITIVE_STRING }),
|
|
224
|
+
});
|
|
225
|
+
export const AudioInputEventFilterSensitiveLog = (obj) => ({
|
|
226
|
+
...obj,
|
|
227
|
+
});
|
|
228
|
+
export const AudioResponseEventFilterSensitiveLog = (obj) => ({
|
|
229
|
+
...obj,
|
|
230
|
+
});
|
|
231
|
+
export const DeleteSessionRequestFilterSensitiveLog = (obj) => ({
|
|
232
|
+
...obj,
|
|
233
|
+
});
|
|
234
|
+
export const DeleteSessionResponseFilterSensitiveLog = (obj) => ({
|
|
235
|
+
...obj,
|
|
236
|
+
});
|
|
237
|
+
export const GetSessionRequestFilterSensitiveLog = (obj) => ({
|
|
238
|
+
...obj,
|
|
239
|
+
});
|
|
240
|
+
export const ValueFilterSensitiveLog = (obj) => ({
|
|
241
|
+
...obj,
|
|
242
|
+
});
|
|
243
|
+
export const ConfidenceScoreFilterSensitiveLog = (obj) => ({
|
|
244
|
+
...obj,
|
|
245
|
+
});
|
|
246
|
+
export const SentimentScoreFilterSensitiveLog = (obj) => ({
|
|
247
|
+
...obj,
|
|
248
|
+
});
|
|
249
|
+
export const SentimentResponseFilterSensitiveLog = (obj) => ({
|
|
250
|
+
...obj,
|
|
251
|
+
});
|
|
252
|
+
export const ButtonFilterSensitiveLog = (obj) => ({
|
|
253
|
+
...obj,
|
|
254
|
+
});
|
|
255
|
+
export const ImageResponseCardFilterSensitiveLog = (obj) => ({
|
|
256
|
+
...obj,
|
|
257
|
+
});
|
|
258
|
+
export const MessageFilterSensitiveLog = (obj) => ({
|
|
259
|
+
...obj,
|
|
260
|
+
...(obj.content && { content: SENSITIVE_STRING }),
|
|
261
|
+
});
|
|
262
|
+
export const RuntimeHintValueFilterSensitiveLog = (obj) => ({
|
|
263
|
+
...obj,
|
|
264
|
+
});
|
|
265
|
+
export const PutSessionResponseFilterSensitiveLog = (obj) => ({
|
|
266
|
+
...obj,
|
|
267
|
+
});
|
|
268
|
+
export const RecognizeUtteranceRequestFilterSensitiveLog = (obj) => ({
|
|
269
|
+
...obj,
|
|
270
|
+
...(obj.sessionState && { sessionState: SENSITIVE_STRING }),
|
|
271
|
+
...(obj.requestAttributes && { requestAttributes: SENSITIVE_STRING }),
|
|
272
|
+
});
|
|
273
|
+
export const RecognizeUtteranceResponseFilterSensitiveLog = (obj) => ({
|
|
274
|
+
...obj,
|
|
275
|
+
});
|
|
276
|
+
export const DisconnectionEventFilterSensitiveLog = (obj) => ({
|
|
277
|
+
...obj,
|
|
278
|
+
});
|
|
279
|
+
export const DTMFInputEventFilterSensitiveLog = (obj) => ({
|
|
280
|
+
...obj,
|
|
281
|
+
...(obj.inputCharacter && { inputCharacter: SENSITIVE_STRING }),
|
|
282
|
+
});
|
|
283
|
+
export const PlaybackCompletionEventFilterSensitiveLog = (obj) => ({
|
|
284
|
+
...obj,
|
|
285
|
+
});
|
|
286
|
+
export const TextInputEventFilterSensitiveLog = (obj) => ({
|
|
287
|
+
...obj,
|
|
288
|
+
...(obj.text && { text: SENSITIVE_STRING }),
|
|
289
|
+
});
|
|
290
|
+
export const HeartbeatEventFilterSensitiveLog = (obj) => ({
|
|
291
|
+
...obj,
|
|
292
|
+
});
|
|
293
|
+
export const PlaybackInterruptionEventFilterSensitiveLog = (obj) => ({
|
|
294
|
+
...obj,
|
|
295
|
+
});
|
|
296
|
+
export const TextResponseEventFilterSensitiveLog = (obj) => ({
|
|
297
|
+
...obj,
|
|
298
|
+
...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }),
|
|
299
|
+
});
|
|
300
|
+
export const TranscriptEventFilterSensitiveLog = (obj) => ({
|
|
301
|
+
...obj,
|
|
302
|
+
});
|
|
303
|
+
export const ElicitSubSlotFilterSensitiveLog = (obj) => ({
|
|
304
|
+
...obj,
|
|
305
|
+
});
|
|
306
|
+
export const DialogActionFilterSensitiveLog = (obj) => ({
|
|
307
|
+
...obj,
|
|
308
|
+
});
|
|
309
|
+
export const RuntimeHintDetailsFilterSensitiveLog = (obj) => ({
|
|
310
|
+
...obj,
|
|
311
|
+
});
|
|
312
|
+
export const RuntimeHintsFilterSensitiveLog = (obj) => ({
|
|
313
|
+
...obj,
|
|
314
|
+
});
|
|
315
|
+
export const SlotFilterSensitiveLog = (obj) => ({
|
|
316
|
+
...obj,
|
|
317
|
+
});
|
|
318
|
+
export const IntentFilterSensitiveLog = (obj) => ({
|
|
319
|
+
...obj,
|
|
320
|
+
});
|
|
321
|
+
export const InterpretationFilterSensitiveLog = (obj) => ({
|
|
322
|
+
...obj,
|
|
323
|
+
});
|
|
324
|
+
export const SessionStateFilterSensitiveLog = (obj) => ({
|
|
325
|
+
...obj,
|
|
326
|
+
...(obj.activeContexts && {
|
|
327
|
+
activeContexts: obj.activeContexts.map((item) => ActiveContextFilterSensitiveLog(item)),
|
|
328
|
+
}),
|
|
329
|
+
});
|
|
330
|
+
export const ConfigurationEventFilterSensitiveLog = (obj) => ({
|
|
331
|
+
...obj,
|
|
332
|
+
...(obj.welcomeMessages && { welcomeMessages: obj.welcomeMessages.map((item) => MessageFilterSensitiveLog(item)) }),
|
|
333
|
+
});
|
|
334
|
+
export const PutSessionRequestFilterSensitiveLog = (obj) => ({
|
|
335
|
+
...obj,
|
|
336
|
+
...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }),
|
|
337
|
+
});
|
|
338
|
+
export const RecognizeTextRequestFilterSensitiveLog = (obj) => ({
|
|
339
|
+
...obj,
|
|
340
|
+
...(obj.text && { text: SENSITIVE_STRING }),
|
|
341
|
+
});
|
|
342
|
+
export const StartConversationRequestEventStreamFilterSensitiveLog = (obj) => {
|
|
260
343
|
if (obj.ConfigurationEvent !== undefined)
|
|
261
344
|
return { ConfigurationEvent: ConfigurationEventFilterSensitiveLog(obj.ConfigurationEvent) };
|
|
262
345
|
if (obj.AudioInputEvent !== undefined)
|
|
@@ -270,14 +353,24 @@ export var StartConversationRequestEventStreamFilterSensitiveLog = function (obj
|
|
|
270
353
|
if (obj.DisconnectionEvent !== undefined)
|
|
271
354
|
return { DisconnectionEvent: DisconnectionEventFilterSensitiveLog(obj.DisconnectionEvent) };
|
|
272
355
|
if (obj.$unknown !== undefined)
|
|
273
|
-
return
|
|
356
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
274
357
|
};
|
|
275
|
-
export
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
export
|
|
280
|
-
|
|
358
|
+
export const StartConversationRequestFilterSensitiveLog = (obj) => ({
|
|
359
|
+
...obj,
|
|
360
|
+
...(obj.requestEventStream && { requestEventStream: "STREAMING_CONTENT" }),
|
|
361
|
+
});
|
|
362
|
+
export const GetSessionResponseFilterSensitiveLog = (obj) => ({
|
|
363
|
+
...obj,
|
|
364
|
+
...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }),
|
|
365
|
+
});
|
|
366
|
+
export const IntentResultEventFilterSensitiveLog = (obj) => ({
|
|
367
|
+
...obj,
|
|
368
|
+
});
|
|
369
|
+
export const RecognizeTextResponseFilterSensitiveLog = (obj) => ({
|
|
370
|
+
...obj,
|
|
371
|
+
...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }),
|
|
372
|
+
});
|
|
373
|
+
export const StartConversationResponseEventStreamFilterSensitiveLog = (obj) => {
|
|
281
374
|
if (obj.PlaybackInterruptionEvent !== undefined)
|
|
282
375
|
return { PlaybackInterruptionEvent: PlaybackInterruptionEventFilterSensitiveLog(obj.PlaybackInterruptionEvent) };
|
|
283
376
|
if (obj.TranscriptEvent !== undefined)
|
|
@@ -307,6 +400,9 @@ export var StartConversationResponseEventStreamFilterSensitiveLog = function (ob
|
|
|
307
400
|
if (obj.BadGatewayException !== undefined)
|
|
308
401
|
return { BadGatewayException: obj.BadGatewayException };
|
|
309
402
|
if (obj.$unknown !== undefined)
|
|
310
|
-
return
|
|
403
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
311
404
|
};
|
|
312
|
-
export
|
|
405
|
+
export const StartConversationResponseFilterSensitiveLog = (obj) => ({
|
|
406
|
+
...obj,
|
|
407
|
+
...(obj.responseEventStream && { responseEventStream: "STREAMING_CONTENT" }),
|
|
408
|
+
});
|