@aws-sdk/client-sagemaker-runtime 3.952.0 → 3.953.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
@@ -112,14 +112,14 @@ class SageMakerRuntimeClient extends smithyClient.Client {
112
112
  }
113
113
  }
114
114
 
115
- let SageMakerRuntimeServiceException$1 = class SageMakerRuntimeServiceException extends smithyClient.ServiceException {
115
+ class SageMakerRuntimeServiceException extends smithyClient.ServiceException {
116
116
  constructor(options) {
117
117
  super(options);
118
118
  Object.setPrototypeOf(this, SageMakerRuntimeServiceException.prototype);
119
119
  }
120
- };
120
+ }
121
121
 
122
- let InternalDependencyException$1 = class InternalDependencyException extends SageMakerRuntimeServiceException$1 {
122
+ class InternalDependencyException extends SageMakerRuntimeServiceException {
123
123
  name = "InternalDependencyException";
124
124
  $fault = "server";
125
125
  Message;
@@ -132,8 +132,8 @@ let InternalDependencyException$1 = class InternalDependencyException extends Sa
132
132
  Object.setPrototypeOf(this, InternalDependencyException.prototype);
133
133
  this.Message = opts.Message;
134
134
  }
135
- };
136
- let InternalFailure$1 = class InternalFailure extends SageMakerRuntimeServiceException$1 {
135
+ }
136
+ class InternalFailure extends SageMakerRuntimeServiceException {
137
137
  name = "InternalFailure";
138
138
  $fault = "server";
139
139
  Message;
@@ -146,8 +146,8 @@ let InternalFailure$1 = class InternalFailure extends SageMakerRuntimeServiceExc
146
146
  Object.setPrototypeOf(this, InternalFailure.prototype);
147
147
  this.Message = opts.Message;
148
148
  }
149
- };
150
- let ModelError$1 = class ModelError extends SageMakerRuntimeServiceException$1 {
149
+ }
150
+ class ModelError extends SageMakerRuntimeServiceException {
151
151
  name = "ModelError";
152
152
  $fault = "client";
153
153
  Message;
@@ -166,8 +166,8 @@ let ModelError$1 = class ModelError extends SageMakerRuntimeServiceException$1 {
166
166
  this.OriginalMessage = opts.OriginalMessage;
167
167
  this.LogStreamArn = opts.LogStreamArn;
168
168
  }
169
- };
170
- let ModelNotReadyException$1 = class ModelNotReadyException extends SageMakerRuntimeServiceException$1 {
169
+ }
170
+ class ModelNotReadyException extends SageMakerRuntimeServiceException {
171
171
  name = "ModelNotReadyException";
172
172
  $fault = "client";
173
173
  Message;
@@ -180,8 +180,8 @@ let ModelNotReadyException$1 = class ModelNotReadyException extends SageMakerRun
180
180
  Object.setPrototypeOf(this, ModelNotReadyException.prototype);
181
181
  this.Message = opts.Message;
182
182
  }
183
- };
184
- let ServiceUnavailable$1 = class ServiceUnavailable extends SageMakerRuntimeServiceException$1 {
183
+ }
184
+ class ServiceUnavailable extends SageMakerRuntimeServiceException {
185
185
  name = "ServiceUnavailable";
186
186
  $fault = "server";
187
187
  Message;
@@ -194,8 +194,8 @@ let ServiceUnavailable$1 = class ServiceUnavailable extends SageMakerRuntimeServ
194
194
  Object.setPrototypeOf(this, ServiceUnavailable.prototype);
195
195
  this.Message = opts.Message;
196
196
  }
197
- };
198
- let ValidationError$1 = class ValidationError extends SageMakerRuntimeServiceException$1 {
197
+ }
198
+ class ValidationError extends SageMakerRuntimeServiceException {
199
199
  name = "ValidationError";
200
200
  $fault = "client";
201
201
  Message;
@@ -208,8 +208,8 @@ let ValidationError$1 = class ValidationError extends SageMakerRuntimeServiceExc
208
208
  Object.setPrototypeOf(this, ValidationError.prototype);
209
209
  this.Message = opts.Message;
210
210
  }
211
- };
212
- let InternalStreamFailure$1 = class InternalStreamFailure extends SageMakerRuntimeServiceException$1 {
211
+ }
212
+ class InternalStreamFailure extends SageMakerRuntimeServiceException {
213
213
  name = "InternalStreamFailure";
214
214
  $fault = "server";
215
215
  Message;
@@ -222,8 +222,8 @@ let InternalStreamFailure$1 = class InternalStreamFailure extends SageMakerRunti
222
222
  Object.setPrototypeOf(this, InternalStreamFailure.prototype);
223
223
  this.Message = opts.Message;
224
224
  }
225
- };
226
- let ModelStreamError$1 = class ModelStreamError extends SageMakerRuntimeServiceException$1 {
225
+ }
226
+ class ModelStreamError extends SageMakerRuntimeServiceException {
227
227
  name = "ModelStreamError";
228
228
  $fault = "client";
229
229
  Message;
@@ -238,7 +238,7 @@ let ModelStreamError$1 = class ModelStreamError extends SageMakerRuntimeServiceE
238
238
  this.Message = opts.Message;
239
239
  this.ErrorCode = opts.ErrorCode;
240
240
  }
241
- };
241
+ }
242
242
 
243
243
  const _A = "Accept";
244
244
  const _B = "Body";
@@ -321,13 +321,13 @@ const n0 = "com.amazonaws.sagemakerruntime";
321
321
  var BodyBlob = [0, n0, _BB, 8, 21];
322
322
  var CustomAttributesHeader = [0, n0, _CAH, 8, 0];
323
323
  var PartBlob = [0, n0, _PB, 8, 21];
324
- var InternalDependencyException = [-3, n0, _IDE, { [_e]: _s, [_hE]: 530 }, [_M], [0]];
325
- schema.TypeRegistry.for(n0).registerError(InternalDependencyException, InternalDependencyException$1);
326
- var InternalFailure = [-3, n0, _IF, { [_e]: _s, [_hE]: 500 }, [_M], [0]];
327
- schema.TypeRegistry.for(n0).registerError(InternalFailure, InternalFailure$1);
328
- var InternalStreamFailure = [-3, n0, _ISF, { [_e]: _s }, [_M], [0]];
329
- schema.TypeRegistry.for(n0).registerError(InternalStreamFailure, InternalStreamFailure$1);
330
- var InvokeEndpointAsyncInput = [
324
+ var InternalDependencyException$ = [-3, n0, _IDE, { [_e]: _s, [_hE]: 530 }, [_M], [0]];
325
+ schema.TypeRegistry.for(n0).registerError(InternalDependencyException$, InternalDependencyException);
326
+ var InternalFailure$ = [-3, n0, _IF, { [_e]: _s, [_hE]: 500 }, [_M], [0]];
327
+ schema.TypeRegistry.for(n0).registerError(InternalFailure$, InternalFailure);
328
+ var InternalStreamFailure$ = [-3, n0, _ISF, { [_e]: _s }, [_M], [0]];
329
+ schema.TypeRegistry.for(n0).registerError(InternalStreamFailure$, InternalStreamFailure);
330
+ var InvokeEndpointAsyncInput$ = [
331
331
  3,
332
332
  n0,
333
333
  _IEAI,
@@ -344,7 +344,7 @@ var InvokeEndpointAsyncInput = [
344
344
  [1, { [_hH]: _XASI_ }],
345
345
  ],
346
346
  ];
347
- var InvokeEndpointAsyncOutput = [
347
+ var InvokeEndpointAsyncOutput$ = [
348
348
  3,
349
349
  n0,
350
350
  _IEAO,
@@ -352,7 +352,7 @@ var InvokeEndpointAsyncOutput = [
352
352
  [_II, _OL, _FL],
353
353
  [0, [0, { [_hH]: _XASO }], [0, { [_hH]: _XASF }]],
354
354
  ];
355
- var InvokeEndpointInput = [
355
+ var InvokeEndpointInput$ = [
356
356
  3,
357
357
  n0,
358
358
  _IEI,
@@ -373,7 +373,7 @@ var InvokeEndpointInput = [
373
373
  [0, { [_hH]: _XASSI }],
374
374
  ],
375
375
  ];
376
- var InvokeEndpointOutput = [
376
+ var InvokeEndpointOutput$ = [
377
377
  3,
378
378
  n0,
379
379
  _IEO,
@@ -388,7 +388,7 @@ var InvokeEndpointOutput = [
388
388
  [0, { [_hH]: _XASCSI }],
389
389
  ],
390
390
  ];
391
- var InvokeEndpointWithResponseStreamInput = [
391
+ var InvokeEndpointWithResponseStreamInput$ = [
392
392
  3,
393
393
  n0,
394
394
  _IEWRSI,
@@ -407,22 +407,29 @@ var InvokeEndpointWithResponseStreamInput = [
407
407
  [0, { [_hH]: _XASSI }],
408
408
  ],
409
409
  ];
410
- var InvokeEndpointWithResponseStreamOutput = [
410
+ var InvokeEndpointWithResponseStreamOutput$ = [
411
411
  3,
412
412
  n0,
413
413
  _IEWRSO,
414
414
  0,
415
415
  [_B, _CT, _IPV, _CA],
416
416
  [
417
- [() => ResponseStream, 16],
417
+ [() => ResponseStream$, 16],
418
418
  [0, { [_hH]: _XASCT }],
419
419
  [0, { [_hH]: _xAIPV }],
420
420
  [() => CustomAttributesHeader, { [_hH]: _XASCA }],
421
421
  ],
422
422
  ];
423
- var ModelError = [-3, n0, _ME, { [_e]: _c, [_hE]: 424 }, [_M, _OSC, _OM, _LSA], [0, 1, 0, 0]];
424
- schema.TypeRegistry.for(n0).registerError(ModelError, ModelError$1);
425
- var ModelNotReadyException = [
423
+ var ModelError$ = [
424
+ -3,
425
+ n0,
426
+ _ME,
427
+ { [_e]: _c, [_hE]: 424 },
428
+ [_M, _OSC, _OM, _LSA],
429
+ [0, 1, 0, 0],
430
+ ];
431
+ schema.TypeRegistry.for(n0).registerError(ModelError$, ModelError);
432
+ var ModelNotReadyException$ = [
426
433
  -3,
427
434
  n0,
428
435
  _MNRE,
@@ -430,15 +437,15 @@ var ModelNotReadyException = [
430
437
  [_M],
431
438
  [0],
432
439
  ];
433
- schema.TypeRegistry.for(n0).registerError(ModelNotReadyException, ModelNotReadyException$1);
434
- var ModelStreamError = [-3, n0, _MSE, { [_e]: _c }, [_M, _EC], [0, 0]];
435
- schema.TypeRegistry.for(n0).registerError(ModelStreamError, ModelStreamError$1);
436
- var PayloadPart = [3, n0, _PP, 0, [_By], [[() => PartBlob, { [_eP]: 1 }]]];
437
- var ServiceUnavailable = [-3, n0, _SU, { [_e]: _s, [_hE]: 503 }, [_M], [0]];
438
- schema.TypeRegistry.for(n0).registerError(ServiceUnavailable, ServiceUnavailable$1);
439
- var ValidationError = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
440
- schema.TypeRegistry.for(n0).registerError(ValidationError, ValidationError$1);
441
- var SageMakerRuntimeServiceException = [
440
+ schema.TypeRegistry.for(n0).registerError(ModelNotReadyException$, ModelNotReadyException);
441
+ var ModelStreamError$ = [-3, n0, _MSE, { [_e]: _c }, [_M, _EC], [0, 0]];
442
+ schema.TypeRegistry.for(n0).registerError(ModelStreamError$, ModelStreamError);
443
+ var PayloadPart$ = [3, n0, _PP, 0, [_By], [[() => PartBlob, { [_eP]: 1 }]]];
444
+ var ServiceUnavailable$ = [-3, n0, _SU, { [_e]: _s, [_hE]: 503 }, [_M], [0]];
445
+ schema.TypeRegistry.for(n0).registerError(ServiceUnavailable$, ServiceUnavailable);
446
+ var ValidationError$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
447
+ schema.TypeRegistry.for(n0).registerError(ValidationError$, ValidationError);
448
+ var SageMakerRuntimeServiceException$ = [
442
449
  -3,
443
450
  _sm,
444
451
  "SageMakerRuntimeServiceException",
@@ -446,42 +453,42 @@ var SageMakerRuntimeServiceException = [
446
453
  [],
447
454
  [],
448
455
  ];
449
- schema.TypeRegistry.for(_sm).registerError(SageMakerRuntimeServiceException, SageMakerRuntimeServiceException$1);
450
- var ResponseStream = [
456
+ schema.TypeRegistry.for(_sm).registerError(SageMakerRuntimeServiceException$, SageMakerRuntimeServiceException);
457
+ var ResponseStream$ = [
451
458
  3,
452
459
  n0,
453
460
  _RS,
454
461
  { [_st]: 1 },
455
462
  [_PP, _MSE, _ISF],
456
463
  [
457
- [() => PayloadPart, 0],
458
- [() => ModelStreamError, 0],
459
- [() => InternalStreamFailure, 0],
464
+ [() => PayloadPart$, 0],
465
+ [() => ModelStreamError$, 0],
466
+ [() => InternalStreamFailure$, 0],
460
467
  ],
461
468
  ];
462
- var InvokeEndpoint = [
469
+ var InvokeEndpoint$ = [
463
470
  9,
464
471
  n0,
465
472
  _IE,
466
473
  { [_h]: ["POST", "/endpoints/{EndpointName}/invocations", 200] },
467
- () => InvokeEndpointInput,
468
- () => InvokeEndpointOutput,
474
+ () => InvokeEndpointInput$,
475
+ () => InvokeEndpointOutput$,
469
476
  ];
470
- var InvokeEndpointAsync = [
477
+ var InvokeEndpointAsync$ = [
471
478
  9,
472
479
  n0,
473
480
  _IEA,
474
481
  { [_h]: ["POST", "/endpoints/{EndpointName}/async-invocations", 202] },
475
- () => InvokeEndpointAsyncInput,
476
- () => InvokeEndpointAsyncOutput,
482
+ () => InvokeEndpointAsyncInput$,
483
+ () => InvokeEndpointAsyncOutput$,
477
484
  ];
478
- var InvokeEndpointWithResponseStream = [
485
+ var InvokeEndpointWithResponseStream$ = [
479
486
  9,
480
487
  n0,
481
488
  _IEWRS,
482
489
  { [_h]: ["POST", "/endpoints/{EndpointName}/invocations-response-stream", 200] },
483
- () => InvokeEndpointWithResponseStreamInput,
484
- () => InvokeEndpointWithResponseStreamOutput,
490
+ () => InvokeEndpointWithResponseStreamInput$,
491
+ () => InvokeEndpointWithResponseStreamOutput$,
485
492
  ];
486
493
 
487
494
  class InvokeEndpointAsyncCommand extends smithyClient.Command
@@ -492,7 +499,7 @@ class InvokeEndpointAsyncCommand extends smithyClient.Command
492
499
  })
493
500
  .s("AmazonSageMakerRuntime", "InvokeEndpointAsync", {})
494
501
  .n("SageMakerRuntimeClient", "InvokeEndpointAsyncCommand")
495
- .sc(InvokeEndpointAsync)
502
+ .sc(InvokeEndpointAsync$)
496
503
  .build() {
497
504
  }
498
505
 
@@ -504,7 +511,7 @@ class InvokeEndpointCommand extends smithyClient.Command
504
511
  })
505
512
  .s("AmazonSageMakerRuntime", "InvokeEndpoint", {})
506
513
  .n("SageMakerRuntimeClient", "InvokeEndpointCommand")
507
- .sc(InvokeEndpoint)
514
+ .sc(InvokeEndpoint$)
508
515
  .build() {
509
516
  }
510
517
 
@@ -520,7 +527,7 @@ class InvokeEndpointWithResponseStreamCommand extends smithyClient.Command
520
527
  },
521
528
  })
522
529
  .n("SageMakerRuntimeClient", "InvokeEndpointWithResponseStreamCommand")
523
- .sc(InvokeEndpointWithResponseStream)
530
+ .sc(InvokeEndpointWithResponseStream$)
524
531
  .build() {
525
532
  }
526
533
 
@@ -541,17 +548,37 @@ Object.defineProperty(exports, "__Client", {
541
548
  enumerable: true,
542
549
  get: function () { return smithyClient.Client; }
543
550
  });
544
- exports.InternalDependencyException = InternalDependencyException$1;
545
- exports.InternalFailure = InternalFailure$1;
546
- exports.InternalStreamFailure = InternalStreamFailure$1;
551
+ exports.InternalDependencyException = InternalDependencyException;
552
+ exports.InternalDependencyException$ = InternalDependencyException$;
553
+ exports.InternalFailure = InternalFailure;
554
+ exports.InternalFailure$ = InternalFailure$;
555
+ exports.InternalStreamFailure = InternalStreamFailure;
556
+ exports.InternalStreamFailure$ = InternalStreamFailure$;
557
+ exports.InvokeEndpoint$ = InvokeEndpoint$;
558
+ exports.InvokeEndpointAsync$ = InvokeEndpointAsync$;
547
559
  exports.InvokeEndpointAsyncCommand = InvokeEndpointAsyncCommand;
560
+ exports.InvokeEndpointAsyncInput$ = InvokeEndpointAsyncInput$;
561
+ exports.InvokeEndpointAsyncOutput$ = InvokeEndpointAsyncOutput$;
548
562
  exports.InvokeEndpointCommand = InvokeEndpointCommand;
563
+ exports.InvokeEndpointInput$ = InvokeEndpointInput$;
564
+ exports.InvokeEndpointOutput$ = InvokeEndpointOutput$;
565
+ exports.InvokeEndpointWithResponseStream$ = InvokeEndpointWithResponseStream$;
549
566
  exports.InvokeEndpointWithResponseStreamCommand = InvokeEndpointWithResponseStreamCommand;
550
- exports.ModelError = ModelError$1;
551
- exports.ModelNotReadyException = ModelNotReadyException$1;
552
- exports.ModelStreamError = ModelStreamError$1;
567
+ exports.InvokeEndpointWithResponseStreamInput$ = InvokeEndpointWithResponseStreamInput$;
568
+ exports.InvokeEndpointWithResponseStreamOutput$ = InvokeEndpointWithResponseStreamOutput$;
569
+ exports.ModelError = ModelError;
570
+ exports.ModelError$ = ModelError$;
571
+ exports.ModelNotReadyException = ModelNotReadyException;
572
+ exports.ModelNotReadyException$ = ModelNotReadyException$;
573
+ exports.ModelStreamError = ModelStreamError;
574
+ exports.ModelStreamError$ = ModelStreamError$;
575
+ exports.PayloadPart$ = PayloadPart$;
576
+ exports.ResponseStream$ = ResponseStream$;
553
577
  exports.SageMakerRuntime = SageMakerRuntime;
554
578
  exports.SageMakerRuntimeClient = SageMakerRuntimeClient;
555
- exports.SageMakerRuntimeServiceException = SageMakerRuntimeServiceException$1;
556
- exports.ServiceUnavailable = ServiceUnavailable$1;
557
- exports.ValidationError = ValidationError$1;
579
+ exports.SageMakerRuntimeServiceException = SageMakerRuntimeServiceException;
580
+ exports.SageMakerRuntimeServiceException$ = SageMakerRuntimeServiceException$;
581
+ exports.ServiceUnavailable = ServiceUnavailable;
582
+ exports.ServiceUnavailable$ = ServiceUnavailable$;
583
+ exports.ValidationError = ValidationError;
584
+ exports.ValidationError$ = ValidationError$;
@@ -26,7 +26,12 @@ const getRuntimeConfig = (config) => {
26
26
  },
27
27
  ],
28
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
- protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.sagemakerruntime" }),
29
+ protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
+ protocolSettings: config?.protocolSettings ?? {
31
+ defaultNamespace: "com.amazonaws.sagemakerruntime",
32
+ version: "2017-05-13",
33
+ serviceTarget: "AmazonSageMakerRuntime",
34
+ },
30
35
  serviceId: config?.serviceId ?? "SageMaker Runtime",
31
36
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
32
37
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { InvokeEndpointAsync } from "../schemas/schemas_0";
4
+ import { InvokeEndpointAsync$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class InvokeEndpointAsyncCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class InvokeEndpointAsyncCommand extends $Command
11
11
  })
12
12
  .s("AmazonSageMakerRuntime", "InvokeEndpointAsync", {})
13
13
  .n("SageMakerRuntimeClient", "InvokeEndpointAsyncCommand")
14
- .sc(InvokeEndpointAsync)
14
+ .sc(InvokeEndpointAsync$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { InvokeEndpoint } from "../schemas/schemas_0";
4
+ import { InvokeEndpoint$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class InvokeEndpointCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class InvokeEndpointCommand extends $Command
11
11
  })
12
12
  .s("AmazonSageMakerRuntime", "InvokeEndpoint", {})
13
13
  .n("SageMakerRuntimeClient", "InvokeEndpointCommand")
14
- .sc(InvokeEndpoint)
14
+ .sc(InvokeEndpoint$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { InvokeEndpointWithResponseStream } from "../schemas/schemas_0";
4
+ import { InvokeEndpointWithResponseStream$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class InvokeEndpointWithResponseStreamCommand extends $Command
7
7
  .classBuilder()
@@ -15,6 +15,6 @@ export class InvokeEndpointWithResponseStreamCommand extends $Command
15
15
  },
16
16
  })
17
17
  .n("SageMakerRuntimeClient", "InvokeEndpointWithResponseStreamCommand")
18
- .sc(InvokeEndpointWithResponseStream)
18
+ .sc(InvokeEndpointWithResponseStream$)
19
19
  .build() {
20
20
  }
package/dist-es/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./SageMakerRuntimeClient";
2
2
  export * from "./SageMakerRuntime";
3
3
  export * from "./commands";
4
+ export * from "./schemas/schemas_0";
4
5
  export * from "./models/errors";
5
6
  export { SageMakerRuntimeServiceException } from "./models/SageMakerRuntimeServiceException";
@@ -23,7 +23,12 @@ export const getRuntimeConfig = (config) => {
23
23
  },
24
24
  ],
25
25
  logger: config?.logger ?? new NoOpLogger(),
26
- protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.sagemakerruntime" }),
26
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
27
+ protocolSettings: config?.protocolSettings ?? {
28
+ defaultNamespace: "com.amazonaws.sagemakerruntime",
29
+ version: "2017-05-13",
30
+ serviceTarget: "AmazonSageMakerRuntime",
31
+ },
27
32
  serviceId: config?.serviceId ?? "SageMaker Runtime",
28
33
  urlParser: config?.urlParser ?? parseUrl,
29
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
@@ -77,18 +77,18 @@ const _st = "streaming";
77
77
  const _xAIPV = "x-Amzn-Invoked-Production-Variant";
78
78
  const n0 = "com.amazonaws.sagemakerruntime";
79
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/errors";
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 = [-3, n0, _IDE, { [_e]: _s, [_hE]: 530 }, [_M], [0]];
86
- TypeRegistry.for(n0).registerError(InternalDependencyException, __InternalDependencyException);
87
- export var InternalFailure = [-3, n0, _IF, { [_e]: _s, [_hE]: 500 }, [_M], [0]];
88
- TypeRegistry.for(n0).registerError(InternalFailure, __InternalFailure);
89
- export var InternalStreamFailure = [-3, n0, _ISF, { [_e]: _s }, [_M], [0]];
90
- TypeRegistry.for(n0).registerError(InternalStreamFailure, __InternalStreamFailure);
91
- export var InvokeEndpointAsyncInput = [
80
+ import { InternalDependencyException, InternalFailure, InternalStreamFailure, ModelError, ModelNotReadyException, ModelStreamError, ServiceUnavailable, ValidationError, } from "../models/errors";
81
+ import { SageMakerRuntimeServiceException } from "../models/SageMakerRuntimeServiceException";
82
+ var BodyBlob = [0, n0, _BB, 8, 21];
83
+ var CustomAttributesHeader = [0, n0, _CAH, 8, 0];
84
+ var PartBlob = [0, n0, _PB, 8, 21];
85
+ export var InternalDependencyException$ = [-3, n0, _IDE, { [_e]: _s, [_hE]: 530 }, [_M], [0]];
86
+ TypeRegistry.for(n0).registerError(InternalDependencyException$, InternalDependencyException);
87
+ export var InternalFailure$ = [-3, n0, _IF, { [_e]: _s, [_hE]: 500 }, [_M], [0]];
88
+ TypeRegistry.for(n0).registerError(InternalFailure$, InternalFailure);
89
+ export var InternalStreamFailure$ = [-3, n0, _ISF, { [_e]: _s }, [_M], [0]];
90
+ TypeRegistry.for(n0).registerError(InternalStreamFailure$, InternalStreamFailure);
91
+ export var InvokeEndpointAsyncInput$ = [
92
92
  3,
93
93
  n0,
94
94
  _IEAI,
@@ -105,7 +105,7 @@ export var InvokeEndpointAsyncInput = [
105
105
  [1, { [_hH]: _XASI_ }],
106
106
  ],
107
107
  ];
108
- export var InvokeEndpointAsyncOutput = [
108
+ export var InvokeEndpointAsyncOutput$ = [
109
109
  3,
110
110
  n0,
111
111
  _IEAO,
@@ -113,7 +113,7 @@ export var InvokeEndpointAsyncOutput = [
113
113
  [_II, _OL, _FL],
114
114
  [0, [0, { [_hH]: _XASO }], [0, { [_hH]: _XASF }]],
115
115
  ];
116
- export var InvokeEndpointInput = [
116
+ export var InvokeEndpointInput$ = [
117
117
  3,
118
118
  n0,
119
119
  _IEI,
@@ -134,7 +134,7 @@ export var InvokeEndpointInput = [
134
134
  [0, { [_hH]: _XASSI }],
135
135
  ],
136
136
  ];
137
- export var InvokeEndpointOutput = [
137
+ export var InvokeEndpointOutput$ = [
138
138
  3,
139
139
  n0,
140
140
  _IEO,
@@ -149,7 +149,7 @@ export var InvokeEndpointOutput = [
149
149
  [0, { [_hH]: _XASCSI }],
150
150
  ],
151
151
  ];
152
- export var InvokeEndpointWithResponseStreamInput = [
152
+ export var InvokeEndpointWithResponseStreamInput$ = [
153
153
  3,
154
154
  n0,
155
155
  _IEWRSI,
@@ -168,22 +168,29 @@ export var InvokeEndpointWithResponseStreamInput = [
168
168
  [0, { [_hH]: _XASSI }],
169
169
  ],
170
170
  ];
171
- export var InvokeEndpointWithResponseStreamOutput = [
171
+ export var InvokeEndpointWithResponseStreamOutput$ = [
172
172
  3,
173
173
  n0,
174
174
  _IEWRSO,
175
175
  0,
176
176
  [_B, _CT, _IPV, _CA],
177
177
  [
178
- [() => ResponseStream, 16],
178
+ [() => ResponseStream$, 16],
179
179
  [0, { [_hH]: _XASCT }],
180
180
  [0, { [_hH]: _xAIPV }],
181
181
  [() => CustomAttributesHeader, { [_hH]: _XASCA }],
182
182
  ],
183
183
  ];
184
- export var ModelError = [-3, n0, _ME, { [_e]: _c, [_hE]: 424 }, [_M, _OSC, _OM, _LSA], [0, 1, 0, 0]];
185
- TypeRegistry.for(n0).registerError(ModelError, __ModelError);
186
- export var ModelNotReadyException = [
184
+ export var ModelError$ = [
185
+ -3,
186
+ n0,
187
+ _ME,
188
+ { [_e]: _c, [_hE]: 424 },
189
+ [_M, _OSC, _OM, _LSA],
190
+ [0, 1, 0, 0],
191
+ ];
192
+ TypeRegistry.for(n0).registerError(ModelError$, ModelError);
193
+ export var ModelNotReadyException$ = [
187
194
  -3,
188
195
  n0,
189
196
  _MNRE,
@@ -191,15 +198,15 @@ export var ModelNotReadyException = [
191
198
  [_M],
192
199
  [0],
193
200
  ];
194
- TypeRegistry.for(n0).registerError(ModelNotReadyException, __ModelNotReadyException);
195
- export var ModelStreamError = [-3, n0, _MSE, { [_e]: _c }, [_M, _EC], [0, 0]];
196
- TypeRegistry.for(n0).registerError(ModelStreamError, __ModelStreamError);
197
- export var PayloadPart = [3, n0, _PP, 0, [_By], [[() => PartBlob, { [_eP]: 1 }]]];
198
- export var ServiceUnavailable = [-3, n0, _SU, { [_e]: _s, [_hE]: 503 }, [_M], [0]];
199
- TypeRegistry.for(n0).registerError(ServiceUnavailable, __ServiceUnavailable);
200
- export var ValidationError = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
201
- TypeRegistry.for(n0).registerError(ValidationError, __ValidationError);
202
- export var SageMakerRuntimeServiceException = [
201
+ TypeRegistry.for(n0).registerError(ModelNotReadyException$, ModelNotReadyException);
202
+ export var ModelStreamError$ = [-3, n0, _MSE, { [_e]: _c }, [_M, _EC], [0, 0]];
203
+ TypeRegistry.for(n0).registerError(ModelStreamError$, ModelStreamError);
204
+ export var PayloadPart$ = [3, n0, _PP, 0, [_By], [[() => PartBlob, { [_eP]: 1 }]]];
205
+ export var ServiceUnavailable$ = [-3, n0, _SU, { [_e]: _s, [_hE]: 503 }, [_M], [0]];
206
+ TypeRegistry.for(n0).registerError(ServiceUnavailable$, ServiceUnavailable);
207
+ export var ValidationError$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
208
+ TypeRegistry.for(n0).registerError(ValidationError$, ValidationError);
209
+ export var SageMakerRuntimeServiceException$ = [
203
210
  -3,
204
211
  _sm,
205
212
  "SageMakerRuntimeServiceException",
@@ -207,40 +214,40 @@ export var SageMakerRuntimeServiceException = [
207
214
  [],
208
215
  [],
209
216
  ];
210
- TypeRegistry.for(_sm).registerError(SageMakerRuntimeServiceException, __SageMakerRuntimeServiceException);
211
- export var ResponseStream = [
217
+ TypeRegistry.for(_sm).registerError(SageMakerRuntimeServiceException$, SageMakerRuntimeServiceException);
218
+ export var ResponseStream$ = [
212
219
  3,
213
220
  n0,
214
221
  _RS,
215
222
  { [_st]: 1 },
216
223
  [_PP, _MSE, _ISF],
217
224
  [
218
- [() => PayloadPart, 0],
219
- [() => ModelStreamError, 0],
220
- [() => InternalStreamFailure, 0],
225
+ [() => PayloadPart$, 0],
226
+ [() => ModelStreamError$, 0],
227
+ [() => InternalStreamFailure$, 0],
221
228
  ],
222
229
  ];
223
- export var InvokeEndpoint = [
230
+ export var InvokeEndpoint$ = [
224
231
  9,
225
232
  n0,
226
233
  _IE,
227
234
  { [_h]: ["POST", "/endpoints/{EndpointName}/invocations", 200] },
228
- () => InvokeEndpointInput,
229
- () => InvokeEndpointOutput,
235
+ () => InvokeEndpointInput$,
236
+ () => InvokeEndpointOutput$,
230
237
  ];
231
- export var InvokeEndpointAsync = [
238
+ export var InvokeEndpointAsync$ = [
232
239
  9,
233
240
  n0,
234
241
  _IEA,
235
242
  { [_h]: ["POST", "/endpoints/{EndpointName}/async-invocations", 202] },
236
- () => InvokeEndpointAsyncInput,
237
- () => InvokeEndpointAsyncOutput,
243
+ () => InvokeEndpointAsyncInput$,
244
+ () => InvokeEndpointAsyncOutput$,
238
245
  ];
239
- export var InvokeEndpointWithResponseStream = [
246
+ export var InvokeEndpointWithResponseStream$ = [
240
247
  9,
241
248
  n0,
242
249
  _IEWRS,
243
250
  { [_h]: ["POST", "/endpoints/{EndpointName}/invocations-response-stream", 200] },
244
- () => InvokeEndpointWithResponseStreamInput,
245
- () => InvokeEndpointWithResponseStreamOutput,
251
+ () => InvokeEndpointWithResponseStreamInput$,
252
+ () => InvokeEndpointWithResponseStreamOutput$,
246
253
  ];
@@ -6,7 +6,7 @@ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/m
6
6
  import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
7
7
  import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
8
8
  import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
9
- import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type ClientProtocol, type Decoder as __Decoder, type Encoder as __Encoder, type EventStreamSerdeProvider as __EventStreamSerdeProvider, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type HttpRequest, type HttpResponse, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
9
+ import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type Decoder as __Decoder, type Encoder as __Encoder, type EventStreamSerdeProvider as __EventStreamSerdeProvider, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
10
10
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
11
11
  import { InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput } from "./commands/InvokeEndpointAsyncCommand";
12
12
  import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "./commands/InvokeEndpointCommand";
@@ -145,15 +145,6 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
145
145
  * Optional extensions
146
146
  */
147
147
  extensions?: RuntimeExtension[];
148
- /**
149
- * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
150
- * may be overridden. A default will always be set by the client.
151
- * Available options depend on the service's supported protocols and will not be validated by
152
- * the client.
153
- * @alpha
154
- *
155
- */
156
- protocol?: ClientProtocol<HttpRequest, HttpResponse>;
157
148
  /**
158
149
  * The function that provides necessary utilities for generating and parsing event stream
159
150
  */
@@ -9,6 +9,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
9
9
  export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { SageMakerRuntimeExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
+ export * from "./schemas/schemas_0";
12
13
  export * from "./models/errors";
13
14
  export type * from "./models/models_0";
14
15
  export { SageMakerRuntimeServiceException } from "./models/SageMakerRuntimeServiceException";
@@ -18,8 +18,13 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
18
18
  streamCollector: import("@smithy/types").StreamCollector;
19
19
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
20
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
21
- apiVersion: string;
22
21
  cacheMiddleware?: boolean | undefined;
22
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
23
+ protocolSettings: {
24
+ defaultNamespace?: string;
25
+ [setting: string]: unknown;
26
+ };
27
+ apiVersion: string;
23
28
  urlParser: import("@smithy/types").UrlParser;
24
29
  base64Decoder: import("@smithy/types").Decoder;
25
30
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -30,7 +35,6 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
30
35
  profile?: string;
31
36
  logger: import("@smithy/types").Logger;
32
37
  extensions: import("./runtimeExtensions").RuntimeExtension[];
33
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
34
38
  customUserAgent?: string | import("@smithy/types").UserAgent;
35
39
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
36
40
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
@@ -20,8 +20,13 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
20
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
22
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
23
- apiVersion: string;
24
23
  cacheMiddleware?: boolean | undefined;
24
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
25
+ protocolSettings: {
26
+ defaultNamespace?: string;
27
+ [setting: string]: unknown;
28
+ };
29
+ apiVersion: string;
25
30
  urlParser: import("@smithy/types").UrlParser;
26
31
  base64Decoder: import("@smithy/types").Decoder;
27
32
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -32,7 +37,6 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
32
37
  profile?: string;
33
38
  logger: import("@smithy/types").Logger;
34
39
  extensions: import("./runtimeExtensions").RuntimeExtension[];
35
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
36
40
  customUserAgent?: string | import("@smithy/types").UserAgent;
37
41
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
38
42
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
@@ -6,8 +6,13 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
6
6
  runtime: string;
7
7
  sha256: import("@smithy/types").HashConstructor;
8
8
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
- apiVersion: string;
10
9
  cacheMiddleware?: boolean;
10
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
11
+ protocolSettings: {
12
+ defaultNamespace?: string;
13
+ [setting: string]: unknown;
14
+ };
15
+ apiVersion: string;
11
16
  urlParser: import("@smithy/types").UrlParser;
12
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
13
18
  streamCollector: import("@smithy/types").StreamCollector;
@@ -27,7 +32,6 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
27
32
  retryMode: string | import("@smithy/types").Provider<string>;
28
33
  logger: import("@smithy/types").Logger;
29
34
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
31
35
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
32
36
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
33
37
  customUserAgent?: string | import("@smithy/types").UserAgent;
@@ -1,3 +1,4 @@
1
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
1
2
  import type { SageMakerRuntimeClientConfig } from "./SageMakerRuntimeClient";
2
3
  /**
3
4
  * @internal
@@ -14,7 +15,11 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
14
15
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerRuntimeHttpAuthSchemeProvider;
15
16
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
17
  logger: import("@smithy/types").Logger;
17
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
18
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof AwsRestJsonProtocol;
19
+ protocolSettings: {
20
+ [setting: string]: unknown;
21
+ defaultNamespace?: string;
22
+ };
18
23
  serviceId: string;
19
24
  urlParser: import("@smithy/types").UrlParser;
20
25
  utf8Decoder: import("@smithy/types").Decoder;
@@ -1,24 +1,21 @@
1
- import type { StaticErrorSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
2
- export declare var BodyBlob: StaticSimpleSchema;
3
- export declare var CustomAttributesHeader: StaticSimpleSchema;
4
- export declare var PartBlob: StaticSimpleSchema;
5
- export declare var InternalDependencyException: StaticErrorSchema;
6
- export declare var InternalFailure: StaticErrorSchema;
7
- export declare var InternalStreamFailure: StaticErrorSchema;
8
- export declare var InvokeEndpointAsyncInput: StaticStructureSchema;
9
- export declare var InvokeEndpointAsyncOutput: StaticStructureSchema;
10
- export declare var InvokeEndpointInput: StaticStructureSchema;
11
- export declare var InvokeEndpointOutput: StaticStructureSchema;
12
- export declare var InvokeEndpointWithResponseStreamInput: StaticStructureSchema;
13
- export declare var InvokeEndpointWithResponseStreamOutput: StaticStructureSchema;
14
- export declare var ModelError: StaticErrorSchema;
15
- export declare var ModelNotReadyException: StaticErrorSchema;
16
- export declare var ModelStreamError: StaticErrorSchema;
17
- export declare var PayloadPart: StaticStructureSchema;
18
- export declare var ServiceUnavailable: StaticErrorSchema;
19
- export declare var ValidationError: StaticErrorSchema;
20
- export declare var SageMakerRuntimeServiceException: StaticErrorSchema;
21
- export declare var ResponseStream: StaticStructureSchema;
22
- export declare var InvokeEndpoint: StaticOperationSchema;
23
- export declare var InvokeEndpointAsync: StaticOperationSchema;
24
- export declare var InvokeEndpointWithResponseStream: StaticOperationSchema;
1
+ import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
2
+ export declare var InternalDependencyException$: StaticErrorSchema;
3
+ export declare var InternalFailure$: StaticErrorSchema;
4
+ export declare var InternalStreamFailure$: StaticErrorSchema;
5
+ export declare var InvokeEndpointAsyncInput$: StaticStructureSchema;
6
+ export declare var InvokeEndpointAsyncOutput$: StaticStructureSchema;
7
+ export declare var InvokeEndpointInput$: StaticStructureSchema;
8
+ export declare var InvokeEndpointOutput$: StaticStructureSchema;
9
+ export declare var InvokeEndpointWithResponseStreamInput$: StaticStructureSchema;
10
+ export declare var InvokeEndpointWithResponseStreamOutput$: StaticStructureSchema;
11
+ export declare var ModelError$: StaticErrorSchema;
12
+ export declare var ModelNotReadyException$: StaticErrorSchema;
13
+ export declare var ModelStreamError$: StaticErrorSchema;
14
+ export declare var PayloadPart$: StaticStructureSchema;
15
+ export declare var ServiceUnavailable$: StaticErrorSchema;
16
+ export declare var ValidationError$: StaticErrorSchema;
17
+ export declare var SageMakerRuntimeServiceException$: StaticErrorSchema;
18
+ export declare var ResponseStream$: StaticStructureSchema;
19
+ export declare var InvokeEndpoint$: StaticOperationSchema;
20
+ export declare var InvokeEndpointAsync$: StaticOperationSchema;
21
+ export declare var InvokeEndpointWithResponseStream$: StaticOperationSchema;
@@ -33,14 +33,11 @@ import {
33
33
  BodyLengthCalculator as __BodyLengthCalculator,
34
34
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
35
35
  ChecksumConstructor as __ChecksumConstructor,
36
- ClientProtocol,
37
36
  Decoder as __Decoder,
38
37
  Encoder as __Encoder,
39
38
  EventStreamSerdeProvider as __EventStreamSerdeProvider,
40
39
  HashConstructor as __HashConstructor,
41
40
  HttpHandlerOptions as __HttpHandlerOptions,
42
- HttpRequest,
43
- HttpResponse,
44
41
  Logger as __Logger,
45
42
  Provider as __Provider,
46
43
  StreamCollector as __StreamCollector,
@@ -104,7 +101,6 @@ export interface ClientDefaults
104
101
  retryMode?: string | __Provider<string>;
105
102
  logger?: __Logger;
106
103
  extensions?: RuntimeExtension[];
107
- protocol?: ClientProtocol<HttpRequest, HttpResponse>;
108
104
  eventStreamSerdeProvider?: __EventStreamSerdeProvider;
109
105
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
110
106
  }
@@ -4,6 +4,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { SageMakerRuntimeExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
+ export * from "./schemas/schemas_0";
7
8
  export * from "./models/errors";
8
9
  export * from "./models/models_0";
9
10
  export { SageMakerRuntimeServiceException } from "./models/SageMakerRuntimeServiceException";
@@ -29,8 +29,16 @@ export declare const getRuntimeConfig: (
29
29
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
30
30
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
31
31
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
32
- apiVersion: string;
33
32
  cacheMiddleware?: boolean | undefined;
33
+ protocol:
34
+ | import("@smithy/types").ClientProtocol<any, any>
35
+ | import("@smithy/types").ClientProtocolCtor<any, any>
36
+ | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
37
+ protocolSettings: {
38
+ defaultNamespace?: string;
39
+ [setting: string]: unknown;
40
+ };
41
+ apiVersion: string;
34
42
  urlParser: import("@smithy/types").UrlParser;
35
43
  base64Decoder: import("@smithy/types").Decoder;
36
44
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -41,10 +49,6 @@ export declare const getRuntimeConfig: (
41
49
  profile?: string;
42
50
  logger: import("@smithy/types").Logger;
43
51
  extensions: import("./runtimeExtensions").RuntimeExtension[];
44
- protocol: import("@smithy/types").ClientProtocol<
45
- import("@smithy/types").HttpRequest,
46
- import("@smithy/types").HttpResponse
47
- >;
48
52
  customUserAgent?: string | import("@smithy/types").UserAgent;
49
53
  userAgentAppId?:
50
54
  | string
@@ -29,8 +29,16 @@ export declare const getRuntimeConfig: (
29
29
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
30
30
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
31
31
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
32
- apiVersion: string;
33
32
  cacheMiddleware?: boolean | undefined;
33
+ protocol:
34
+ | import("@smithy/types").ClientProtocol<any, any>
35
+ | import("@smithy/types").ClientProtocolCtor<any, any>
36
+ | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
37
+ protocolSettings: {
38
+ defaultNamespace?: string;
39
+ [setting: string]: unknown;
40
+ };
41
+ apiVersion: string;
34
42
  urlParser: import("@smithy/types").UrlParser;
35
43
  base64Decoder: import("@smithy/types").Decoder;
36
44
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -41,10 +49,6 @@ export declare const getRuntimeConfig: (
41
49
  profile?: string;
42
50
  logger: import("@smithy/types").Logger;
43
51
  extensions: import("./runtimeExtensions").RuntimeExtension[];
44
- protocol: import("@smithy/types").ClientProtocol<
45
- import("@smithy/types").HttpRequest,
46
- import("@smithy/types").HttpResponse
47
- >;
48
52
  customUserAgent?: string | import("@smithy/types").UserAgent;
49
53
  retryStrategy?:
50
54
  | import("@smithy/types").RetryStrategy
@@ -10,8 +10,16 @@ export declare const getRuntimeConfig: (
10
10
  | Record<string, unknown>
11
11
  | import("@smithy/protocol-http").HttpHandler<any>
12
12
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
13
- apiVersion: string;
14
13
  cacheMiddleware?: boolean;
14
+ protocol:
15
+ | import("@smithy/types").ClientProtocol<any, any>
16
+ | import("@smithy/types").ClientProtocolCtor<any, any>
17
+ | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
18
+ protocolSettings: {
19
+ defaultNamespace?: string;
20
+ [setting: string]: unknown;
21
+ };
22
+ apiVersion: string;
15
23
  urlParser: import("@smithy/types").UrlParser;
16
24
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
17
25
  streamCollector: import("@smithy/types").StreamCollector;
@@ -39,10 +47,6 @@ export declare const getRuntimeConfig: (
39
47
  retryMode: string | import("@smithy/types").Provider<string>;
40
48
  logger: import("@smithy/types").Logger;
41
49
  extensions: import("./runtimeExtensions").RuntimeExtension[];
42
- protocol: import("@smithy/types").ClientProtocol<
43
- import("@smithy/types").HttpRequest,
44
- import("@smithy/types").HttpResponse
45
- >;
46
50
  eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
47
51
  defaultsMode:
48
52
  | import("@smithy/smithy-client").DefaultsMode
@@ -1,3 +1,4 @@
1
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
1
2
  import { SageMakerRuntimeClientConfig } from "./SageMakerRuntimeClient";
2
3
  export declare const getRuntimeConfig: (
3
4
  config: SageMakerRuntimeClientConfig
@@ -16,10 +17,14 @@ export declare const getRuntimeConfig: (
16
17
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerRuntimeHttpAuthSchemeProvider;
17
18
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
18
19
  logger: import("@smithy/types").Logger;
19
- protocol: import("@smithy/types").ClientProtocol<
20
- import("@smithy/types").HttpRequest,
21
- import("@smithy/types").HttpResponse
22
- >;
20
+ protocol:
21
+ | import("@smithy/types").ClientProtocol<any, any>
22
+ | import("@smithy/types").ClientProtocolCtor<any, any>
23
+ | typeof AwsRestJsonProtocol;
24
+ protocolSettings: {
25
+ [setting: string]: unknown;
26
+ defaultNamespace?: string;
27
+ };
23
28
  serviceId: string;
24
29
  urlParser: import("@smithy/types").UrlParser;
25
30
  utf8Decoder: import("@smithy/types").Decoder;
@@ -1,29 +1,25 @@
1
1
  import {
2
2
  StaticErrorSchema,
3
3
  StaticOperationSchema,
4
- StaticSimpleSchema,
5
4
  StaticStructureSchema,
6
5
  } from "@smithy/types";
7
- export declare var BodyBlob: StaticSimpleSchema;
8
- export declare var CustomAttributesHeader: StaticSimpleSchema;
9
- export declare var PartBlob: StaticSimpleSchema;
10
- export declare var InternalDependencyException: StaticErrorSchema;
11
- export declare var InternalFailure: StaticErrorSchema;
12
- export declare var InternalStreamFailure: StaticErrorSchema;
13
- export declare var InvokeEndpointAsyncInput: StaticStructureSchema;
14
- export declare var InvokeEndpointAsyncOutput: StaticStructureSchema;
15
- export declare var InvokeEndpointInput: StaticStructureSchema;
16
- export declare var InvokeEndpointOutput: StaticStructureSchema;
17
- export declare var InvokeEndpointWithResponseStreamInput: StaticStructureSchema;
18
- export declare var InvokeEndpointWithResponseStreamOutput: StaticStructureSchema;
19
- export declare var ModelError: StaticErrorSchema;
20
- export declare var ModelNotReadyException: StaticErrorSchema;
21
- export declare var ModelStreamError: StaticErrorSchema;
22
- export declare var PayloadPart: StaticStructureSchema;
23
- export declare var ServiceUnavailable: StaticErrorSchema;
24
- export declare var ValidationError: StaticErrorSchema;
25
- export declare var SageMakerRuntimeServiceException: StaticErrorSchema;
26
- export declare var ResponseStream: StaticStructureSchema;
27
- export declare var InvokeEndpoint: StaticOperationSchema;
28
- export declare var InvokeEndpointAsync: StaticOperationSchema;
29
- export declare var InvokeEndpointWithResponseStream: StaticOperationSchema;
6
+ export declare var InternalDependencyException$: StaticErrorSchema;
7
+ export declare var InternalFailure$: StaticErrorSchema;
8
+ export declare var InternalStreamFailure$: StaticErrorSchema;
9
+ export declare var InvokeEndpointAsyncInput$: StaticStructureSchema;
10
+ export declare var InvokeEndpointAsyncOutput$: StaticStructureSchema;
11
+ export declare var InvokeEndpointInput$: StaticStructureSchema;
12
+ export declare var InvokeEndpointOutput$: StaticStructureSchema;
13
+ export declare var InvokeEndpointWithResponseStreamInput$: StaticStructureSchema;
14
+ export declare var InvokeEndpointWithResponseStreamOutput$: StaticStructureSchema;
15
+ export declare var ModelError$: StaticErrorSchema;
16
+ export declare var ModelNotReadyException$: StaticErrorSchema;
17
+ export declare var ModelStreamError$: StaticErrorSchema;
18
+ export declare var PayloadPart$: StaticStructureSchema;
19
+ export declare var ServiceUnavailable$: StaticErrorSchema;
20
+ export declare var ValidationError$: StaticErrorSchema;
21
+ export declare var SageMakerRuntimeServiceException$: StaticErrorSchema;
22
+ export declare var ResponseStream$: StaticStructureSchema;
23
+ export declare var InvokeEndpoint$: StaticOperationSchema;
24
+ export declare var InvokeEndpointAsync$: StaticOperationSchema;
25
+ export declare var InvokeEndpointWithResponseStream$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-runtime",
3
3
  "description": "AWS SDK for JavaScript Sagemaker Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.952.0",
4
+ "version": "3.953.0",
5
5
  "scripts": {
6
- "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
+ "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sagemaker-runtime",
8
8
  "build:es": "tsc -p tsconfig.es.json",
9
9
  "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
@@ -21,45 +21,45 @@
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.947.0",
25
- "@aws-sdk/credential-provider-node": "3.952.0",
26
- "@aws-sdk/middleware-host-header": "3.936.0",
27
- "@aws-sdk/middleware-logger": "3.936.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.948.0",
29
- "@aws-sdk/middleware-user-agent": "3.947.0",
30
- "@aws-sdk/region-config-resolver": "3.936.0",
31
- "@aws-sdk/types": "3.936.0",
32
- "@aws-sdk/util-endpoints": "3.936.0",
33
- "@aws-sdk/util-user-agent-browser": "3.936.0",
34
- "@aws-sdk/util-user-agent-node": "3.947.0",
35
- "@smithy/config-resolver": "^4.4.3",
36
- "@smithy/core": "^3.18.7",
37
- "@smithy/eventstream-serde-browser": "^4.2.5",
38
- "@smithy/eventstream-serde-config-resolver": "^4.3.5",
39
- "@smithy/eventstream-serde-node": "^4.2.5",
40
- "@smithy/fetch-http-handler": "^5.3.6",
41
- "@smithy/hash-node": "^4.2.5",
42
- "@smithy/invalid-dependency": "^4.2.5",
43
- "@smithy/middleware-content-length": "^4.2.5",
44
- "@smithy/middleware-endpoint": "^4.3.14",
45
- "@smithy/middleware-retry": "^4.4.14",
46
- "@smithy/middleware-serde": "^4.2.6",
47
- "@smithy/middleware-stack": "^4.2.5",
48
- "@smithy/node-config-provider": "^4.3.5",
49
- "@smithy/node-http-handler": "^4.4.5",
50
- "@smithy/protocol-http": "^5.3.5",
51
- "@smithy/smithy-client": "^4.9.10",
52
- "@smithy/types": "^4.9.0",
53
- "@smithy/url-parser": "^4.2.5",
24
+ "@aws-sdk/core": "3.953.0",
25
+ "@aws-sdk/credential-provider-node": "3.953.0",
26
+ "@aws-sdk/middleware-host-header": "3.953.0",
27
+ "@aws-sdk/middleware-logger": "3.953.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.953.0",
29
+ "@aws-sdk/middleware-user-agent": "3.953.0",
30
+ "@aws-sdk/region-config-resolver": "3.953.0",
31
+ "@aws-sdk/types": "3.953.0",
32
+ "@aws-sdk/util-endpoints": "3.953.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.953.0",
34
+ "@aws-sdk/util-user-agent-node": "3.953.0",
35
+ "@smithy/config-resolver": "^4.4.4",
36
+ "@smithy/core": "^3.19.0",
37
+ "@smithy/eventstream-serde-browser": "^4.2.6",
38
+ "@smithy/eventstream-serde-config-resolver": "^4.3.6",
39
+ "@smithy/eventstream-serde-node": "^4.2.6",
40
+ "@smithy/fetch-http-handler": "^5.3.7",
41
+ "@smithy/hash-node": "^4.2.6",
42
+ "@smithy/invalid-dependency": "^4.2.6",
43
+ "@smithy/middleware-content-length": "^4.2.6",
44
+ "@smithy/middleware-endpoint": "^4.3.15",
45
+ "@smithy/middleware-retry": "^4.4.15",
46
+ "@smithy/middleware-serde": "^4.2.7",
47
+ "@smithy/middleware-stack": "^4.2.6",
48
+ "@smithy/node-config-provider": "^4.3.6",
49
+ "@smithy/node-http-handler": "^4.4.6",
50
+ "@smithy/protocol-http": "^5.3.6",
51
+ "@smithy/smithy-client": "^4.10.0",
52
+ "@smithy/types": "^4.10.0",
53
+ "@smithy/url-parser": "^4.2.6",
54
54
  "@smithy/util-base64": "^4.3.0",
55
55
  "@smithy/util-body-length-browser": "^4.2.0",
56
56
  "@smithy/util-body-length-node": "^4.2.1",
57
- "@smithy/util-defaults-mode-browser": "^4.3.13",
58
- "@smithy/util-defaults-mode-node": "^4.2.16",
59
- "@smithy/util-endpoints": "^3.2.5",
60
- "@smithy/util-middleware": "^4.2.5",
61
- "@smithy/util-retry": "^4.2.5",
62
- "@smithy/util-stream": "^4.5.6",
57
+ "@smithy/util-defaults-mode-browser": "^4.3.14",
58
+ "@smithy/util-defaults-mode-node": "^4.2.17",
59
+ "@smithy/util-endpoints": "^3.2.6",
60
+ "@smithy/util-middleware": "^4.2.6",
61
+ "@smithy/util-retry": "^4.2.6",
62
+ "@smithy/util-stream": "^4.5.7",
63
63
  "@smithy/util-utf8": "^4.2.0",
64
64
  "tslib": "^2.6.2"
65
65
  },