@aws-sdk/client-sagemaker-runtime-http2 3.1068.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.
- package/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +48 -68
- package/dist-cjs/models/SageMakerRuntimeHTTP2ServiceException.js +4 -8
- package/dist-cjs/models/errors.js +13 -22
- package/dist-cjs/runtimeConfig.browser.js +25 -29
- package/dist-cjs/runtimeConfig.js +34 -38
- package/dist-cjs/runtimeConfig.native.js +6 -9
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +43 -33
- package/package.json +12 -12
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.
|
|
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:
|
|
9
|
-
region: await
|
|
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
|
-
|
|
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.
|
|
40
|
-
const
|
|
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:
|
|
38
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
44
39
|
});
|
|
45
40
|
};
|
|
46
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
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 =
|
|
67
|
+
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
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
|
-
|
|
12
|
-
return cache.get(endpointParams, () =>
|
|
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
|
-
|
|
18
|
-
endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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(
|
|
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,
|
|
78
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
76
79
|
};
|
|
77
80
|
|
|
78
|
-
class SageMakerRuntimeHTTP2Client extends
|
|
81
|
+
class SageMakerRuntimeHTTP2Client extends Client {
|
|
79
82
|
config;
|
|
80
83
|
constructor(...[configuration]) {
|
|
81
|
-
const _config_0 =
|
|
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 =
|
|
86
|
-
const _config_3 =
|
|
87
|
-
const _config_4 =
|
|
88
|
-
const _config_5 =
|
|
89
|
-
const _config_6 =
|
|
90
|
-
const _config_7 =
|
|
91
|
-
const _config_8 =
|
|
92
|
-
const _config_9 =
|
|
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(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
this.middlewareStack.use(
|
|
98
|
-
this.middlewareStack.use(
|
|
99
|
-
this.middlewareStack.use(
|
|
100
|
-
this.middlewareStack.use(
|
|
101
|
-
this.middlewareStack.use(
|
|
102
|
-
this.middlewareStack.use(
|
|
103
|
-
httpAuthSchemeParametersProvider:
|
|
104
|
-
identityProviderConfigProvider: async (config) => new
|
|
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(
|
|
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
|
|
118
|
+
class InvokeEndpointWithBidirectionalStreamCommand extends Command
|
|
116
119
|
.classBuilder()
|
|
117
120
|
.ep(commonParams)
|
|
118
121
|
.m(function (Command, cs, config, o) {
|
|
119
122
|
return [
|
|
120
|
-
|
|
121
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
exports.SageMakerRuntimeHTTP2ServiceException =
|
|
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
|
-
|
|
2
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
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 =
|
|
17
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
18
|
-
const clientSharedValues = (
|
|
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 ??
|
|
20
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
25
21
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
26
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
22
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
27
23
|
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => ({
|
|
28
|
-
handle:
|
|
24
|
+
handle: invalidFunction("event stream request is not supported in browser."),
|
|
29
25
|
})),
|
|
30
|
-
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ??
|
|
31
|
-
maxAttempts: config?.maxAttempts ??
|
|
32
|
-
region: config?.region ??
|
|
33
|
-
requestHandler:
|
|
34
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
35
|
-
sha256: config?.sha256 ??
|
|
36
|
-
streamCollector: config?.streamCollector ??
|
|
37
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(
|
|
38
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
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
|
-
|
|
19
|
-
const defaultsMode =
|
|
20
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
21
|
-
const clientSharedValues = (
|
|
22
|
-
(
|
|
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 ?? (
|
|
33
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
34
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ??
|
|
35
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
-
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
|
|
37
|
-
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ??
|
|
38
|
-
maxAttempts: config?.maxAttempts ?? (
|
|
39
|
-
region: config?.region ?? (
|
|
40
|
-
requestHandler:
|
|
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
|
-
(
|
|
46
|
-
...
|
|
47
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
41
|
+
loadNodeConfig({
|
|
42
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
48
44
|
}, config),
|
|
49
|
-
sha256: config?.sha256 ??
|
|
50
|
-
streamCollector: config?.streamCollector ??
|
|
51
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (
|
|
52
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (
|
|
53
|
-
userAgentAppId: config?.userAgentAppId ?? (
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 = (
|
|
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:
|
|
11
|
+
handle: invalidFunction("event stream request is not supported in ReactNative."),
|
|
15
12
|
})),
|
|
16
|
-
sha256: config?.sha256 ??
|
|
13
|
+
sha256: config?.sha256 ?? Sha256,
|
|
17
14
|
};
|
|
18
15
|
};
|
|
19
16
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,42 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
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 ??
|
|
16
|
-
base64Encoder: config?.base64Encoder ??
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
17
14
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
18
|
-
endpointProvider: config?.endpointProvider ??
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
19
16
|
extensions: config?.extensions ?? [],
|
|
20
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ??
|
|
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
|
|
22
|
+
signer: new AwsSdkSigV4Signer(),
|
|
26
23
|
},
|
|
27
24
|
],
|
|
28
|
-
logger: config?.logger ?? new
|
|
29
|
-
protocol: config?.protocol ??
|
|
25
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
30
27
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
28
|
defaultNamespace: "com.amazonaws.sagemakerruntimehttp2",
|
|
32
|
-
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 ??
|
|
38
|
-
utf8Decoder: config?.utf8Decoder ??
|
|
39
|
-
utf8Encoder: config?.utf8Encoder ??
|
|
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
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
const _s_registry =
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
|
|
62
|
-
|
|
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
|
-
|
|
68
|
-
|
|
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
|
-
|
|
74
|
-
|
|
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
|
-
|
|
80
|
-
|
|
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
|
-
|
|
86
|
-
|
|
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
|
-
|
|
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
|
-
|
|
101
|
+
const InvokeEndpointWithBidirectionalStreamInput$ = [3, n0, _IEWBSI,
|
|
98
102
|
0,
|
|
99
103
|
[_EN, _B, _TV, _MIP, _MQS],
|
|
100
|
-
[[0, 1], [() =>
|
|
104
|
+
[[0, 1], [() => RequestStreamEvent$, 16], [0, { [_hH]: _XASTV }], [0, { [_hH]: _XASMIP }], [0, { [_hH]: _XASMQS }]], 2
|
|
101
105
|
];
|
|
102
|
-
exports.
|
|
106
|
+
exports.InvokeEndpointWithBidirectionalStreamInput$ = InvokeEndpointWithBidirectionalStreamInput$;
|
|
107
|
+
const InvokeEndpointWithBidirectionalStreamOutput$ = [3, n0, _IEWBSO,
|
|
103
108
|
0,
|
|
104
109
|
[_B, _IPV],
|
|
105
|
-
[[() =>
|
|
110
|
+
[[() => ResponseStreamEvent$, 16], [0, { [_hH]: _XAIPV }]], 1
|
|
106
111
|
];
|
|
107
|
-
exports.
|
|
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.
|
|
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.
|
|
124
|
+
exports.ResponsePayloadPart$ = ResponsePayloadPart$;
|
|
125
|
+
const RequestStreamEvent$ = [4, n0, _RSE,
|
|
118
126
|
{ [_st]: 1 },
|
|
119
127
|
[_PP],
|
|
120
|
-
[[() =>
|
|
128
|
+
[[() => RequestPayloadPart$, 0]]
|
|
121
129
|
];
|
|
122
|
-
exports.
|
|
130
|
+
exports.RequestStreamEvent$ = RequestStreamEvent$;
|
|
131
|
+
const ResponseStreamEvent$ = [4, n0, _RSEe,
|
|
123
132
|
{ [_st]: 1 },
|
|
124
133
|
[_PP, _MSE, _ISF],
|
|
125
|
-
[[() =>
|
|
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] }, () =>
|
|
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.
|
|
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
|
|
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
|
|
14
|
+
"generate:client": "node ../../scripts/generate-clients/single-service",
|
|
15
15
|
"test": "yarn g:vitest run --passWithNoTests",
|
|
16
|
-
"test:
|
|
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:
|
|
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.
|
|
29
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
30
|
-
"@aws-sdk/eventstream-handler-node": "^3.972.
|
|
31
|
-
"@aws-sdk/middleware-eventstream": "^3.972.
|
|
32
|
-
"@aws-sdk/types": "^3.973.
|
|
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",
|