@aws-sdk/client-lex-runtime-v2 3.478.0 → 3.484.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/dist-cjs/commands/DeleteSessionCommand.js +18 -41
- package/dist-cjs/commands/GetSessionCommand.js +18 -41
- package/dist-cjs/commands/PutSessionCommand.js +18 -41
- package/dist-cjs/commands/RecognizeTextCommand.js +18 -41
- package/dist-cjs/commands/RecognizeUtteranceCommand.js +18 -41
- package/dist-cjs/commands/StartConversationCommand.js +24 -46
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-es/commands/DeleteSessionCommand.js +18 -41
- package/dist-es/commands/GetSessionCommand.js +18 -41
- package/dist-es/commands/PutSessionCommand.js +18 -41
- package/dist-es/commands/RecognizeTextCommand.js +18 -41
- package/dist-es/commands/RecognizeUtteranceCommand.js +18 -41
- package/dist-es/commands/StartConversationCommand.js +24 -46
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-types/commands/DeleteSessionCommand.d.ts +6 -21
- package/dist-types/commands/GetSessionCommand.d.ts +6 -21
- package/dist-types/commands/PutSessionCommand.d.ts +6 -21
- package/dist-types/commands/RecognizeTextCommand.d.ts +6 -21
- package/dist-types/commands/RecognizeUtteranceCommand.d.ts +6 -21
- package/dist-types/commands/StartConversationCommand.d.ts +6 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutSessionCommand.d.ts +13 -20
- package/dist-types/ts3.4/commands/RecognizeTextCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/RecognizeUtteranceCommand.d.ts +13 -20
- package/dist-types/ts3.4/commands/StartConversationCommand.d.ts +14 -23
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/package.json +11 -11
|
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
-
class DeleteSessionCommand extends smithy_client_1.Command
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const { logger } = configuration;
|
|
28
|
-
const clientName = "LexRuntimeV2Client";
|
|
29
|
-
const commandName = "DeleteSessionCommand";
|
|
30
|
-
const handlerExecutionContext = {
|
|
31
|
-
logger,
|
|
32
|
-
clientName,
|
|
33
|
-
commandName,
|
|
34
|
-
inputFilterSensitiveLog: (_) => _,
|
|
35
|
-
outputFilterSensitiveLog: (_) => _,
|
|
36
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
-
service: "AWSDeepSenseRunTimeServiceApi2_0",
|
|
38
|
-
operation: "DeleteSession",
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
const { requestHandler } = configuration;
|
|
42
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
-
}
|
|
44
|
-
serialize(input, context) {
|
|
45
|
-
return (0, Aws_restJson1_1.se_DeleteSessionCommand)(input, context);
|
|
46
|
-
}
|
|
47
|
-
deserialize(output, context) {
|
|
48
|
-
return (0, Aws_restJson1_1.de_DeleteSessionCommand)(output, context);
|
|
49
|
-
}
|
|
10
|
+
class DeleteSessionCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep({
|
|
13
|
+
...EndpointParameters_1.commonParams,
|
|
14
|
+
})
|
|
15
|
+
.m(function (Command, cs, config, o) {
|
|
16
|
+
return [
|
|
17
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
+
];
|
|
20
|
+
})
|
|
21
|
+
.s("AWSDeepSenseRunTimeServiceApi2_0", "DeleteSession", {})
|
|
22
|
+
.n("LexRuntimeV2Client", "DeleteSessionCommand")
|
|
23
|
+
.f(void 0, void 0)
|
|
24
|
+
.ser(Aws_restJson1_1.se_DeleteSessionCommand)
|
|
25
|
+
.de(Aws_restJson1_1.de_DeleteSessionCommand)
|
|
26
|
+
.build() {
|
|
50
27
|
}
|
|
51
28
|
exports.DeleteSessionCommand = DeleteSessionCommand;
|
|
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
11
|
-
class GetSessionCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const { logger } = configuration;
|
|
29
|
-
const clientName = "LexRuntimeV2Client";
|
|
30
|
-
const commandName = "GetSessionCommand";
|
|
31
|
-
const handlerExecutionContext = {
|
|
32
|
-
logger,
|
|
33
|
-
clientName,
|
|
34
|
-
commandName,
|
|
35
|
-
inputFilterSensitiveLog: (_) => _,
|
|
36
|
-
outputFilterSensitiveLog: models_0_1.GetSessionResponseFilterSensitiveLog,
|
|
37
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
-
service: "AWSDeepSenseRunTimeServiceApi2_0",
|
|
39
|
-
operation: "GetSession",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const { requestHandler } = configuration;
|
|
43
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
-
}
|
|
45
|
-
serialize(input, context) {
|
|
46
|
-
return (0, Aws_restJson1_1.se_GetSessionCommand)(input, context);
|
|
47
|
-
}
|
|
48
|
-
deserialize(output, context) {
|
|
49
|
-
return (0, Aws_restJson1_1.de_GetSessionCommand)(output, context);
|
|
50
|
-
}
|
|
11
|
+
class GetSessionCommand extends smithy_client_1.Command
|
|
12
|
+
.classBuilder()
|
|
13
|
+
.ep({
|
|
14
|
+
...EndpointParameters_1.commonParams,
|
|
15
|
+
})
|
|
16
|
+
.m(function (Command, cs, config, o) {
|
|
17
|
+
return [
|
|
18
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
+
];
|
|
21
|
+
})
|
|
22
|
+
.s("AWSDeepSenseRunTimeServiceApi2_0", "GetSession", {})
|
|
23
|
+
.n("LexRuntimeV2Client", "GetSessionCommand")
|
|
24
|
+
.f(void 0, models_0_1.GetSessionResponseFilterSensitiveLog)
|
|
25
|
+
.ser(Aws_restJson1_1.se_GetSessionCommand)
|
|
26
|
+
.de(Aws_restJson1_1.de_GetSessionCommand)
|
|
27
|
+
.build() {
|
|
51
28
|
}
|
|
52
29
|
exports.GetSessionCommand = GetSessionCommand;
|
|
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
11
|
-
class PutSessionCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const { logger } = configuration;
|
|
29
|
-
const clientName = "LexRuntimeV2Client";
|
|
30
|
-
const commandName = "PutSessionCommand";
|
|
31
|
-
const handlerExecutionContext = {
|
|
32
|
-
logger,
|
|
33
|
-
clientName,
|
|
34
|
-
commandName,
|
|
35
|
-
inputFilterSensitiveLog: models_0_1.PutSessionRequestFilterSensitiveLog,
|
|
36
|
-
outputFilterSensitiveLog: models_0_1.PutSessionResponseFilterSensitiveLog,
|
|
37
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
-
service: "AWSDeepSenseRunTimeServiceApi2_0",
|
|
39
|
-
operation: "PutSession",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const { requestHandler } = configuration;
|
|
43
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
-
}
|
|
45
|
-
serialize(input, context) {
|
|
46
|
-
return (0, Aws_restJson1_1.se_PutSessionCommand)(input, context);
|
|
47
|
-
}
|
|
48
|
-
deserialize(output, context) {
|
|
49
|
-
return (0, Aws_restJson1_1.de_PutSessionCommand)(output, context);
|
|
50
|
-
}
|
|
11
|
+
class PutSessionCommand extends smithy_client_1.Command
|
|
12
|
+
.classBuilder()
|
|
13
|
+
.ep({
|
|
14
|
+
...EndpointParameters_1.commonParams,
|
|
15
|
+
})
|
|
16
|
+
.m(function (Command, cs, config, o) {
|
|
17
|
+
return [
|
|
18
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
+
];
|
|
21
|
+
})
|
|
22
|
+
.s("AWSDeepSenseRunTimeServiceApi2_0", "PutSession", {})
|
|
23
|
+
.n("LexRuntimeV2Client", "PutSessionCommand")
|
|
24
|
+
.f(models_0_1.PutSessionRequestFilterSensitiveLog, models_0_1.PutSessionResponseFilterSensitiveLog)
|
|
25
|
+
.ser(Aws_restJson1_1.se_PutSessionCommand)
|
|
26
|
+
.de(Aws_restJson1_1.de_PutSessionCommand)
|
|
27
|
+
.build() {
|
|
51
28
|
}
|
|
52
29
|
exports.PutSessionCommand = PutSessionCommand;
|
|
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
11
|
-
class RecognizeTextCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const { logger } = configuration;
|
|
29
|
-
const clientName = "LexRuntimeV2Client";
|
|
30
|
-
const commandName = "RecognizeTextCommand";
|
|
31
|
-
const handlerExecutionContext = {
|
|
32
|
-
logger,
|
|
33
|
-
clientName,
|
|
34
|
-
commandName,
|
|
35
|
-
inputFilterSensitiveLog: models_0_1.RecognizeTextRequestFilterSensitiveLog,
|
|
36
|
-
outputFilterSensitiveLog: models_0_1.RecognizeTextResponseFilterSensitiveLog,
|
|
37
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
-
service: "AWSDeepSenseRunTimeServiceApi2_0",
|
|
39
|
-
operation: "RecognizeText",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const { requestHandler } = configuration;
|
|
43
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
-
}
|
|
45
|
-
serialize(input, context) {
|
|
46
|
-
return (0, Aws_restJson1_1.se_RecognizeTextCommand)(input, context);
|
|
47
|
-
}
|
|
48
|
-
deserialize(output, context) {
|
|
49
|
-
return (0, Aws_restJson1_1.de_RecognizeTextCommand)(output, context);
|
|
50
|
-
}
|
|
11
|
+
class RecognizeTextCommand extends smithy_client_1.Command
|
|
12
|
+
.classBuilder()
|
|
13
|
+
.ep({
|
|
14
|
+
...EndpointParameters_1.commonParams,
|
|
15
|
+
})
|
|
16
|
+
.m(function (Command, cs, config, o) {
|
|
17
|
+
return [
|
|
18
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
+
];
|
|
21
|
+
})
|
|
22
|
+
.s("AWSDeepSenseRunTimeServiceApi2_0", "RecognizeText", {})
|
|
23
|
+
.n("LexRuntimeV2Client", "RecognizeTextCommand")
|
|
24
|
+
.f(models_0_1.RecognizeTextRequestFilterSensitiveLog, models_0_1.RecognizeTextResponseFilterSensitiveLog)
|
|
25
|
+
.ser(Aws_restJson1_1.se_RecognizeTextCommand)
|
|
26
|
+
.de(Aws_restJson1_1.de_RecognizeTextCommand)
|
|
27
|
+
.build() {
|
|
51
28
|
}
|
|
52
29
|
exports.RecognizeTextCommand = RecognizeTextCommand;
|
|
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
11
|
-
class RecognizeUtteranceCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const { logger } = configuration;
|
|
29
|
-
const clientName = "LexRuntimeV2Client";
|
|
30
|
-
const commandName = "RecognizeUtteranceCommand";
|
|
31
|
-
const handlerExecutionContext = {
|
|
32
|
-
logger,
|
|
33
|
-
clientName,
|
|
34
|
-
commandName,
|
|
35
|
-
inputFilterSensitiveLog: models_0_1.RecognizeUtteranceRequestFilterSensitiveLog,
|
|
36
|
-
outputFilterSensitiveLog: models_0_1.RecognizeUtteranceResponseFilterSensitiveLog,
|
|
37
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
-
service: "AWSDeepSenseRunTimeServiceApi2_0",
|
|
39
|
-
operation: "RecognizeUtterance",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const { requestHandler } = configuration;
|
|
43
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
-
}
|
|
45
|
-
serialize(input, context) {
|
|
46
|
-
return (0, Aws_restJson1_1.se_RecognizeUtteranceCommand)(input, context);
|
|
47
|
-
}
|
|
48
|
-
deserialize(output, context) {
|
|
49
|
-
return (0, Aws_restJson1_1.de_RecognizeUtteranceCommand)(output, context);
|
|
50
|
-
}
|
|
11
|
+
class RecognizeUtteranceCommand extends smithy_client_1.Command
|
|
12
|
+
.classBuilder()
|
|
13
|
+
.ep({
|
|
14
|
+
...EndpointParameters_1.commonParams,
|
|
15
|
+
})
|
|
16
|
+
.m(function (Command, cs, config, o) {
|
|
17
|
+
return [
|
|
18
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
+
];
|
|
21
|
+
})
|
|
22
|
+
.s("AWSDeepSenseRunTimeServiceApi2_0", "RecognizeUtterance", {})
|
|
23
|
+
.n("LexRuntimeV2Client", "RecognizeUtteranceCommand")
|
|
24
|
+
.f(models_0_1.RecognizeUtteranceRequestFilterSensitiveLog, models_0_1.RecognizeUtteranceResponseFilterSensitiveLog)
|
|
25
|
+
.ser(Aws_restJson1_1.se_RecognizeUtteranceCommand)
|
|
26
|
+
.de(Aws_restJson1_1.de_RecognizeUtteranceCommand)
|
|
27
|
+
.build() {
|
|
51
28
|
}
|
|
52
29
|
exports.RecognizeUtteranceCommand = RecognizeUtteranceCommand;
|
|
@@ -6,53 +6,31 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
6
6
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
9
|
-
const
|
|
9
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
10
10
|
const models_0_1 = require("../models/models_0");
|
|
11
11
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
12
|
-
class StartConversationCommand extends smithy_client_1.Command
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
clientName,
|
|
36
|
-
commandName,
|
|
37
|
-
inputFilterSensitiveLog: models_0_1.StartConversationRequestFilterSensitiveLog,
|
|
38
|
-
outputFilterSensitiveLog: models_0_1.StartConversationResponseFilterSensitiveLog,
|
|
39
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
40
|
-
service: "AWSDeepSenseRunTimeServiceApi2_0",
|
|
41
|
-
operation: "StartConversation",
|
|
42
|
-
eventStream: {
|
|
43
|
-
input: true,
|
|
44
|
-
output: true,
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
const { requestHandler } = configuration;
|
|
49
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
50
|
-
}
|
|
51
|
-
serialize(input, context) {
|
|
52
|
-
return (0, Aws_restJson1_1.se_StartConversationCommand)(input, context);
|
|
53
|
-
}
|
|
54
|
-
deserialize(output, context) {
|
|
55
|
-
return (0, Aws_restJson1_1.de_StartConversationCommand)(output, context);
|
|
56
|
-
}
|
|
12
|
+
class StartConversationCommand extends smithy_client_1.Command
|
|
13
|
+
.classBuilder()
|
|
14
|
+
.ep({
|
|
15
|
+
...EndpointParameters_1.commonParams,
|
|
16
|
+
})
|
|
17
|
+
.m(function (Command, cs, config, o) {
|
|
18
|
+
return [
|
|
19
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
20
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
21
|
+
(0, middleware_eventstream_1.getEventStreamPlugin)(config),
|
|
22
|
+
];
|
|
23
|
+
})
|
|
24
|
+
.s("AWSDeepSenseRunTimeServiceApi2_0", "StartConversation", {
|
|
25
|
+
eventStream: {
|
|
26
|
+
input: true,
|
|
27
|
+
output: true,
|
|
28
|
+
},
|
|
29
|
+
})
|
|
30
|
+
.n("LexRuntimeV2Client", "StartConversationCommand")
|
|
31
|
+
.f(models_0_1.StartConversationRequestFilterSensitiveLog, models_0_1.StartConversationResponseFilterSensitiveLog)
|
|
32
|
+
.ser(Aws_restJson1_1.se_StartConversationCommand)
|
|
33
|
+
.de(Aws_restJson1_1.de_StartConversationCommand)
|
|
34
|
+
.build() {
|
|
57
35
|
}
|
|
58
36
|
exports.StartConversationCommand = StartConversationCommand;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveClientEndpointParameters = void 0;
|
|
3
|
+
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
4
|
const resolveClientEndpointParameters = (options) => {
|
|
5
5
|
return {
|
|
6
6
|
...options,
|
|
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
13
|
+
exports.commonParams = {
|
|
14
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
15
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
16
|
+
Region: { type: "builtInParams", name: "region" },
|
|
17
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
|
+
};
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_DeleteSessionCommand, se_DeleteSessionCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class DeleteSessionCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "LexRuntimeV2Client";
|
|
26
|
-
const commandName = "DeleteSessionCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AWSDeepSenseRunTimeServiceApi2_0",
|
|
35
|
-
operation: "DeleteSession",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_DeleteSessionCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_DeleteSessionCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class DeleteSessionCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AWSDeepSenseRunTimeServiceApi2_0", "DeleteSession", {})
|
|
19
|
+
.n("LexRuntimeV2Client", "DeleteSessionCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_DeleteSessionCommand)
|
|
22
|
+
.de(de_DeleteSessionCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,48 +1,25 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { GetSessionResponseFilterSensitiveLog } from "../models/models_0";
|
|
6
6
|
import { de_GetSessionCommand, se_GetSessionCommand } from "../protocols/Aws_restJson1";
|
|
7
7
|
export { $Command };
|
|
8
|
-
export class GetSessionCommand extends $Command
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const { logger } = configuration;
|
|
26
|
-
const clientName = "LexRuntimeV2Client";
|
|
27
|
-
const commandName = "GetSessionCommand";
|
|
28
|
-
const handlerExecutionContext = {
|
|
29
|
-
logger,
|
|
30
|
-
clientName,
|
|
31
|
-
commandName,
|
|
32
|
-
inputFilterSensitiveLog: (_) => _,
|
|
33
|
-
outputFilterSensitiveLog: GetSessionResponseFilterSensitiveLog,
|
|
34
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
-
service: "AWSDeepSenseRunTimeServiceApi2_0",
|
|
36
|
-
operation: "GetSession",
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
const { requestHandler } = configuration;
|
|
40
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
41
|
-
}
|
|
42
|
-
serialize(input, context) {
|
|
43
|
-
return se_GetSessionCommand(input, context);
|
|
44
|
-
}
|
|
45
|
-
deserialize(output, context) {
|
|
46
|
-
return de_GetSessionCommand(output, context);
|
|
47
|
-
}
|
|
8
|
+
export class GetSessionCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep({
|
|
11
|
+
...commonParams,
|
|
12
|
+
})
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("AWSDeepSenseRunTimeServiceApi2_0", "GetSession", {})
|
|
20
|
+
.n("LexRuntimeV2Client", "GetSessionCommand")
|
|
21
|
+
.f(void 0, GetSessionResponseFilterSensitiveLog)
|
|
22
|
+
.ser(se_GetSessionCommand)
|
|
23
|
+
.de(de_GetSessionCommand)
|
|
24
|
+
.build() {
|
|
48
25
|
}
|
|
@@ -1,48 +1,25 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { PutSessionRequestFilterSensitiveLog, PutSessionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { de_PutSessionCommand, se_PutSessionCommand } from "../protocols/Aws_restJson1";
|
|
7
7
|
export { $Command };
|
|
8
|
-
export class PutSessionCommand extends $Command
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const { logger } = configuration;
|
|
26
|
-
const clientName = "LexRuntimeV2Client";
|
|
27
|
-
const commandName = "PutSessionCommand";
|
|
28
|
-
const handlerExecutionContext = {
|
|
29
|
-
logger,
|
|
30
|
-
clientName,
|
|
31
|
-
commandName,
|
|
32
|
-
inputFilterSensitiveLog: PutSessionRequestFilterSensitiveLog,
|
|
33
|
-
outputFilterSensitiveLog: PutSessionResponseFilterSensitiveLog,
|
|
34
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
-
service: "AWSDeepSenseRunTimeServiceApi2_0",
|
|
36
|
-
operation: "PutSession",
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
const { requestHandler } = configuration;
|
|
40
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
41
|
-
}
|
|
42
|
-
serialize(input, context) {
|
|
43
|
-
return se_PutSessionCommand(input, context);
|
|
44
|
-
}
|
|
45
|
-
deserialize(output, context) {
|
|
46
|
-
return de_PutSessionCommand(output, context);
|
|
47
|
-
}
|
|
8
|
+
export class PutSessionCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep({
|
|
11
|
+
...commonParams,
|
|
12
|
+
})
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("AWSDeepSenseRunTimeServiceApi2_0", "PutSession", {})
|
|
20
|
+
.n("LexRuntimeV2Client", "PutSessionCommand")
|
|
21
|
+
.f(PutSessionRequestFilterSensitiveLog, PutSessionResponseFilterSensitiveLog)
|
|
22
|
+
.ser(se_PutSessionCommand)
|
|
23
|
+
.de(de_PutSessionCommand)
|
|
24
|
+
.build() {
|
|
48
25
|
}
|