@aws-sdk/client-sagemaker-runtime 3.928.0 → 3.929.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/index.js +533 -416
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/SageMakerRuntimeClient.js +2 -0
- package/dist-es/commands/InvokeEndpointAsyncCommand.js +3 -10
- package/dist-es/commands/InvokeEndpointCommand.js +3 -10
- package/dist-es/commands/InvokeEndpointWithResponseStreamCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -39
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +519 -0
- package/dist-types/SageMakerRuntimeClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -28
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +24 -0
- package/dist-types/ts3.4/SageMakerRuntimeClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -19
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +29 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -345
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -29
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -44
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const url_parser_1 = require("@smithy/url-parser");
|
|
7
8
|
const util_base64_1 = require("@smithy/util-base64");
|
|
@@ -25,6 +26,7 @@ const getRuntimeConfig = (config) => {
|
|
|
25
26
|
},
|
|
26
27
|
],
|
|
27
28
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
29
|
+
protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.sagemakerruntime" }),
|
|
28
30
|
serviceId: config?.serviceId ?? "SageMaker Runtime",
|
|
29
31
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
30
32
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
7
8
|
import { resolveEventStreamSerdeConfig, } from "@smithy/eventstream-serde-config-resolver";
|
|
8
9
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
9
10
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
@@ -30,6 +31,7 @@ export class SageMakerRuntimeClient extends __Client {
|
|
|
30
31
|
const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
|
|
31
32
|
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
|
|
32
33
|
this.config = _config_9;
|
|
34
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
33
35
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
34
36
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
35
37
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_InvokeEndpointAsyncCommand, se_InvokeEndpointAsyncCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { InvokeEndpointAsync } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class InvokeEndpointAsyncCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AmazonSageMakerRuntime", "InvokeEndpointAsync", {})
|
|
18
13
|
.n("SageMakerRuntimeClient", "InvokeEndpointAsyncCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_InvokeEndpointAsyncCommand)
|
|
21
|
-
.de(de_InvokeEndpointAsyncCommand)
|
|
14
|
+
.sc(InvokeEndpointAsync)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_InvokeEndpointCommand, se_InvokeEndpointCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { InvokeEndpoint } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class InvokeEndpointCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AmazonSageMakerRuntime", "InvokeEndpoint", {})
|
|
18
13
|
.n("SageMakerRuntimeClient", "InvokeEndpointCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_InvokeEndpointCommand)
|
|
21
|
-
.de(de_InvokeEndpointCommand)
|
|
14
|
+
.sc(InvokeEndpoint)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_InvokeEndpointWithResponseStreamCommand, se_InvokeEndpointWithResponseStreamCommand, } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { InvokeEndpointWithResponseStream } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class InvokeEndpointWithResponseStreamCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AmazonSageMakerRuntime", "InvokeEndpointWithResponseStream", {
|
|
18
13
|
eventStream: {
|
|
@@ -20,8 +15,6 @@ export class InvokeEndpointWithResponseStreamCommand extends $Command
|
|
|
20
15
|
},
|
|
21
16
|
})
|
|
22
17
|
.n("SageMakerRuntimeClient", "InvokeEndpointWithResponseStreamCommand")
|
|
23
|
-
.
|
|
24
|
-
.ser(se_InvokeEndpointWithResponseStreamCommand)
|
|
25
|
-
.de(de_InvokeEndpointWithResponseStreamCommand)
|
|
18
|
+
.sc(InvokeEndpointWithResponseStream)
|
|
26
19
|
.build() {
|
|
27
20
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { SageMakerRuntimeServiceException as __BaseException } from "./SageMakerRuntimeServiceException";
|
|
3
2
|
export class InternalDependencyException extends __BaseException {
|
|
4
3
|
name = "InternalDependencyException";
|
|
@@ -132,41 +131,3 @@ export var ResponseStream;
|
|
|
132
131
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
133
132
|
};
|
|
134
133
|
})(ResponseStream || (ResponseStream = {}));
|
|
135
|
-
export const InvokeEndpointInputFilterSensitiveLog = (obj) => ({
|
|
136
|
-
...obj,
|
|
137
|
-
...(obj.Body && { Body: SENSITIVE_STRING }),
|
|
138
|
-
...(obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }),
|
|
139
|
-
});
|
|
140
|
-
export const InvokeEndpointOutputFilterSensitiveLog = (obj) => ({
|
|
141
|
-
...obj,
|
|
142
|
-
...(obj.Body && { Body: SENSITIVE_STRING }),
|
|
143
|
-
...(obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }),
|
|
144
|
-
});
|
|
145
|
-
export const InvokeEndpointAsyncInputFilterSensitiveLog = (obj) => ({
|
|
146
|
-
...obj,
|
|
147
|
-
...(obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }),
|
|
148
|
-
});
|
|
149
|
-
export const InvokeEndpointWithResponseStreamInputFilterSensitiveLog = (obj) => ({
|
|
150
|
-
...obj,
|
|
151
|
-
...(obj.Body && { Body: SENSITIVE_STRING }),
|
|
152
|
-
...(obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }),
|
|
153
|
-
});
|
|
154
|
-
export const PayloadPartFilterSensitiveLog = (obj) => ({
|
|
155
|
-
...obj,
|
|
156
|
-
...(obj.Bytes && { Bytes: SENSITIVE_STRING }),
|
|
157
|
-
});
|
|
158
|
-
export const ResponseStreamFilterSensitiveLog = (obj) => {
|
|
159
|
-
if (obj.PayloadPart !== undefined)
|
|
160
|
-
return { PayloadPart: PayloadPartFilterSensitiveLog(obj.PayloadPart) };
|
|
161
|
-
if (obj.ModelStreamError !== undefined)
|
|
162
|
-
return { ModelStreamError: obj.ModelStreamError };
|
|
163
|
-
if (obj.InternalStreamFailure !== undefined)
|
|
164
|
-
return { InternalStreamFailure: obj.InternalStreamFailure };
|
|
165
|
-
if (obj.$unknown !== undefined)
|
|
166
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
167
|
-
};
|
|
168
|
-
export const InvokeEndpointWithResponseStreamOutputFilterSensitiveLog = (obj) => ({
|
|
169
|
-
...obj,
|
|
170
|
-
...(obj.Body && { Body: "STREAMING_CONTENT" }),
|
|
171
|
-
...(obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }),
|
|
172
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.sagemakerruntime" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "SageMaker Runtime",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
const _A = "Accept";
|
|
2
|
+
const _B = "Body";
|
|
3
|
+
const _BB = "BodyBlob";
|
|
4
|
+
const _By = "Bytes";
|
|
5
|
+
const _CA = "CustomAttributes";
|
|
6
|
+
const _CAH = "CustomAttributesHeader";
|
|
7
|
+
const _CSI = "ClosedSessionId";
|
|
8
|
+
const _CT = "ContentType";
|
|
9
|
+
const _CT_ = "Content-Type";
|
|
10
|
+
const _EC = "ErrorCode";
|
|
11
|
+
const _EE = "EnableExplanations";
|
|
12
|
+
const _EN = "EndpointName";
|
|
13
|
+
const _FL = "FailureLocation";
|
|
14
|
+
const _ICN = "InferenceComponentName";
|
|
15
|
+
const _IDE = "InternalDependencyException";
|
|
16
|
+
const _IE = "InvokeEndpoint";
|
|
17
|
+
const _IEA = "InvokeEndpointAsync";
|
|
18
|
+
const _IEAI = "InvokeEndpointAsyncInput";
|
|
19
|
+
const _IEAO = "InvokeEndpointAsyncOutput";
|
|
20
|
+
const _IEI = "InvokeEndpointInput";
|
|
21
|
+
const _IEO = "InvokeEndpointOutput";
|
|
22
|
+
const _IEWRS = "InvokeEndpointWithResponseStream";
|
|
23
|
+
const _IEWRSI = "InvokeEndpointWithResponseStreamInput";
|
|
24
|
+
const _IEWRSO = "InvokeEndpointWithResponseStreamOutput";
|
|
25
|
+
const _IF = "InternalFailure";
|
|
26
|
+
const _II = "InferenceId";
|
|
27
|
+
const _IL = "InputLocation";
|
|
28
|
+
const _IPV = "InvokedProductionVariant";
|
|
29
|
+
const _ISF = "InternalStreamFailure";
|
|
30
|
+
const _ITS = "InvocationTimeoutSeconds";
|
|
31
|
+
const _LSA = "LogStreamArn";
|
|
32
|
+
const _M = "Message";
|
|
33
|
+
const _ME = "ModelError";
|
|
34
|
+
const _MNRE = "ModelNotReadyException";
|
|
35
|
+
const _MSE = "ModelStreamError";
|
|
36
|
+
const _NSI = "NewSessionId";
|
|
37
|
+
const _OL = "OutputLocation";
|
|
38
|
+
const _OM = "OriginalMessage";
|
|
39
|
+
const _OSC = "OriginalStatusCode";
|
|
40
|
+
const _PB = "PartBlob";
|
|
41
|
+
const _PP = "PayloadPart";
|
|
42
|
+
const _RS = "ResponseStream";
|
|
43
|
+
const _RTTLS = "RequestTTLSeconds";
|
|
44
|
+
const _SI = "SessionId";
|
|
45
|
+
const _SU = "ServiceUnavailable";
|
|
46
|
+
const _TCH = "TargetContainerHostname";
|
|
47
|
+
const _TM = "TargetModel";
|
|
48
|
+
const _TV = "TargetVariant";
|
|
49
|
+
const _VE = "ValidationError";
|
|
50
|
+
const _XASA = "X-Amzn-SageMaker-Accept";
|
|
51
|
+
const _XASCA = "X-Amzn-SageMaker-Custom-Attributes";
|
|
52
|
+
const _XASCSI = "X-Amzn-SageMaker-Closed-Session-Id";
|
|
53
|
+
const _XASCT = "X-Amzn-SageMaker-Content-Type";
|
|
54
|
+
const _XASEE = "X-Amzn-SageMaker-Enable-Explanations";
|
|
55
|
+
const _XASF = "X-Amzn-SageMaker-FailureLocation";
|
|
56
|
+
const _XASI = "X-Amzn-SageMaker-InputLocation";
|
|
57
|
+
const _XASIC = "X-Amzn-SageMaker-Inference-Component";
|
|
58
|
+
const _XASII = "X-Amzn-SageMaker-Inference-Id";
|
|
59
|
+
const _XASI_ = "X-Amzn-SageMaker-InvocationTimeoutSeconds";
|
|
60
|
+
const _XASNSI = "X-Amzn-SageMaker-New-Session-Id";
|
|
61
|
+
const _XASO = "X-Amzn-SageMaker-OutputLocation";
|
|
62
|
+
const _XASR = "X-Amzn-SageMaker-RequestTTLSeconds";
|
|
63
|
+
const _XASSI = "X-Amzn-SageMaker-Session-Id";
|
|
64
|
+
const _XASTCH = "X-Amzn-SageMaker-Target-Container-Hostname";
|
|
65
|
+
const _XASTM = "X-Amzn-SageMaker-Target-Model";
|
|
66
|
+
const _XASTV = "X-Amzn-SageMaker-Target-Variant";
|
|
67
|
+
const _aQE = "awsQueryError";
|
|
68
|
+
const _c = "client";
|
|
69
|
+
const _e = "error";
|
|
70
|
+
const _eP = "eventPayload";
|
|
71
|
+
const _h = "http";
|
|
72
|
+
const _hE = "httpError";
|
|
73
|
+
const _hH = "httpHeader";
|
|
74
|
+
const _s = "server";
|
|
75
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerruntime";
|
|
76
|
+
const _st = "streaming";
|
|
77
|
+
const _xAIPV = "x-Amzn-Invoked-Production-Variant";
|
|
78
|
+
const n0 = "com.amazonaws.sagemakerruntime";
|
|
79
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
80
|
+
import { InternalDependencyException as __InternalDependencyException, InternalFailure as __InternalFailure, InternalStreamFailure as __InternalStreamFailure, ModelError as __ModelError, ModelNotReadyException as __ModelNotReadyException, ModelStreamError as __ModelStreamError, ServiceUnavailable as __ServiceUnavailable, ValidationError as __ValidationError, } from "../models/index";
|
|
81
|
+
import { SageMakerRuntimeServiceException as __SageMakerRuntimeServiceException } from "../models/SageMakerRuntimeServiceException";
|
|
82
|
+
export var BodyBlob = [0, n0, _BB, 8, 21];
|
|
83
|
+
export var CustomAttributesHeader = [0, n0, _CAH, 8, 0];
|
|
84
|
+
export var PartBlob = [0, n0, _PB, 8, 21];
|
|
85
|
+
export var InternalDependencyException = [
|
|
86
|
+
-3,
|
|
87
|
+
n0,
|
|
88
|
+
_IDE,
|
|
89
|
+
{
|
|
90
|
+
[_e]: _s,
|
|
91
|
+
[_hE]: 530,
|
|
92
|
+
},
|
|
93
|
+
[_M],
|
|
94
|
+
[0],
|
|
95
|
+
];
|
|
96
|
+
TypeRegistry.for(n0).registerError(InternalDependencyException, __InternalDependencyException);
|
|
97
|
+
export var InternalFailure = [
|
|
98
|
+
-3,
|
|
99
|
+
n0,
|
|
100
|
+
_IF,
|
|
101
|
+
{
|
|
102
|
+
[_e]: _s,
|
|
103
|
+
[_hE]: 500,
|
|
104
|
+
},
|
|
105
|
+
[_M],
|
|
106
|
+
[0],
|
|
107
|
+
];
|
|
108
|
+
TypeRegistry.for(n0).registerError(InternalFailure, __InternalFailure);
|
|
109
|
+
export var InternalStreamFailure = [
|
|
110
|
+
-3,
|
|
111
|
+
n0,
|
|
112
|
+
_ISF,
|
|
113
|
+
{
|
|
114
|
+
[_e]: _s,
|
|
115
|
+
},
|
|
116
|
+
[_M],
|
|
117
|
+
[0],
|
|
118
|
+
];
|
|
119
|
+
TypeRegistry.for(n0).registerError(InternalStreamFailure, __InternalStreamFailure);
|
|
120
|
+
export var InvokeEndpointAsyncInput = [
|
|
121
|
+
3,
|
|
122
|
+
n0,
|
|
123
|
+
_IEAI,
|
|
124
|
+
0,
|
|
125
|
+
[_EN, _CT, _A, _CA, _II, _IL, _RTTLS, _ITS],
|
|
126
|
+
[
|
|
127
|
+
[0, 1],
|
|
128
|
+
[
|
|
129
|
+
0,
|
|
130
|
+
{
|
|
131
|
+
[_hH]: _XASCT,
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
[
|
|
135
|
+
0,
|
|
136
|
+
{
|
|
137
|
+
[_hH]: _XASA,
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
[
|
|
141
|
+
() => CustomAttributesHeader,
|
|
142
|
+
{
|
|
143
|
+
[_hH]: _XASCA,
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
[
|
|
147
|
+
0,
|
|
148
|
+
{
|
|
149
|
+
[_hH]: _XASII,
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
[
|
|
153
|
+
0,
|
|
154
|
+
{
|
|
155
|
+
[_hH]: _XASI,
|
|
156
|
+
},
|
|
157
|
+
],
|
|
158
|
+
[
|
|
159
|
+
1,
|
|
160
|
+
{
|
|
161
|
+
[_hH]: _XASR,
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
[
|
|
165
|
+
1,
|
|
166
|
+
{
|
|
167
|
+
[_hH]: _XASI_,
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
],
|
|
171
|
+
];
|
|
172
|
+
export var InvokeEndpointAsyncOutput = [
|
|
173
|
+
3,
|
|
174
|
+
n0,
|
|
175
|
+
_IEAO,
|
|
176
|
+
0,
|
|
177
|
+
[_II, _OL, _FL],
|
|
178
|
+
[
|
|
179
|
+
0,
|
|
180
|
+
[
|
|
181
|
+
0,
|
|
182
|
+
{
|
|
183
|
+
[_hH]: _XASO,
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
[
|
|
187
|
+
0,
|
|
188
|
+
{
|
|
189
|
+
[_hH]: _XASF,
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
],
|
|
193
|
+
];
|
|
194
|
+
export var InvokeEndpointInput = [
|
|
195
|
+
3,
|
|
196
|
+
n0,
|
|
197
|
+
_IEI,
|
|
198
|
+
0,
|
|
199
|
+
[_EN, _B, _CT, _A, _CA, _TM, _TV, _TCH, _II, _EE, _ICN, _SI],
|
|
200
|
+
[
|
|
201
|
+
[0, 1],
|
|
202
|
+
[() => BodyBlob, 16],
|
|
203
|
+
[
|
|
204
|
+
0,
|
|
205
|
+
{
|
|
206
|
+
[_hH]: _CT_,
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
[
|
|
210
|
+
0,
|
|
211
|
+
{
|
|
212
|
+
[_hH]: _A,
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
[
|
|
216
|
+
() => CustomAttributesHeader,
|
|
217
|
+
{
|
|
218
|
+
[_hH]: _XASCA,
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
[
|
|
222
|
+
0,
|
|
223
|
+
{
|
|
224
|
+
[_hH]: _XASTM,
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
[
|
|
228
|
+
0,
|
|
229
|
+
{
|
|
230
|
+
[_hH]: _XASTV,
|
|
231
|
+
},
|
|
232
|
+
],
|
|
233
|
+
[
|
|
234
|
+
0,
|
|
235
|
+
{
|
|
236
|
+
[_hH]: _XASTCH,
|
|
237
|
+
},
|
|
238
|
+
],
|
|
239
|
+
[
|
|
240
|
+
0,
|
|
241
|
+
{
|
|
242
|
+
[_hH]: _XASII,
|
|
243
|
+
},
|
|
244
|
+
],
|
|
245
|
+
[
|
|
246
|
+
0,
|
|
247
|
+
{
|
|
248
|
+
[_hH]: _XASEE,
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
[
|
|
252
|
+
0,
|
|
253
|
+
{
|
|
254
|
+
[_hH]: _XASIC,
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
[
|
|
258
|
+
0,
|
|
259
|
+
{
|
|
260
|
+
[_hH]: _XASSI,
|
|
261
|
+
},
|
|
262
|
+
],
|
|
263
|
+
],
|
|
264
|
+
];
|
|
265
|
+
export var InvokeEndpointOutput = [
|
|
266
|
+
3,
|
|
267
|
+
n0,
|
|
268
|
+
_IEO,
|
|
269
|
+
0,
|
|
270
|
+
[_B, _CT, _IPV, _CA, _NSI, _CSI],
|
|
271
|
+
[
|
|
272
|
+
[() => BodyBlob, 16],
|
|
273
|
+
[
|
|
274
|
+
0,
|
|
275
|
+
{
|
|
276
|
+
[_hH]: _CT_,
|
|
277
|
+
},
|
|
278
|
+
],
|
|
279
|
+
[
|
|
280
|
+
0,
|
|
281
|
+
{
|
|
282
|
+
[_hH]: _xAIPV,
|
|
283
|
+
},
|
|
284
|
+
],
|
|
285
|
+
[
|
|
286
|
+
() => CustomAttributesHeader,
|
|
287
|
+
{
|
|
288
|
+
[_hH]: _XASCA,
|
|
289
|
+
},
|
|
290
|
+
],
|
|
291
|
+
[
|
|
292
|
+
0,
|
|
293
|
+
{
|
|
294
|
+
[_hH]: _XASNSI,
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
[
|
|
298
|
+
0,
|
|
299
|
+
{
|
|
300
|
+
[_hH]: _XASCSI,
|
|
301
|
+
},
|
|
302
|
+
],
|
|
303
|
+
],
|
|
304
|
+
];
|
|
305
|
+
export var InvokeEndpointWithResponseStreamInput = [
|
|
306
|
+
3,
|
|
307
|
+
n0,
|
|
308
|
+
_IEWRSI,
|
|
309
|
+
0,
|
|
310
|
+
[_EN, _B, _CT, _A, _CA, _TV, _TCH, _II, _ICN, _SI],
|
|
311
|
+
[
|
|
312
|
+
[0, 1],
|
|
313
|
+
[() => BodyBlob, 16],
|
|
314
|
+
[
|
|
315
|
+
0,
|
|
316
|
+
{
|
|
317
|
+
[_hH]: _CT_,
|
|
318
|
+
},
|
|
319
|
+
],
|
|
320
|
+
[
|
|
321
|
+
0,
|
|
322
|
+
{
|
|
323
|
+
[_hH]: _XASA,
|
|
324
|
+
},
|
|
325
|
+
],
|
|
326
|
+
[
|
|
327
|
+
() => CustomAttributesHeader,
|
|
328
|
+
{
|
|
329
|
+
[_hH]: _XASCA,
|
|
330
|
+
},
|
|
331
|
+
],
|
|
332
|
+
[
|
|
333
|
+
0,
|
|
334
|
+
{
|
|
335
|
+
[_hH]: _XASTV,
|
|
336
|
+
},
|
|
337
|
+
],
|
|
338
|
+
[
|
|
339
|
+
0,
|
|
340
|
+
{
|
|
341
|
+
[_hH]: _XASTCH,
|
|
342
|
+
},
|
|
343
|
+
],
|
|
344
|
+
[
|
|
345
|
+
0,
|
|
346
|
+
{
|
|
347
|
+
[_hH]: _XASII,
|
|
348
|
+
},
|
|
349
|
+
],
|
|
350
|
+
[
|
|
351
|
+
0,
|
|
352
|
+
{
|
|
353
|
+
[_hH]: _XASIC,
|
|
354
|
+
},
|
|
355
|
+
],
|
|
356
|
+
[
|
|
357
|
+
0,
|
|
358
|
+
{
|
|
359
|
+
[_hH]: _XASSI,
|
|
360
|
+
},
|
|
361
|
+
],
|
|
362
|
+
],
|
|
363
|
+
];
|
|
364
|
+
export var InvokeEndpointWithResponseStreamOutput = [
|
|
365
|
+
3,
|
|
366
|
+
n0,
|
|
367
|
+
_IEWRSO,
|
|
368
|
+
0,
|
|
369
|
+
[_B, _CT, _IPV, _CA],
|
|
370
|
+
[
|
|
371
|
+
[() => ResponseStream, 16],
|
|
372
|
+
[
|
|
373
|
+
0,
|
|
374
|
+
{
|
|
375
|
+
[_hH]: _XASCT,
|
|
376
|
+
},
|
|
377
|
+
],
|
|
378
|
+
[
|
|
379
|
+
0,
|
|
380
|
+
{
|
|
381
|
+
[_hH]: _xAIPV,
|
|
382
|
+
},
|
|
383
|
+
],
|
|
384
|
+
[
|
|
385
|
+
() => CustomAttributesHeader,
|
|
386
|
+
{
|
|
387
|
+
[_hH]: _XASCA,
|
|
388
|
+
},
|
|
389
|
+
],
|
|
390
|
+
],
|
|
391
|
+
];
|
|
392
|
+
export var ModelError = [
|
|
393
|
+
-3,
|
|
394
|
+
n0,
|
|
395
|
+
_ME,
|
|
396
|
+
{
|
|
397
|
+
[_e]: _c,
|
|
398
|
+
[_hE]: 424,
|
|
399
|
+
},
|
|
400
|
+
[_M, _OSC, _OM, _LSA],
|
|
401
|
+
[0, 1, 0, 0],
|
|
402
|
+
];
|
|
403
|
+
TypeRegistry.for(n0).registerError(ModelError, __ModelError);
|
|
404
|
+
export var ModelNotReadyException = [
|
|
405
|
+
-3,
|
|
406
|
+
n0,
|
|
407
|
+
_MNRE,
|
|
408
|
+
{
|
|
409
|
+
[_e]: _c,
|
|
410
|
+
[_hE]: 429,
|
|
411
|
+
[_aQE]: [`ModelNotReadyException`, 429],
|
|
412
|
+
},
|
|
413
|
+
[_M],
|
|
414
|
+
[0],
|
|
415
|
+
];
|
|
416
|
+
TypeRegistry.for(n0).registerError(ModelNotReadyException, __ModelNotReadyException);
|
|
417
|
+
export var ModelStreamError = [
|
|
418
|
+
-3,
|
|
419
|
+
n0,
|
|
420
|
+
_MSE,
|
|
421
|
+
{
|
|
422
|
+
[_e]: _c,
|
|
423
|
+
},
|
|
424
|
+
[_M, _EC],
|
|
425
|
+
[0, 0],
|
|
426
|
+
];
|
|
427
|
+
TypeRegistry.for(n0).registerError(ModelStreamError, __ModelStreamError);
|
|
428
|
+
export var PayloadPart = [
|
|
429
|
+
3,
|
|
430
|
+
n0,
|
|
431
|
+
_PP,
|
|
432
|
+
0,
|
|
433
|
+
[_By],
|
|
434
|
+
[
|
|
435
|
+
[
|
|
436
|
+
() => PartBlob,
|
|
437
|
+
{
|
|
438
|
+
[_eP]: 1,
|
|
439
|
+
},
|
|
440
|
+
],
|
|
441
|
+
],
|
|
442
|
+
];
|
|
443
|
+
export var ServiceUnavailable = [
|
|
444
|
+
-3,
|
|
445
|
+
n0,
|
|
446
|
+
_SU,
|
|
447
|
+
{
|
|
448
|
+
[_e]: _s,
|
|
449
|
+
[_hE]: 503,
|
|
450
|
+
},
|
|
451
|
+
[_M],
|
|
452
|
+
[0],
|
|
453
|
+
];
|
|
454
|
+
TypeRegistry.for(n0).registerError(ServiceUnavailable, __ServiceUnavailable);
|
|
455
|
+
export var ValidationError = [
|
|
456
|
+
-3,
|
|
457
|
+
n0,
|
|
458
|
+
_VE,
|
|
459
|
+
{
|
|
460
|
+
[_e]: _c,
|
|
461
|
+
[_hE]: 400,
|
|
462
|
+
},
|
|
463
|
+
[_M],
|
|
464
|
+
[0],
|
|
465
|
+
];
|
|
466
|
+
TypeRegistry.for(n0).registerError(ValidationError, __ValidationError);
|
|
467
|
+
export var SageMakerRuntimeServiceException = [
|
|
468
|
+
-3,
|
|
469
|
+
_sm,
|
|
470
|
+
"SageMakerRuntimeServiceException",
|
|
471
|
+
0,
|
|
472
|
+
[],
|
|
473
|
+
[],
|
|
474
|
+
];
|
|
475
|
+
TypeRegistry.for(_sm).registerError(SageMakerRuntimeServiceException, __SageMakerRuntimeServiceException);
|
|
476
|
+
export var ResponseStream = [
|
|
477
|
+
3,
|
|
478
|
+
n0,
|
|
479
|
+
_RS,
|
|
480
|
+
{
|
|
481
|
+
[_st]: 1,
|
|
482
|
+
},
|
|
483
|
+
[_PP, _MSE, _ISF],
|
|
484
|
+
[
|
|
485
|
+
[() => PayloadPart, 0],
|
|
486
|
+
[() => ModelStreamError, 0],
|
|
487
|
+
[() => InternalStreamFailure, 0],
|
|
488
|
+
],
|
|
489
|
+
];
|
|
490
|
+
export var InvokeEndpoint = [
|
|
491
|
+
9,
|
|
492
|
+
n0,
|
|
493
|
+
_IE,
|
|
494
|
+
{
|
|
495
|
+
[_h]: ["POST", "/endpoints/{EndpointName}/invocations", 200],
|
|
496
|
+
},
|
|
497
|
+
() => InvokeEndpointInput,
|
|
498
|
+
() => InvokeEndpointOutput,
|
|
499
|
+
];
|
|
500
|
+
export var InvokeEndpointAsync = [
|
|
501
|
+
9,
|
|
502
|
+
n0,
|
|
503
|
+
_IEA,
|
|
504
|
+
{
|
|
505
|
+
[_h]: ["POST", "/endpoints/{EndpointName}/async-invocations", 202],
|
|
506
|
+
},
|
|
507
|
+
() => InvokeEndpointAsyncInput,
|
|
508
|
+
() => InvokeEndpointAsyncOutput,
|
|
509
|
+
];
|
|
510
|
+
export var InvokeEndpointWithResponseStream = [
|
|
511
|
+
9,
|
|
512
|
+
n0,
|
|
513
|
+
_IEWRS,
|
|
514
|
+
{
|
|
515
|
+
[_h]: ["POST", "/endpoints/{EndpointName}/invocations-response-stream", 200],
|
|
516
|
+
},
|
|
517
|
+
() => InvokeEndpointWithResponseStreamInput,
|
|
518
|
+
() => InvokeEndpointWithResponseStreamOutput,
|
|
519
|
+
];
|