@aws-sdk/client-bedrock-agent-runtime 3.478.0 → 3.481.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.
@@ -5,51 +5,29 @@ 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 types_1 = require("@smithy/types");
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 InvokeAgentCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
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
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, InvokeAgentCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "BedrockAgentRuntimeClient";
30
- const commandName = "InvokeAgentCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: models_0_1.InvokeAgentRequestFilterSensitiveLog,
36
- outputFilterSensitiveLog: models_0_1.InvokeAgentResponseFilterSensitiveLog,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "AmazonBedrockAgentRunTimeService",
39
- operation: "InvokeAgent",
40
- eventStream: {
41
- output: true,
42
- },
43
- },
44
- };
45
- const { requestHandler } = configuration;
46
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
47
- }
48
- serialize(input, context) {
49
- return (0, Aws_restJson1_1.se_InvokeAgentCommand)(input, context);
50
- }
51
- deserialize(output, context) {
52
- return (0, Aws_restJson1_1.de_InvokeAgentCommand)(output, context);
53
- }
11
+ class InvokeAgentCommand 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("AmazonBedrockAgentRunTimeService", "InvokeAgent", {
23
+ eventStream: {
24
+ output: true,
25
+ },
26
+ })
27
+ .n("BedrockAgentRuntimeClient", "InvokeAgentCommand")
28
+ .f(models_0_1.InvokeAgentRequestFilterSensitiveLog, models_0_1.InvokeAgentResponseFilterSensitiveLog)
29
+ .ser(Aws_restJson1_1.se_InvokeAgentCommand)
30
+ .de(Aws_restJson1_1.de_InvokeAgentCommand)
31
+ .build() {
54
32
  }
55
33
  exports.InvokeAgentCommand = InvokeAgentCommand;
@@ -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 types_1 = require("@smithy/types");
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 RetrieveAndGenerateCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
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
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RetrieveAndGenerateCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "BedrockAgentRuntimeClient";
30
- const commandName = "RetrieveAndGenerateCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: models_0_1.RetrieveAndGenerateRequestFilterSensitiveLog,
36
- outputFilterSensitiveLog: models_0_1.RetrieveAndGenerateResponseFilterSensitiveLog,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "AmazonBedrockAgentRunTimeService",
39
- operation: "RetrieveAndGenerate",
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_RetrieveAndGenerateCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_RetrieveAndGenerateCommand)(output, context);
50
- }
11
+ class RetrieveAndGenerateCommand 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("AmazonBedrockAgentRunTimeService", "RetrieveAndGenerate", {})
23
+ .n("BedrockAgentRuntimeClient", "RetrieveAndGenerateCommand")
24
+ .f(models_0_1.RetrieveAndGenerateRequestFilterSensitiveLog, models_0_1.RetrieveAndGenerateResponseFilterSensitiveLog)
25
+ .ser(Aws_restJson1_1.se_RetrieveAndGenerateCommand)
26
+ .de(Aws_restJson1_1.de_RetrieveAndGenerateCommand)
27
+ .build() {
51
28
  }
52
29
  exports.RetrieveAndGenerateCommand = RetrieveAndGenerateCommand;
@@ -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 types_1 = require("@smithy/types");
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 RetrieveCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
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
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RetrieveCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "BedrockAgentRuntimeClient";
30
- const commandName = "RetrieveCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: models_0_1.RetrieveRequestFilterSensitiveLog,
36
- outputFilterSensitiveLog: models_0_1.RetrieveResponseFilterSensitiveLog,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "AmazonBedrockAgentRunTimeService",
39
- operation: "Retrieve",
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_RetrieveCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_RetrieveCommand)(output, context);
50
- }
11
+ class RetrieveCommand 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("AmazonBedrockAgentRunTimeService", "Retrieve", {})
23
+ .n("BedrockAgentRuntimeClient", "RetrieveCommand")
24
+ .f(models_0_1.RetrieveRequestFilterSensitiveLog, models_0_1.RetrieveResponseFilterSensitiveLog)
25
+ .ser(Aws_restJson1_1.se_RetrieveCommand)
26
+ .de(Aws_restJson1_1.de_RetrieveCommand)
27
+ .build() {
51
28
  }
52
29
  exports.RetrieveCommand = RetrieveCommand;
@@ -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,51 +1,29 @@
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { InvokeAgentRequestFilterSensitiveLog, InvokeAgentResponseFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_InvokeAgentCommand, se_InvokeAgentCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class InvokeAgentCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, InvokeAgentCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "BedrockAgentRuntimeClient";
27
- const commandName = "InvokeAgentCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: InvokeAgentRequestFilterSensitiveLog,
33
- outputFilterSensitiveLog: InvokeAgentResponseFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonBedrockAgentRunTimeService",
36
- operation: "InvokeAgent",
37
- eventStream: {
38
- output: true,
39
- },
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return se_InvokeAgentCommand(input, context);
47
- }
48
- deserialize(output, context) {
49
- return de_InvokeAgentCommand(output, context);
50
- }
8
+ export class InvokeAgentCommand 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("AmazonBedrockAgentRunTimeService", "InvokeAgent", {
20
+ eventStream: {
21
+ output: true,
22
+ },
23
+ })
24
+ .n("BedrockAgentRuntimeClient", "InvokeAgentCommand")
25
+ .f(InvokeAgentRequestFilterSensitiveLog, InvokeAgentResponseFilterSensitiveLog)
26
+ .ser(se_InvokeAgentCommand)
27
+ .de(de_InvokeAgentCommand)
28
+ .build() {
51
29
  }
@@ -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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { RetrieveAndGenerateRequestFilterSensitiveLog, RetrieveAndGenerateResponseFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_RetrieveAndGenerateCommand, se_RetrieveAndGenerateCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class RetrieveAndGenerateCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, RetrieveAndGenerateCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "BedrockAgentRuntimeClient";
27
- const commandName = "RetrieveAndGenerateCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: RetrieveAndGenerateRequestFilterSensitiveLog,
33
- outputFilterSensitiveLog: RetrieveAndGenerateResponseFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonBedrockAgentRunTimeService",
36
- operation: "RetrieveAndGenerate",
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_RetrieveAndGenerateCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_RetrieveAndGenerateCommand(output, context);
47
- }
8
+ export class RetrieveAndGenerateCommand 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("AmazonBedrockAgentRunTimeService", "RetrieveAndGenerate", {})
20
+ .n("BedrockAgentRuntimeClient", "RetrieveAndGenerateCommand")
21
+ .f(RetrieveAndGenerateRequestFilterSensitiveLog, RetrieveAndGenerateResponseFilterSensitiveLog)
22
+ .ser(se_RetrieveAndGenerateCommand)
23
+ .de(de_RetrieveAndGenerateCommand)
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { RetrieveRequestFilterSensitiveLog, RetrieveResponseFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_RetrieveCommand, se_RetrieveCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class RetrieveCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, RetrieveCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "BedrockAgentRuntimeClient";
27
- const commandName = "RetrieveCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: RetrieveRequestFilterSensitiveLog,
33
- outputFilterSensitiveLog: RetrieveResponseFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonBedrockAgentRunTimeService",
36
- operation: "Retrieve",
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_RetrieveCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_RetrieveCommand(output, context);
47
- }
8
+ export class RetrieveCommand 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("AmazonBedrockAgentRunTimeService", "Retrieve", {})
20
+ .n("BedrockAgentRuntimeClient", "RetrieveCommand")
21
+ .f(RetrieveRequestFilterSensitiveLog, RetrieveResponseFilterSensitiveLog)
22
+ .ser(se_RetrieveCommand)
23
+ .de(de_RetrieveCommand)
24
+ .build() {
48
25
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "bedrock",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
5
4
  import { InvokeAgentRequest, InvokeAgentResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface InvokeAgentCommandInput extends InvokeAgentRequest {
21
20
  */
22
21
  export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __MetadataBearer {
23
22
  }
23
+ declare const InvokeAgentCommand_base: {
24
+ new (input: InvokeAgentCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeAgentCommandInput, InvokeAgentCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * Invokes the specified Bedrock model to run inference using the input provided in the request body.
@@ -299,23 +302,5 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
299
302
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
300
303
  *
301
304
  */
302
- export declare class InvokeAgentCommand extends $Command<InvokeAgentCommandInput, InvokeAgentCommandOutput, BedrockAgentRuntimeClientResolvedConfig> {
303
- readonly input: InvokeAgentCommandInput;
304
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
305
- /**
306
- * @public
307
- */
308
- constructor(input: InvokeAgentCommandInput);
309
- /**
310
- * @internal
311
- */
312
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockAgentRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<InvokeAgentCommandInput, InvokeAgentCommandOutput>;
313
- /**
314
- * @internal
315
- */
316
- private serialize;
317
- /**
318
- * @internal
319
- */
320
- private deserialize;
305
+ export declare class InvokeAgentCommand extends InvokeAgentCommand_base {
321
306
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
5
4
  import { RetrieveAndGenerateRequest, RetrieveAndGenerateResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface RetrieveAndGenerateCommandInput extends RetrieveAndGenerateRequ
21
20
  */
22
21
  export interface RetrieveAndGenerateCommandOutput extends RetrieveAndGenerateResponse, __MetadataBearer {
23
22
  }
23
+ declare const RetrieveAndGenerateCommand_base: {
24
+ new (input: RetrieveAndGenerateCommandInput): import("@smithy/smithy-client").CommandImpl<RetrieveAndGenerateCommandInput, RetrieveAndGenerateCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * RetrieveAndGenerate API
@@ -120,23 +123,5 @@ export interface RetrieveAndGenerateCommandOutput extends RetrieveAndGenerateRes
120
123
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
121
124
  *
122
125
  */
123
- export declare class RetrieveAndGenerateCommand extends $Command<RetrieveAndGenerateCommandInput, RetrieveAndGenerateCommandOutput, BedrockAgentRuntimeClientResolvedConfig> {
124
- readonly input: RetrieveAndGenerateCommandInput;
125
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
126
- /**
127
- * @public
128
- */
129
- constructor(input: RetrieveAndGenerateCommandInput);
130
- /**
131
- * @internal
132
- */
133
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockAgentRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<RetrieveAndGenerateCommandInput, RetrieveAndGenerateCommandOutput>;
134
- /**
135
- * @internal
136
- */
137
- private serialize;
138
- /**
139
- * @internal
140
- */
141
- private deserialize;
126
+ export declare class RetrieveAndGenerateCommand extends RetrieveAndGenerateCommand_base {
142
127
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
5
4
  import { RetrieveRequest, RetrieveResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface RetrieveCommandInput extends RetrieveRequest {
21
20
  */
22
21
  export interface RetrieveCommandOutput extends RetrieveResponse, __MetadataBearer {
23
22
  }
23
+ declare const RetrieveCommand_base: {
24
+ new (input: RetrieveCommandInput): import("@smithy/smithy-client").CommandImpl<RetrieveCommandInput, RetrieveCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * Retrieve from knowledge base.
@@ -101,23 +104,5 @@ export interface RetrieveCommandOutput extends RetrieveResponse, __MetadataBeare
101
104
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
102
105
  *
103
106
  */
104
- export declare class RetrieveCommand extends $Command<RetrieveCommandInput, RetrieveCommandOutput, BedrockAgentRuntimeClientResolvedConfig> {
105
- readonly input: RetrieveCommandInput;
106
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
107
- /**
108
- * @public
109
- */
110
- constructor(input: RetrieveCommandInput);
111
- /**
112
- * @internal
113
- */
114
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockAgentRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<RetrieveCommandInput, RetrieveCommandOutput>;
115
- /**
116
- * @internal
117
- */
118
- private serialize;
119
- /**
120
- * @internal
121
- */
122
- private deserialize;
107
+ export declare class RetrieveCommand extends RetrieveCommand_base {
123
108
  }
@@ -14,6 +14,24 @@ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
14
14
  export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
15
15
  defaultSigningName: string;
16
16
  };
17
+ export declare const commonParams: {
18
+ readonly UseFIPS: {
19
+ readonly type: "builtInParams";
20
+ readonly name: "useFipsEndpoint";
21
+ };
22
+ readonly Endpoint: {
23
+ readonly type: "builtInParams";
24
+ readonly name: "endpoint";
25
+ };
26
+ readonly Region: {
27
+ readonly type: "builtInParams";
28
+ readonly name: "region";
29
+ };
30
+ readonly UseDualStack: {
31
+ readonly type: "builtInParams";
32
+ readonly name: "useDualstackEndpoint";
33
+ };
34
+ };
17
35
  export interface EndpointParameters extends __EndpointParameters {
18
36
  Region?: string;
19
37
  UseDualStack?: boolean;
@@ -1,11 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import {
4
- Handler,
5
- HttpHandlerOptions as __HttpHandlerOptions,
6
- MetadataBearer as __MetadataBearer,
7
- MiddlewareStack,
8
- } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
9
3
  import {
10
4
  BedrockAgentRuntimeClientResolvedConfig,
11
5
  ServiceInputTypes,
@@ -17,19 +11,16 @@ export interface InvokeAgentCommandInput extends InvokeAgentRequest {}
17
11
  export interface InvokeAgentCommandOutput
18
12
  extends InvokeAgentResponse,
19
13
  __MetadataBearer {}
20
- export declare class InvokeAgentCommand extends $Command<
21
- InvokeAgentCommandInput,
22
- InvokeAgentCommandOutput,
23
- BedrockAgentRuntimeClientResolvedConfig
24
- > {
25
- readonly input: InvokeAgentCommandInput;
26
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
- constructor(input: InvokeAgentCommandInput);
28
- resolveMiddleware(
29
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
30
- configuration: BedrockAgentRuntimeClientResolvedConfig,
31
- options?: __HttpHandlerOptions
32
- ): Handler<InvokeAgentCommandInput, InvokeAgentCommandOutput>;
33
- private serialize;
34
- private deserialize;
35
- }
14
+ declare const InvokeAgentCommand_base: {
15
+ new (
16
+ input: InvokeAgentCommandInput
17
+ ): import("@smithy/smithy-client").CommandImpl<
18
+ InvokeAgentCommandInput,
19
+ InvokeAgentCommandOutput,
20
+ BedrockAgentRuntimeClientResolvedConfig,
21
+ ServiceInputTypes,
22
+ ServiceOutputTypes
23
+ >;
24
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ };
26
+ export declare class InvokeAgentCommand extends InvokeAgentCommand_base {}
@@ -1,11 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import {
4
- Handler,
5
- HttpHandlerOptions as __HttpHandlerOptions,
6
- MetadataBearer as __MetadataBearer,
7
- MiddlewareStack,
8
- } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
9
3
  import {
10
4
  BedrockAgentRuntimeClientResolvedConfig,
11
5
  ServiceInputTypes,
@@ -21,19 +15,16 @@ export interface RetrieveAndGenerateCommandInput
21
15
  export interface RetrieveAndGenerateCommandOutput
22
16
  extends RetrieveAndGenerateResponse,
23
17
  __MetadataBearer {}
24
- export declare class RetrieveAndGenerateCommand extends $Command<
25
- RetrieveAndGenerateCommandInput,
26
- RetrieveAndGenerateCommandOutput,
27
- BedrockAgentRuntimeClientResolvedConfig
28
- > {
29
- readonly input: RetrieveAndGenerateCommandInput;
30
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
- constructor(input: RetrieveAndGenerateCommandInput);
32
- resolveMiddleware(
33
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
- configuration: BedrockAgentRuntimeClientResolvedConfig,
35
- options?: __HttpHandlerOptions
36
- ): Handler<RetrieveAndGenerateCommandInput, RetrieveAndGenerateCommandOutput>;
37
- private serialize;
38
- private deserialize;
39
- }
18
+ declare const RetrieveAndGenerateCommand_base: {
19
+ new (
20
+ input: RetrieveAndGenerateCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ RetrieveAndGenerateCommandInput,
23
+ RetrieveAndGenerateCommandOutput,
24
+ BedrockAgentRuntimeClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
29
+ };
30
+ export declare class RetrieveAndGenerateCommand extends RetrieveAndGenerateCommand_base {}
@@ -1,11 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import {
4
- Handler,
5
- HttpHandlerOptions as __HttpHandlerOptions,
6
- MetadataBearer as __MetadataBearer,
7
- MiddlewareStack,
8
- } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
9
3
  import {
10
4
  BedrockAgentRuntimeClientResolvedConfig,
11
5
  ServiceInputTypes,
@@ -17,19 +11,16 @@ export interface RetrieveCommandInput extends RetrieveRequest {}
17
11
  export interface RetrieveCommandOutput
18
12
  extends RetrieveResponse,
19
13
  __MetadataBearer {}
20
- export declare class RetrieveCommand extends $Command<
21
- RetrieveCommandInput,
22
- RetrieveCommandOutput,
23
- BedrockAgentRuntimeClientResolvedConfig
24
- > {
25
- readonly input: RetrieveCommandInput;
26
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
- constructor(input: RetrieveCommandInput);
28
- resolveMiddleware(
29
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
30
- configuration: BedrockAgentRuntimeClientResolvedConfig,
31
- options?: __HttpHandlerOptions
32
- ): Handler<RetrieveCommandInput, RetrieveCommandOutput>;
33
- private serialize;
34
- private deserialize;
35
- }
14
+ declare const RetrieveCommand_base: {
15
+ new (
16
+ input: RetrieveCommandInput
17
+ ): import("@smithy/smithy-client").CommandImpl<
18
+ RetrieveCommandInput,
19
+ RetrieveCommandOutput,
20
+ BedrockAgentRuntimeClientResolvedConfig,
21
+ ServiceInputTypes,
22
+ ServiceOutputTypes
23
+ >;
24
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ };
26
+ export declare class RetrieveCommand extends RetrieveCommand_base {}
@@ -25,6 +25,24 @@ export declare const resolveClientEndpointParameters: <T>(
25
25
  ClientInputEndpointParameters & {
26
26
  defaultSigningName: string;
27
27
  };
28
+ export declare const commonParams: {
29
+ readonly UseFIPS: {
30
+ readonly type: "builtInParams";
31
+ readonly name: "useFipsEndpoint";
32
+ };
33
+ readonly Endpoint: {
34
+ readonly type: "builtInParams";
35
+ readonly name: "endpoint";
36
+ };
37
+ readonly Region: {
38
+ readonly type: "builtInParams";
39
+ readonly name: "region";
40
+ };
41
+ readonly UseDualStack: {
42
+ readonly type: "builtInParams";
43
+ readonly name: "useDualstackEndpoint";
44
+ };
45
+ };
28
46
  export interface EndpointParameters extends __EndpointParameters {
29
47
  Region?: string;
30
48
  UseDualStack?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agent-runtime",
3
3
  "description": "AWS SDK for JavaScript Bedrock Agent Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.478.0",
4
+ "version": "3.481.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,9 +20,9 @@
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.478.0",
24
- "@aws-sdk/core": "3.477.0",
25
- "@aws-sdk/credential-provider-node": "3.478.0",
23
+ "@aws-sdk/client-sts": "3.481.0",
24
+ "@aws-sdk/core": "3.481.0",
25
+ "@aws-sdk/credential-provider-node": "3.481.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
@@ -34,7 +34,7 @@
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
36
  "@smithy/config-resolver": "^2.0.21",
37
- "@smithy/core": "^1.2.0",
37
+ "@smithy/core": "^1.2.1",
38
38
  "@smithy/eventstream-serde-browser": "^2.0.15",
39
39
  "@smithy/eventstream-serde-config-resolver": "^2.0.15",
40
40
  "@smithy/eventstream-serde-node": "^2.0.15",
@@ -43,20 +43,20 @@
43
43
  "@smithy/invalid-dependency": "^2.0.15",
44
44
  "@smithy/middleware-content-length": "^2.0.17",
45
45
  "@smithy/middleware-endpoint": "^2.2.3",
46
- "@smithy/middleware-retry": "^2.0.24",
46
+ "@smithy/middleware-retry": "^2.0.25",
47
47
  "@smithy/middleware-serde": "^2.0.15",
48
48
  "@smithy/middleware-stack": "^2.0.9",
49
49
  "@smithy/node-config-provider": "^2.1.8",
50
50
  "@smithy/node-http-handler": "^2.2.1",
51
51
  "@smithy/protocol-http": "^3.0.11",
52
- "@smithy/smithy-client": "^2.1.18",
52
+ "@smithy/smithy-client": "^2.2.0",
53
53
  "@smithy/types": "^2.7.0",
54
54
  "@smithy/url-parser": "^2.0.15",
55
55
  "@smithy/util-base64": "^2.0.1",
56
56
  "@smithy/util-body-length-browser": "^2.0.1",
57
57
  "@smithy/util-body-length-node": "^2.1.0",
58
- "@smithy/util-defaults-mode-browser": "^2.0.22",
59
- "@smithy/util-defaults-mode-node": "^2.0.29",
58
+ "@smithy/util-defaults-mode-browser": "^2.0.23",
59
+ "@smithy/util-defaults-mode-node": "^2.0.30",
60
60
  "@smithy/util-endpoints": "^1.0.7",
61
61
  "@smithy/util-retry": "^2.0.8",
62
62
  "@smithy/util-utf8": "^2.0.2",