@aws-sdk/client-bedrock-agent-runtime 3.928.0 → 3.930.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.
Files changed (58) hide show
  1. package/dist-cjs/index.js +3454 -5248
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/BedrockAgentRuntimeClient.js +2 -0
  4. package/dist-es/commands/CreateInvocationCommand.js +3 -9
  5. package/dist-es/commands/CreateSessionCommand.js +3 -9
  6. package/dist-es/commands/DeleteAgentMemoryCommand.js +3 -9
  7. package/dist-es/commands/DeleteSessionCommand.js +3 -9
  8. package/dist-es/commands/EndSessionCommand.js +3 -9
  9. package/dist-es/commands/GenerateQueryCommand.js +3 -10
  10. package/dist-es/commands/GetAgentMemoryCommand.js +3 -9
  11. package/dist-es/commands/GetExecutionFlowSnapshotCommand.js +3 -9
  12. package/dist-es/commands/GetFlowExecutionCommand.js +3 -9
  13. package/dist-es/commands/GetInvocationStepCommand.js +3 -10
  14. package/dist-es/commands/GetSessionCommand.js +3 -9
  15. package/dist-es/commands/InvokeAgentCommand.js +3 -11
  16. package/dist-es/commands/InvokeFlowCommand.js +3 -10
  17. package/dist-es/commands/InvokeInlineAgentCommand.js +3 -11
  18. package/dist-es/commands/ListFlowExecutionEventsCommand.js +3 -10
  19. package/dist-es/commands/ListFlowExecutionsCommand.js +3 -9
  20. package/dist-es/commands/ListInvocationStepsCommand.js +3 -9
  21. package/dist-es/commands/ListInvocationsCommand.js +3 -9
  22. package/dist-es/commands/ListSessionsCommand.js +3 -9
  23. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  24. package/dist-es/commands/OptimizePromptCommand.js +3 -10
  25. package/dist-es/commands/PutInvocationStepCommand.js +3 -10
  26. package/dist-es/commands/RerankCommand.js +3 -10
  27. package/dist-es/commands/RetrieveAndGenerateCommand.js +3 -10
  28. package/dist-es/commands/RetrieveAndGenerateStreamCommand.js +3 -10
  29. package/dist-es/commands/RetrieveCommand.js +3 -10
  30. package/dist-es/commands/StartFlowExecutionCommand.js +3 -10
  31. package/dist-es/commands/StopFlowExecutionCommand.js +3 -9
  32. package/dist-es/commands/TagResourceCommand.js +3 -9
  33. package/dist-es/commands/UntagResourceCommand.js +3 -9
  34. package/dist-es/commands/UpdateSessionCommand.js +3 -9
  35. package/dist-es/models/models_0.js +0 -1348
  36. package/dist-es/models/models_1.js +0 -352
  37. package/dist-es/runtimeConfig.shared.js +2 -0
  38. package/dist-es/schemas/schemas_0.js +3380 -0
  39. package/dist-types/BedrockAgentRuntimeClient.d.ts +10 -1
  40. package/dist-types/models/models_0.d.ts +136 -678
  41. package/dist-types/models/models_1.d.ts +20 -133
  42. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  43. package/dist-types/runtimeConfig.d.ts +1 -0
  44. package/dist-types/runtimeConfig.native.d.ts +1 -0
  45. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  46. package/dist-types/schemas/schemas_0.d.ts +445 -0
  47. package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +4 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +0 -468
  49. package/dist-types/ts3.4/models/models_1.d.ts +0 -100
  50. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  51. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  52. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  53. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  54. package/dist-types/ts3.4/schemas/schemas_0.d.ts +452 -0
  55. package/package.json +36 -36
  56. package/dist-es/protocols/Aws_restJson1.js +0 -3122
  57. package/dist-types/protocols/Aws_restJson1.d.ts +0 -281
  58. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -380
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { PutInvocationStepRequestFilterSensitiveLog, } from "../models/models_1";
6
- import { de_PutInvocationStepCommand, se_PutInvocationStepCommand } from "../protocols/Aws_restJson1";
4
+ import { PutInvocationStep } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class PutInvocationStepCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AmazonBedrockAgentRunTimeService", "PutInvocationStep", {})
18
13
  .n("BedrockAgentRuntimeClient", "PutInvocationStepCommand")
19
- .f(PutInvocationStepRequestFilterSensitiveLog, void 0)
20
- .ser(se_PutInvocationStepCommand)
21
- .de(de_PutInvocationStepCommand)
14
+ .sc(PutInvocationStep)
22
15
  .build() {
23
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { RerankRequestFilterSensitiveLog, RerankResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_RerankCommand, se_RerankCommand } from "../protocols/Aws_restJson1";
4
+ import { Rerank } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class RerankCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AmazonBedrockAgentRunTimeService", "Rerank", {})
18
13
  .n("BedrockAgentRuntimeClient", "RerankCommand")
19
- .f(RerankRequestFilterSensitiveLog, RerankResponseFilterSensitiveLog)
20
- .ser(se_RerankCommand)
21
- .de(de_RerankCommand)
14
+ .sc(Rerank)
22
15
  .build() {
23
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { RetrieveAndGenerateRequestFilterSensitiveLog, RetrieveAndGenerateResponseFilterSensitiveLog, } from "../models/models_1";
6
- import { de_RetrieveAndGenerateCommand, se_RetrieveAndGenerateCommand } from "../protocols/Aws_restJson1";
4
+ import { RetrieveAndGenerate } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class RetrieveAndGenerateCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AmazonBedrockAgentRunTimeService", "RetrieveAndGenerate", {})
18
13
  .n("BedrockAgentRuntimeClient", "RetrieveAndGenerateCommand")
19
- .f(RetrieveAndGenerateRequestFilterSensitiveLog, RetrieveAndGenerateResponseFilterSensitiveLog)
20
- .ser(se_RetrieveAndGenerateCommand)
21
- .de(de_RetrieveAndGenerateCommand)
14
+ .sc(RetrieveAndGenerate)
22
15
  .build() {
23
16
  }
@@ -1,18 +1,13 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { RetrieveAndGenerateStreamRequestFilterSensitiveLog, RetrieveAndGenerateStreamResponseFilterSensitiveLog, } from "../models/models_1";
6
- import { de_RetrieveAndGenerateStreamCommand, se_RetrieveAndGenerateStreamCommand } from "../protocols/Aws_restJson1";
4
+ import { RetrieveAndGenerateStream } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class RetrieveAndGenerateStreamCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AmazonBedrockAgentRunTimeService", "RetrieveAndGenerateStream", {
18
13
  eventStream: {
@@ -20,8 +15,6 @@ export class RetrieveAndGenerateStreamCommand extends $Command
20
15
  },
21
16
  })
22
17
  .n("BedrockAgentRuntimeClient", "RetrieveAndGenerateStreamCommand")
23
- .f(RetrieveAndGenerateStreamRequestFilterSensitiveLog, RetrieveAndGenerateStreamResponseFilterSensitiveLog)
24
- .ser(se_RetrieveAndGenerateStreamCommand)
25
- .de(de_RetrieveAndGenerateStreamCommand)
18
+ .sc(RetrieveAndGenerateStream)
26
19
  .build() {
27
20
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { RetrieveRequestFilterSensitiveLog, RetrieveResponseFilterSensitiveLog, } from "../models/models_1";
6
- import { de_RetrieveCommand, se_RetrieveCommand } from "../protocols/Aws_restJson1";
4
+ import { Retrieve } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class RetrieveCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AmazonBedrockAgentRunTimeService", "Retrieve", {})
18
13
  .n("BedrockAgentRuntimeClient", "RetrieveCommand")
19
- .f(RetrieveRequestFilterSensitiveLog, RetrieveResponseFilterSensitiveLog)
20
- .ser(se_RetrieveCommand)
21
- .de(de_RetrieveCommand)
14
+ .sc(Retrieve)
22
15
  .build() {
23
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { StartFlowExecutionRequestFilterSensitiveLog, } from "../models/models_0";
6
- import { de_StartFlowExecutionCommand, se_StartFlowExecutionCommand } from "../protocols/Aws_restJson1";
4
+ import { StartFlowExecution } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class StartFlowExecutionCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("AmazonBedrockAgentRunTimeService", "StartFlowExecution", {})
18
13
  .n("BedrockAgentRuntimeClient", "StartFlowExecutionCommand")
19
- .f(StartFlowExecutionRequestFilterSensitiveLog, void 0)
20
- .ser(se_StartFlowExecutionCommand)
21
- .de(de_StartFlowExecutionCommand)
14
+ .sc(StartFlowExecution)
22
15
  .build() {
23
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StopFlowExecutionCommand, se_StopFlowExecutionCommand } from "../protocols/Aws_restJson1";
4
+ import { StopFlowExecution } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StopFlowExecutionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonBedrockAgentRunTimeService", "StopFlowExecution", {})
17
13
  .n("BedrockAgentRuntimeClient", "StopFlowExecutionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StopFlowExecutionCommand)
20
- .de(de_StopFlowExecutionCommand)
14
+ .sc(StopFlowExecution)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { TagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonBedrockAgentRunTimeService", "TagResource", {})
17
13
  .n("BedrockAgentRuntimeClient", "TagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TagResourceCommand)
20
- .de(de_TagResourceCommand)
14
+ .sc(TagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { UntagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UntagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonBedrockAgentRunTimeService", "UntagResource", {})
17
13
  .n("BedrockAgentRuntimeClient", "UntagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UntagResourceCommand)
20
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateSessionCommand, se_UpdateSessionCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateSession } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateSessionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonBedrockAgentRunTimeService", "UpdateSession", {})
17
13
  .n("BedrockAgentRuntimeClient", "UpdateSessionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateSessionCommand)
20
- .de(de_UpdateSessionCommand)
14
+ .sc(UpdateSession)
21
15
  .build() {
22
16
  }