@aws-sdk/client-sagemaker-runtime-http2 3.986.0 → 3.988.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 CHANGED
@@ -17,6 +17,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
17
17
  var runtimeConfig = require('./runtimeConfig');
18
18
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
19
19
  var protocolHttp = require('@smithy/protocol-http');
20
+ var schemas_0 = require('./schemas/schemas_0');
21
+ var errors = require('./models/errors');
22
+ var SageMakerRuntimeHTTP2ServiceException = require('./models/SageMakerRuntimeHTTP2ServiceException');
20
23
 
21
24
  const resolveClientEndpointParameters = (options) => {
22
25
  return Object.assign(options, {
@@ -114,232 +117,6 @@ class SageMakerRuntimeHTTP2Client extends smithyClient.Client {
114
117
  }
115
118
  }
116
119
 
117
- class SageMakerRuntimeHTTP2ServiceException extends smithyClient.ServiceException {
118
- constructor(options) {
119
- super(options);
120
- Object.setPrototypeOf(this, SageMakerRuntimeHTTP2ServiceException.prototype);
121
- }
122
- }
123
-
124
- class InputValidationError extends SageMakerRuntimeHTTP2ServiceException {
125
- name = "InputValidationError";
126
- $fault = "client";
127
- Message;
128
- ErrorCode;
129
- constructor(opts) {
130
- super({
131
- name: "InputValidationError",
132
- $fault: "client",
133
- ...opts,
134
- });
135
- Object.setPrototypeOf(this, InputValidationError.prototype);
136
- this.Message = opts.Message;
137
- this.ErrorCode = opts.ErrorCode;
138
- }
139
- }
140
- class InternalServerError extends SageMakerRuntimeHTTP2ServiceException {
141
- name = "InternalServerError";
142
- $fault = "server";
143
- Message;
144
- ErrorCode;
145
- constructor(opts) {
146
- super({
147
- name: "InternalServerError",
148
- $fault: "server",
149
- ...opts,
150
- });
151
- Object.setPrototypeOf(this, InternalServerError.prototype);
152
- this.Message = opts.Message;
153
- this.ErrorCode = opts.ErrorCode;
154
- }
155
- }
156
- class InternalStreamFailure extends SageMakerRuntimeHTTP2ServiceException {
157
- name = "InternalStreamFailure";
158
- $fault = "server";
159
- Message;
160
- constructor(opts) {
161
- super({
162
- name: "InternalStreamFailure",
163
- $fault: "server",
164
- ...opts,
165
- });
166
- Object.setPrototypeOf(this, InternalStreamFailure.prototype);
167
- this.Message = opts.Message;
168
- }
169
- }
170
- class ModelStreamError extends SageMakerRuntimeHTTP2ServiceException {
171
- name = "ModelStreamError";
172
- $fault = "client";
173
- Message;
174
- ErrorCode;
175
- constructor(opts) {
176
- super({
177
- name: "ModelStreamError",
178
- $fault: "client",
179
- ...opts,
180
- });
181
- Object.setPrototypeOf(this, ModelStreamError.prototype);
182
- this.Message = opts.Message;
183
- this.ErrorCode = opts.ErrorCode;
184
- }
185
- }
186
- class ModelError extends SageMakerRuntimeHTTP2ServiceException {
187
- name = "ModelError";
188
- $fault = "client";
189
- Message;
190
- OriginalStatusCode;
191
- OriginalMessage;
192
- LogStreamArn;
193
- ErrorCode;
194
- constructor(opts) {
195
- super({
196
- name: "ModelError",
197
- $fault: "client",
198
- ...opts,
199
- });
200
- Object.setPrototypeOf(this, ModelError.prototype);
201
- this.Message = opts.Message;
202
- this.OriginalStatusCode = opts.OriginalStatusCode;
203
- this.OriginalMessage = opts.OriginalMessage;
204
- this.LogStreamArn = opts.LogStreamArn;
205
- this.ErrorCode = opts.ErrorCode;
206
- }
207
- }
208
- class ServiceUnavailableError extends SageMakerRuntimeHTTP2ServiceException {
209
- name = "ServiceUnavailableError";
210
- $fault = "server";
211
- Message;
212
- ErrorCode;
213
- constructor(opts) {
214
- super({
215
- name: "ServiceUnavailableError",
216
- $fault: "server",
217
- ...opts,
218
- });
219
- Object.setPrototypeOf(this, ServiceUnavailableError.prototype);
220
- this.Message = opts.Message;
221
- this.ErrorCode = opts.ErrorCode;
222
- }
223
- }
224
-
225
- const _B = "Body";
226
- const _By = "Bytes";
227
- const _CS = "CompletionState";
228
- const _DT = "DataType";
229
- const _EC = "ErrorCode";
230
- const _EN = "EndpointName";
231
- const _IEWBS = "InvokeEndpointWithBidirectionalStream";
232
- const _IEWBSI = "InvokeEndpointWithBidirectionalStreamInput";
233
- const _IEWBSO = "InvokeEndpointWithBidirectionalStreamOutput";
234
- const _IPV = "InvokedProductionVariant";
235
- const _ISE = "InternalServerError";
236
- const _ISF = "InternalStreamFailure";
237
- const _IVE = "InputValidationError";
238
- const _LSA = "LogStreamArn";
239
- const _M = "Message";
240
- const _ME = "ModelError";
241
- const _MIP = "ModelInvocationPath";
242
- const _MQS = "ModelQueryString";
243
- const _MSE = "ModelStreamError";
244
- const _OM = "OriginalMessage";
245
- const _OSC = "OriginalStatusCode";
246
- const _P = "P";
247
- const _PP = "PayloadPart";
248
- const _RPP = "RequestPayloadPart";
249
- const _RPPe = "ResponsePayloadPart";
250
- const _RSE = "RequestStreamEvent";
251
- const _RSEe = "ResponseStreamEvent";
252
- const _SB = "SensitiveBlob";
253
- const _SUE = "ServiceUnavailableError";
254
- const _TV = "TargetVariant";
255
- const _XAIPV = "X-Amzn-Invoked-Production-Variant";
256
- const _XASMIP = "X-Amzn-SageMaker-Model-Invocation-Path";
257
- const _XASMQS = "X-Amzn-SageMaker-Model-Query-String";
258
- const _XASTV = "X-Amzn-SageMaker-Target-Variant";
259
- const _c = "client";
260
- const _e = "error";
261
- const _eH = "eventHeader";
262
- const _eP = "eventPayload";
263
- const _h = "http";
264
- const _hE = "httpError";
265
- const _hH = "httpHeader";
266
- const _s = "server";
267
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerruntimehttp2";
268
- const _st = "streaming";
269
- const n0 = "com.amazonaws.sagemakerruntimehttp2";
270
- var SensitiveBlob = [0, n0, _SB, 8, 21];
271
- var InputValidationError$ = [-3, n0, _IVE,
272
- { [_e]: _c, [_hE]: 400 },
273
- [_M, _EC],
274
- [0, 0]
275
- ];
276
- schema.TypeRegistry.for(n0).registerError(InputValidationError$, InputValidationError);
277
- var InternalServerError$ = [-3, n0, _ISE,
278
- { [_e]: _s, [_hE]: 500 },
279
- [_M, _EC],
280
- [0, 0]
281
- ];
282
- schema.TypeRegistry.for(n0).registerError(InternalServerError$, InternalServerError);
283
- var InternalStreamFailure$ = [-3, n0, _ISF,
284
- { [_e]: _s },
285
- [_M],
286
- [0]
287
- ];
288
- schema.TypeRegistry.for(n0).registerError(InternalStreamFailure$, InternalStreamFailure);
289
- var InvokeEndpointWithBidirectionalStreamInput$ = [3, n0, _IEWBSI,
290
- 0,
291
- [_EN, _B, _TV, _MIP, _MQS],
292
- [[0, 1], [() => RequestStreamEvent$, 16], [0, { [_hH]: _XASTV }], [0, { [_hH]: _XASMIP }], [0, { [_hH]: _XASMQS }]], 2
293
- ];
294
- var InvokeEndpointWithBidirectionalStreamOutput$ = [3, n0, _IEWBSO,
295
- 0,
296
- [_B, _IPV],
297
- [[() => ResponseStreamEvent$, 16], [0, { [_hH]: _XAIPV }]], 1
298
- ];
299
- var ModelError$ = [-3, n0, _ME,
300
- { [_e]: _c, [_hE]: 424 },
301
- [_M, _OSC, _OM, _LSA, _EC],
302
- [0, 1, 0, 0, 0]
303
- ];
304
- schema.TypeRegistry.for(n0).registerError(ModelError$, ModelError);
305
- var ModelStreamError$ = [-3, n0, _MSE,
306
- { [_e]: _c },
307
- [_M, _EC],
308
- [0, 0]
309
- ];
310
- schema.TypeRegistry.for(n0).registerError(ModelStreamError$, ModelStreamError);
311
- var RequestPayloadPart$ = [3, n0, _RPP,
312
- 0,
313
- [_By, _DT, _CS, _P],
314
- [[() => SensitiveBlob, { [_eP]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }]]
315
- ];
316
- var ResponsePayloadPart$ = [3, n0, _RPPe,
317
- 0,
318
- [_By, _DT, _CS, _P],
319
- [[() => SensitiveBlob, { [_eP]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }]]
320
- ];
321
- var ServiceUnavailableError$ = [-3, n0, _SUE,
322
- { [_e]: _s, [_hE]: 503 },
323
- [_M, _EC],
324
- [0, 0]
325
- ];
326
- schema.TypeRegistry.for(n0).registerError(ServiceUnavailableError$, ServiceUnavailableError);
327
- var SageMakerRuntimeHTTP2ServiceException$ = [-3, _sm, "SageMakerRuntimeHTTP2ServiceException", 0, [], []];
328
- schema.TypeRegistry.for(_sm).registerError(SageMakerRuntimeHTTP2ServiceException$, SageMakerRuntimeHTTP2ServiceException);
329
- var RequestStreamEvent$ = [4, n0, _RSE,
330
- { [_st]: 1 },
331
- [_PP],
332
- [[() => RequestPayloadPart$, 0]]
333
- ];
334
- var ResponseStreamEvent$ = [4, n0, _RSEe,
335
- { [_st]: 1 },
336
- [_PP, _MSE, _ISF],
337
- [[() => ResponsePayloadPart$, 0], [() => ModelStreamError$, 0], [() => InternalStreamFailure$, 0]]
338
- ];
339
- var InvokeEndpointWithBidirectionalStream$ = [9, n0, _IEWBS,
340
- { [_h]: ["POST", "/endpoints/{EndpointName}/invocations-bidirectional-stream", 200] }, () => InvokeEndpointWithBidirectionalStreamInput$, () => InvokeEndpointWithBidirectionalStreamOutput$
341
- ];
342
-
343
120
  class InvokeEndpointWithBidirectionalStreamCommand extends smithyClient.Command
344
121
  .classBuilder()
345
122
  .ep(commonParams)
@@ -356,7 +133,7 @@ class InvokeEndpointWithBidirectionalStreamCommand extends smithyClient.Command
356
133
  },
357
134
  })
358
135
  .n("SageMakerRuntimeHTTP2Client", "InvokeEndpointWithBidirectionalStreamCommand")
359
- .sc(InvokeEndpointWithBidirectionalStream$)
136
+ .sc(schemas_0.InvokeEndpointWithBidirectionalStream$)
360
137
  .build() {
361
138
  }
362
139
 
@@ -375,27 +152,22 @@ Object.defineProperty(exports, "__Client", {
375
152
  enumerable: true,
376
153
  get: function () { return smithyClient.Client; }
377
154
  });
378
- exports.InputValidationError = InputValidationError;
379
- exports.InputValidationError$ = InputValidationError$;
380
- exports.InternalServerError = InternalServerError;
381
- exports.InternalServerError$ = InternalServerError$;
382
- exports.InternalStreamFailure = InternalStreamFailure;
383
- exports.InternalStreamFailure$ = InternalStreamFailure$;
384
- exports.InvokeEndpointWithBidirectionalStream$ = InvokeEndpointWithBidirectionalStream$;
155
+ Object.defineProperty(exports, "SageMakerRuntimeHTTP2ServiceException", {
156
+ enumerable: true,
157
+ get: function () { return SageMakerRuntimeHTTP2ServiceException.SageMakerRuntimeHTTP2ServiceException; }
158
+ });
385
159
  exports.InvokeEndpointWithBidirectionalStreamCommand = InvokeEndpointWithBidirectionalStreamCommand;
386
- exports.InvokeEndpointWithBidirectionalStreamInput$ = InvokeEndpointWithBidirectionalStreamInput$;
387
- exports.InvokeEndpointWithBidirectionalStreamOutput$ = InvokeEndpointWithBidirectionalStreamOutput$;
388
- exports.ModelError = ModelError;
389
- exports.ModelError$ = ModelError$;
390
- exports.ModelStreamError = ModelStreamError;
391
- exports.ModelStreamError$ = ModelStreamError$;
392
- exports.RequestPayloadPart$ = RequestPayloadPart$;
393
- exports.RequestStreamEvent$ = RequestStreamEvent$;
394
- exports.ResponsePayloadPart$ = ResponsePayloadPart$;
395
- exports.ResponseStreamEvent$ = ResponseStreamEvent$;
396
160
  exports.SageMakerRuntimeHTTP2 = SageMakerRuntimeHTTP2;
397
161
  exports.SageMakerRuntimeHTTP2Client = SageMakerRuntimeHTTP2Client;
398
- exports.SageMakerRuntimeHTTP2ServiceException = SageMakerRuntimeHTTP2ServiceException;
399
- exports.SageMakerRuntimeHTTP2ServiceException$ = SageMakerRuntimeHTTP2ServiceException$;
400
- exports.ServiceUnavailableError = ServiceUnavailableError;
401
- exports.ServiceUnavailableError$ = ServiceUnavailableError$;
162
+ Object.keys(schemas_0).forEach(function (k) {
163
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
164
+ enumerable: true,
165
+ get: function () { return schemas_0[k]; }
166
+ });
167
+ });
168
+ Object.keys(errors).forEach(function (k) {
169
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
170
+ enumerable: true,
171
+ get: function () { return errors[k]; }
172
+ });
173
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SageMakerRuntimeHTTP2ServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class SageMakerRuntimeHTTP2ServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, SageMakerRuntimeHTTP2ServiceException.prototype);
10
+ }
11
+ }
12
+ exports.SageMakerRuntimeHTTP2ServiceException = SageMakerRuntimeHTTP2ServiceException;
@@ -0,0 +1,110 @@
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 {
6
+ name = "InputValidationError";
7
+ $fault = "client";
8
+ Message;
9
+ ErrorCode;
10
+ constructor(opts) {
11
+ super({
12
+ name: "InputValidationError",
13
+ $fault: "client",
14
+ ...opts,
15
+ });
16
+ Object.setPrototypeOf(this, InputValidationError.prototype);
17
+ this.Message = opts.Message;
18
+ this.ErrorCode = opts.ErrorCode;
19
+ }
20
+ }
21
+ exports.InputValidationError = InputValidationError;
22
+ class InternalServerError extends SageMakerRuntimeHTTP2ServiceException_1.SageMakerRuntimeHTTP2ServiceException {
23
+ name = "InternalServerError";
24
+ $fault = "server";
25
+ Message;
26
+ ErrorCode;
27
+ constructor(opts) {
28
+ super({
29
+ name: "InternalServerError",
30
+ $fault: "server",
31
+ ...opts,
32
+ });
33
+ Object.setPrototypeOf(this, InternalServerError.prototype);
34
+ this.Message = opts.Message;
35
+ this.ErrorCode = opts.ErrorCode;
36
+ }
37
+ }
38
+ exports.InternalServerError = InternalServerError;
39
+ class InternalStreamFailure extends SageMakerRuntimeHTTP2ServiceException_1.SageMakerRuntimeHTTP2ServiceException {
40
+ name = "InternalStreamFailure";
41
+ $fault = "server";
42
+ Message;
43
+ constructor(opts) {
44
+ super({
45
+ name: "InternalStreamFailure",
46
+ $fault: "server",
47
+ ...opts,
48
+ });
49
+ Object.setPrototypeOf(this, InternalStreamFailure.prototype);
50
+ this.Message = opts.Message;
51
+ }
52
+ }
53
+ exports.InternalStreamFailure = InternalStreamFailure;
54
+ class ModelStreamError extends SageMakerRuntimeHTTP2ServiceException_1.SageMakerRuntimeHTTP2ServiceException {
55
+ name = "ModelStreamError";
56
+ $fault = "client";
57
+ Message;
58
+ ErrorCode;
59
+ constructor(opts) {
60
+ super({
61
+ name: "ModelStreamError",
62
+ $fault: "client",
63
+ ...opts,
64
+ });
65
+ Object.setPrototypeOf(this, ModelStreamError.prototype);
66
+ this.Message = opts.Message;
67
+ this.ErrorCode = opts.ErrorCode;
68
+ }
69
+ }
70
+ exports.ModelStreamError = ModelStreamError;
71
+ class ModelError extends SageMakerRuntimeHTTP2ServiceException_1.SageMakerRuntimeHTTP2ServiceException {
72
+ name = "ModelError";
73
+ $fault = "client";
74
+ Message;
75
+ OriginalStatusCode;
76
+ OriginalMessage;
77
+ LogStreamArn;
78
+ ErrorCode;
79
+ constructor(opts) {
80
+ super({
81
+ name: "ModelError",
82
+ $fault: "client",
83
+ ...opts,
84
+ });
85
+ Object.setPrototypeOf(this, ModelError.prototype);
86
+ this.Message = opts.Message;
87
+ this.OriginalStatusCode = opts.OriginalStatusCode;
88
+ this.OriginalMessage = opts.OriginalMessage;
89
+ this.LogStreamArn = opts.LogStreamArn;
90
+ this.ErrorCode = opts.ErrorCode;
91
+ }
92
+ }
93
+ exports.ModelError = ModelError;
94
+ class ServiceUnavailableError extends SageMakerRuntimeHTTP2ServiceException_1.SageMakerRuntimeHTTP2ServiceException {
95
+ name = "ServiceUnavailableError";
96
+ $fault = "server";
97
+ Message;
98
+ ErrorCode;
99
+ constructor(opts) {
100
+ super({
101
+ name: "ServiceUnavailableError",
102
+ $fault: "server",
103
+ ...opts,
104
+ });
105
+ Object.setPrototypeOf(this, ServiceUnavailableError.prototype);
106
+ this.Message = opts.Message;
107
+ this.ErrorCode = opts.ErrorCode;
108
+ }
109
+ }
110
+ exports.ServiceUnavailableError = ServiceUnavailableError;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2025-10-01",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.sagemakerruntimehttp2",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2025-10-01",
33
35
  serviceTarget: "AmazonSageMakerRuntimeHttp2",
34
36
  },
@@ -0,0 +1,129 @@
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
+ const _B = "Body";
5
+ const _By = "Bytes";
6
+ const _CS = "CompletionState";
7
+ const _DT = "DataType";
8
+ const _EC = "ErrorCode";
9
+ const _EN = "EndpointName";
10
+ const _IEWBS = "InvokeEndpointWithBidirectionalStream";
11
+ const _IEWBSI = "InvokeEndpointWithBidirectionalStreamInput";
12
+ const _IEWBSO = "InvokeEndpointWithBidirectionalStreamOutput";
13
+ const _IPV = "InvokedProductionVariant";
14
+ const _ISE = "InternalServerError";
15
+ const _ISF = "InternalStreamFailure";
16
+ const _IVE = "InputValidationError";
17
+ const _LSA = "LogStreamArn";
18
+ const _M = "Message";
19
+ const _ME = "ModelError";
20
+ const _MIP = "ModelInvocationPath";
21
+ const _MQS = "ModelQueryString";
22
+ const _MSE = "ModelStreamError";
23
+ const _OM = "OriginalMessage";
24
+ const _OSC = "OriginalStatusCode";
25
+ const _P = "P";
26
+ const _PP = "PayloadPart";
27
+ const _RPP = "RequestPayloadPart";
28
+ const _RPPe = "ResponsePayloadPart";
29
+ const _RSE = "RequestStreamEvent";
30
+ const _RSEe = "ResponseStreamEvent";
31
+ const _SB = "SensitiveBlob";
32
+ const _SUE = "ServiceUnavailableError";
33
+ const _TV = "TargetVariant";
34
+ const _XAIPV = "X-Amzn-Invoked-Production-Variant";
35
+ const _XASMIP = "X-Amzn-SageMaker-Model-Invocation-Path";
36
+ const _XASMQS = "X-Amzn-SageMaker-Model-Query-String";
37
+ const _XASTV = "X-Amzn-SageMaker-Target-Variant";
38
+ const _c = "client";
39
+ const _e = "error";
40
+ const _eH = "eventHeader";
41
+ const _eP = "eventPayload";
42
+ const _h = "http";
43
+ const _hE = "httpError";
44
+ const _hH = "httpHeader";
45
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerruntimehttp2";
46
+ const _se = "server";
47
+ const _st = "streaming";
48
+ 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,
57
+ { [_e]: _c, [_hE]: 400 },
58
+ [_M, _EC],
59
+ [0, 0]
60
+ ];
61
+ n0_registry.registerError(exports.InputValidationError$, errors_1.InputValidationError);
62
+ exports.InternalServerError$ = [-3, n0, _ISE,
63
+ { [_e]: _se, [_hE]: 500 },
64
+ [_M, _EC],
65
+ [0, 0]
66
+ ];
67
+ n0_registry.registerError(exports.InternalServerError$, errors_1.InternalServerError);
68
+ exports.InternalStreamFailure$ = [-3, n0, _ISF,
69
+ { [_e]: _se },
70
+ [_M],
71
+ [0]
72
+ ];
73
+ n0_registry.registerError(exports.InternalStreamFailure$, errors_1.InternalStreamFailure);
74
+ exports.ModelError$ = [-3, n0, _ME,
75
+ { [_e]: _c, [_hE]: 424 },
76
+ [_M, _OSC, _OM, _LSA, _EC],
77
+ [0, 1, 0, 0, 0]
78
+ ];
79
+ n0_registry.registerError(exports.ModelError$, errors_1.ModelError);
80
+ exports.ModelStreamError$ = [-3, n0, _MSE,
81
+ { [_e]: _c },
82
+ [_M, _EC],
83
+ [0, 0]
84
+ ];
85
+ n0_registry.registerError(exports.ModelStreamError$, errors_1.ModelStreamError);
86
+ exports.ServiceUnavailableError$ = [-3, n0, _SUE,
87
+ { [_e]: _se, [_hE]: 503 },
88
+ [_M, _EC],
89
+ [0, 0]
90
+ ];
91
+ n0_registry.registerError(exports.ServiceUnavailableError$, errors_1.ServiceUnavailableError);
92
+ exports.errorTypeRegistries = [
93
+ _s_registry,
94
+ n0_registry,
95
+ ];
96
+ var SensitiveBlob = [0, n0, _SB, 8, 21];
97
+ exports.InvokeEndpointWithBidirectionalStreamInput$ = [3, n0, _IEWBSI,
98
+ 0,
99
+ [_EN, _B, _TV, _MIP, _MQS],
100
+ [[0, 1], [() => exports.RequestStreamEvent$, 16], [0, { [_hH]: _XASTV }], [0, { [_hH]: _XASMIP }], [0, { [_hH]: _XASMQS }]], 2
101
+ ];
102
+ exports.InvokeEndpointWithBidirectionalStreamOutput$ = [3, n0, _IEWBSO,
103
+ 0,
104
+ [_B, _IPV],
105
+ [[() => exports.ResponseStreamEvent$, 16], [0, { [_hH]: _XAIPV }]], 1
106
+ ];
107
+ exports.RequestPayloadPart$ = [3, n0, _RPP,
108
+ 0,
109
+ [_By, _DT, _CS, _P],
110
+ [[() => SensitiveBlob, { [_eP]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }]]
111
+ ];
112
+ exports.ResponsePayloadPart$ = [3, n0, _RPPe,
113
+ 0,
114
+ [_By, _DT, _CS, _P],
115
+ [[() => SensitiveBlob, { [_eP]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }]]
116
+ ];
117
+ exports.RequestStreamEvent$ = [4, n0, _RSE,
118
+ { [_st]: 1 },
119
+ [_PP],
120
+ [[() => exports.RequestPayloadPart$, 0]]
121
+ ];
122
+ exports.ResponseStreamEvent$ = [4, n0, _RSEe,
123
+ { [_st]: 1 },
124
+ [_PP, _MSE, _ISF],
125
+ [[() => exports.ResponsePayloadPart$, 0], [() => exports.ModelStreamError$, 0], [() => exports.InternalStreamFailure$, 0]]
126
+ ];
127
+ exports.InvokeEndpointWithBidirectionalStream$ = [9, n0, _IEWBS,
128
+ { [_h]: ["POST", "/endpoints/{EndpointName}/invocations-bidirectional-stream", 200] }, () => exports.InvokeEndpointWithBidirectionalStreamInput$, () => exports.InvokeEndpointWithBidirectionalStreamOutput$
129
+ ];
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultSageMakerRuntimeHTTP2HttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2025-10-01",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.sagemakerruntimehttp2",
30
+ errorTypeRegistries,
29
31
  version: "2025-10-01",
30
32
  serviceTarget: "AmazonSageMakerRuntimeHttp2",
31
33
  },
@@ -39,54 +39,68 @@ const _eP = "eventPayload";
39
39
  const _h = "http";
40
40
  const _hE = "httpError";
41
41
  const _hH = "httpHeader";
42
- const _s = "server";
43
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerruntimehttp2";
42
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerruntimehttp2";
43
+ const _se = "server";
44
44
  const _st = "streaming";
45
45
  const n0 = "com.amazonaws.sagemakerruntimehttp2";
46
46
  import { TypeRegistry } from "@smithy/core/schema";
47
47
  import { InputValidationError, InternalServerError, InternalStreamFailure, ModelError, ModelStreamError, ServiceUnavailableError, } from "../models/errors";
48
48
  import { SageMakerRuntimeHTTP2ServiceException } from "../models/SageMakerRuntimeHTTP2ServiceException";
49
- var SensitiveBlob = [0, n0, _SB, 8, 21];
49
+ const _s_registry = TypeRegistry.for(_s);
50
+ export var SageMakerRuntimeHTTP2ServiceException$ = [-3, _s, "SageMakerRuntimeHTTP2ServiceException", 0, [], []];
51
+ _s_registry.registerError(SageMakerRuntimeHTTP2ServiceException$, SageMakerRuntimeHTTP2ServiceException);
52
+ const n0_registry = TypeRegistry.for(n0);
50
53
  export var InputValidationError$ = [-3, n0, _IVE,
51
54
  { [_e]: _c, [_hE]: 400 },
52
55
  [_M, _EC],
53
56
  [0, 0]
54
57
  ];
55
- TypeRegistry.for(n0).registerError(InputValidationError$, InputValidationError);
58
+ n0_registry.registerError(InputValidationError$, InputValidationError);
56
59
  export var InternalServerError$ = [-3, n0, _ISE,
57
- { [_e]: _s, [_hE]: 500 },
60
+ { [_e]: _se, [_hE]: 500 },
58
61
  [_M, _EC],
59
62
  [0, 0]
60
63
  ];
61
- TypeRegistry.for(n0).registerError(InternalServerError$, InternalServerError);
64
+ n0_registry.registerError(InternalServerError$, InternalServerError);
62
65
  export var InternalStreamFailure$ = [-3, n0, _ISF,
63
- { [_e]: _s },
66
+ { [_e]: _se },
64
67
  [_M],
65
68
  [0]
66
69
  ];
67
- TypeRegistry.for(n0).registerError(InternalStreamFailure$, InternalStreamFailure);
68
- export var InvokeEndpointWithBidirectionalStreamInput$ = [3, n0, _IEWBSI,
69
- 0,
70
- [_EN, _B, _TV, _MIP, _MQS],
71
- [[0, 1], [() => RequestStreamEvent$, 16], [0, { [_hH]: _XASTV }], [0, { [_hH]: _XASMIP }], [0, { [_hH]: _XASMQS }]], 2
72
- ];
73
- export var InvokeEndpointWithBidirectionalStreamOutput$ = [3, n0, _IEWBSO,
74
- 0,
75
- [_B, _IPV],
76
- [[() => ResponseStreamEvent$, 16], [0, { [_hH]: _XAIPV }]], 1
77
- ];
70
+ n0_registry.registerError(InternalStreamFailure$, InternalStreamFailure);
78
71
  export var ModelError$ = [-3, n0, _ME,
79
72
  { [_e]: _c, [_hE]: 424 },
80
73
  [_M, _OSC, _OM, _LSA, _EC],
81
74
  [0, 1, 0, 0, 0]
82
75
  ];
83
- TypeRegistry.for(n0).registerError(ModelError$, ModelError);
76
+ n0_registry.registerError(ModelError$, ModelError);
84
77
  export var ModelStreamError$ = [-3, n0, _MSE,
85
78
  { [_e]: _c },
86
79
  [_M, _EC],
87
80
  [0, 0]
88
81
  ];
89
- TypeRegistry.for(n0).registerError(ModelStreamError$, ModelStreamError);
82
+ n0_registry.registerError(ModelStreamError$, ModelStreamError);
83
+ export var ServiceUnavailableError$ = [-3, n0, _SUE,
84
+ { [_e]: _se, [_hE]: 503 },
85
+ [_M, _EC],
86
+ [0, 0]
87
+ ];
88
+ n0_registry.registerError(ServiceUnavailableError$, ServiceUnavailableError);
89
+ export const errorTypeRegistries = [
90
+ _s_registry,
91
+ n0_registry,
92
+ ];
93
+ var SensitiveBlob = [0, n0, _SB, 8, 21];
94
+ export var InvokeEndpointWithBidirectionalStreamInput$ = [3, n0, _IEWBSI,
95
+ 0,
96
+ [_EN, _B, _TV, _MIP, _MQS],
97
+ [[0, 1], [() => RequestStreamEvent$, 16], [0, { [_hH]: _XASTV }], [0, { [_hH]: _XASMIP }], [0, { [_hH]: _XASMQS }]], 2
98
+ ];
99
+ export var InvokeEndpointWithBidirectionalStreamOutput$ = [3, n0, _IEWBSO,
100
+ 0,
101
+ [_B, _IPV],
102
+ [[() => ResponseStreamEvent$, 16], [0, { [_hH]: _XAIPV }]], 1
103
+ ];
90
104
  export var RequestPayloadPart$ = [3, n0, _RPP,
91
105
  0,
92
106
  [_By, _DT, _CS, _P],
@@ -97,14 +111,6 @@ export var ResponsePayloadPart$ = [3, n0, _RPPe,
97
111
  [_By, _DT, _CS, _P],
98
112
  [[() => SensitiveBlob, { [_eP]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }], [0, { [_eH]: 1 }]]
99
113
  ];
100
- export var ServiceUnavailableError$ = [-3, n0, _SUE,
101
- { [_e]: _s, [_hE]: 503 },
102
- [_M, _EC],
103
- [0, 0]
104
- ];
105
- TypeRegistry.for(n0).registerError(ServiceUnavailableError$, ServiceUnavailableError);
106
- export var SageMakerRuntimeHTTP2ServiceException$ = [-3, _sm, "SageMakerRuntimeHTTP2ServiceException", 0, [], []];
107
- TypeRegistry.for(_sm).registerError(SageMakerRuntimeHTTP2ServiceException$, SageMakerRuntimeHTTP2ServiceException);
108
114
  export var RequestStreamEvent$ = [4, n0, _RSE,
109
115
  { [_st]: 1 },
110
116
  [_PP],
@@ -1,15 +1,22 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
3
+ export declare var SageMakerRuntimeHTTP2ServiceException$: StaticErrorSchema;
2
4
  export declare var InputValidationError$: StaticErrorSchema;
3
5
  export declare var InternalServerError$: StaticErrorSchema;
4
6
  export declare var InternalStreamFailure$: StaticErrorSchema;
5
- export declare var InvokeEndpointWithBidirectionalStreamInput$: StaticStructureSchema;
6
- export declare var InvokeEndpointWithBidirectionalStreamOutput$: StaticStructureSchema;
7
7
  export declare var ModelError$: StaticErrorSchema;
8
8
  export declare var ModelStreamError$: StaticErrorSchema;
9
+ export declare var ServiceUnavailableError$: StaticErrorSchema;
10
+ /**
11
+ * TypeRegistry instances containing modeled errors.
12
+ * @internal
13
+ *
14
+ */
15
+ export declare const errorTypeRegistries: TypeRegistry[];
16
+ export declare var InvokeEndpointWithBidirectionalStreamInput$: StaticStructureSchema;
17
+ export declare var InvokeEndpointWithBidirectionalStreamOutput$: StaticStructureSchema;
9
18
  export declare var RequestPayloadPart$: StaticStructureSchema;
10
19
  export declare var ResponsePayloadPart$: StaticStructureSchema;
11
- export declare var ServiceUnavailableError$: StaticErrorSchema;
12
- export declare var SageMakerRuntimeHTTP2ServiceException$: StaticErrorSchema;
13
20
  export declare var RequestStreamEvent$: StaticUnionSchema;
14
21
  export declare var ResponseStreamEvent$: StaticUnionSchema;
15
22
  export declare var InvokeEndpointWithBidirectionalStream$: StaticOperationSchema;
@@ -1,20 +1,22 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  StaticUnionSchema,
6
7
  } from "@smithy/types";
8
+ export declare var SageMakerRuntimeHTTP2ServiceException$: StaticErrorSchema;
7
9
  export declare var InputValidationError$: StaticErrorSchema;
8
10
  export declare var InternalServerError$: StaticErrorSchema;
9
11
  export declare var InternalStreamFailure$: StaticErrorSchema;
10
- export declare var InvokeEndpointWithBidirectionalStreamInput$: StaticStructureSchema;
11
- export declare var InvokeEndpointWithBidirectionalStreamOutput$: StaticStructureSchema;
12
12
  export declare var ModelError$: StaticErrorSchema;
13
13
  export declare var ModelStreamError$: StaticErrorSchema;
14
+ export declare var ServiceUnavailableError$: StaticErrorSchema;
15
+ export declare const errorTypeRegistries: TypeRegistry[];
16
+ export declare var InvokeEndpointWithBidirectionalStreamInput$: StaticStructureSchema;
17
+ export declare var InvokeEndpointWithBidirectionalStreamOutput$: StaticStructureSchema;
14
18
  export declare var RequestPayloadPart$: StaticStructureSchema;
15
19
  export declare var ResponsePayloadPart$: StaticStructureSchema;
16
- export declare var ServiceUnavailableError$: StaticErrorSchema;
17
- export declare var SageMakerRuntimeHTTP2ServiceException$: StaticErrorSchema;
18
20
  export declare var RequestStreamEvent$: StaticUnionSchema;
19
21
  export declare var ResponseStreamEvent$: StaticUnionSchema;
20
22
  export declare var InvokeEndpointWithBidirectionalStream$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.986.0",
4
+ "version": "3.988.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 client-sagemaker-runtime-http2",
@@ -21,21 +21,21 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.8",
25
+ "@aws-sdk/credential-provider-node": "^3.972.7",
26
26
  "@aws-sdk/eventstream-handler-node": "^3.972.5",
27
27
  "@aws-sdk/middleware-eventstream": "^3.972.3",
28
28
  "@aws-sdk/middleware-host-header": "^3.972.3",
29
29
  "@aws-sdk/middleware-logger": "^3.972.3",
30
30
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
31
- "@aws-sdk/middleware-user-agent": "^3.972.7",
31
+ "@aws-sdk/middleware-user-agent": "^3.972.8",
32
32
  "@aws-sdk/region-config-resolver": "^3.972.3",
33
33
  "@aws-sdk/types": "^3.973.1",
34
- "@aws-sdk/util-endpoints": "3.986.0",
34
+ "@aws-sdk/util-endpoints": "3.988.0",
35
35
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
36
- "@aws-sdk/util-user-agent-node": "^3.972.5",
36
+ "@aws-sdk/util-user-agent-node": "^3.972.6",
37
37
  "@smithy/config-resolver": "^4.4.6",
38
- "@smithy/core": "^3.22.1",
38
+ "@smithy/core": "^3.23.0",
39
39
  "@smithy/eventstream-serde-browser": "^4.2.8",
40
40
  "@smithy/eventstream-serde-config-resolver": "^4.3.8",
41
41
  "@smithy/eventstream-serde-node": "^4.2.8",
@@ -43,21 +43,21 @@
43
43
  "@smithy/hash-node": "^4.2.8",
44
44
  "@smithy/invalid-dependency": "^4.2.8",
45
45
  "@smithy/middleware-content-length": "^4.2.8",
46
- "@smithy/middleware-endpoint": "^4.4.13",
47
- "@smithy/middleware-retry": "^4.4.30",
46
+ "@smithy/middleware-endpoint": "^4.4.14",
47
+ "@smithy/middleware-retry": "^4.4.31",
48
48
  "@smithy/middleware-serde": "^4.2.9",
49
49
  "@smithy/middleware-stack": "^4.2.8",
50
50
  "@smithy/node-config-provider": "^4.3.8",
51
- "@smithy/node-http-handler": "^4.4.9",
51
+ "@smithy/node-http-handler": "^4.4.10",
52
52
  "@smithy/protocol-http": "^5.3.8",
53
- "@smithy/smithy-client": "^4.11.2",
53
+ "@smithy/smithy-client": "^4.11.3",
54
54
  "@smithy/types": "^4.12.0",
55
55
  "@smithy/url-parser": "^4.2.8",
56
56
  "@smithy/util-base64": "^4.3.0",
57
57
  "@smithy/util-body-length-browser": "^4.2.0",
58
58
  "@smithy/util-body-length-node": "^4.2.1",
59
- "@smithy/util-defaults-mode-browser": "^4.3.29",
60
- "@smithy/util-defaults-mode-node": "^4.2.32",
59
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
60
+ "@smithy/util-defaults-mode-node": "^4.2.33",
61
61
  "@smithy/util-endpoints": "^3.2.8",
62
62
  "@smithy/util-middleware": "^4.2.8",
63
63
  "@smithy/util-retry": "^4.2.8",