@aws-sdk/client-sagemaker-runtime-http2 3.1067.0 → 3.1069.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.
@@ -1,17 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveHttpAuthSchemeConfig = exports.defaultSageMakerRuntimeHTTP2HttpAuthSchemeProvider = exports.defaultSageMakerRuntimeHTTP2HttpAuthSchemeParametersProvider = void 0;
4
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
- const client_1 = require("@smithy/core/client");
6
- const defaultSageMakerRuntimeHTTP2HttpAuthSchemeParametersProvider = async (config, context, input) => {
1
+ const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
2
+ const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
3
+ exports.defaultSageMakerRuntimeHTTP2HttpAuthSchemeParametersProvider = async (config, context, input) => {
7
4
  return {
8
- operation: (0, client_1.getSmithyContext)(context).operation,
9
- region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
5
+ operation: getSmithyContext(context).operation,
6
+ region: await normalizeProvider(config.region)() || (() => {
10
7
  throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
8
  })(),
12
9
  };
13
10
  };
14
- exports.defaultSageMakerRuntimeHTTP2HttpAuthSchemeParametersProvider = defaultSageMakerRuntimeHTTP2HttpAuthSchemeParametersProvider;
15
11
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
16
12
  return {
17
13
  schemeId: "aws.auth#sigv4",
@@ -27,7 +23,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
23
  }),
28
24
  };
29
25
  }
30
- const defaultSageMakerRuntimeHTTP2HttpAuthSchemeProvider = (authParameters) => {
26
+ exports.defaultSageMakerRuntimeHTTP2HttpAuthSchemeProvider = (authParameters) => {
31
27
  const options = [];
32
28
  switch (authParameters.operation) {
33
29
  default: {
@@ -36,11 +32,9 @@ const defaultSageMakerRuntimeHTTP2HttpAuthSchemeProvider = (authParameters) => {
36
32
  }
37
33
  return options;
38
34
  };
39
- exports.defaultSageMakerRuntimeHTTP2HttpAuthSchemeProvider = defaultSageMakerRuntimeHTTP2HttpAuthSchemeProvider;
40
- const resolveHttpAuthSchemeConfig = (config) => {
41
- const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
35
+ exports.resolveHttpAuthSchemeConfig = (config) => {
36
+ const config_0 = resolveAwsSdkSigV4Config(config);
42
37
  return Object.assign(config_0, {
43
- authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
38
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
44
39
  });
45
40
  };
46
- exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bdd = void 0;
4
- const endpoints_1 = require("@smithy/core/endpoints");
1
+ const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
5
2
  const m = "ref";
6
3
  const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "stringEquals", f = "booleanEquals", g = "getAttr", h = { [m]: "Endpoint" }, i = { "fn": g, "argv": [{ [m]: d }, "name"] }, j = { [m]: d }, k = {}, l = [{ [m]: "Region" }];
7
4
  const _data = {
@@ -67,4 +64,4 @@ const nodes = new Int32Array([
67
64
  10, r + 1, 23,
68
65
  12, r + 2, r + 3,
69
66
  ]);
70
- exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
67
+ exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,18 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultEndpointResolver = void 0;
4
- const client_1 = require("@aws-sdk/core/client");
5
- const endpoints_1 = require("@smithy/core/endpoints");
6
- const bdd_1 = require("./bdd");
7
- const cache = new endpoints_1.EndpointCache({
1
+ const { awsEndpointFunctions } = require("@aws-sdk/core/client");
2
+ const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
3
+ const { bdd } = require("./bdd");
4
+ const cache = new EndpointCache({
8
5
  size: 50,
9
6
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
10
7
  });
11
- const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
8
+ exports.defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
13
10
  endpointParams: endpointParams,
14
11
  logger: context.logger,
15
12
  }));
16
13
  };
17
- exports.defaultEndpointResolver = defaultEndpointResolver;
18
- endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -1,20 +1,23 @@
1
- 'use strict';
2
-
3
- var client$1 = require('@aws-sdk/core/client');
4
- var middlewareEventstream = require('@aws-sdk/middleware-eventstream');
5
- var core = require('@smithy/core');
6
- var client = require('@smithy/core/client');
7
- var config = require('@smithy/core/config');
8
- var endpoints = require('@smithy/core/endpoints');
9
- var eventStreams = require('@smithy/core/event-streams');
10
- var protocols = require('@smithy/core/protocols');
11
- var retry = require('@smithy/core/retry');
12
- var schema = require('@smithy/core/schema');
13
- var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
- var runtimeConfig = require('./runtimeConfig');
15
- var schemas_0 = require('./schemas/schemas_0');
16
- var errors = require('./models/errors');
17
- var SageMakerRuntimeHTTP2ServiceException = require('./models/SageMakerRuntimeHTTP2ServiceException');
1
+ var __exportStar = (m, e) => { Object.assign(e, m); };
2
+ const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
+ const { resolveEventStreamConfig, getEventStreamPlugin } = require("@aws-sdk/middleware-eventstream");
4
+ const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
5
+ const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
6
+ exports.$Command = Command;
7
+ exports.__Client = Client;
8
+ const { resolveRegionConfig } = require("@smithy/core/config");
9
+ const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
10
+ const { resolveEventStreamSerdeConfig } = require("@smithy/core/event-streams");
11
+ const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
12
+ const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
13
+ const { getSchemaSerdePlugin } = require("@smithy/core/schema");
14
+ const { resolveHttpAuthSchemeConfig, defaultSageMakerRuntimeHTTP2HttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
15
+ const { getRuntimeConfig } = require("./runtimeConfig");
16
+ const { InvokeEndpointWithBidirectionalStream$ } = require("./schemas/schemas_0");
17
+ __exportStar(require("./schemas/schemas_0"), exports);
18
+ __exportStar(require("./models/errors"), exports);
19
+ const { SageMakerRuntimeHTTP2ServiceException } = require("./models/SageMakerRuntimeHTTP2ServiceException");
20
+ exports.SageMakerRuntimeHTTP2ServiceException = SageMakerRuntimeHTTP2ServiceException;
18
21
 
19
22
  const resolveClientEndpointParameters = (options) => {
20
23
  return Object.assign(options, {
@@ -70,55 +73,55 @@ const resolveHttpAuthRuntimeConfig = (config) => {
70
73
  };
71
74
 
72
75
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
73
- const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
76
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
74
77
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
75
- return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
78
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
76
79
  };
77
80
 
78
- class SageMakerRuntimeHTTP2Client extends client.Client {
81
+ class SageMakerRuntimeHTTP2Client extends Client {
79
82
  config;
80
83
  constructor(...[configuration]) {
81
- const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
84
+ const _config_0 = getRuntimeConfig(configuration || {});
82
85
  super(_config_0);
83
86
  this.initConfig = _config_0;
84
87
  const _config_1 = resolveClientEndpointParameters(_config_0);
85
- const _config_2 = client$1.resolveUserAgentConfig(_config_1);
86
- const _config_3 = retry.resolveRetryConfig(_config_2);
87
- const _config_4 = config.resolveRegionConfig(_config_3);
88
- const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
89
- const _config_6 = endpoints.resolveEndpointConfig(_config_5);
90
- const _config_7 = eventStreams.resolveEventStreamSerdeConfig(_config_6);
91
- const _config_8 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_7);
92
- const _config_9 = middlewareEventstream.resolveEventStreamConfig(_config_8);
88
+ const _config_2 = resolveUserAgentConfig(_config_1);
89
+ const _config_3 = resolveRetryConfig(_config_2);
90
+ const _config_4 = resolveRegionConfig(_config_3);
91
+ const _config_5 = resolveHostHeaderConfig(_config_4);
92
+ const _config_6 = resolveEndpointConfig(_config_5);
93
+ const _config_7 = resolveEventStreamSerdeConfig(_config_6);
94
+ const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
95
+ const _config_9 = resolveEventStreamConfig(_config_8);
93
96
  const _config_10 = resolveRuntimeExtensions(_config_9, configuration?.extensions || []);
94
97
  this.config = _config_10;
95
- this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
96
- this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
97
- this.middlewareStack.use(retry.getRetryPlugin(this.config));
98
- this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
99
- this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
100
- this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
101
- this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
102
- this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
103
- httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSageMakerRuntimeHTTP2HttpAuthSchemeParametersProvider,
104
- identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
98
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
99
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
100
+ this.middlewareStack.use(getRetryPlugin(this.config));
101
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
102
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
103
+ this.middlewareStack.use(getLoggerPlugin(this.config));
104
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
105
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
106
+ httpAuthSchemeParametersProvider: defaultSageMakerRuntimeHTTP2HttpAuthSchemeParametersProvider,
107
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
105
108
  "aws.auth#sigv4": config.credentials,
106
109
  }),
107
110
  }));
108
- this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
111
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
109
112
  }
110
113
  destroy() {
111
114
  super.destroy();
112
115
  }
113
116
  }
114
117
 
115
- class InvokeEndpointWithBidirectionalStreamCommand extends client.Command
118
+ class InvokeEndpointWithBidirectionalStreamCommand extends Command
116
119
  .classBuilder()
117
120
  .ep(commonParams)
118
121
  .m(function (Command, cs, config, o) {
119
122
  return [
120
- endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
121
- middlewareEventstream.getEventStreamPlugin(config),
123
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
124
+ getEventStreamPlugin(config),
122
125
  ];
123
126
  })
124
127
  .s("AmazonSageMakerRuntimeHttp2", "InvokeEndpointWithBidirectionalStream", {
@@ -128,7 +131,7 @@ class InvokeEndpointWithBidirectionalStreamCommand extends client.Command
128
131
  },
129
132
  })
130
133
  .n("SageMakerRuntimeHTTP2Client", "InvokeEndpointWithBidirectionalStreamCommand")
131
- .sc(schemas_0.InvokeEndpointWithBidirectionalStream$)
134
+ .sc(InvokeEndpointWithBidirectionalStream$)
132
135
  .build() {
133
136
  }
134
137
 
@@ -137,31 +140,8 @@ const commands = {
137
140
  };
138
141
  class SageMakerRuntimeHTTP2 extends SageMakerRuntimeHTTP2Client {
139
142
  }
140
- client.createAggregatedClient(commands, SageMakerRuntimeHTTP2);
143
+ createAggregatedClient(commands, SageMakerRuntimeHTTP2);
141
144
 
142
- exports.$Command = client.Command;
143
- exports.__Client = client.Client;
144
- exports.SageMakerRuntimeHTTP2ServiceException = SageMakerRuntimeHTTP2ServiceException.SageMakerRuntimeHTTP2ServiceException;
145
145
  exports.InvokeEndpointWithBidirectionalStreamCommand = InvokeEndpointWithBidirectionalStreamCommand;
146
146
  exports.SageMakerRuntimeHTTP2 = SageMakerRuntimeHTTP2;
147
147
  exports.SageMakerRuntimeHTTP2Client = SageMakerRuntimeHTTP2Client;
148
- Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
149
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
150
- Object.defineProperty(exports, '__proto__', {
151
- enumerable: true,
152
- value: schemas_0['__proto__']
153
- });
154
-
155
- Object.keys(schemas_0).forEach(function (k) {
156
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
157
- });
158
- Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
159
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
160
- Object.defineProperty(exports, '__proto__', {
161
- enumerable: true,
162
- value: errors['__proto__']
163
- });
164
-
165
- Object.keys(errors).forEach(function (k) {
166
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
167
- });
@@ -1,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SageMakerRuntimeHTTP2ServiceException = exports.__ServiceException = void 0;
4
- const client_1 = require("@smithy/core/client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
6
- class SageMakerRuntimeHTTP2ServiceException extends client_1.ServiceException {
1
+ const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
+ exports.__ServiceException = __ServiceException;
3
+ exports.SageMakerRuntimeHTTP2ServiceException = class SageMakerRuntimeHTTP2ServiceException extends __ServiceException {
7
4
  constructor(options) {
8
5
  super(options);
9
6
  Object.setPrototypeOf(this, SageMakerRuntimeHTTP2ServiceException.prototype);
10
7
  }
11
- }
12
- exports.SageMakerRuntimeHTTP2ServiceException = SageMakerRuntimeHTTP2ServiceException;
8
+ };
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceUnavailableError = exports.ModelError = exports.ModelStreamError = exports.InternalStreamFailure = exports.InternalServerError = exports.InputValidationError = void 0;
4
- const SageMakerRuntimeHTTP2ServiceException_1 = require("./SageMakerRuntimeHTTP2ServiceException");
5
- class InputValidationError extends SageMakerRuntimeHTTP2ServiceException_1.SageMakerRuntimeHTTP2ServiceException {
1
+ const { SageMakerRuntimeHTTP2ServiceException: __BaseException } = require("./SageMakerRuntimeHTTP2ServiceException");
2
+ exports.InputValidationError = class InputValidationError extends __BaseException {
6
3
  name = "InputValidationError";
7
4
  $fault = "client";
8
5
  Message;
@@ -17,9 +14,8 @@ class InputValidationError extends SageMakerRuntimeHTTP2ServiceException_1.SageM
17
14
  this.Message = opts.Message;
18
15
  this.ErrorCode = opts.ErrorCode;
19
16
  }
20
- }
21
- exports.InputValidationError = InputValidationError;
22
- class InternalServerError extends SageMakerRuntimeHTTP2ServiceException_1.SageMakerRuntimeHTTP2ServiceException {
17
+ };
18
+ exports.InternalServerError = class InternalServerError extends __BaseException {
23
19
  name = "InternalServerError";
24
20
  $fault = "server";
25
21
  Message;
@@ -34,9 +30,8 @@ class InternalServerError extends SageMakerRuntimeHTTP2ServiceException_1.SageMa
34
30
  this.Message = opts.Message;
35
31
  this.ErrorCode = opts.ErrorCode;
36
32
  }
37
- }
38
- exports.InternalServerError = InternalServerError;
39
- class InternalStreamFailure extends SageMakerRuntimeHTTP2ServiceException_1.SageMakerRuntimeHTTP2ServiceException {
33
+ };
34
+ exports.InternalStreamFailure = class InternalStreamFailure extends __BaseException {
40
35
  name = "InternalStreamFailure";
41
36
  $fault = "server";
42
37
  Message;
@@ -49,9 +44,8 @@ class InternalStreamFailure extends SageMakerRuntimeHTTP2ServiceException_1.Sage
49
44
  Object.setPrototypeOf(this, InternalStreamFailure.prototype);
50
45
  this.Message = opts.Message;
51
46
  }
52
- }
53
- exports.InternalStreamFailure = InternalStreamFailure;
54
- class ModelStreamError extends SageMakerRuntimeHTTP2ServiceException_1.SageMakerRuntimeHTTP2ServiceException {
47
+ };
48
+ exports.ModelStreamError = class ModelStreamError extends __BaseException {
55
49
  name = "ModelStreamError";
56
50
  $fault = "client";
57
51
  Message;
@@ -66,9 +60,8 @@ class ModelStreamError extends SageMakerRuntimeHTTP2ServiceException_1.SageMaker
66
60
  this.Message = opts.Message;
67
61
  this.ErrorCode = opts.ErrorCode;
68
62
  }
69
- }
70
- exports.ModelStreamError = ModelStreamError;
71
- class ModelError extends SageMakerRuntimeHTTP2ServiceException_1.SageMakerRuntimeHTTP2ServiceException {
63
+ };
64
+ exports.ModelError = class ModelError extends __BaseException {
72
65
  name = "ModelError";
73
66
  $fault = "client";
74
67
  Message;
@@ -89,9 +82,8 @@ class ModelError extends SageMakerRuntimeHTTP2ServiceException_1.SageMakerRuntim
89
82
  this.LogStreamArn = opts.LogStreamArn;
90
83
  this.ErrorCode = opts.ErrorCode;
91
84
  }
92
- }
93
- exports.ModelError = ModelError;
94
- class ServiceUnavailableError extends SageMakerRuntimeHTTP2ServiceException_1.SageMakerRuntimeHTTP2ServiceException {
85
+ };
86
+ exports.ServiceUnavailableError = class ServiceUnavailableError extends __BaseException {
95
87
  name = "ServiceUnavailableError";
96
88
  $fault = "server";
97
89
  Message;
@@ -106,5 +98,4 @@ class ServiceUnavailableError extends SageMakerRuntimeHTTP2ServiceException_1.Sa
106
98
  this.Message = opts.Message;
107
99
  this.ErrorCode = opts.ErrorCode;
108
100
  }
109
- }
110
- exports.ServiceUnavailableError = ServiceUnavailableError;
101
+ };
@@ -1,41 +1,37 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
- const client_1 = require("@aws-sdk/core/client");
8
- const client_2 = 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");
13
- const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
14
- const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
1
+ const packageInfo = require("../package.json");
2
+ const { Sha256 } = require("@aws-crypto/sha256-browser");
3
+ const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
4
+ const { invalidFunction, invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
5
+ const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
6
+ const { eventStreamSerdeProvider } = require("@smithy/core/event-streams");
7
+ const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
8
+ const { calculateBodyLength } = require("@smithy/core/serde");
9
+ const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
10
+ const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
15
11
  const getRuntimeConfig = (config) => {
16
- const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
17
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
18
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
12
+ const defaultsMode = resolveDefaultsModeConfig(config);
13
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
14
+ const clientSharedValues = getSharedRuntimeConfig(config);
19
15
  return {
20
16
  ...clientSharedValues,
21
17
  ...config,
22
18
  runtime: "browser",
23
19
  defaultsMode,
24
- bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
20
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
25
21
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
26
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
22
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
27
23
  eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => ({
28
- handle: (0, client_2.invalidFunction)("event stream request is not supported in browser."),
24
+ handle: invalidFunction("event stream request is not supported in browser."),
29
25
  })),
30
- eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? event_streams_1.eventStreamSerdeProvider,
31
- maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
32
- region: config?.region ?? (0, client_2.invalidProvider)("Region is missing"),
33
- requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
34
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
35
- sha256: config?.sha256 ?? sha256_browser_1.Sha256,
36
- streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
37
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
38
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_FIPS_ENDPOINT)),
26
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
27
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
28
+ region: config?.region ?? invalidProvider("Region is missing"),
29
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
30
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
31
+ sha256: config?.sha256 ?? Sha256,
32
+ streamCollector: config?.streamCollector ?? streamCollector,
33
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
34
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
39
35
  };
40
36
  };
41
37
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,25 +1,21 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const client_1 = require("@aws-sdk/core/client");
7
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
8
- const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
9
- const eventstream_handler_node_1 = require("@aws-sdk/eventstream-handler-node");
10
- const client_2 = require("@smithy/core/client");
11
- const config_1 = require("@smithy/core/config");
12
- const event_streams_1 = require("@smithy/core/event-streams");
13
- const retry_1 = require("@smithy/core/retry");
14
- const serde_1 = require("@smithy/core/serde");
15
- const node_http_handler_1 = require("@smithy/node-http-handler");
16
- const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
1
+ const packageInfo = require("../package.json");
2
+ const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
3
+ const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
4
+ const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
5
+ const { eventStreamPayloadHandlerProvider } = require("@aws-sdk/eventstream-handler-node");
6
+ const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
7
+ const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
8
+ const { eventStreamSerdeProvider } = require("@smithy/core/event-streams");
9
+ const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
10
+ const { calculateBodyLength, Hash } = require("@smithy/core/serde");
11
+ const { NodeHttp2Handler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
12
+ const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
17
13
  const getRuntimeConfig = (config) => {
18
- (0, client_2.emitWarningIfUnsupportedVersion)(process.version);
19
- const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
20
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
21
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
22
- (0, client_1.emitWarningIfUnsupportedVersion)(process.version);
14
+ emitWarningIfUnsupportedVersion(process.version);
15
+ const defaultsMode = resolveDefaultsModeConfig(config);
16
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
17
+ const clientSharedValues = getSharedRuntimeConfig(config);
18
+ awsCheckVersion(process.version);
23
19
  const loaderConfig = {
24
20
  profile: config?.profile,
25
21
  logger: clientSharedValues.logger,
@@ -29,28 +25,28 @@ const getRuntimeConfig = (config) => {
29
25
  ...config,
30
26
  runtime: "node",
31
27
  defaultsMode,
32
- authSchemePreference: config?.authSchemePreference ?? (0, config_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
33
- bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
34
- credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
35
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
36
- eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventstream_handler_node_1.eventStreamPayloadHandlerProvider,
37
- eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? event_streams_1.eventStreamSerdeProvider,
38
- maxAttempts: config?.maxAttempts ?? (0, config_1.loadConfig)(retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
39
- region: config?.region ?? (0, config_1.loadConfig)(config_1.NODE_REGION_CONFIG_OPTIONS, { ...config_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
40
- requestHandler: node_http_handler_1.NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({
28
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
29
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
30
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
31
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
32
+ eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventStreamPayloadHandlerProvider,
33
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
34
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
35
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
36
+ requestHandler: RequestHandler.create(config?.requestHandler ?? (async () => ({
41
37
  ...await defaultConfigProvider(),
42
38
  disableConcurrentStreams: true
43
39
  }))),
44
40
  retryMode: config?.retryMode ??
45
- (0, config_1.loadConfig)({
46
- ...retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
47
- default: async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE,
41
+ loadNodeConfig({
42
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
43
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
48
44
  }, config),
49
- sha256: config?.sha256 ?? serde_1.Hash.bind(null, "sha256"),
50
- streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
51
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
52
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
53
- userAgentAppId: config?.userAgentAppId ?? (0, config_1.loadConfig)(client_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
45
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
46
+ streamCollector: config?.streamCollector ?? streamCollector,
47
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
48
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
49
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
54
50
  };
55
51
  };
56
52
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,19 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const sha256_js_1 = require("@aws-crypto/sha256-js");
5
- const client_1 = require("@smithy/core/client");
6
- const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
1
+ const { Sha256 } = require("@aws-crypto/sha256-js");
2
+ const { invalidFunction } = require("@smithy/core/client");
3
+ const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
7
4
  const getRuntimeConfig = (config) => {
8
- const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
5
+ const browserDefaults = getBrowserRuntimeConfig(config);
9
6
  return {
10
7
  ...browserDefaults,
11
8
  ...config,
12
9
  runtime: "react-native",
13
10
  eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => ({
14
- handle: (0, client_1.invalidFunction)("event stream request is not supported in ReactNative."),
11
+ handle: invalidFunction("event stream request is not supported in ReactNative."),
15
12
  })),
16
- sha256: config?.sha256 ?? sha256_js_1.Sha256,
13
+ sha256: config?.sha256 ?? Sha256,
17
14
  };
18
15
  };
19
16
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,42 +1,38 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
- const protocols_1 = require("@aws-sdk/core/protocols");
6
- const client_1 = require("@smithy/core/client");
7
- const protocols_2 = require("@smithy/core/protocols");
8
- const serde_1 = require("@smithy/core/serde");
9
- const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
10
- const endpointResolver_1 = require("./endpoint/endpointResolver");
11
- const schemas_0_1 = require("./schemas/schemas_0");
12
- const getRuntimeConfig = (config) => {
1
+ const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
2
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
3
+ const { NoOpLogger } = require("@smithy/core/client");
4
+ const { parseUrl } = require("@smithy/core/protocols");
5
+ const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
6
+ const { defaultSageMakerRuntimeHTTP2HttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
7
+ const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
8
+ const { errorTypeRegistries } = require("./schemas/schemas_0");
9
+ exports.getRuntimeConfig = (config) => {
13
10
  return {
14
11
  apiVersion: "2025-10-01",
15
- base64Decoder: config?.base64Decoder ?? serde_1.fromBase64,
16
- base64Encoder: config?.base64Encoder ?? serde_1.toBase64,
12
+ base64Decoder: config?.base64Decoder ?? fromBase64,
13
+ base64Encoder: config?.base64Encoder ?? toBase64,
17
14
  disableHostPrefix: config?.disableHostPrefix ?? false,
18
- endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
15
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
19
16
  extensions: config?.extensions ?? [],
20
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSageMakerRuntimeHTTP2HttpAuthSchemeProvider,
17
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSageMakerRuntimeHTTP2HttpAuthSchemeProvider,
21
18
  httpAuthSchemes: config?.httpAuthSchemes ?? [
22
19
  {
23
20
  schemeId: "aws.auth#sigv4",
24
21
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
25
- signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
22
+ signer: new AwsSdkSigV4Signer(),
26
23
  },
27
24
  ],
28
- logger: config?.logger ?? new client_1.NoOpLogger(),
29
- protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
25
+ logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
30
27
  protocolSettings: config?.protocolSettings ?? {
31
28
  defaultNamespace: "com.amazonaws.sagemakerruntimehttp2",
32
- errorTypeRegistries: schemas_0_1.errorTypeRegistries,
29
+ errorTypeRegistries,
33
30
  version: "2025-10-01",
34
31
  serviceTarget: "AmazonSageMakerRuntimeHttp2",
35
32
  },
36
33
  serviceId: config?.serviceId ?? "SageMaker Runtime HTTP2",
37
- urlParser: config?.urlParser ?? protocols_2.parseUrl,
38
- utf8Decoder: config?.utf8Decoder ?? serde_1.fromUtf8,
39
- utf8Encoder: config?.utf8Encoder ?? serde_1.toUtf8,
34
+ urlParser: config?.urlParser ?? parseUrl,
35
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
40
37
  };
41
38
  };
42
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InvokeEndpointWithBidirectionalStream$ = exports.ResponseStreamEvent$ = exports.RequestStreamEvent$ = exports.ResponsePayloadPart$ = exports.RequestPayloadPart$ = exports.InvokeEndpointWithBidirectionalStreamOutput$ = exports.InvokeEndpointWithBidirectionalStreamInput$ = exports.errorTypeRegistries = exports.ServiceUnavailableError$ = exports.ModelStreamError$ = exports.ModelError$ = exports.InternalStreamFailure$ = exports.InternalServerError$ = exports.InputValidationError$ = exports.SageMakerRuntimeHTTP2ServiceException$ = void 0;
4
1
  const _B = "Body";
5
2
  const _By = "Bytes";
6
3
  const _CS = "CompletionState";
@@ -46,84 +43,97 @@ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerruntimehttp2";
46
43
  const _se = "server";
47
44
  const _st = "streaming";
48
45
  const n0 = "com.amazonaws.sagemakerruntimehttp2";
49
- const schema_1 = require("@smithy/core/schema");
50
- const errors_1 = require("../models/errors");
51
- const SageMakerRuntimeHTTP2ServiceException_1 = require("../models/SageMakerRuntimeHTTP2ServiceException");
52
- const _s_registry = schema_1.TypeRegistry.for(_s);
53
- exports.SageMakerRuntimeHTTP2ServiceException$ = [-3, _s, "SageMakerRuntimeHTTP2ServiceException", 0, [], []];
54
- _s_registry.registerError(exports.SageMakerRuntimeHTTP2ServiceException$, SageMakerRuntimeHTTP2ServiceException_1.SageMakerRuntimeHTTP2ServiceException);
55
- const n0_registry = schema_1.TypeRegistry.for(n0);
56
- exports.InputValidationError$ = [-3, n0, _IVE,
46
+ const { TypeRegistry } = require("@smithy/core/schema");
47
+ const { InputValidationError, InternalServerError, InternalStreamFailure, ModelError, ModelStreamError, ServiceUnavailableError } = require("../models/errors");
48
+ const { SageMakerRuntimeHTTP2ServiceException } = require("../models/SageMakerRuntimeHTTP2ServiceException");
49
+ const _s_registry = TypeRegistry.for(_s);
50
+ const SageMakerRuntimeHTTP2ServiceException$ = [-3, _s, "SageMakerRuntimeHTTP2ServiceException", 0, [], []];
51
+ exports.SageMakerRuntimeHTTP2ServiceException$ = SageMakerRuntimeHTTP2ServiceException$;
52
+ _s_registry.registerError(SageMakerRuntimeHTTP2ServiceException$, SageMakerRuntimeHTTP2ServiceException);
53
+ const n0_registry = TypeRegistry.for(n0);
54
+ const InputValidationError$ = [-3, n0, _IVE,
57
55
  { [_e]: _c, [_hE]: 400 },
58
56
  [_M, _EC],
59
57
  [0, 0]
60
58
  ];
61
- n0_registry.registerError(exports.InputValidationError$, errors_1.InputValidationError);
62
- exports.InternalServerError$ = [-3, n0, _ISE,
59
+ exports.InputValidationError$ = InputValidationError$;
60
+ n0_registry.registerError(InputValidationError$, InputValidationError);
61
+ const InternalServerError$ = [-3, n0, _ISE,
63
62
  { [_e]: _se, [_hE]: 500 },
64
63
  [_M, _EC],
65
64
  [0, 0]
66
65
  ];
67
- n0_registry.registerError(exports.InternalServerError$, errors_1.InternalServerError);
68
- exports.InternalStreamFailure$ = [-3, n0, _ISF,
66
+ exports.InternalServerError$ = InternalServerError$;
67
+ n0_registry.registerError(InternalServerError$, InternalServerError);
68
+ const InternalStreamFailure$ = [-3, n0, _ISF,
69
69
  { [_e]: _se },
70
70
  [_M],
71
71
  [0]
72
72
  ];
73
- n0_registry.registerError(exports.InternalStreamFailure$, errors_1.InternalStreamFailure);
74
- exports.ModelError$ = [-3, n0, _ME,
73
+ exports.InternalStreamFailure$ = InternalStreamFailure$;
74
+ n0_registry.registerError(InternalStreamFailure$, InternalStreamFailure);
75
+ const ModelError$ = [-3, n0, _ME,
75
76
  { [_e]: _c, [_hE]: 424 },
76
77
  [_M, _OSC, _OM, _LSA, _EC],
77
78
  [0, 1, 0, 0, 0]
78
79
  ];
79
- n0_registry.registerError(exports.ModelError$, errors_1.ModelError);
80
- exports.ModelStreamError$ = [-3, n0, _MSE,
80
+ exports.ModelError$ = ModelError$;
81
+ n0_registry.registerError(ModelError$, ModelError);
82
+ const ModelStreamError$ = [-3, n0, _MSE,
81
83
  { [_e]: _c },
82
84
  [_M, _EC],
83
85
  [0, 0]
84
86
  ];
85
- n0_registry.registerError(exports.ModelStreamError$, errors_1.ModelStreamError);
86
- exports.ServiceUnavailableError$ = [-3, n0, _SUE,
87
+ exports.ModelStreamError$ = ModelStreamError$;
88
+ n0_registry.registerError(ModelStreamError$, ModelStreamError);
89
+ const ServiceUnavailableError$ = [-3, n0, _SUE,
87
90
  { [_e]: _se, [_hE]: 503 },
88
91
  [_M, _EC],
89
92
  [0, 0]
90
93
  ];
91
- n0_registry.registerError(exports.ServiceUnavailableError$, errors_1.ServiceUnavailableError);
94
+ exports.ServiceUnavailableError$ = ServiceUnavailableError$;
95
+ n0_registry.registerError(ServiceUnavailableError$, ServiceUnavailableError);
92
96
  exports.errorTypeRegistries = [
93
97
  _s_registry,
94
98
  n0_registry,
95
99
  ];
96
100
  var SensitiveBlob = [0, n0, _SB, 8, 21];
97
- exports.InvokeEndpointWithBidirectionalStreamInput$ = [3, n0, _IEWBSI,
101
+ const InvokeEndpointWithBidirectionalStreamInput$ = [3, n0, _IEWBSI,
98
102
  0,
99
103
  [_EN, _B, _TV, _MIP, _MQS],
100
- [[0, 1], [() => exports.RequestStreamEvent$, 16], [0, { [_hH]: _XASTV }], [0, { [_hH]: _XASMIP }], [0, { [_hH]: _XASMQS }]], 2
104
+ [[0, 1], [() => RequestStreamEvent$, 16], [0, { [_hH]: _XASTV }], [0, { [_hH]: _XASMIP }], [0, { [_hH]: _XASMQS }]], 2
101
105
  ];
102
- exports.InvokeEndpointWithBidirectionalStreamOutput$ = [3, n0, _IEWBSO,
106
+ exports.InvokeEndpointWithBidirectionalStreamInput$ = InvokeEndpointWithBidirectionalStreamInput$;
107
+ const InvokeEndpointWithBidirectionalStreamOutput$ = [3, n0, _IEWBSO,
103
108
  0,
104
109
  [_B, _IPV],
105
- [[() => exports.ResponseStreamEvent$, 16], [0, { [_hH]: _XAIPV }]], 1
110
+ [[() => ResponseStreamEvent$, 16], [0, { [_hH]: _XAIPV }]], 1
106
111
  ];
107
- exports.RequestPayloadPart$ = [3, n0, _RPP,
112
+ exports.InvokeEndpointWithBidirectionalStreamOutput$ = InvokeEndpointWithBidirectionalStreamOutput$;
113
+ const RequestPayloadPart$ = [3, n0, _RPP,
108
114
  0,
109
115
  [_By, _DT, _CS, _P],
110
116
  [[() => SensitiveBlob, { [_eP]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }]]
111
117
  ];
112
- exports.ResponsePayloadPart$ = [3, n0, _RPPe,
118
+ exports.RequestPayloadPart$ = RequestPayloadPart$;
119
+ const ResponsePayloadPart$ = [3, n0, _RPPe,
113
120
  0,
114
121
  [_By, _DT, _CS, _P],
115
122
  [[() => SensitiveBlob, { [_eP]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }]]
116
123
  ];
117
- exports.RequestStreamEvent$ = [4, n0, _RSE,
124
+ exports.ResponsePayloadPart$ = ResponsePayloadPart$;
125
+ const RequestStreamEvent$ = [4, n0, _RSE,
118
126
  { [_st]: 1 },
119
127
  [_PP],
120
- [[() => exports.RequestPayloadPart$, 0]]
128
+ [[() => RequestPayloadPart$, 0]]
121
129
  ];
122
- exports.ResponseStreamEvent$ = [4, n0, _RSEe,
130
+ exports.RequestStreamEvent$ = RequestStreamEvent$;
131
+ const ResponseStreamEvent$ = [4, n0, _RSEe,
123
132
  { [_st]: 1 },
124
133
  [_PP, _MSE, _ISF],
125
- [[() => exports.ResponsePayloadPart$, 0], [() => exports.ModelStreamError$, 0], [() => exports.InternalStreamFailure$, 0]]
134
+ [[() => ResponsePayloadPart$, 0], [() => ModelStreamError$, 0], [() => InternalStreamFailure$, 0]]
126
135
  ];
136
+ exports.ResponseStreamEvent$ = ResponseStreamEvent$;
127
137
  exports.InvokeEndpointWithBidirectionalStream$ = [9, n0, _IEWBS,
128
- { [_h]: ["POST", "/endpoints/{EndpointName}/invocations-bidirectional-stream", 200] }, () => exports.InvokeEndpointWithBidirectionalStreamInput$, () => exports.InvokeEndpointWithBidirectionalStreamOutput$
138
+ { [_h]: ["POST", "/endpoints/{EndpointName}/invocations-bidirectional-stream", 200] }, () => InvokeEndpointWithBidirectionalStreamInput$, () => InvokeEndpointWithBidirectionalStreamOutput$
129
139
  ];
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-runtime-http2",
3
3
  "description": "AWS SDK for JavaScript Sagemaker Runtime Http2 Client for Node.js, Browser and React Native",
4
- "version": "3.1067.0",
4
+ "version": "3.1069.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline",
8
- "build:es": "tsc -p tsconfig.es.json",
8
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
9
9
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
10
- "build:types": "tsc -p tsconfig.types.json",
10
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
12
+ "clean": "premove dist-cjs dist-es dist-types",
13
13
  "extract:docs": "api-extractor run --local",
14
- "generate:client": "node ../../scripts/generate-clients/single-service --solo sagemaker-runtime-http2",
14
+ "generate:client": "node ../../scripts/generate-clients/single-service",
15
15
  "test": "yarn g:vitest run --passWithNoTests",
16
- "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs",
16
+ "test:watch": "yarn g:vitest watch --passWithNoTests",
17
17
  "test:integration": "yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts",
18
18
  "test:integration:watch": "yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts",
19
- "test:watch": "yarn g:vitest watch --passWithNoTests"
19
+ "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
20
20
  },
21
21
  "main": "./dist-cjs/index.js",
22
22
  "types": "./dist-types/index.d.ts",
@@ -25,11 +25,11 @@
25
25
  "dependencies": {
26
26
  "@aws-crypto/sha256-browser": "5.2.0",
27
27
  "@aws-crypto/sha256-js": "5.2.0",
28
- "@aws-sdk/core": "^3.974.20",
29
- "@aws-sdk/credential-provider-node": "^3.972.55",
30
- "@aws-sdk/eventstream-handler-node": "^3.972.21",
31
- "@aws-sdk/middleware-eventstream": "^3.972.17",
32
- "@aws-sdk/types": "^3.973.12",
28
+ "@aws-sdk/core": "^3.974.21",
29
+ "@aws-sdk/credential-provider-node": "^3.972.56",
30
+ "@aws-sdk/eventstream-handler-node": "^3.972.22",
31
+ "@aws-sdk/middleware-eventstream": "^3.972.18",
32
+ "@aws-sdk/types": "^3.973.13",
33
33
  "@smithy/core": "^3.24.6",
34
34
  "@smithy/fetch-http-handler": "^5.4.6",
35
35
  "@smithy/node-http-handler": "^4.7.6",