@aws-sdk/client-bedrock-agent-runtime 3.1045.0 → 3.1047.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 (128) hide show
  1. package/dist-cjs/auth/httpAuthSchemeProvider.js +4 -4
  2. package/dist-cjs/endpoint/bdd.js +2 -2
  3. package/dist-cjs/endpoint/endpointResolver.js +4 -4
  4. package/dist-cjs/index.js +80 -81
  5. package/dist-cjs/models/BedrockAgentRuntimeServiceException.js +3 -3
  6. package/dist-cjs/runtimeConfig.browser.js +14 -16
  7. package/dist-cjs/runtimeConfig.js +20 -24
  8. package/dist-cjs/runtimeConfig.shared.js +9 -10
  9. package/dist-es/BedrockAgentRuntime.js +1 -1
  10. package/dist-es/BedrockAgentRuntimeClient.js +6 -6
  11. package/dist-es/auth/httpAuthSchemeProvider.js +1 -1
  12. package/dist-es/commands/CreateInvocationCommand.js +2 -2
  13. package/dist-es/commands/CreateSessionCommand.js +2 -2
  14. package/dist-es/commands/DeleteAgentMemoryCommand.js +2 -2
  15. package/dist-es/commands/DeleteSessionCommand.js +2 -2
  16. package/dist-es/commands/EndSessionCommand.js +2 -2
  17. package/dist-es/commands/GenerateQueryCommand.js +2 -2
  18. package/dist-es/commands/GetAgentMemoryCommand.js +2 -2
  19. package/dist-es/commands/GetExecutionFlowSnapshotCommand.js +2 -2
  20. package/dist-es/commands/GetFlowExecutionCommand.js +2 -2
  21. package/dist-es/commands/GetInvocationStepCommand.js +2 -2
  22. package/dist-es/commands/GetSessionCommand.js +2 -2
  23. package/dist-es/commands/InvokeAgentCommand.js +2 -2
  24. package/dist-es/commands/InvokeFlowCommand.js +2 -2
  25. package/dist-es/commands/InvokeInlineAgentCommand.js +2 -2
  26. package/dist-es/commands/ListFlowExecutionEventsCommand.js +2 -2
  27. package/dist-es/commands/ListFlowExecutionsCommand.js +2 -2
  28. package/dist-es/commands/ListInvocationStepsCommand.js +2 -2
  29. package/dist-es/commands/ListInvocationsCommand.js +2 -2
  30. package/dist-es/commands/ListSessionsCommand.js +2 -2
  31. package/dist-es/commands/ListTagsForResourceCommand.js +2 -2
  32. package/dist-es/commands/OptimizePromptCommand.js +2 -2
  33. package/dist-es/commands/PutInvocationStepCommand.js +2 -2
  34. package/dist-es/commands/RerankCommand.js +2 -2
  35. package/dist-es/commands/RetrieveAndGenerateCommand.js +2 -2
  36. package/dist-es/commands/RetrieveAndGenerateStreamCommand.js +2 -2
  37. package/dist-es/commands/RetrieveCommand.js +2 -2
  38. package/dist-es/commands/StartFlowExecutionCommand.js +2 -2
  39. package/dist-es/commands/StopFlowExecutionCommand.js +2 -2
  40. package/dist-es/commands/TagResourceCommand.js +2 -2
  41. package/dist-es/commands/UntagResourceCommand.js +2 -2
  42. package/dist-es/commands/UpdateSessionCommand.js +2 -2
  43. package/dist-es/endpoint/bdd.js +1 -1
  44. package/dist-es/endpoint/endpointResolver.js +1 -1
  45. package/dist-es/models/BedrockAgentRuntimeServiceException.js +1 -1
  46. package/dist-es/runtimeConfig.browser.js +5 -7
  47. package/dist-es/runtimeConfig.js +5 -9
  48. package/dist-es/runtimeConfig.shared.js +3 -4
  49. package/dist-es/runtimeExtensions.js +2 -2
  50. package/dist-types/BedrockAgentRuntimeClient.d.ts +6 -6
  51. package/dist-types/commands/CreateInvocationCommand.d.ts +6 -4
  52. package/dist-types/commands/CreateSessionCommand.d.ts +6 -4
  53. package/dist-types/commands/DeleteAgentMemoryCommand.d.ts +6 -4
  54. package/dist-types/commands/DeleteSessionCommand.d.ts +6 -4
  55. package/dist-types/commands/EndSessionCommand.d.ts +6 -4
  56. package/dist-types/commands/GenerateQueryCommand.d.ts +6 -4
  57. package/dist-types/commands/GetAgentMemoryCommand.d.ts +6 -4
  58. package/dist-types/commands/GetExecutionFlowSnapshotCommand.d.ts +6 -4
  59. package/dist-types/commands/GetFlowExecutionCommand.d.ts +6 -4
  60. package/dist-types/commands/GetInvocationStepCommand.d.ts +6 -4
  61. package/dist-types/commands/GetSessionCommand.d.ts +6 -4
  62. package/dist-types/commands/InvokeAgentCommand.d.ts +6 -4
  63. package/dist-types/commands/InvokeFlowCommand.d.ts +6 -4
  64. package/dist-types/commands/InvokeInlineAgentCommand.d.ts +6 -4
  65. package/dist-types/commands/ListFlowExecutionEventsCommand.d.ts +6 -4
  66. package/dist-types/commands/ListFlowExecutionsCommand.d.ts +6 -4
  67. package/dist-types/commands/ListInvocationStepsCommand.d.ts +6 -4
  68. package/dist-types/commands/ListInvocationsCommand.d.ts +6 -4
  69. package/dist-types/commands/ListSessionsCommand.d.ts +6 -4
  70. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -4
  71. package/dist-types/commands/OptimizePromptCommand.d.ts +6 -4
  72. package/dist-types/commands/PutInvocationStepCommand.d.ts +6 -4
  73. package/dist-types/commands/RerankCommand.d.ts +6 -4
  74. package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +6 -4
  75. package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +6 -4
  76. package/dist-types/commands/RetrieveCommand.d.ts +6 -4
  77. package/dist-types/commands/StartFlowExecutionCommand.d.ts +6 -4
  78. package/dist-types/commands/StopFlowExecutionCommand.d.ts +6 -4
  79. package/dist-types/commands/TagResourceCommand.d.ts +6 -4
  80. package/dist-types/commands/UntagResourceCommand.d.ts +6 -4
  81. package/dist-types/commands/UpdateSessionCommand.d.ts +6 -4
  82. package/dist-types/endpoint/bdd.d.ts +1 -1
  83. package/dist-types/extensionConfiguration.d.ts +1 -1
  84. package/dist-types/models/BedrockAgentRuntimeServiceException.d.ts +1 -1
  85. package/dist-types/models/errors.d.ts +1 -1
  86. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  87. package/dist-types/runtimeConfig.d.ts +2 -2
  88. package/dist-types/runtimeConfig.native.d.ts +2 -2
  89. package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +12 -18
  90. package/dist-types/ts3.4/commands/CreateInvocationCommand.d.ts +6 -4
  91. package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +6 -4
  92. package/dist-types/ts3.4/commands/DeleteAgentMemoryCommand.d.ts +6 -4
  93. package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +6 -4
  94. package/dist-types/ts3.4/commands/EndSessionCommand.d.ts +6 -4
  95. package/dist-types/ts3.4/commands/GenerateQueryCommand.d.ts +6 -4
  96. package/dist-types/ts3.4/commands/GetAgentMemoryCommand.d.ts +6 -4
  97. package/dist-types/ts3.4/commands/GetExecutionFlowSnapshotCommand.d.ts +6 -4
  98. package/dist-types/ts3.4/commands/GetFlowExecutionCommand.d.ts +6 -4
  99. package/dist-types/ts3.4/commands/GetInvocationStepCommand.d.ts +6 -4
  100. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +6 -4
  101. package/dist-types/ts3.4/commands/InvokeAgentCommand.d.ts +6 -4
  102. package/dist-types/ts3.4/commands/InvokeFlowCommand.d.ts +6 -4
  103. package/dist-types/ts3.4/commands/InvokeInlineAgentCommand.d.ts +6 -4
  104. package/dist-types/ts3.4/commands/ListFlowExecutionEventsCommand.d.ts +6 -4
  105. package/dist-types/ts3.4/commands/ListFlowExecutionsCommand.d.ts +6 -4
  106. package/dist-types/ts3.4/commands/ListInvocationStepsCommand.d.ts +6 -4
  107. package/dist-types/ts3.4/commands/ListInvocationsCommand.d.ts +6 -4
  108. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +6 -4
  109. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +6 -4
  110. package/dist-types/ts3.4/commands/OptimizePromptCommand.d.ts +6 -4
  111. package/dist-types/ts3.4/commands/PutInvocationStepCommand.d.ts +6 -4
  112. package/dist-types/ts3.4/commands/RerankCommand.d.ts +6 -4
  113. package/dist-types/ts3.4/commands/RetrieveAndGenerateCommand.d.ts +6 -4
  114. package/dist-types/ts3.4/commands/RetrieveAndGenerateStreamCommand.d.ts +6 -4
  115. package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +6 -8
  116. package/dist-types/ts3.4/commands/StartFlowExecutionCommand.d.ts +6 -4
  117. package/dist-types/ts3.4/commands/StopFlowExecutionCommand.d.ts +6 -4
  118. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +6 -4
  119. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +6 -4
  120. package/dist-types/ts3.4/commands/UpdateSessionCommand.d.ts +6 -4
  121. package/dist-types/ts3.4/endpoint/bdd.d.ts +1 -1
  122. package/dist-types/ts3.4/extensionConfiguration.d.ts +1 -1
  123. package/dist-types/ts3.4/models/BedrockAgentRuntimeServiceException.d.ts +1 -1
  124. package/dist-types/ts3.4/models/errors.d.ts +1 -1
  125. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  126. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  127. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  128. package/package.json +13 -37
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveHttpAuthSchemeConfig = exports.defaultBedrockAgentRuntimeHttpAuthSchemeProvider = exports.defaultBedrockAgentRuntimeHttpAuthSchemeParametersProvider = void 0;
4
4
  const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
- const util_middleware_1 = require("@smithy/util-middleware");
5
+ const client_1 = require("@smithy/core/client");
6
6
  const defaultBedrockAgentRuntimeHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
7
  return {
8
- operation: (0, util_middleware_1.getSmithyContext)(context).operation,
9
- region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
8
+ operation: (0, client_1.getSmithyContext)(context).operation,
9
+ region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
10
10
  throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
11
  })(),
12
12
  };
@@ -40,7 +40,7 @@ exports.defaultBedrockAgentRuntimeHttpAuthSchemeProvider = defaultBedrockAgentRu
40
40
  const resolveHttpAuthSchemeConfig = (config) => {
41
41
  const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
42
42
  return Object.assign(config_0, {
43
- authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
43
+ authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
44
44
  });
45
45
  };
46
46
  exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.bdd = void 0;
4
- const util_endpoints_1 = require("@smithy/util-endpoints");
4
+ const endpoints_1 = require("@smithy/core/endpoints");
5
5
  const k = "ref";
6
6
  const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
7
7
  const _data = {
@@ -46,4 +46,4 @@ const nodes = new Int32Array([
46
46
  3, r + 1, 13,
47
47
  4, r + 2, r + 3,
48
48
  ]);
49
- exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
49
+ exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -2,17 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
4
  const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
- const util_endpoints_2 = require("@smithy/util-endpoints");
5
+ const endpoints_1 = require("@smithy/core/endpoints");
6
6
  const bdd_1 = require("./bdd");
7
- const cache = new util_endpoints_2.EndpointCache({
7
+ const cache = new endpoints_1.EndpointCache({
8
8
  size: 50,
9
9
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
10
10
  });
11
11
  const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
12
+ return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
13
13
  endpointParams: endpointParams,
14
14
  logger: context.logger,
15
15
  }));
16
16
  };
17
17
  exports.defaultEndpointResolver = defaultEndpointResolver;
18
- util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
18
+ endpoints_1.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -4,18 +4,17 @@ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
4
  var middlewareLogger = require('@aws-sdk/middleware-logger');
5
5
  var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
- var configResolver = require('@smithy/config-resolver');
8
7
  var core = require('@smithy/core');
8
+ var client = require('@smithy/core/client');
9
+ var config = require('@smithy/core/config');
10
+ var endpoints = require('@smithy/core/endpoints');
11
+ var eventStreams = require('@smithy/core/event-streams');
12
+ var protocols = require('@smithy/core/protocols');
13
+ var retry = require('@smithy/core/retry');
9
14
  var schema = require('@smithy/core/schema');
10
- var eventstreamSerdeConfigResolver = require('@smithy/eventstream-serde-config-resolver');
11
- var middlewareContentLength = require('@smithy/middleware-content-length');
12
- var middlewareEndpoint = require('@smithy/middleware-endpoint');
13
- var middlewareRetry = require('@smithy/middleware-retry');
14
- var smithyClient = require('@smithy/smithy-client');
15
15
  var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
16
16
  var runtimeConfig = require('./runtimeConfig');
17
17
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
18
- var protocolHttp = require('@smithy/protocol-http');
19
18
  var schemas_0 = require('./schemas/schemas_0');
20
19
  var errors = require('./models/errors');
21
20
  var BedrockAgentRuntimeServiceException = require('./models/BedrockAgentRuntimeServiceException');
@@ -74,12 +73,12 @@ const resolveHttpAuthRuntimeConfig = (config) => {
74
73
  };
75
74
 
76
75
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
77
- const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
76
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
78
77
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
79
- return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
78
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
80
79
  };
81
80
 
82
- class BedrockAgentRuntimeClient extends smithyClient.Client {
81
+ class BedrockAgentRuntimeClient extends client.Client {
83
82
  config;
84
83
  constructor(...[configuration]) {
85
84
  const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
@@ -87,18 +86,18 @@ class BedrockAgentRuntimeClient extends smithyClient.Client {
87
86
  this.initConfig = _config_0;
88
87
  const _config_1 = resolveClientEndpointParameters(_config_0);
89
88
  const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
90
- const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
91
- const _config_4 = configResolver.resolveRegionConfig(_config_3);
89
+ const _config_3 = retry.resolveRetryConfig(_config_2);
90
+ const _config_4 = config.resolveRegionConfig(_config_3);
92
91
  const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
93
- const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
94
- const _config_7 = eventstreamSerdeConfigResolver.resolveEventStreamSerdeConfig(_config_6);
92
+ const _config_6 = endpoints.resolveEndpointConfig(_config_5);
93
+ const _config_7 = eventStreams.resolveEventStreamSerdeConfig(_config_6);
95
94
  const _config_8 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_7);
96
95
  const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
97
96
  this.config = _config_9;
98
97
  this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
99
98
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
100
- this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
101
- this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
99
+ this.middlewareStack.use(retry.getRetryPlugin(this.config));
100
+ this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
102
101
  this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
103
102
  this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
104
103
  this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
@@ -115,11 +114,11 @@ class BedrockAgentRuntimeClient extends smithyClient.Client {
115
114
  }
116
115
  }
117
116
 
118
- class CreateInvocationCommand extends smithyClient.Command
117
+ class CreateInvocationCommand extends client.Command
119
118
  .classBuilder()
120
119
  .ep(commonParams)
121
120
  .m(function (Command, cs, config, o) {
122
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
121
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
123
122
  })
124
123
  .s("AmazonBedrockAgentRunTimeService", "CreateInvocation", {})
125
124
  .n("BedrockAgentRuntimeClient", "CreateInvocationCommand")
@@ -127,11 +126,11 @@ class CreateInvocationCommand extends smithyClient.Command
127
126
  .build() {
128
127
  }
129
128
 
130
- class CreateSessionCommand extends smithyClient.Command
129
+ class CreateSessionCommand extends client.Command
131
130
  .classBuilder()
132
131
  .ep(commonParams)
133
132
  .m(function (Command, cs, config, o) {
134
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
133
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
135
134
  })
136
135
  .s("AmazonBedrockAgentRunTimeService", "CreateSession", {})
137
136
  .n("BedrockAgentRuntimeClient", "CreateSessionCommand")
@@ -139,11 +138,11 @@ class CreateSessionCommand extends smithyClient.Command
139
138
  .build() {
140
139
  }
141
140
 
142
- class DeleteAgentMemoryCommand extends smithyClient.Command
141
+ class DeleteAgentMemoryCommand extends client.Command
143
142
  .classBuilder()
144
143
  .ep(commonParams)
145
144
  .m(function (Command, cs, config, o) {
146
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
145
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
147
146
  })
148
147
  .s("AmazonBedrockAgentRunTimeService", "DeleteAgentMemory", {})
149
148
  .n("BedrockAgentRuntimeClient", "DeleteAgentMemoryCommand")
@@ -151,11 +150,11 @@ class DeleteAgentMemoryCommand extends smithyClient.Command
151
150
  .build() {
152
151
  }
153
152
 
154
- class DeleteSessionCommand extends smithyClient.Command
153
+ class DeleteSessionCommand extends client.Command
155
154
  .classBuilder()
156
155
  .ep(commonParams)
157
156
  .m(function (Command, cs, config, o) {
158
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
157
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
159
158
  })
160
159
  .s("AmazonBedrockAgentRunTimeService", "DeleteSession", {})
161
160
  .n("BedrockAgentRuntimeClient", "DeleteSessionCommand")
@@ -163,11 +162,11 @@ class DeleteSessionCommand extends smithyClient.Command
163
162
  .build() {
164
163
  }
165
164
 
166
- class EndSessionCommand extends smithyClient.Command
165
+ class EndSessionCommand extends client.Command
167
166
  .classBuilder()
168
167
  .ep(commonParams)
169
168
  .m(function (Command, cs, config, o) {
170
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
169
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
171
170
  })
172
171
  .s("AmazonBedrockAgentRunTimeService", "EndSession", {})
173
172
  .n("BedrockAgentRuntimeClient", "EndSessionCommand")
@@ -175,11 +174,11 @@ class EndSessionCommand extends smithyClient.Command
175
174
  .build() {
176
175
  }
177
176
 
178
- class GenerateQueryCommand extends smithyClient.Command
177
+ class GenerateQueryCommand extends client.Command
179
178
  .classBuilder()
180
179
  .ep(commonParams)
181
180
  .m(function (Command, cs, config, o) {
182
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
181
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
183
182
  })
184
183
  .s("AmazonBedrockAgentRunTimeService", "GenerateQuery", {})
185
184
  .n("BedrockAgentRuntimeClient", "GenerateQueryCommand")
@@ -187,11 +186,11 @@ class GenerateQueryCommand extends smithyClient.Command
187
186
  .build() {
188
187
  }
189
188
 
190
- class GetAgentMemoryCommand extends smithyClient.Command
189
+ class GetAgentMemoryCommand extends client.Command
191
190
  .classBuilder()
192
191
  .ep(commonParams)
193
192
  .m(function (Command, cs, config, o) {
194
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
193
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
195
194
  })
196
195
  .s("AmazonBedrockAgentRunTimeService", "GetAgentMemory", {})
197
196
  .n("BedrockAgentRuntimeClient", "GetAgentMemoryCommand")
@@ -199,11 +198,11 @@ class GetAgentMemoryCommand extends smithyClient.Command
199
198
  .build() {
200
199
  }
201
200
 
202
- class GetExecutionFlowSnapshotCommand extends smithyClient.Command
201
+ class GetExecutionFlowSnapshotCommand extends client.Command
203
202
  .classBuilder()
204
203
  .ep(commonParams)
205
204
  .m(function (Command, cs, config, o) {
206
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
205
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
207
206
  })
208
207
  .s("AmazonBedrockAgentRunTimeService", "GetExecutionFlowSnapshot", {})
209
208
  .n("BedrockAgentRuntimeClient", "GetExecutionFlowSnapshotCommand")
@@ -211,11 +210,11 @@ class GetExecutionFlowSnapshotCommand extends smithyClient.Command
211
210
  .build() {
212
211
  }
213
212
 
214
- class GetFlowExecutionCommand extends smithyClient.Command
213
+ class GetFlowExecutionCommand extends client.Command
215
214
  .classBuilder()
216
215
  .ep(commonParams)
217
216
  .m(function (Command, cs, config, o) {
218
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
217
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
219
218
  })
220
219
  .s("AmazonBedrockAgentRunTimeService", "GetFlowExecution", {})
221
220
  .n("BedrockAgentRuntimeClient", "GetFlowExecutionCommand")
@@ -223,11 +222,11 @@ class GetFlowExecutionCommand extends smithyClient.Command
223
222
  .build() {
224
223
  }
225
224
 
226
- class GetInvocationStepCommand extends smithyClient.Command
225
+ class GetInvocationStepCommand extends client.Command
227
226
  .classBuilder()
228
227
  .ep(commonParams)
229
228
  .m(function (Command, cs, config, o) {
230
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
229
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
231
230
  })
232
231
  .s("AmazonBedrockAgentRunTimeService", "GetInvocationStep", {})
233
232
  .n("BedrockAgentRuntimeClient", "GetInvocationStepCommand")
@@ -235,11 +234,11 @@ class GetInvocationStepCommand extends smithyClient.Command
235
234
  .build() {
236
235
  }
237
236
 
238
- class GetSessionCommand extends smithyClient.Command
237
+ class GetSessionCommand extends client.Command
239
238
  .classBuilder()
240
239
  .ep(commonParams)
241
240
  .m(function (Command, cs, config, o) {
242
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
241
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
243
242
  })
244
243
  .s("AmazonBedrockAgentRunTimeService", "GetSession", {})
245
244
  .n("BedrockAgentRuntimeClient", "GetSessionCommand")
@@ -247,11 +246,11 @@ class GetSessionCommand extends smithyClient.Command
247
246
  .build() {
248
247
  }
249
248
 
250
- class InvokeAgentCommand extends smithyClient.Command
249
+ class InvokeAgentCommand extends client.Command
251
250
  .classBuilder()
252
251
  .ep(commonParams)
253
252
  .m(function (Command, cs, config, o) {
254
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
253
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
255
254
  })
256
255
  .s("AmazonBedrockAgentRunTimeService", "InvokeAgent", {
257
256
  eventStream: {
@@ -263,11 +262,11 @@ class InvokeAgentCommand extends smithyClient.Command
263
262
  .build() {
264
263
  }
265
264
 
266
- class InvokeFlowCommand extends smithyClient.Command
265
+ class InvokeFlowCommand extends client.Command
267
266
  .classBuilder()
268
267
  .ep(commonParams)
269
268
  .m(function (Command, cs, config, o) {
270
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
269
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
271
270
  })
272
271
  .s("AmazonBedrockAgentRunTimeService", "InvokeFlow", {
273
272
  eventStream: {
@@ -279,11 +278,11 @@ class InvokeFlowCommand extends smithyClient.Command
279
278
  .build() {
280
279
  }
281
280
 
282
- class InvokeInlineAgentCommand extends smithyClient.Command
281
+ class InvokeInlineAgentCommand extends client.Command
283
282
  .classBuilder()
284
283
  .ep(commonParams)
285
284
  .m(function (Command, cs, config, o) {
286
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
285
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
287
286
  })
288
287
  .s("AmazonBedrockAgentRunTimeService", "InvokeInlineAgent", {
289
288
  eventStream: {
@@ -295,11 +294,11 @@ class InvokeInlineAgentCommand extends smithyClient.Command
295
294
  .build() {
296
295
  }
297
296
 
298
- class ListFlowExecutionEventsCommand extends smithyClient.Command
297
+ class ListFlowExecutionEventsCommand extends client.Command
299
298
  .classBuilder()
300
299
  .ep(commonParams)
301
300
  .m(function (Command, cs, config, o) {
302
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
301
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
303
302
  })
304
303
  .s("AmazonBedrockAgentRunTimeService", "ListFlowExecutionEvents", {})
305
304
  .n("BedrockAgentRuntimeClient", "ListFlowExecutionEventsCommand")
@@ -307,11 +306,11 @@ class ListFlowExecutionEventsCommand extends smithyClient.Command
307
306
  .build() {
308
307
  }
309
308
 
310
- class ListFlowExecutionsCommand extends smithyClient.Command
309
+ class ListFlowExecutionsCommand extends client.Command
311
310
  .classBuilder()
312
311
  .ep(commonParams)
313
312
  .m(function (Command, cs, config, o) {
314
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
313
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
315
314
  })
316
315
  .s("AmazonBedrockAgentRunTimeService", "ListFlowExecutions", {})
317
316
  .n("BedrockAgentRuntimeClient", "ListFlowExecutionsCommand")
@@ -319,11 +318,11 @@ class ListFlowExecutionsCommand extends smithyClient.Command
319
318
  .build() {
320
319
  }
321
320
 
322
- class ListInvocationsCommand extends smithyClient.Command
321
+ class ListInvocationsCommand extends client.Command
323
322
  .classBuilder()
324
323
  .ep(commonParams)
325
324
  .m(function (Command, cs, config, o) {
326
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
325
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
327
326
  })
328
327
  .s("AmazonBedrockAgentRunTimeService", "ListInvocations", {})
329
328
  .n("BedrockAgentRuntimeClient", "ListInvocationsCommand")
@@ -331,11 +330,11 @@ class ListInvocationsCommand extends smithyClient.Command
331
330
  .build() {
332
331
  }
333
332
 
334
- class ListInvocationStepsCommand extends smithyClient.Command
333
+ class ListInvocationStepsCommand extends client.Command
335
334
  .classBuilder()
336
335
  .ep(commonParams)
337
336
  .m(function (Command, cs, config, o) {
338
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
337
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
339
338
  })
340
339
  .s("AmazonBedrockAgentRunTimeService", "ListInvocationSteps", {})
341
340
  .n("BedrockAgentRuntimeClient", "ListInvocationStepsCommand")
@@ -343,11 +342,11 @@ class ListInvocationStepsCommand extends smithyClient.Command
343
342
  .build() {
344
343
  }
345
344
 
346
- class ListSessionsCommand extends smithyClient.Command
345
+ class ListSessionsCommand extends client.Command
347
346
  .classBuilder()
348
347
  .ep(commonParams)
349
348
  .m(function (Command, cs, config, o) {
350
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
349
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
351
350
  })
352
351
  .s("AmazonBedrockAgentRunTimeService", "ListSessions", {})
353
352
  .n("BedrockAgentRuntimeClient", "ListSessionsCommand")
@@ -355,11 +354,11 @@ class ListSessionsCommand extends smithyClient.Command
355
354
  .build() {
356
355
  }
357
356
 
358
- class ListTagsForResourceCommand extends smithyClient.Command
357
+ class ListTagsForResourceCommand extends client.Command
359
358
  .classBuilder()
360
359
  .ep(commonParams)
361
360
  .m(function (Command, cs, config, o) {
362
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
361
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
363
362
  })
364
363
  .s("AmazonBedrockAgentRunTimeService", "ListTagsForResource", {})
365
364
  .n("BedrockAgentRuntimeClient", "ListTagsForResourceCommand")
@@ -367,11 +366,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
367
366
  .build() {
368
367
  }
369
368
 
370
- class OptimizePromptCommand extends smithyClient.Command
369
+ class OptimizePromptCommand extends client.Command
371
370
  .classBuilder()
372
371
  .ep(commonParams)
373
372
  .m(function (Command, cs, config, o) {
374
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
373
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
375
374
  })
376
375
  .s("AmazonBedrockAgentRunTimeService", "OptimizePrompt", {
377
376
  eventStream: {
@@ -383,11 +382,11 @@ class OptimizePromptCommand extends smithyClient.Command
383
382
  .build() {
384
383
  }
385
384
 
386
- class PutInvocationStepCommand extends smithyClient.Command
385
+ class PutInvocationStepCommand extends client.Command
387
386
  .classBuilder()
388
387
  .ep(commonParams)
389
388
  .m(function (Command, cs, config, o) {
390
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
389
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
391
390
  })
392
391
  .s("AmazonBedrockAgentRunTimeService", "PutInvocationStep", {})
393
392
  .n("BedrockAgentRuntimeClient", "PutInvocationStepCommand")
@@ -395,11 +394,11 @@ class PutInvocationStepCommand extends smithyClient.Command
395
394
  .build() {
396
395
  }
397
396
 
398
- class RerankCommand extends smithyClient.Command
397
+ class RerankCommand extends client.Command
399
398
  .classBuilder()
400
399
  .ep(commonParams)
401
400
  .m(function (Command, cs, config, o) {
402
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
401
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
403
402
  })
404
403
  .s("AmazonBedrockAgentRunTimeService", "Rerank", {})
405
404
  .n("BedrockAgentRuntimeClient", "RerankCommand")
@@ -407,11 +406,11 @@ class RerankCommand extends smithyClient.Command
407
406
  .build() {
408
407
  }
409
408
 
410
- class RetrieveAndGenerateCommand extends smithyClient.Command
409
+ class RetrieveAndGenerateCommand extends client.Command
411
410
  .classBuilder()
412
411
  .ep(commonParams)
413
412
  .m(function (Command, cs, config, o) {
414
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
413
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
415
414
  })
416
415
  .s("AmazonBedrockAgentRunTimeService", "RetrieveAndGenerate", {})
417
416
  .n("BedrockAgentRuntimeClient", "RetrieveAndGenerateCommand")
@@ -419,11 +418,11 @@ class RetrieveAndGenerateCommand extends smithyClient.Command
419
418
  .build() {
420
419
  }
421
420
 
422
- class RetrieveAndGenerateStreamCommand extends smithyClient.Command
421
+ class RetrieveAndGenerateStreamCommand extends client.Command
423
422
  .classBuilder()
424
423
  .ep(commonParams)
425
424
  .m(function (Command, cs, config, o) {
426
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
425
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
427
426
  })
428
427
  .s("AmazonBedrockAgentRunTimeService", "RetrieveAndGenerateStream", {
429
428
  eventStream: {
@@ -435,11 +434,11 @@ class RetrieveAndGenerateStreamCommand extends smithyClient.Command
435
434
  .build() {
436
435
  }
437
436
 
438
- class RetrieveCommand extends smithyClient.Command
437
+ class RetrieveCommand extends client.Command
439
438
  .classBuilder()
440
439
  .ep(commonParams)
441
440
  .m(function (Command, cs, config, o) {
442
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
441
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
443
442
  })
444
443
  .s("AmazonBedrockAgentRunTimeService", "Retrieve", {})
445
444
  .n("BedrockAgentRuntimeClient", "RetrieveCommand")
@@ -447,11 +446,11 @@ class RetrieveCommand extends smithyClient.Command
447
446
  .build() {
448
447
  }
449
448
 
450
- class StartFlowExecutionCommand extends smithyClient.Command
449
+ class StartFlowExecutionCommand extends client.Command
451
450
  .classBuilder()
452
451
  .ep(commonParams)
453
452
  .m(function (Command, cs, config, o) {
454
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
453
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
455
454
  })
456
455
  .s("AmazonBedrockAgentRunTimeService", "StartFlowExecution", {})
457
456
  .n("BedrockAgentRuntimeClient", "StartFlowExecutionCommand")
@@ -459,11 +458,11 @@ class StartFlowExecutionCommand extends smithyClient.Command
459
458
  .build() {
460
459
  }
461
460
 
462
- class StopFlowExecutionCommand extends smithyClient.Command
461
+ class StopFlowExecutionCommand extends client.Command
463
462
  .classBuilder()
464
463
  .ep(commonParams)
465
464
  .m(function (Command, cs, config, o) {
466
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
465
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
467
466
  })
468
467
  .s("AmazonBedrockAgentRunTimeService", "StopFlowExecution", {})
469
468
  .n("BedrockAgentRuntimeClient", "StopFlowExecutionCommand")
@@ -471,11 +470,11 @@ class StopFlowExecutionCommand extends smithyClient.Command
471
470
  .build() {
472
471
  }
473
472
 
474
- class TagResourceCommand extends smithyClient.Command
473
+ class TagResourceCommand extends client.Command
475
474
  .classBuilder()
476
475
  .ep(commonParams)
477
476
  .m(function (Command, cs, config, o) {
478
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
477
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
479
478
  })
480
479
  .s("AmazonBedrockAgentRunTimeService", "TagResource", {})
481
480
  .n("BedrockAgentRuntimeClient", "TagResourceCommand")
@@ -483,11 +482,11 @@ class TagResourceCommand extends smithyClient.Command
483
482
  .build() {
484
483
  }
485
484
 
486
- class UntagResourceCommand extends smithyClient.Command
485
+ class UntagResourceCommand extends client.Command
487
486
  .classBuilder()
488
487
  .ep(commonParams)
489
488
  .m(function (Command, cs, config, o) {
490
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
489
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
491
490
  })
492
491
  .s("AmazonBedrockAgentRunTimeService", "UntagResource", {})
493
492
  .n("BedrockAgentRuntimeClient", "UntagResourceCommand")
@@ -495,11 +494,11 @@ class UntagResourceCommand extends smithyClient.Command
495
494
  .build() {
496
495
  }
497
496
 
498
- class UpdateSessionCommand extends smithyClient.Command
497
+ class UpdateSessionCommand extends client.Command
499
498
  .classBuilder()
500
499
  .ep(commonParams)
501
500
  .m(function (Command, cs, config, o) {
502
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
501
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
503
502
  })
504
503
  .s("AmazonBedrockAgentRunTimeService", "UpdateSession", {})
505
504
  .n("BedrockAgentRuntimeClient", "UpdateSessionCommand")
@@ -568,7 +567,7 @@ const paginators = {
568
567
  };
569
568
  class BedrockAgentRuntime extends BedrockAgentRuntimeClient {
570
569
  }
571
- smithyClient.createAggregatedClient(commands, BedrockAgentRuntime, { paginators });
570
+ client.createAggregatedClient(commands, BedrockAgentRuntime, { paginators });
572
571
 
573
572
  const CustomControlMethod = {
574
573
  RETURN_CONTROL: "RETURN_CONTROL",
@@ -913,8 +912,8 @@ const ImageFormat = {
913
912
  WEBP: "webp",
914
913
  };
915
914
 
916
- exports.$Command = smithyClient.Command;
917
- exports.__Client = smithyClient.Client;
915
+ exports.$Command = client.Command;
916
+ exports.__Client = client.Client;
918
917
  exports.BedrockAgentRuntimeServiceException = BedrockAgentRuntimeServiceException.BedrockAgentRuntimeServiceException;
919
918
  exports.ActionGroupSignature = ActionGroupSignature;
920
919
  exports.ActionInvocationType = ActionInvocationType;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BedrockAgentRuntimeServiceException = exports.__ServiceException = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
- class BedrockAgentRuntimeServiceException extends smithy_client_1.ServiceException {
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
6
+ class BedrockAgentRuntimeServiceException extends client_1.ServiceException {
7
7
  constructor(options) {
8
8
  super(options);
9
9
  Object.setPrototypeOf(this, BedrockAgentRuntimeServiceException.prototype);
@@ -5,36 +5,34 @@ const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
7
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
8
- const config_resolver_1 = require("@smithy/config-resolver");
9
- const eventstream_serde_browser_1 = require("@smithy/eventstream-serde-browser");
8
+ const client_1 = require("@smithy/core/client");
9
+ const config_1 = require("@smithy/core/config");
10
+ const event_streams_1 = require("@smithy/core/event-streams");
11
+ const retry_1 = require("@smithy/core/retry");
12
+ const serde_1 = require("@smithy/core/serde");
10
13
  const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
11
- const invalid_dependency_1 = require("@smithy/invalid-dependency");
12
- const smithy_client_1 = require("@smithy/smithy-client");
13
- const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
14
- const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
15
- const util_retry_1 = require("@smithy/util-retry");
16
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
17
15
  const getRuntimeConfig = (config) => {
18
- const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
19
- const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
16
+ const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
17
+ const defaultConfigProvider = () => defaultsMode().then(client_1.loadConfigsForDefaultMode);
20
18
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
21
19
  return {
22
20
  ...clientSharedValues,
23
21
  ...config,
24
22
  runtime: "browser",
25
23
  defaultsMode,
26
- bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
24
+ bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
27
25
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
28
26
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
29
- eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_browser_1.eventStreamSerdeProvider,
30
- maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
31
- region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
27
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? event_streams_1.eventStreamSerdeProvider,
28
+ maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
29
+ region: config?.region ?? (0, client_1.invalidProvider)("Region is missing"),
32
30
  requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
33
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
31
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
34
32
  sha256: config?.sha256 ?? sha256_browser_1.Sha256,
35
33
  streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
36
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
37
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
34
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
35
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_FIPS_ENDPOINT)),
38
36
  };
39
37
  };
40
38
  exports.getRuntimeConfig = getRuntimeConfig;