@aws-sdk/client-sagemaker-runtime 3.1075.0 → 3.1077.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,212 +0,0 @@
1
- const _A = "Accept";
2
- const _ABB = "AsyncBodyBlob";
3
- const _B = "Body";
4
- const _BB = "BodyBlob";
5
- const _By = "Bytes";
6
- const _CA = "CustomAttributes";
7
- const _CAH = "CustomAttributesHeader";
8
- const _CSI = "ClosedSessionId";
9
- const _CT = "ContentType";
10
- const _CT_ = "Content-Type";
11
- const _EC = "ErrorCode";
12
- const _EE = "EnableExplanations";
13
- const _EN = "EndpointName";
14
- const _F = "Filename";
15
- const _FL = "FailureLocation";
16
- const _ICN = "InferenceComponentName";
17
- const _IDE = "InternalDependencyException";
18
- const _IE = "InvokeEndpoint";
19
- const _IEA = "InvokeEndpointAsync";
20
- const _IEAI = "InvokeEndpointAsyncInput";
21
- const _IEAO = "InvokeEndpointAsyncOutput";
22
- const _IEI = "InvokeEndpointInput";
23
- const _IEO = "InvokeEndpointOutput";
24
- const _IEWRS = "InvokeEndpointWithResponseStream";
25
- const _IEWRSI = "InvokeEndpointWithResponseStreamInput";
26
- const _IEWRSO = "InvokeEndpointWithResponseStreamOutput";
27
- const _IF = "InternalFailure";
28
- const _II = "InferenceId";
29
- const _IL = "InputLocation";
30
- const _IPV = "InvokedProductionVariant";
31
- const _ISF = "InternalStreamFailure";
32
- const _ITS = "InvocationTimeoutSeconds";
33
- const _LSA = "LogStreamArn";
34
- const _M = "Message";
35
- const _ME = "ModelError";
36
- const _MNRE = "ModelNotReadyException";
37
- const _MSE = "ModelStreamError";
38
- const _NSI = "NewSessionId";
39
- const _OL = "OutputLocation";
40
- const _OM = "OriginalMessage";
41
- const _OSC = "OriginalStatusCode";
42
- const _PB = "PartBlob";
43
- const _PP = "PayloadPart";
44
- const _RS = "ResponseStream";
45
- const _RTTLS = "RequestTTLSeconds";
46
- const _SI = "SessionId";
47
- const _SOPE = "S3OutputPathExtension";
48
- const _SU = "ServiceUnavailable";
49
- const _TCH = "TargetContainerHostname";
50
- const _TM = "TargetModel";
51
- const _TV = "TargetVariant";
52
- const _VE = "ValidationError";
53
- const _XASA = "X-Amzn-SageMaker-Accept";
54
- const _XASCA = "X-Amzn-SageMaker-Custom-Attributes";
55
- const _XASCSI = "X-Amzn-SageMaker-Closed-Session-Id";
56
- const _XASCT = "X-Amzn-SageMaker-Content-Type";
57
- const _XASEE = "X-Amzn-SageMaker-Enable-Explanations";
58
- const _XASF = "X-Amzn-SageMaker-Filename";
59
- const _XASF_ = "X-Amzn-SageMaker-FailureLocation";
60
- const _XASI = "X-Amzn-SageMaker-InputLocation";
61
- const _XASIC = "X-Amzn-SageMaker-Inference-Component";
62
- const _XASII = "X-Amzn-SageMaker-Inference-Id";
63
- const _XASI_ = "X-Amzn-SageMaker-InvocationTimeoutSeconds";
64
- const _XASNSI = "X-Amzn-SageMaker-New-Session-Id";
65
- const _XASO = "X-Amzn-SageMaker-OutputLocation";
66
- const _XASR = "X-Amzn-SageMaker-RequestTTLSeconds";
67
- const _XASS = "X-Amzn-SageMaker-S3OutputPathExtension";
68
- const _XASSI = "X-Amzn-SageMaker-Session-Id";
69
- const _XASTCH = "X-Amzn-SageMaker-Target-Container-Hostname";
70
- const _XASTM = "X-Amzn-SageMaker-Target-Model";
71
- const _XASTV = "X-Amzn-SageMaker-Target-Variant";
72
- const _aQE = "awsQueryError";
73
- const _c = "client";
74
- const _e = "error";
75
- const _eP = "eventPayload";
76
- const _h = "http";
77
- const _hE = "httpError";
78
- const _hH = "httpHeader";
79
- const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerruntime";
80
- const _se = "server";
81
- const _st = "streaming";
82
- const _xAIPV = "x-Amzn-Invoked-Production-Variant";
83
- const n0 = "com.amazonaws.sagemakerruntime";
84
- const { TypeRegistry } = require("@smithy/core/schema");
85
- const { InternalDependencyException, InternalFailure, InternalStreamFailure, ModelError, ModelNotReadyException, ModelStreamError, ServiceUnavailable, ValidationError } = require("../models/errors");
86
- const { SageMakerRuntimeServiceException } = require("../models/SageMakerRuntimeServiceException");
87
- const _s_registry = TypeRegistry.for(_s);
88
- const SageMakerRuntimeServiceException$ = [-3, _s, "SageMakerRuntimeServiceException", 0, [], []];
89
- exports.SageMakerRuntimeServiceException$ = SageMakerRuntimeServiceException$;
90
- _s_registry.registerError(SageMakerRuntimeServiceException$, SageMakerRuntimeServiceException);
91
- const n0_registry = TypeRegistry.for(n0);
92
- const InternalDependencyException$ = [-3, n0, _IDE,
93
- { [_e]: _se, [_hE]: 530 },
94
- [_M],
95
- [0]
96
- ];
97
- exports.InternalDependencyException$ = InternalDependencyException$;
98
- n0_registry.registerError(InternalDependencyException$, InternalDependencyException);
99
- const InternalFailure$ = [-3, n0, _IF,
100
- { [_e]: _se, [_hE]: 500 },
101
- [_M],
102
- [0]
103
- ];
104
- exports.InternalFailure$ = InternalFailure$;
105
- n0_registry.registerError(InternalFailure$, InternalFailure);
106
- const InternalStreamFailure$ = [-3, n0, _ISF,
107
- { [_e]: _se },
108
- [_M],
109
- [0]
110
- ];
111
- exports.InternalStreamFailure$ = InternalStreamFailure$;
112
- n0_registry.registerError(InternalStreamFailure$, InternalStreamFailure);
113
- const ModelError$ = [-3, n0, _ME,
114
- { [_e]: _c, [_hE]: 424 },
115
- [_M, _OSC, _OM, _LSA],
116
- [0, 1, 0, 0]
117
- ];
118
- exports.ModelError$ = ModelError$;
119
- n0_registry.registerError(ModelError$, ModelError);
120
- const ModelNotReadyException$ = [-3, n0, _MNRE,
121
- { [_aQE]: [`ModelNotReadyException`, 429], [_e]: _c, [_hE]: 429 },
122
- [_M],
123
- [0]
124
- ];
125
- exports.ModelNotReadyException$ = ModelNotReadyException$;
126
- n0_registry.registerError(ModelNotReadyException$, ModelNotReadyException);
127
- const ModelStreamError$ = [-3, n0, _MSE,
128
- { [_e]: _c },
129
- [_M, _EC],
130
- [0, 0]
131
- ];
132
- exports.ModelStreamError$ = ModelStreamError$;
133
- n0_registry.registerError(ModelStreamError$, ModelStreamError);
134
- const ServiceUnavailable$ = [-3, n0, _SU,
135
- { [_e]: _se, [_hE]: 503 },
136
- [_M],
137
- [0]
138
- ];
139
- exports.ServiceUnavailable$ = ServiceUnavailable$;
140
- n0_registry.registerError(ServiceUnavailable$, ServiceUnavailable);
141
- const ValidationError$ = [-3, n0, _VE,
142
- { [_e]: _c, [_hE]: 400 },
143
- [_M],
144
- [0]
145
- ];
146
- exports.ValidationError$ = ValidationError$;
147
- n0_registry.registerError(ValidationError$, ValidationError);
148
- exports.errorTypeRegistries = [
149
- _s_registry,
150
- n0_registry,
151
- ];
152
- var AsyncBodyBlob = [0, n0, _ABB, 8, 21];
153
- var BodyBlob = [0, n0, _BB, 8, 21];
154
- var CustomAttributesHeader = [0, n0, _CAH, 8, 0];
155
- var PartBlob = [0, n0, _PB, 8, 21];
156
- const InvokeEndpointAsyncInput$ = [3, n0, _IEAI,
157
- 0,
158
- [_EN, _CT, _A, _CA, _II, _IL, _SOPE, _F, _RTTLS, _ITS, _B],
159
- [[0, 1], [0, { [_hH]: _XASCT }], [0, { [_hH]: _XASA }], [() => CustomAttributesHeader, { [_hH]: _XASCA }], [0, { [_hH]: _XASII }], [0, { [_hH]: _XASI }], [0, { [_hH]: _XASS }], [0, { [_hH]: _XASF }], [1, { [_hH]: _XASR }], [1, { [_hH]: _XASI_ }], [() => AsyncBodyBlob, 16]], 1
160
- ];
161
- exports.InvokeEndpointAsyncInput$ = InvokeEndpointAsyncInput$;
162
- const InvokeEndpointAsyncOutput$ = [3, n0, _IEAO,
163
- 0,
164
- [_II, _OL, _FL],
165
- [0, [0, { [_hH]: _XASO }], [0, { [_hH]: _XASF_ }]]
166
- ];
167
- exports.InvokeEndpointAsyncOutput$ = InvokeEndpointAsyncOutput$;
168
- const InvokeEndpointInput$ = [3, n0, _IEI,
169
- 0,
170
- [_EN, _B, _CT, _A, _CA, _TM, _TV, _TCH, _II, _EE, _ICN, _SI],
171
- [[0, 1], [() => BodyBlob, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _A }], [() => CustomAttributesHeader, { [_hH]: _XASCA }], [0, { [_hH]: _XASTM }], [0, { [_hH]: _XASTV }], [0, { [_hH]: _XASTCH }], [0, { [_hH]: _XASII }], [0, { [_hH]: _XASEE }], [0, { [_hH]: _XASIC }], [0, { [_hH]: _XASSI }]], 2
172
- ];
173
- exports.InvokeEndpointInput$ = InvokeEndpointInput$;
174
- const InvokeEndpointOutput$ = [3, n0, _IEO,
175
- 0,
176
- [_B, _CT, _IPV, _CA, _NSI, _CSI],
177
- [[() => BodyBlob, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _xAIPV }], [() => CustomAttributesHeader, { [_hH]: _XASCA }], [0, { [_hH]: _XASNSI }], [0, { [_hH]: _XASCSI }]], 1
178
- ];
179
- exports.InvokeEndpointOutput$ = InvokeEndpointOutput$;
180
- const InvokeEndpointWithResponseStreamInput$ = [3, n0, _IEWRSI,
181
- 0,
182
- [_EN, _B, _CT, _A, _CA, _TV, _TCH, _II, _ICN, _SI],
183
- [[0, 1], [() => BodyBlob, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _XASA }], [() => CustomAttributesHeader, { [_hH]: _XASCA }], [0, { [_hH]: _XASTV }], [0, { [_hH]: _XASTCH }], [0, { [_hH]: _XASII }], [0, { [_hH]: _XASIC }], [0, { [_hH]: _XASSI }]], 2
184
- ];
185
- exports.InvokeEndpointWithResponseStreamInput$ = InvokeEndpointWithResponseStreamInput$;
186
- const InvokeEndpointWithResponseStreamOutput$ = [3, n0, _IEWRSO,
187
- 0,
188
- [_B, _CT, _IPV, _CA],
189
- [[() => ResponseStream$, 16], [0, { [_hH]: _XASCT }], [0, { [_hH]: _xAIPV }], [() => CustomAttributesHeader, { [_hH]: _XASCA }]], 1
190
- ];
191
- exports.InvokeEndpointWithResponseStreamOutput$ = InvokeEndpointWithResponseStreamOutput$;
192
- const PayloadPart$ = [3, n0, _PP,
193
- 0,
194
- [_By],
195
- [[() => PartBlob, { [_eP]: 1 }]]
196
- ];
197
- exports.PayloadPart$ = PayloadPart$;
198
- const ResponseStream$ = [4, n0, _RS,
199
- { [_st]: 1 },
200
- [_PP, _MSE, _ISF],
201
- [[() => PayloadPart$, 0], [() => ModelStreamError$, 0], [() => InternalStreamFailure$, 0]]
202
- ];
203
- exports.ResponseStream$ = ResponseStream$;
204
- exports.InvokeEndpoint$ = [9, n0, _IE,
205
- { [_h]: ["POST", "/endpoints/{EndpointName}/invocations", 200] }, () => InvokeEndpointInput$, () => InvokeEndpointOutput$
206
- ];
207
- exports.InvokeEndpointAsync$ = [9, n0, _IEA,
208
- { [_h]: ["POST", "/endpoints/{EndpointName}/async-invocations", 202] }, () => InvokeEndpointAsyncInput$, () => InvokeEndpointAsyncOutput$
209
- ];
210
- exports.InvokeEndpointWithResponseStream$ = [9, n0, _IEWRS,
211
- { [_h]: ["POST", "/endpoints/{EndpointName}/invocations-response-stream", 200] }, () => InvokeEndpointWithResponseStreamInput$, () => InvokeEndpointWithResponseStreamOutput$
212
- ];