@aws-sdk/client-bedrock-runtime 3.1045.0 → 3.1046.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 (67) 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 +38 -39
  5. package/dist-cjs/models/BedrockRuntimeServiceException.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.native.js +2 -2
  9. package/dist-cjs/runtimeConfig.shared.js +9 -10
  10. package/dist-es/BedrockRuntime.js +1 -1
  11. package/dist-es/BedrockRuntimeClient.js +6 -6
  12. package/dist-es/auth/httpAuthSchemeProvider.js +1 -1
  13. package/dist-es/commands/ApplyGuardrailCommand.js +2 -2
  14. package/dist-es/commands/ConverseCommand.js +2 -2
  15. package/dist-es/commands/ConverseStreamCommand.js +2 -2
  16. package/dist-es/commands/CountTokensCommand.js +2 -2
  17. package/dist-es/commands/GetAsyncInvokeCommand.js +2 -2
  18. package/dist-es/commands/InvokeModelCommand.js +2 -2
  19. package/dist-es/commands/InvokeModelWithBidirectionalStreamCommand.js +2 -2
  20. package/dist-es/commands/InvokeModelWithResponseStreamCommand.js +2 -2
  21. package/dist-es/commands/ListAsyncInvokesCommand.js +2 -2
  22. package/dist-es/commands/StartAsyncInvokeCommand.js +2 -2
  23. package/dist-es/endpoint/bdd.js +1 -1
  24. package/dist-es/endpoint/endpointResolver.js +1 -1
  25. package/dist-es/models/BedrockRuntimeServiceException.js +1 -1
  26. package/dist-es/runtimeConfig.browser.js +5 -7
  27. package/dist-es/runtimeConfig.js +5 -9
  28. package/dist-es/runtimeConfig.native.js +1 -1
  29. package/dist-es/runtimeConfig.shared.js +3 -4
  30. package/dist-es/runtimeExtensions.js +2 -2
  31. package/dist-types/BedrockRuntimeClient.d.ts +6 -6
  32. package/dist-types/commands/ApplyGuardrailCommand.d.ts +6 -4
  33. package/dist-types/commands/ConverseCommand.d.ts +6 -4
  34. package/dist-types/commands/ConverseStreamCommand.d.ts +6 -4
  35. package/dist-types/commands/CountTokensCommand.d.ts +6 -4
  36. package/dist-types/commands/GetAsyncInvokeCommand.d.ts +6 -4
  37. package/dist-types/commands/InvokeModelCommand.d.ts +7 -5
  38. package/dist-types/commands/InvokeModelWithBidirectionalStreamCommand.d.ts +6 -4
  39. package/dist-types/commands/InvokeModelWithResponseStreamCommand.d.ts +6 -4
  40. package/dist-types/commands/ListAsyncInvokesCommand.d.ts +6 -4
  41. package/dist-types/commands/StartAsyncInvokeCommand.d.ts +6 -4
  42. package/dist-types/endpoint/bdd.d.ts +1 -1
  43. package/dist-types/extensionConfiguration.d.ts +1 -1
  44. package/dist-types/models/BedrockRuntimeServiceException.d.ts +1 -1
  45. package/dist-types/models/errors.d.ts +1 -1
  46. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  47. package/dist-types/runtimeConfig.d.ts +2 -2
  48. package/dist-types/runtimeConfig.native.d.ts +2 -2
  49. package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +12 -18
  50. package/dist-types/ts3.4/commands/ApplyGuardrailCommand.d.ts +6 -4
  51. package/dist-types/ts3.4/commands/ConverseCommand.d.ts +6 -8
  52. package/dist-types/ts3.4/commands/ConverseStreamCommand.d.ts +6 -4
  53. package/dist-types/ts3.4/commands/CountTokensCommand.d.ts +6 -4
  54. package/dist-types/ts3.4/commands/GetAsyncInvokeCommand.d.ts +6 -4
  55. package/dist-types/ts3.4/commands/InvokeModelCommand.d.ts +7 -5
  56. package/dist-types/ts3.4/commands/InvokeModelWithBidirectionalStreamCommand.d.ts +6 -4
  57. package/dist-types/ts3.4/commands/InvokeModelWithResponseStreamCommand.d.ts +6 -4
  58. package/dist-types/ts3.4/commands/ListAsyncInvokesCommand.d.ts +6 -4
  59. package/dist-types/ts3.4/commands/StartAsyncInvokeCommand.d.ts +6 -4
  60. package/dist-types/ts3.4/endpoint/bdd.d.ts +1 -1
  61. package/dist-types/ts3.4/extensionConfiguration.d.ts +1 -1
  62. package/dist-types/ts3.4/models/BedrockRuntimeServiceException.d.ts +1 -1
  63. package/dist-types/ts3.4/models/errors.d.ts +1 -1
  64. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  65. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  66. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -4
  67. package/package.json +18 -43
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveHttpAuthSchemeConfig = exports.defaultBedrockRuntimeHttpAuthSchemeProvider = exports.defaultBedrockRuntimeHttpAuthSchemeParametersProvider = void 0;
4
4
  const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
5
  const core_1 = require("@smithy/core");
6
- const util_middleware_1 = require("@smithy/util-middleware");
6
+ const client_1 = require("@smithy/core/client");
7
7
  const defaultBedrockRuntimeHttpAuthSchemeParametersProvider = async (config, context, input) => {
8
8
  return {
9
- operation: (0, util_middleware_1.getSmithyContext)(context).operation,
10
- region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
9
+ operation: (0, client_1.getSmithyContext)(context).operation,
10
+ region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
11
11
  throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
12
12
  })(),
13
13
  };
@@ -56,7 +56,7 @@ const resolveHttpAuthSchemeConfig = (config) => {
56
56
  const token = (0, core_1.memoizeIdentityProvider)(config.token, core_1.isIdentityExpired, core_1.doesIdentityRequireRefresh);
57
57
  const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
58
58
  return Object.assign(config_0, {
59
- authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
59
+ authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
60
60
  token,
61
61
  });
62
62
  };
@@ -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
@@ -6,18 +6,17 @@ var middlewareLogger = require('@aws-sdk/middleware-logger');
6
6
  var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
7
7
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
8
8
  var middlewareWebsocket = require('@aws-sdk/middleware-websocket');
9
- var configResolver = require('@smithy/config-resolver');
10
9
  var core = require('@smithy/core');
10
+ var client = require('@smithy/core/client');
11
+ var config = require('@smithy/core/config');
12
+ var endpoints = require('@smithy/core/endpoints');
13
+ var eventStreams = require('@smithy/core/event-streams');
14
+ var protocols = require('@smithy/core/protocols');
15
+ var retry = require('@smithy/core/retry');
11
16
  var schema = require('@smithy/core/schema');
12
- var eventstreamSerdeConfigResolver = require('@smithy/eventstream-serde-config-resolver');
13
- var middlewareContentLength = require('@smithy/middleware-content-length');
14
- var middlewareEndpoint = require('@smithy/middleware-endpoint');
15
- var middlewareRetry = require('@smithy/middleware-retry');
16
- var smithyClient = require('@smithy/smithy-client');
17
17
  var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
18
18
  var runtimeConfig = require('./runtimeConfig');
19
19
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
20
- var protocolHttp = require('@smithy/protocol-http');
21
20
  var schemas_0 = require('./schemas/schemas_0');
22
21
  var errors = require('./models/errors');
23
22
  var BedrockRuntimeServiceException = require('./models/BedrockRuntimeServiceException');
@@ -84,12 +83,12 @@ const resolveHttpAuthRuntimeConfig = (config) => {
84
83
  };
85
84
 
86
85
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
87
- const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
86
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
88
87
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
89
- return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
88
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
90
89
  };
91
90
 
92
- class BedrockRuntimeClient extends smithyClient.Client {
91
+ class BedrockRuntimeClient extends client.Client {
93
92
  config;
94
93
  constructor(...[configuration]) {
95
94
  const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
@@ -97,11 +96,11 @@ class BedrockRuntimeClient extends smithyClient.Client {
97
96
  this.initConfig = _config_0;
98
97
  const _config_1 = resolveClientEndpointParameters(_config_0);
99
98
  const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
100
- const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
101
- const _config_4 = configResolver.resolveRegionConfig(_config_3);
99
+ const _config_3 = retry.resolveRetryConfig(_config_2);
100
+ const _config_4 = config.resolveRegionConfig(_config_3);
102
101
  const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
103
- const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
104
- const _config_7 = eventstreamSerdeConfigResolver.resolveEventStreamSerdeConfig(_config_6);
102
+ const _config_6 = endpoints.resolveEndpointConfig(_config_5);
103
+ const _config_7 = eventStreams.resolveEventStreamSerdeConfig(_config_6);
105
104
  const _config_8 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_7);
106
105
  const _config_9 = middlewareEventstream.resolveEventStreamConfig(_config_8);
107
106
  const _config_10 = middlewareWebsocket.resolveWebSocketConfig(_config_9);
@@ -109,8 +108,8 @@ class BedrockRuntimeClient extends smithyClient.Client {
109
108
  this.config = _config_11;
110
109
  this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
111
110
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
112
- this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
113
- this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
111
+ this.middlewareStack.use(retry.getRetryPlugin(this.config));
112
+ this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
114
113
  this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
115
114
  this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
116
115
  this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
@@ -128,11 +127,11 @@ class BedrockRuntimeClient extends smithyClient.Client {
128
127
  }
129
128
  }
130
129
 
131
- class ApplyGuardrailCommand extends smithyClient.Command
130
+ class ApplyGuardrailCommand extends client.Command
132
131
  .classBuilder()
133
132
  .ep(commonParams)
134
133
  .m(function (Command, cs, config, o) {
135
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
134
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
136
135
  })
137
136
  .s("AmazonBedrockFrontendService", "ApplyGuardrail", {})
138
137
  .n("BedrockRuntimeClient", "ApplyGuardrailCommand")
@@ -140,11 +139,11 @@ class ApplyGuardrailCommand extends smithyClient.Command
140
139
  .build() {
141
140
  }
142
141
 
143
- class ConverseCommand extends smithyClient.Command
142
+ class ConverseCommand extends client.Command
144
143
  .classBuilder()
145
144
  .ep(commonParams)
146
145
  .m(function (Command, cs, config, o) {
147
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
146
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
148
147
  })
149
148
  .s("AmazonBedrockFrontendService", "Converse", {})
150
149
  .n("BedrockRuntimeClient", "ConverseCommand")
@@ -152,11 +151,11 @@ class ConverseCommand extends smithyClient.Command
152
151
  .build() {
153
152
  }
154
153
 
155
- class ConverseStreamCommand extends smithyClient.Command
154
+ class ConverseStreamCommand extends client.Command
156
155
  .classBuilder()
157
156
  .ep(commonParams)
158
157
  .m(function (Command, cs, config, o) {
159
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
158
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
160
159
  })
161
160
  .s("AmazonBedrockFrontendService", "ConverseStream", {
162
161
  eventStream: {
@@ -168,11 +167,11 @@ class ConverseStreamCommand extends smithyClient.Command
168
167
  .build() {
169
168
  }
170
169
 
171
- class CountTokensCommand extends smithyClient.Command
170
+ class CountTokensCommand extends client.Command
172
171
  .classBuilder()
173
172
  .ep(commonParams)
174
173
  .m(function (Command, cs, config, o) {
175
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
174
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
176
175
  })
177
176
  .s("AmazonBedrockFrontendService", "CountTokens", {})
178
177
  .n("BedrockRuntimeClient", "CountTokensCommand")
@@ -180,11 +179,11 @@ class CountTokensCommand extends smithyClient.Command
180
179
  .build() {
181
180
  }
182
181
 
183
- class GetAsyncInvokeCommand extends smithyClient.Command
182
+ class GetAsyncInvokeCommand extends client.Command
184
183
  .classBuilder()
185
184
  .ep(commonParams)
186
185
  .m(function (Command, cs, config, o) {
187
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
186
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
188
187
  })
189
188
  .s("AmazonBedrockFrontendService", "GetAsyncInvoke", {})
190
189
  .n("BedrockRuntimeClient", "GetAsyncInvokeCommand")
@@ -192,11 +191,11 @@ class GetAsyncInvokeCommand extends smithyClient.Command
192
191
  .build() {
193
192
  }
194
193
 
195
- class InvokeModelCommand extends smithyClient.Command
194
+ class InvokeModelCommand extends client.Command
196
195
  .classBuilder()
197
196
  .ep(commonParams)
198
197
  .m(function (Command, cs, config, o) {
199
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
198
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
200
199
  })
201
200
  .s("AmazonBedrockFrontendService", "InvokeModel", {})
202
201
  .n("BedrockRuntimeClient", "InvokeModelCommand")
@@ -204,12 +203,12 @@ class InvokeModelCommand extends smithyClient.Command
204
203
  .build() {
205
204
  }
206
205
 
207
- class InvokeModelWithBidirectionalStreamCommand extends smithyClient.Command
206
+ class InvokeModelWithBidirectionalStreamCommand extends client.Command
208
207
  .classBuilder()
209
208
  .ep(commonParams)
210
209
  .m(function (Command, cs, config, o) {
211
210
  return [
212
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
211
+ endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
213
212
  middlewareEventstream.getEventStreamPlugin(config),
214
213
  middlewareWebsocket.getWebSocketPlugin(config, {
215
214
  headerPrefix: 'x-amz-bedrock-',
@@ -227,11 +226,11 @@ class InvokeModelWithBidirectionalStreamCommand extends smithyClient.Command
227
226
  .build() {
228
227
  }
229
228
 
230
- class InvokeModelWithResponseStreamCommand extends smithyClient.Command
229
+ class InvokeModelWithResponseStreamCommand extends client.Command
231
230
  .classBuilder()
232
231
  .ep(commonParams)
233
232
  .m(function (Command, cs, config, o) {
234
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
233
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
235
234
  })
236
235
  .s("AmazonBedrockFrontendService", "InvokeModelWithResponseStream", {
237
236
  eventStream: {
@@ -243,11 +242,11 @@ class InvokeModelWithResponseStreamCommand extends smithyClient.Command
243
242
  .build() {
244
243
  }
245
244
 
246
- class ListAsyncInvokesCommand extends smithyClient.Command
245
+ class ListAsyncInvokesCommand extends client.Command
247
246
  .classBuilder()
248
247
  .ep(commonParams)
249
248
  .m(function (Command, cs, config, o) {
250
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
249
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
251
250
  })
252
251
  .s("AmazonBedrockFrontendService", "ListAsyncInvokes", {})
253
252
  .n("BedrockRuntimeClient", "ListAsyncInvokesCommand")
@@ -255,11 +254,11 @@ class ListAsyncInvokesCommand extends smithyClient.Command
255
254
  .build() {
256
255
  }
257
256
 
258
- class StartAsyncInvokeCommand extends smithyClient.Command
257
+ class StartAsyncInvokeCommand extends client.Command
259
258
  .classBuilder()
260
259
  .ep(commonParams)
261
260
  .m(function (Command, cs, config, o) {
262
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
261
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
263
262
  })
264
263
  .s("AmazonBedrockFrontendService", "StartAsyncInvoke", {})
265
264
  .n("BedrockRuntimeClient", "StartAsyncInvokeCommand")
@@ -286,7 +285,7 @@ const paginators = {
286
285
  };
287
286
  class BedrockRuntime extends BedrockRuntimeClient {
288
287
  }
289
- smithyClient.createAggregatedClient(commands, BedrockRuntime, { paginators });
288
+ client.createAggregatedClient(commands, BedrockRuntime, { paginators });
290
289
 
291
290
  const AsyncInvokeStatus = {
292
291
  COMPLETED: "Completed",
@@ -529,8 +528,8 @@ const Trace = {
529
528
  ENABLED_FULL: "ENABLED_FULL",
530
529
  };
531
530
 
532
- exports.$Command = smithyClient.Command;
533
- exports.__Client = smithyClient.Client;
531
+ exports.$Command = client.Command;
532
+ exports.__Client = client.Client;
534
533
  exports.BedrockRuntimeServiceException = BedrockRuntimeServiceException.BedrockRuntimeServiceException;
535
534
  exports.ApplyGuardrailCommand = ApplyGuardrailCommand;
536
535
  exports.AsyncInvokeStatus = AsyncInvokeStatus;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BedrockRuntimeServiceException = 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 BedrockRuntimeServiceException 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 BedrockRuntimeServiceException extends client_1.ServiceException {
7
7
  constructor(options) {
8
8
  super(options);
9
9
  Object.setPrototypeOf(this, BedrockRuntimeServiceException.prototype);
@@ -6,38 +6,36 @@ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
7
  const middleware_websocket_1 = require("@aws-sdk/middleware-websocket");
8
8
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
9
- const config_resolver_1 = require("@smithy/config-resolver");
10
- const eventstream_serde_browser_1 = require("@smithy/eventstream-serde-browser");
9
+ const client_1 = require("@smithy/core/client");
10
+ const config_1 = require("@smithy/core/config");
11
+ const event_streams_1 = require("@smithy/core/event-streams");
12
+ const retry_1 = require("@smithy/core/retry");
13
+ const serde_1 = require("@smithy/core/serde");
11
14
  const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
12
- const invalid_dependency_1 = require("@smithy/invalid-dependency");
13
- const smithy_client_1 = require("@smithy/smithy-client");
14
- const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
15
- const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
16
- const util_retry_1 = require("@smithy/util-retry");
17
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
16
  const getRuntimeConfig = (config) => {
19
- const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
20
- const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
17
+ const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
18
+ const defaultConfigProvider = () => defaultsMode().then(client_1.loadConfigsForDefaultMode);
21
19
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
22
20
  return {
23
21
  ...clientSharedValues,
24
22
  ...config,
25
23
  runtime: "browser",
26
24
  defaultsMode,
27
- bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
25
+ bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
28
26
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
29
27
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
30
28
  eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? middleware_websocket_1.eventStreamPayloadHandlerProvider,
31
- eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_browser_1.eventStreamSerdeProvider,
32
- maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
33
- region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
29
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? event_streams_1.eventStreamSerdeProvider,
30
+ maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
31
+ region: config?.region ?? (0, client_1.invalidProvider)("Region is missing"),
34
32
  requestHandler: middleware_websocket_1.WebSocketFetchHandler.create(config?.requestHandler
35
33
  ?? defaultConfigProvider, fetch_http_handler_1.FetchHttpHandler.create(defaultConfigProvider)),
36
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
34
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
37
35
  sha256: config?.sha256 ?? sha256_browser_1.Sha256,
38
36
  streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
39
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
37
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
38
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
39
  };
42
40
  };
43
41
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -9,22 +9,18 @@ const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
9
9
  const eventstream_handler_node_1 = require("@aws-sdk/eventstream-handler-node");
10
10
  const token_providers_1 = require("@aws-sdk/token-providers");
11
11
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
12
- const config_resolver_1 = require("@smithy/config-resolver");
13
12
  const core_1 = require("@smithy/core");
14
- const eventstream_serde_node_1 = require("@smithy/eventstream-serde-node");
15
- const hash_node_1 = require("@smithy/hash-node");
16
- const middleware_retry_1 = require("@smithy/middleware-retry");
17
- const node_config_provider_1 = require("@smithy/node-config-provider");
13
+ const client_2 = require("@smithy/core/client");
14
+ const config_1 = require("@smithy/core/config");
15
+ const event_streams_1 = require("@smithy/core/event-streams");
16
+ const retry_1 = require("@smithy/core/retry");
17
+ const serde_1 = require("@smithy/core/serde");
18
18
  const node_http_handler_1 = require("@smithy/node-http-handler");
19
- const smithy_client_1 = require("@smithy/smithy-client");
20
- const util_body_length_node_1 = require("@smithy/util-body-length-node");
21
- const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
22
- const util_retry_1 = require("@smithy/util-retry");
23
19
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
24
20
  const getRuntimeConfig = (config) => {
25
- (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
26
- const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
27
- const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
21
+ (0, client_2.emitWarningIfUnsupportedVersion)(process.version);
22
+ const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
28
24
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
29
25
  (0, client_1.emitWarningIfUnsupportedVersion)(process.version);
30
26
  const loaderConfig = {
@@ -37,12 +33,12 @@ const getRuntimeConfig = (config) => {
37
33
  ...config,
38
34
  runtime: "node",
39
35
  defaultsMode,
40
- authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
41
- bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
36
+ authSchemePreference: config?.authSchemePreference ?? (0, config_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
37
+ bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
42
38
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
43
39
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
44
40
  eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventstream_handler_node_1.eventStreamPayloadHandlerProvider,
45
- eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
41
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? event_streams_1.eventStreamSerdeProvider,
46
42
  httpAuthSchemes: config?.httpAuthSchemes ?? [
47
43
  {
48
44
  schemeId: "aws.auth#sigv4",
@@ -62,22 +58,22 @@ const getRuntimeConfig = (config) => {
62
58
  signer: new core_1.HttpBearerAuthSigner(),
63
59
  },
64
60
  ],
65
- maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
66
- region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
61
+ maxAttempts: config?.maxAttempts ?? (0, config_1.loadConfig)(retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
62
+ region: config?.region ?? (0, config_1.loadConfig)(config_1.NODE_REGION_CONFIG_OPTIONS, { ...config_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
67
63
  requestHandler: node_http_handler_1.NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({
68
64
  ...await defaultConfigProvider(),
69
65
  disableConcurrentStreams: true
70
66
  }))),
71
67
  retryMode: config?.retryMode ??
72
- (0, node_config_provider_1.loadConfig)({
73
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
74
- default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
68
+ (0, config_1.loadConfig)({
69
+ ...retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
70
+ default: async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE,
75
71
  }, config),
76
- sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
72
+ sha256: config?.sha256 ?? serde_1.Hash.bind(null, "sha256"),
77
73
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
78
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
79
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
80
- userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
74
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
75
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
76
+ userAgentAppId: config?.userAgentAppId ?? (0, config_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
81
77
  };
82
78
  };
83
79
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
- const invalid_dependency_1 = require("@smithy/invalid-dependency");
5
+ const client_1 = require("@smithy/core/client");
6
6
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
7
7
  const getRuntimeConfig = (config) => {
8
8
  const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
@@ -11,7 +11,7 @@ const getRuntimeConfig = (config) => {
11
11
  ...config,
12
12
  runtime: "react-native",
13
13
  eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => ({
14
- handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in ReactNative."),
14
+ handle: (0, client_1.invalidFunction)("event stream request is not supported in ReactNative."),
15
15
  })),
16
16
  sha256: config?.sha256 ?? sha256_js_1.Sha256,
17
17
  };
@@ -4,18 +4,17 @@ exports.getRuntimeConfig = void 0;
4
4
  const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
5
  const protocols_1 = require("@aws-sdk/core/protocols");
6
6
  const core_1 = require("@smithy/core");
7
- const smithy_client_1 = require("@smithy/smithy-client");
8
- const url_parser_1 = require("@smithy/url-parser");
9
- const util_base64_1 = require("@smithy/util-base64");
10
- const util_utf8_1 = require("@smithy/util-utf8");
7
+ const client_1 = require("@smithy/core/client");
8
+ const protocols_2 = require("@smithy/core/protocols");
9
+ const serde_1 = require("@smithy/core/serde");
11
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
12
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
13
12
  const schemas_0_1 = require("./schemas/schemas_0");
14
13
  const getRuntimeConfig = (config) => {
15
14
  return {
16
15
  apiVersion: "2023-09-30",
17
- base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
18
- base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
16
+ base64Decoder: config?.base64Decoder ?? serde_1.fromBase64,
17
+ base64Encoder: config?.base64Encoder ?? serde_1.toBase64,
19
18
  disableHostPrefix: config?.disableHostPrefix ?? false,
20
19
  endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
21
20
  extensions: config?.extensions ?? [],
@@ -32,7 +31,7 @@ const getRuntimeConfig = (config) => {
32
31
  signer: new core_1.HttpBearerAuthSigner(),
33
32
  },
34
33
  ],
35
- logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
34
+ logger: config?.logger ?? new client_1.NoOpLogger(),
36
35
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
37
36
  protocolSettings: config?.protocolSettings ?? {
38
37
  defaultNamespace: "com.amazonaws.bedrockruntime",
@@ -41,9 +40,9 @@ const getRuntimeConfig = (config) => {
41
40
  serviceTarget: "AmazonBedrockFrontendService",
42
41
  },
43
42
  serviceId: config?.serviceId ?? "Bedrock Runtime",
44
- urlParser: config?.urlParser ?? url_parser_1.parseUrl,
45
- utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
46
- utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
43
+ urlParser: config?.urlParser ?? protocols_2.parseUrl,
44
+ utf8Decoder: config?.utf8Decoder ?? serde_1.fromUtf8,
45
+ utf8Encoder: config?.utf8Encoder ?? serde_1.toUtf8,
47
46
  };
48
47
  };
49
48
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,4 +1,4 @@
1
- import { createAggregatedClient } from "@smithy/smithy-client";
1
+ import { createAggregatedClient } from "@smithy/core/client";
2
2
  import { BedrockRuntimeClient } from "./BedrockRuntimeClient";
3
3
  import { ApplyGuardrailCommand, } from "./commands/ApplyGuardrailCommand";
4
4
  import { ConverseCommand } from "./commands/ConverseCommand";
@@ -4,14 +4,14 @@ import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
4
4
  import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
5
5
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
6
6
  import { resolveWebSocketConfig, } from "@aws-sdk/middleware-websocket";
7
- import { resolveRegionConfig } from "@smithy/config-resolver";
8
7
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
8
+ import { Client as __Client, } from "@smithy/core/client";
9
+ import { resolveRegionConfig } from "@smithy/core/config";
10
+ import { resolveEndpointConfig } from "@smithy/core/endpoints";
11
+ import { resolveEventStreamSerdeConfig, } from "@smithy/core/event-streams";
12
+ import { getContentLengthPlugin } from "@smithy/core/protocols";
13
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
9
14
  import { getSchemaSerdePlugin } from "@smithy/core/schema";
10
- import { resolveEventStreamSerdeConfig, } from "@smithy/eventstream-serde-config-resolver";
11
- import { getContentLengthPlugin } from "@smithy/middleware-content-length";
12
- import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
13
- import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
14
- import { Client as __Client, } from "@smithy/smithy-client";
15
15
  import { defaultBedrockRuntimeHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
16
16
  import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
17
17
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
@@ -1,6 +1,6 @@
1
1
  import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } from "@smithy/core";
3
- import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
+ import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
4
4
  export const defaultBedrockRuntimeHttpAuthSchemeParametersProvider = async (config, context, input) => {
5
5
  return {
6
6
  operation: getSmithyContext(context).operation,
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { ApplyGuardrail$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { Converse$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { ConverseStream$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { CountTokens$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { GetAsyncInvoke$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { InvokeModel$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,7 +1,7 @@
1
1
  import { getEventStreamPlugin } from "@aws-sdk/middleware-eventstream";
2
2
  import { getWebSocketPlugin } from "@aws-sdk/middleware-websocket";
3
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
4
- import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Command as $Command } from "@smithy/core/client";
4
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
5
5
  import { commonParams } from "../endpoint/EndpointParameters";
6
6
  import { InvokeModelWithBidirectionalStream$ } from "../schemas/schemas_0";
7
7
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { InvokeModelWithResponseStream$ } from "../schemas/schemas_0";
5
5
  export { $Command };