@aws-sdk/client-lex-runtime-v2 3.267.0 → 3.271.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/README.md +1 -1
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +6 -2
- package/dist-cjs/protocols/Aws_restJson1.js +13 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +13 -0
- package/dist-types/LexRuntimeV2.d.ts +1 -1
- package/dist-types/LexRuntimeV2Client.d.ts +16 -16
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +30 -2
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +4 -4
- package/dist-types/ts3.4/LexRuntimeV2Client.d.ts +4 -4
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +10 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -4
- package/package.json +36 -36
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "fn", r = "argv", s = "ref";
|
|
5
|
+
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://runtime-v2-lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://runtime-v2-lex-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://runtime-v2-lex.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://runtime-v2-lex.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.StartConversationResponseFilterSensitiveLog = exports.StartConversationResponseEventStreamFilterSensitiveLog = exports.RecognizeTextResponseFilterSensitiveLog = exports.IntentResultEventFilterSensitiveLog = exports.GetSessionResponseFilterSensitiveLog = exports.StartConversationRequestFilterSensitiveLog = exports.StartConversationRequestEventStreamFilterSensitiveLog = exports.RecognizeTextRequestFilterSensitiveLog = exports.PutSessionRequestFilterSensitiveLog = exports.ConfigurationEventFilterSensitiveLog = exports.SessionStateFilterSensitiveLog = exports.InterpretationFilterSensitiveLog = exports.IntentFilterSensitiveLog = exports.SlotFilterSensitiveLog = void 0;
|
|
3
|
+
exports.RuntimeHintDetailsFilterSensitiveLog = exports.DialogActionFilterSensitiveLog = exports.ElicitSubSlotFilterSensitiveLog = exports.TranscriptEventFilterSensitiveLog = exports.TextResponseEventFilterSensitiveLog = exports.PlaybackInterruptionEventFilterSensitiveLog = exports.HeartbeatEventFilterSensitiveLog = exports.TextInputEventFilterSensitiveLog = exports.PlaybackCompletionEventFilterSensitiveLog = exports.DTMFInputEventFilterSensitiveLog = exports.DisconnectionEventFilterSensitiveLog = exports.RecognizeUtteranceResponseFilterSensitiveLog = exports.RecognizeUtteranceRequestFilterSensitiveLog = exports.RecognizedBotMemberFilterSensitiveLog = exports.PutSessionResponseFilterSensitiveLog = exports.RuntimeHintValueFilterSensitiveLog = exports.MessageFilterSensitiveLog = exports.ImageResponseCardFilterSensitiveLog = exports.ButtonFilterSensitiveLog = exports.SentimentResponseFilterSensitiveLog = exports.SentimentScoreFilterSensitiveLog = exports.ConfidenceScoreFilterSensitiveLog = exports.ValueFilterSensitiveLog = exports.GetSessionRequestFilterSensitiveLog = exports.DeleteSessionResponseFilterSensitiveLog = exports.DeleteSessionRequestFilterSensitiveLog = exports.AudioResponseEventFilterSensitiveLog = exports.AudioInputEventFilterSensitiveLog = exports.ActiveContextFilterSensitiveLog = exports.ActiveContextTimeToLiveFilterSensitiveLog = exports.StartConversationResponseEventStream = exports.StartConversationRequestEventStream = exports.PlaybackInterruptionReason = exports.InputMode = exports.ConversationMode = exports.DependencyFailedException = exports.BadGatewayException = exports.DialogActionType = exports.StyleType = exports.MessageContentType = exports.SentimentType = exports.IntentState = exports.Shape = exports.ConfirmationState = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.StartConversationResponseFilterSensitiveLog = exports.StartConversationResponseEventStreamFilterSensitiveLog = exports.RecognizeTextResponseFilterSensitiveLog = exports.IntentResultEventFilterSensitiveLog = exports.GetSessionResponseFilterSensitiveLog = exports.StartConversationRequestFilterSensitiveLog = exports.StartConversationRequestEventStreamFilterSensitiveLog = exports.RecognizeTextRequestFilterSensitiveLog = exports.PutSessionRequestFilterSensitiveLog = exports.ConfigurationEventFilterSensitiveLog = exports.SessionStateFilterSensitiveLog = exports.InterpretationFilterSensitiveLog = exports.IntentFilterSensitiveLog = exports.SlotFilterSensitiveLog = exports.RuntimeHintsFilterSensitiveLog = void 0;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const LexRuntimeV2ServiceException_1 = require("./LexRuntimeV2ServiceException");
|
|
7
7
|
class AccessDeniedException extends LexRuntimeV2ServiceException_1.LexRuntimeV2ServiceException {
|
|
@@ -293,6 +293,10 @@ const PutSessionResponseFilterSensitiveLog = (obj) => ({
|
|
|
293
293
|
...obj,
|
|
294
294
|
});
|
|
295
295
|
exports.PutSessionResponseFilterSensitiveLog = PutSessionResponseFilterSensitiveLog;
|
|
296
|
+
const RecognizedBotMemberFilterSensitiveLog = (obj) => ({
|
|
297
|
+
...obj,
|
|
298
|
+
});
|
|
299
|
+
exports.RecognizedBotMemberFilterSensitiveLog = RecognizedBotMemberFilterSensitiveLog;
|
|
296
300
|
const RecognizeUtteranceRequestFilterSensitiveLog = (obj) => ({
|
|
297
301
|
...obj,
|
|
298
302
|
...(obj.sessionState && { sessionState: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -354,6 +354,9 @@ const deserializeAws_restJson1RecognizeTextCommand = async (output, context) =>
|
|
|
354
354
|
if (data.messages != null) {
|
|
355
355
|
contents.messages = deserializeAws_restJson1Messages(data.messages, context);
|
|
356
356
|
}
|
|
357
|
+
if (data.recognizedBotMember != null) {
|
|
358
|
+
contents.recognizedBotMember = deserializeAws_restJson1RecognizedBotMember(data.recognizedBotMember, context);
|
|
359
|
+
}
|
|
357
360
|
if (data.requestAttributes != null) {
|
|
358
361
|
contents.requestAttributes = deserializeAws_restJson1StringMap(data.requestAttributes, context);
|
|
359
362
|
}
|
|
@@ -421,6 +424,7 @@ const deserializeAws_restJson1RecognizeUtteranceCommand = async (output, context
|
|
|
421
424
|
requestAttributes: [, output.headers["x-amz-lex-request-attributes"]],
|
|
422
425
|
sessionId: [, output.headers["x-amz-lex-session-id"]],
|
|
423
426
|
inputTranscript: [, output.headers["x-amz-lex-input-transcript"]],
|
|
427
|
+
recognizedBotMember: [, output.headers["x-amz-lex-recognized-bot-member"]],
|
|
424
428
|
});
|
|
425
429
|
const data = output.body;
|
|
426
430
|
context.sdkStreamMixin(data);
|
|
@@ -1223,6 +1227,9 @@ const deserializeAws_restJson1IntentResultEvent = (output, context) => {
|
|
|
1223
1227
|
interpretations: output.interpretations != null
|
|
1224
1228
|
? deserializeAws_restJson1Interpretations(output.interpretations, context)
|
|
1225
1229
|
: undefined,
|
|
1230
|
+
recognizedBotMember: output.recognizedBotMember != null
|
|
1231
|
+
? deserializeAws_restJson1RecognizedBotMember(output.recognizedBotMember, context)
|
|
1232
|
+
: undefined,
|
|
1226
1233
|
requestAttributes: output.requestAttributes != null
|
|
1227
1234
|
? deserializeAws_restJson1StringMap(output.requestAttributes, context)
|
|
1228
1235
|
: undefined,
|
|
@@ -1277,6 +1284,12 @@ const deserializeAws_restJson1PlaybackInterruptionEvent = (output, context) => {
|
|
|
1277
1284
|
eventReason: (0, smithy_client_1.expectString)(output.eventReason),
|
|
1278
1285
|
};
|
|
1279
1286
|
};
|
|
1287
|
+
const deserializeAws_restJson1RecognizedBotMember = (output, context) => {
|
|
1288
|
+
return {
|
|
1289
|
+
botId: (0, smithy_client_1.expectString)(output.botId),
|
|
1290
|
+
botName: (0, smithy_client_1.expectString)(output.botName),
|
|
1291
|
+
};
|
|
1292
|
+
};
|
|
1280
1293
|
const deserializeAws_restJson1RuntimeHintDetails = (output, context) => {
|
|
1281
1294
|
return {
|
|
1282
1295
|
runtimeHintValues: output.runtimeHintValues != null
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "fn", r = "argv", s = "ref";
|
|
2
|
+
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://runtime-v2-lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://runtime-v2-lex-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://runtime-v2-lex.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://runtime-v2-lex.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -265,6 +265,9 @@ export const RuntimeHintValueFilterSensitiveLog = (obj) => ({
|
|
|
265
265
|
export const PutSessionResponseFilterSensitiveLog = (obj) => ({
|
|
266
266
|
...obj,
|
|
267
267
|
});
|
|
268
|
+
export const RecognizedBotMemberFilterSensitiveLog = (obj) => ({
|
|
269
|
+
...obj,
|
|
270
|
+
});
|
|
268
271
|
export const RecognizeUtteranceRequestFilterSensitiveLog = (obj) => ({
|
|
269
272
|
...obj,
|
|
270
273
|
...(obj.sessionState && { sessionState: SENSITIVE_STRING }),
|
|
@@ -342,6 +342,9 @@ export const deserializeAws_restJson1RecognizeTextCommand = async (output, conte
|
|
|
342
342
|
if (data.messages != null) {
|
|
343
343
|
contents.messages = deserializeAws_restJson1Messages(data.messages, context);
|
|
344
344
|
}
|
|
345
|
+
if (data.recognizedBotMember != null) {
|
|
346
|
+
contents.recognizedBotMember = deserializeAws_restJson1RecognizedBotMember(data.recognizedBotMember, context);
|
|
347
|
+
}
|
|
345
348
|
if (data.requestAttributes != null) {
|
|
346
349
|
contents.requestAttributes = deserializeAws_restJson1StringMap(data.requestAttributes, context);
|
|
347
350
|
}
|
|
@@ -408,6 +411,7 @@ export const deserializeAws_restJson1RecognizeUtteranceCommand = async (output,
|
|
|
408
411
|
requestAttributes: [, output.headers["x-amz-lex-request-attributes"]],
|
|
409
412
|
sessionId: [, output.headers["x-amz-lex-session-id"]],
|
|
410
413
|
inputTranscript: [, output.headers["x-amz-lex-input-transcript"]],
|
|
414
|
+
recognizedBotMember: [, output.headers["x-amz-lex-recognized-bot-member"]],
|
|
411
415
|
});
|
|
412
416
|
const data = output.body;
|
|
413
417
|
context.sdkStreamMixin(data);
|
|
@@ -1208,6 +1212,9 @@ const deserializeAws_restJson1IntentResultEvent = (output, context) => {
|
|
|
1208
1212
|
interpretations: output.interpretations != null
|
|
1209
1213
|
? deserializeAws_restJson1Interpretations(output.interpretations, context)
|
|
1210
1214
|
: undefined,
|
|
1215
|
+
recognizedBotMember: output.recognizedBotMember != null
|
|
1216
|
+
? deserializeAws_restJson1RecognizedBotMember(output.recognizedBotMember, context)
|
|
1217
|
+
: undefined,
|
|
1211
1218
|
requestAttributes: output.requestAttributes != null
|
|
1212
1219
|
? deserializeAws_restJson1StringMap(output.requestAttributes, context)
|
|
1213
1220
|
: undefined,
|
|
@@ -1262,6 +1269,12 @@ const deserializeAws_restJson1PlaybackInterruptionEvent = (output, context) => {
|
|
|
1262
1269
|
eventReason: __expectString(output.eventReason),
|
|
1263
1270
|
};
|
|
1264
1271
|
};
|
|
1272
|
+
const deserializeAws_restJson1RecognizedBotMember = (output, context) => {
|
|
1273
|
+
return {
|
|
1274
|
+
botId: __expectString(output.botId),
|
|
1275
|
+
botName: __expectString(output.botName),
|
|
1276
|
+
};
|
|
1277
|
+
};
|
|
1265
1278
|
const deserializeAws_restJson1RuntimeHintDetails = (output, context) => {
|
|
1266
1279
|
return {
|
|
1267
1280
|
runtimeHintValues: output.runtimeHintValues != null
|
|
@@ -7,7 +7,7 @@ import { RecognizeUtteranceCommandInput, RecognizeUtteranceCommandOutput } from
|
|
|
7
7
|
import { StartConversationCommandInput, StartConversationCommandOutput } from "./commands/StartConversationCommand";
|
|
8
8
|
import { LexRuntimeV2Client } from "./LexRuntimeV2Client";
|
|
9
9
|
/**
|
|
10
|
-
* <p
|
|
10
|
+
* <p>This section contains documentation for the Amazon Lex V2 Runtime V2 API operations.</p>
|
|
11
11
|
*/
|
|
12
12
|
export declare class LexRuntimeV2 extends LexRuntimeV2Client {
|
|
13
13
|
/**
|
|
@@ -75,17 +75,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
75
75
|
*/
|
|
76
76
|
disableHostPrefix?: boolean;
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
79
|
-
|
|
80
|
-
maxAttempts?: number | __Provider<number>;
|
|
81
|
-
/**
|
|
82
|
-
* Specifies which retry algorithm to use.
|
|
83
|
-
*/
|
|
84
|
-
retryMode?: string | __Provider<string>;
|
|
85
|
-
/**
|
|
86
|
-
* Optional logger for logging debug/info/warn/error.
|
|
78
|
+
* Unique service identifier.
|
|
79
|
+
* @internal
|
|
87
80
|
*/
|
|
88
|
-
|
|
81
|
+
serviceId?: string;
|
|
89
82
|
/**
|
|
90
83
|
* Enables IPv6/IPv4 dualstack endpoint.
|
|
91
84
|
*/
|
|
@@ -94,11 +87,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
94
87
|
* Enables FIPS compatible endpoints.
|
|
95
88
|
*/
|
|
96
89
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
97
|
-
/**
|
|
98
|
-
* Unique service identifier.
|
|
99
|
-
* @internal
|
|
100
|
-
*/
|
|
101
|
-
serviceId?: string;
|
|
102
90
|
/**
|
|
103
91
|
* The AWS region to which this client will send requests
|
|
104
92
|
*/
|
|
@@ -118,6 +106,18 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
118
106
|
* @internal
|
|
119
107
|
*/
|
|
120
108
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
109
|
+
/**
|
|
110
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
111
|
+
*/
|
|
112
|
+
maxAttempts?: number | __Provider<number>;
|
|
113
|
+
/**
|
|
114
|
+
* Specifies which retry algorithm to use.
|
|
115
|
+
*/
|
|
116
|
+
retryMode?: string | __Provider<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Optional logger for logging debug/info/warn/error.
|
|
119
|
+
*/
|
|
120
|
+
logger?: __Logger;
|
|
121
121
|
/**
|
|
122
122
|
* The function that provides necessary utilities for generating and parsing event stream
|
|
123
123
|
*/
|
|
@@ -145,7 +145,7 @@ declare type LexRuntimeV2ClientResolvedConfigType = __SmithyResolvedConfiguratio
|
|
|
145
145
|
export interface LexRuntimeV2ClientResolvedConfig extends LexRuntimeV2ClientResolvedConfigType {
|
|
146
146
|
}
|
|
147
147
|
/**
|
|
148
|
-
* <p
|
|
148
|
+
* <p>This section contains documentation for the Amazon Lex V2 Runtime V2 API operations.</p>
|
|
149
149
|
*/
|
|
150
150
|
export declare class LexRuntimeV2Client extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, LexRuntimeV2ClientResolvedConfig> {
|
|
151
151
|
/**
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|
|
@@ -482,6 +482,19 @@ export interface PutSessionResponse {
|
|
|
482
482
|
*/
|
|
483
483
|
audioStream?: Readable | ReadableStream | Blob;
|
|
484
484
|
}
|
|
485
|
+
/**
|
|
486
|
+
* <p>The bot member that processes the request.</p>
|
|
487
|
+
*/
|
|
488
|
+
export interface RecognizedBotMember {
|
|
489
|
+
/**
|
|
490
|
+
* <p>The identifier of the bot member that processes the request.</p>
|
|
491
|
+
*/
|
|
492
|
+
botId: string | undefined;
|
|
493
|
+
/**
|
|
494
|
+
* <p>The name of the bot member that processes the request.</p>
|
|
495
|
+
*/
|
|
496
|
+
botName?: string;
|
|
497
|
+
}
|
|
485
498
|
export interface RecognizeUtteranceRequest {
|
|
486
499
|
/**
|
|
487
500
|
* <p>The identifier of the bot that should receive the request.</p>
|
|
@@ -570,7 +583,7 @@ export interface RecognizeUtteranceRequest {
|
|
|
570
583
|
* <p>If the value begins with <code>audio/</code>, Amazon Lex V2 returns
|
|
571
584
|
* speech in the response. Amazon Lex V2 uses Amazon Polly to generate the speech
|
|
572
585
|
* using the configuration that you specified in the
|
|
573
|
-
* <code>
|
|
586
|
+
* <code>responseContentType</code> parameter. For example, if you
|
|
574
587
|
* specify <code>audio/mpeg</code> as the value, Amazon Lex V2 returns
|
|
575
588
|
* speech in the MPEG format.</p>
|
|
576
589
|
* </li>
|
|
@@ -691,6 +704,10 @@ export interface RecognizeUtteranceResponse {
|
|
|
691
704
|
* response.</p>
|
|
692
705
|
*/
|
|
693
706
|
audioStream?: Readable | ReadableStream | Blob;
|
|
707
|
+
/**
|
|
708
|
+
* <p>The bot member that recognized the utterance.</p>
|
|
709
|
+
*/
|
|
710
|
+
recognizedBotMember?: string;
|
|
694
711
|
}
|
|
695
712
|
export declare enum ConversationMode {
|
|
696
713
|
AUDIO = "AUDIO",
|
|
@@ -1465,7 +1482,6 @@ export interface IntentResultEvent {
|
|
|
1465
1482
|
/**
|
|
1466
1483
|
* <p>A list of intents that Amazon Lex V2 determined might satisfy the user's
|
|
1467
1484
|
* utterance.</p>
|
|
1468
|
-
*
|
|
1469
1485
|
* <p>Each interpretation includes the intent, a score that indicates how
|
|
1470
1486
|
* confident Amazon Lex V2 is that the interpretation is the correct one, and an
|
|
1471
1487
|
* optional sentiment response that indicates the sentiment expressed in
|
|
@@ -1491,6 +1507,10 @@ export interface IntentResultEvent {
|
|
|
1491
1507
|
* session.</p>
|
|
1492
1508
|
*/
|
|
1493
1509
|
eventId?: string;
|
|
1510
|
+
/**
|
|
1511
|
+
* <p>The bot member that is processing the intent.</p>
|
|
1512
|
+
*/
|
|
1513
|
+
recognizedBotMember?: RecognizedBotMember;
|
|
1494
1514
|
}
|
|
1495
1515
|
export interface RecognizeTextResponse {
|
|
1496
1516
|
/**
|
|
@@ -1523,6 +1543,10 @@ export interface RecognizeTextResponse {
|
|
|
1523
1543
|
* <p>The identifier of the session in use.</p>
|
|
1524
1544
|
*/
|
|
1525
1545
|
sessionId?: string;
|
|
1546
|
+
/**
|
|
1547
|
+
* <p>The bot member that recognized the text.</p>
|
|
1548
|
+
*/
|
|
1549
|
+
recognizedBotMember?: RecognizedBotMember;
|
|
1526
1550
|
}
|
|
1527
1551
|
/**
|
|
1528
1552
|
* <p>Represents a stream of events between Amazon Lex V2 and your
|
|
@@ -1936,6 +1960,10 @@ export declare const RuntimeHintValueFilterSensitiveLog: (obj: RuntimeHintValue)
|
|
|
1936
1960
|
* @internal
|
|
1937
1961
|
*/
|
|
1938
1962
|
export declare const PutSessionResponseFilterSensitiveLog: (obj: PutSessionResponse) => any;
|
|
1963
|
+
/**
|
|
1964
|
+
* @internal
|
|
1965
|
+
*/
|
|
1966
|
+
export declare const RecognizedBotMemberFilterSensitiveLog: (obj: RecognizedBotMember) => any;
|
|
1939
1967
|
/**
|
|
1940
1968
|
* @internal
|
|
1941
1969
|
*/
|
|
@@ -27,8 +27,8 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
27
27
|
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
28
28
|
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
29
29
|
disableHostPrefix: boolean;
|
|
30
|
-
logger: import("@aws-sdk/types").Logger;
|
|
31
30
|
serviceId: string;
|
|
31
|
+
logger: import("@aws-sdk/types").Logger;
|
|
32
32
|
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
|
|
33
33
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
34
34
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
@@ -27,8 +27,8 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
27
27
|
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
28
28
|
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
29
29
|
disableHostPrefix: boolean;
|
|
30
|
-
logger: import("@aws-sdk/types").Logger;
|
|
31
30
|
serviceId: string;
|
|
31
|
+
logger: import("@aws-sdk/types").Logger;
|
|
32
32
|
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
|
|
33
33
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
34
34
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
@@ -16,15 +16,15 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
16
16
|
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
17
17
|
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
18
18
|
disableHostPrefix: boolean;
|
|
19
|
-
|
|
20
|
-
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
21
|
-
logger: import("@aws-sdk/types").Logger;
|
|
19
|
+
serviceId: string;
|
|
22
20
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
23
21
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
24
|
-
serviceId: string;
|
|
25
22
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
26
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
27
24
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
25
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
26
|
+
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
27
|
+
logger: import("@aws-sdk/types").Logger;
|
|
28
28
|
eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
|
|
29
29
|
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
30
30
|
sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
|
|
@@ -111,16 +111,16 @@ export interface ClientDefaults
|
|
|
111
111
|
utf8Encoder?: __Encoder;
|
|
112
112
|
runtime?: string;
|
|
113
113
|
disableHostPrefix?: boolean;
|
|
114
|
-
|
|
115
|
-
retryMode?: string | __Provider<string>;
|
|
116
|
-
logger?: __Logger;
|
|
114
|
+
serviceId?: string;
|
|
117
115
|
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
118
116
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
119
|
-
serviceId?: string;
|
|
120
117
|
region?: string | __Provider<string>;
|
|
121
118
|
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
122
119
|
eventStreamPayloadHandlerProvider?: __EventStreamPayloadHandlerProvider;
|
|
123
120
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
121
|
+
maxAttempts?: number | __Provider<number>;
|
|
122
|
+
retryMode?: string | __Provider<string>;
|
|
123
|
+
logger?: __Logger;
|
|
124
124
|
eventStreamSerdeProvider?: __EventStreamSerdeProvider;
|
|
125
125
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
126
126
|
sdkStreamMixin?: __SdkStreamMixinInjector;
|
|
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
27
27
|
defaultSigningName: string;
|
|
28
28
|
};
|
|
29
29
|
export interface EndpointParameters extends __EndpointParameters {
|
|
30
|
-
Region
|
|
30
|
+
Region: string;
|
|
31
31
|
UseDualStack?: boolean;
|
|
32
32
|
UseFIPS?: boolean;
|
|
33
33
|
Endpoint?: string;
|
|
@@ -180,6 +180,10 @@ export interface PutSessionResponse {
|
|
|
180
180
|
sessionId?: string;
|
|
181
181
|
audioStream?: Readable | ReadableStream | Blob;
|
|
182
182
|
}
|
|
183
|
+
export interface RecognizedBotMember {
|
|
184
|
+
botId: string | undefined;
|
|
185
|
+
botName?: string;
|
|
186
|
+
}
|
|
183
187
|
export interface RecognizeUtteranceRequest {
|
|
184
188
|
botId: string | undefined;
|
|
185
189
|
botAliasId: string | undefined;
|
|
@@ -201,6 +205,7 @@ export interface RecognizeUtteranceResponse {
|
|
|
201
205
|
sessionId?: string;
|
|
202
206
|
inputTranscript?: string;
|
|
203
207
|
audioStream?: Readable | ReadableStream | Blob;
|
|
208
|
+
recognizedBotMember?: string;
|
|
204
209
|
}
|
|
205
210
|
export declare enum ConversationMode {
|
|
206
211
|
AUDIO = "AUDIO",
|
|
@@ -429,6 +434,7 @@ export interface IntentResultEvent {
|
|
|
429
434
|
requestAttributes?: Record<string, string>;
|
|
430
435
|
sessionId?: string;
|
|
431
436
|
eventId?: string;
|
|
437
|
+
recognizedBotMember?: RecognizedBotMember;
|
|
432
438
|
}
|
|
433
439
|
export interface RecognizeTextResponse {
|
|
434
440
|
messages?: Message[];
|
|
@@ -436,6 +442,7 @@ export interface RecognizeTextResponse {
|
|
|
436
442
|
interpretations?: Interpretation[];
|
|
437
443
|
requestAttributes?: Record<string, string>;
|
|
438
444
|
sessionId?: string;
|
|
445
|
+
recognizedBotMember?: RecognizedBotMember;
|
|
439
446
|
}
|
|
440
447
|
export declare type StartConversationResponseEventStream =
|
|
441
448
|
| StartConversationResponseEventStream.AccessDeniedExceptionMember
|
|
@@ -776,6 +783,9 @@ export declare const RuntimeHintValueFilterSensitiveLog: (
|
|
|
776
783
|
export declare const PutSessionResponseFilterSensitiveLog: (
|
|
777
784
|
obj: PutSessionResponse
|
|
778
785
|
) => any;
|
|
786
|
+
export declare const RecognizedBotMemberFilterSensitiveLog: (
|
|
787
|
+
obj: RecognizedBotMember
|
|
788
|
+
) => any;
|
|
779
789
|
export declare const RecognizeUtteranceRequestFilterSensitiveLog: (
|
|
780
790
|
obj: RecognizeUtteranceRequest
|
|
781
791
|
) => any;
|
|
@@ -37,8 +37,8 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
37
37
|
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
38
38
|
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
39
39
|
disableHostPrefix: boolean;
|
|
40
|
-
logger: import("@aws-sdk/types").Logger;
|
|
41
40
|
serviceId: string;
|
|
41
|
+
logger: import("@aws-sdk/types").Logger;
|
|
42
42
|
endpoint?:
|
|
43
43
|
| ((
|
|
44
44
|
| string
|
|
@@ -37,8 +37,8 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
37
37
|
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
38
38
|
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
39
39
|
disableHostPrefix: boolean;
|
|
40
|
-
logger: import("@aws-sdk/types").Logger;
|
|
41
40
|
serviceId: string;
|
|
41
|
+
logger: import("@aws-sdk/types").Logger;
|
|
42
42
|
endpoint?:
|
|
43
43
|
| ((
|
|
44
44
|
| string
|
|
@@ -20,12 +20,9 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
20
20
|
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
21
21
|
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
22
22
|
disableHostPrefix: boolean;
|
|
23
|
-
|
|
24
|
-
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
25
|
-
logger: import("@aws-sdk/types").Logger;
|
|
23
|
+
serviceId: string;
|
|
26
24
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
27
25
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
28
|
-
serviceId: string;
|
|
29
26
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
30
27
|
credentialDefaultProvider: (
|
|
31
28
|
input: any
|
|
@@ -33,6 +30,9 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
|
|
|
33
30
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<
|
|
34
31
|
import("@aws-sdk/types").UserAgent
|
|
35
32
|
>;
|
|
33
|
+
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
34
|
+
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
35
|
+
logger: import("@aws-sdk/types").Logger;
|
|
36
36
|
eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
|
|
37
37
|
defaultsMode:
|
|
38
38
|
| import("@aws-sdk/smithy-client").DefaultsMode
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lex-runtime-v2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lex Runtime V2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.271.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,44 +20,44 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/eventstream-handler-node": "3.
|
|
27
|
-
"@aws-sdk/eventstream-serde-browser": "3.
|
|
28
|
-
"@aws-sdk/eventstream-serde-config-resolver": "3.
|
|
29
|
-
"@aws-sdk/eventstream-serde-node": "3.
|
|
30
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
31
|
-
"@aws-sdk/hash-node": "3.
|
|
32
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
33
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
34
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
35
|
-
"@aws-sdk/middleware-eventstream": "3.
|
|
36
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
37
|
-
"@aws-sdk/middleware-logger": "3.
|
|
38
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.271.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.271.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.271.0",
|
|
26
|
+
"@aws-sdk/eventstream-handler-node": "3.271.0",
|
|
27
|
+
"@aws-sdk/eventstream-serde-browser": "3.271.0",
|
|
28
|
+
"@aws-sdk/eventstream-serde-config-resolver": "3.271.0",
|
|
29
|
+
"@aws-sdk/eventstream-serde-node": "3.271.0",
|
|
30
|
+
"@aws-sdk/fetch-http-handler": "3.271.0",
|
|
31
|
+
"@aws-sdk/hash-node": "3.271.0",
|
|
32
|
+
"@aws-sdk/invalid-dependency": "3.271.0",
|
|
33
|
+
"@aws-sdk/middleware-content-length": "3.271.0",
|
|
34
|
+
"@aws-sdk/middleware-endpoint": "3.271.0",
|
|
35
|
+
"@aws-sdk/middleware-eventstream": "3.271.0",
|
|
36
|
+
"@aws-sdk/middleware-host-header": "3.271.0",
|
|
37
|
+
"@aws-sdk/middleware-logger": "3.271.0",
|
|
38
|
+
"@aws-sdk/middleware-recursion-detection": "3.271.0",
|
|
39
|
+
"@aws-sdk/middleware-retry": "3.271.0",
|
|
40
|
+
"@aws-sdk/middleware-serde": "3.271.0",
|
|
41
|
+
"@aws-sdk/middleware-signing": "3.271.0",
|
|
42
|
+
"@aws-sdk/middleware-stack": "3.271.0",
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.271.0",
|
|
44
|
+
"@aws-sdk/node-config-provider": "3.271.0",
|
|
45
|
+
"@aws-sdk/node-http-handler": "3.271.0",
|
|
46
|
+
"@aws-sdk/protocol-http": "3.271.0",
|
|
47
|
+
"@aws-sdk/smithy-client": "3.271.0",
|
|
48
|
+
"@aws-sdk/types": "3.271.0",
|
|
49
|
+
"@aws-sdk/url-parser": "3.271.0",
|
|
50
50
|
"@aws-sdk/util-base64": "3.208.0",
|
|
51
51
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
52
52
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
53
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
54
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
55
|
-
"@aws-sdk/util-endpoints": "3.
|
|
56
|
-
"@aws-sdk/util-retry": "3.
|
|
57
|
-
"@aws-sdk/util-stream-browser": "3.
|
|
58
|
-
"@aws-sdk/util-stream-node": "3.
|
|
59
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
60
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
53
|
+
"@aws-sdk/util-defaults-mode-browser": "3.271.0",
|
|
54
|
+
"@aws-sdk/util-defaults-mode-node": "3.271.0",
|
|
55
|
+
"@aws-sdk/util-endpoints": "3.271.0",
|
|
56
|
+
"@aws-sdk/util-retry": "3.271.0",
|
|
57
|
+
"@aws-sdk/util-stream-browser": "3.271.0",
|
|
58
|
+
"@aws-sdk/util-stream-node": "3.271.0",
|
|
59
|
+
"@aws-sdk/util-user-agent-browser": "3.271.0",
|
|
60
|
+
"@aws-sdk/util-user-agent-node": "3.271.0",
|
|
61
61
|
"@aws-sdk/util-utf8": "3.254.0",
|
|
62
62
|
"tslib": "^2.3.1"
|
|
63
63
|
},
|