@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
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const url_parser_1 = require("@smithy/url-parser");
7
8
  const util_base64_1 = require("@smithy/util-base64");
@@ -25,6 +26,7 @@ const getRuntimeConfig = (config) => {
25
26
  },
26
27
  ],
27
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
+ protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.bedrockagentruntime" }),
28
30
  serviceId: config?.serviceId ?? "Bedrock Agent Runtime",
29
31
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
32
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
4
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
7
8
  import { resolveEventStreamSerdeConfig, } from "@smithy/eventstream-serde-config-resolver";
8
9
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
9
10
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
@@ -30,6 +31,7 @@ export class BedrockAgentRuntimeClient extends __Client {
30
31
  const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
31
32
  const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
32
33
  this.config = _config_9;
34
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
33
35
  this.middlewareStack.use(getUserAgentPlugin(this.config));
34
36
  this.middlewareStack.use(getRetryPlugin(this.config));
35
37
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -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_CreateInvocationCommand, se_CreateInvocationCommand } from "../protocols/Aws_restJson1";
4
+ import { CreateInvocation } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class CreateInvocationCommand 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", "CreateInvocation", {})
17
13
  .n("BedrockAgentRuntimeClient", "CreateInvocationCommand")
18
- .f(void 0, void 0)
19
- .ser(se_CreateInvocationCommand)
20
- .de(de_CreateInvocationCommand)
14
+ .sc(CreateInvocation)
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_CreateSessionCommand, se_CreateSessionCommand } from "../protocols/Aws_restJson1";
4
+ import { CreateSession } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class CreateSessionCommand 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", "CreateSession", {})
17
13
  .n("BedrockAgentRuntimeClient", "CreateSessionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_CreateSessionCommand)
20
- .de(de_CreateSessionCommand)
14
+ .sc(CreateSession)
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_DeleteAgentMemoryCommand, se_DeleteAgentMemoryCommand } from "../protocols/Aws_restJson1";
4
+ import { DeleteAgentMemory } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteAgentMemoryCommand 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", "DeleteAgentMemory", {})
17
13
  .n("BedrockAgentRuntimeClient", "DeleteAgentMemoryCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteAgentMemoryCommand)
20
- .de(de_DeleteAgentMemoryCommand)
14
+ .sc(DeleteAgentMemory)
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_DeleteSessionCommand, se_DeleteSessionCommand } from "../protocols/Aws_restJson1";
4
+ import { DeleteSession } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteSessionCommand 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", "DeleteSession", {})
17
13
  .n("BedrockAgentRuntimeClient", "DeleteSessionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteSessionCommand)
20
- .de(de_DeleteSessionCommand)
14
+ .sc(DeleteSession)
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_EndSessionCommand, se_EndSessionCommand } from "../protocols/Aws_restJson1";
4
+ import { EndSession } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class EndSessionCommand 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", "EndSession", {})
17
13
  .n("BedrockAgentRuntimeClient", "EndSessionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_EndSessionCommand)
20
- .de(de_EndSessionCommand)
14
+ .sc(EndSession)
21
15
  .build() {
22
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 { GenerateQueryRequestFilterSensitiveLog, GenerateQueryResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_GenerateQueryCommand, se_GenerateQueryCommand } from "../protocols/Aws_restJson1";
4
+ import { GenerateQuery } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class GenerateQueryCommand 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", "GenerateQuery", {})
18
13
  .n("BedrockAgentRuntimeClient", "GenerateQueryCommand")
19
- .f(GenerateQueryRequestFilterSensitiveLog, GenerateQueryResponseFilterSensitiveLog)
20
- .ser(se_GenerateQueryCommand)
21
- .de(de_GenerateQueryCommand)
14
+ .sc(GenerateQuery)
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_GetAgentMemoryCommand, se_GetAgentMemoryCommand } from "../protocols/Aws_restJson1";
4
+ import { GetAgentMemory } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetAgentMemoryCommand 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", "GetAgentMemory", {})
17
13
  .n("BedrockAgentRuntimeClient", "GetAgentMemoryCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetAgentMemoryCommand)
20
- .de(de_GetAgentMemoryCommand)
14
+ .sc(GetAgentMemory)
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_GetExecutionFlowSnapshotCommand, se_GetExecutionFlowSnapshotCommand } from "../protocols/Aws_restJson1";
4
+ import { GetExecutionFlowSnapshot } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetExecutionFlowSnapshotCommand 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", "GetExecutionFlowSnapshot", {})
17
13
  .n("BedrockAgentRuntimeClient", "GetExecutionFlowSnapshotCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetExecutionFlowSnapshotCommand)
20
- .de(de_GetExecutionFlowSnapshotCommand)
14
+ .sc(GetExecutionFlowSnapshot)
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_GetFlowExecutionCommand, se_GetFlowExecutionCommand } from "../protocols/Aws_restJson1";
4
+ import { GetFlowExecution } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetFlowExecutionCommand 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", "GetFlowExecution", {})
17
13
  .n("BedrockAgentRuntimeClient", "GetFlowExecutionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetFlowExecutionCommand)
20
- .de(de_GetFlowExecutionCommand)
14
+ .sc(GetFlowExecution)
21
15
  .build() {
22
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 { GetInvocationStepResponseFilterSensitiveLog, } from "../models/models_1";
6
- import { de_GetInvocationStepCommand, se_GetInvocationStepCommand } from "../protocols/Aws_restJson1";
4
+ import { GetInvocationStep } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class GetInvocationStepCommand 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", "GetInvocationStep", {})
18
13
  .n("BedrockAgentRuntimeClient", "GetInvocationStepCommand")
19
- .f(void 0, GetInvocationStepResponseFilterSensitiveLog)
20
- .ser(se_GetInvocationStepCommand)
21
- .de(de_GetInvocationStepCommand)
14
+ .sc(GetInvocationStep)
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_GetSessionCommand, se_GetSessionCommand } from "../protocols/Aws_restJson1";
4
+ import { GetSession } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetSessionCommand 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", "GetSession", {})
17
13
  .n("BedrockAgentRuntimeClient", "GetSessionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetSessionCommand)
20
- .de(de_GetSessionCommand)
14
+ .sc(GetSession)
21
15
  .build() {
22
16
  }
@@ -1,19 +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 { InvokeAgentResponseFilterSensitiveLog } from "../models/models_0";
6
- import { InvokeAgentRequestFilterSensitiveLog } from "../models/models_1";
7
- import { de_InvokeAgentCommand, se_InvokeAgentCommand } from "../protocols/Aws_restJson1";
4
+ import { InvokeAgent } from "../schemas/schemas_0";
8
5
  export { $Command };
9
6
  export class InvokeAgentCommand extends $Command
10
7
  .classBuilder()
11
8
  .ep(commonParams)
12
9
  .m(function (Command, cs, config, o) {
13
- return [
14
- getSerdePlugin(config, this.serialize, this.deserialize),
15
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
17
11
  })
18
12
  .s("AmazonBedrockAgentRunTimeService", "InvokeAgent", {
19
13
  eventStream: {
@@ -21,8 +15,6 @@ export class InvokeAgentCommand extends $Command
21
15
  },
22
16
  })
23
17
  .n("BedrockAgentRuntimeClient", "InvokeAgentCommand")
24
- .f(InvokeAgentRequestFilterSensitiveLog, InvokeAgentResponseFilterSensitiveLog)
25
- .ser(se_InvokeAgentCommand)
26
- .de(de_InvokeAgentCommand)
18
+ .sc(InvokeAgent)
27
19
  .build() {
28
20
  }
@@ -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 { InvokeFlowRequestFilterSensitiveLog, InvokeFlowResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_InvokeFlowCommand, se_InvokeFlowCommand } from "../protocols/Aws_restJson1";
4
+ import { InvokeFlow } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class InvokeFlowCommand 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", "InvokeFlow", {
18
13
  eventStream: {
@@ -20,8 +15,6 @@ export class InvokeFlowCommand extends $Command
20
15
  },
21
16
  })
22
17
  .n("BedrockAgentRuntimeClient", "InvokeFlowCommand")
23
- .f(InvokeFlowRequestFilterSensitiveLog, InvokeFlowResponseFilterSensitiveLog)
24
- .ser(se_InvokeFlowCommand)
25
- .de(de_InvokeFlowCommand)
18
+ .sc(InvokeFlow)
26
19
  .build() {
27
20
  }
@@ -1,19 +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 { InvokeInlineAgentResponseFilterSensitiveLog } from "../models/models_0";
6
- import { InvokeInlineAgentRequestFilterSensitiveLog } from "../models/models_1";
7
- import { de_InvokeInlineAgentCommand, se_InvokeInlineAgentCommand } from "../protocols/Aws_restJson1";
4
+ import { InvokeInlineAgent } from "../schemas/schemas_0";
8
5
  export { $Command };
9
6
  export class InvokeInlineAgentCommand extends $Command
10
7
  .classBuilder()
11
8
  .ep(commonParams)
12
9
  .m(function (Command, cs, config, o) {
13
- return [
14
- getSerdePlugin(config, this.serialize, this.deserialize),
15
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
17
11
  })
18
12
  .s("AmazonBedrockAgentRunTimeService", "InvokeInlineAgent", {
19
13
  eventStream: {
@@ -21,8 +15,6 @@ export class InvokeInlineAgentCommand extends $Command
21
15
  },
22
16
  })
23
17
  .n("BedrockAgentRuntimeClient", "InvokeInlineAgentCommand")
24
- .f(InvokeInlineAgentRequestFilterSensitiveLog, InvokeInlineAgentResponseFilterSensitiveLog)
25
- .ser(se_InvokeInlineAgentCommand)
26
- .de(de_InvokeInlineAgentCommand)
18
+ .sc(InvokeInlineAgent)
27
19
  .build() {
28
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 { ListFlowExecutionEventsResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_ListFlowExecutionEventsCommand, se_ListFlowExecutionEventsCommand } from "../protocols/Aws_restJson1";
4
+ import { ListFlowExecutionEvents } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class ListFlowExecutionEventsCommand 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", "ListFlowExecutionEvents", {})
18
13
  .n("BedrockAgentRuntimeClient", "ListFlowExecutionEventsCommand")
19
- .f(void 0, ListFlowExecutionEventsResponseFilterSensitiveLog)
20
- .ser(se_ListFlowExecutionEventsCommand)
21
- .de(de_ListFlowExecutionEventsCommand)
14
+ .sc(ListFlowExecutionEvents)
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_ListFlowExecutionsCommand, se_ListFlowExecutionsCommand } from "../protocols/Aws_restJson1";
4
+ import { ListFlowExecutions } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListFlowExecutionsCommand 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", "ListFlowExecutions", {})
17
13
  .n("BedrockAgentRuntimeClient", "ListFlowExecutionsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListFlowExecutionsCommand)
20
- .de(de_ListFlowExecutionsCommand)
14
+ .sc(ListFlowExecutions)
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_ListInvocationStepsCommand, se_ListInvocationStepsCommand } from "../protocols/Aws_restJson1";
4
+ import { ListInvocationSteps } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListInvocationStepsCommand 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", "ListInvocationSteps", {})
17
13
  .n("BedrockAgentRuntimeClient", "ListInvocationStepsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListInvocationStepsCommand)
20
- .de(de_ListInvocationStepsCommand)
14
+ .sc(ListInvocationSteps)
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_ListInvocationsCommand, se_ListInvocationsCommand } from "../protocols/Aws_restJson1";
4
+ import { ListInvocations } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListInvocationsCommand 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", "ListInvocations", {})
17
13
  .n("BedrockAgentRuntimeClient", "ListInvocationsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListInvocationsCommand)
20
- .de(de_ListInvocationsCommand)
14
+ .sc(ListInvocations)
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_ListSessionsCommand, se_ListSessionsCommand } from "../protocols/Aws_restJson1";
4
+ import { ListSessions } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListSessionsCommand 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", "ListSessions", {})
17
13
  .n("BedrockAgentRuntimeClient", "ListSessionsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListSessionsCommand)
20
- .de(de_ListSessionsCommand)
14
+ .sc(ListSessions)
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_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { ListTagsForResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTagsForResourceCommand 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", "ListTagsForResource", {})
17
13
  .n("BedrockAgentRuntimeClient", "ListTagsForResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTagsForResourceCommand)
20
- .de(de_ListTagsForResourceCommand)
14
+ .sc(ListTagsForResource)
21
15
  .build() {
22
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 { OptimizePromptRequestFilterSensitiveLog, OptimizePromptResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_OptimizePromptCommand, se_OptimizePromptCommand } from "../protocols/Aws_restJson1";
4
+ import { OptimizePrompt } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class OptimizePromptCommand 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", "OptimizePrompt", {
18
13
  eventStream: {
@@ -20,8 +15,6 @@ export class OptimizePromptCommand extends $Command
20
15
  },
21
16
  })
22
17
  .n("BedrockAgentRuntimeClient", "OptimizePromptCommand")
23
- .f(OptimizePromptRequestFilterSensitiveLog, OptimizePromptResponseFilterSensitiveLog)
24
- .ser(se_OptimizePromptCommand)
25
- .de(de_OptimizePromptCommand)
18
+ .sc(OptimizePrompt)
26
19
  .build() {
27
20
  }