@aws-sdk/client-sagemaker-runtime 3.956.0 → 3.958.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/README.md CHANGED
@@ -9,10 +9,8 @@ AWS SDK for JavaScript SageMakerRuntime Client for Node.js, Browser and React Na
9
9
  <p> The Amazon SageMaker AI runtime API. </p>
10
10
 
11
11
  ## Installing
12
-
13
12
  To install this package, simply type add or install @aws-sdk/client-sagemaker-runtime
14
13
  using your favorite package manager:
15
-
16
14
  - `npm install @aws-sdk/client-sagemaker-runtime`
17
15
  - `yarn add @aws-sdk/client-sagemaker-runtime`
18
16
  - `pnpm add @aws-sdk/client-sagemaker-runtime`
@@ -48,9 +46,7 @@ To send a request, you:
48
46
  // a client can be shared by different commands.
49
47
  const client = new SageMakerRuntimeClient({ region: "REGION" });
50
48
 
51
- const params = {
52
- /** input parameters */
53
- };
49
+ const params = { /** input parameters */ };
54
50
  const command = new InvokeEndpointCommand(params);
55
51
  ```
56
52
 
@@ -209,7 +205,6 @@ InvokeEndpoint
209
205
  </summary>
210
206
 
211
207
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sagemaker-runtime/command/InvokeEndpointCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-runtime/Interface/InvokeEndpointCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-runtime/Interface/InvokeEndpointCommandOutput/)
212
-
213
208
  </details>
214
209
  <details>
215
210
  <summary>
@@ -217,7 +212,6 @@ InvokeEndpointAsync
217
212
  </summary>
218
213
 
219
214
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sagemaker-runtime/command/InvokeEndpointAsyncCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-runtime/Interface/InvokeEndpointAsyncCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-runtime/Interface/InvokeEndpointAsyncCommandOutput/)
220
-
221
215
  </details>
222
216
  <details>
223
217
  <summary>
@@ -225,5 +219,4 @@ InvokeEndpointWithResponseStream
225
219
  </summary>
226
220
 
227
221
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sagemaker-runtime/command/InvokeEndpointWithResponseStreamCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-runtime/Interface/InvokeEndpointWithResponseStreamCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-runtime/Interface/InvokeEndpointWithResponseStreamCommandOutput/)
228
-
229
222
  </details>
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
6
6
  const defaultSageMakerRuntimeHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
7
  return {
8
8
  operation: (0, util_middleware_1.getSmithyContext)(context).operation,
9
- region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
10
- (() => {
11
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
12
- })(),
9
+ region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
10
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
+ })(),
13
12
  };
14
13
  };
15
14
  exports.defaultSageMakerRuntimeHttpAuthSchemeParametersProvider = defaultSageMakerRuntimeHttpAuthSchemeParametersProvider;
package/dist-cjs/index.js CHANGED
@@ -321,174 +321,104 @@ 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]];
324
+ var InternalDependencyException$ = [-3, n0, _IDE,
325
+ { [_e]: _s, [_hE]: 530 },
326
+ [_M],
327
+ [0]
328
+ ];
325
329
  schema.TypeRegistry.for(n0).registerError(InternalDependencyException$, InternalDependencyException);
326
- var InternalFailure$ = [-3, n0, _IF, { [_e]: _s, [_hE]: 500 }, [_M], [0]];
330
+ var InternalFailure$ = [-3, n0, _IF,
331
+ { [_e]: _s, [_hE]: 500 },
332
+ [_M],
333
+ [0]
334
+ ];
327
335
  schema.TypeRegistry.for(n0).registerError(InternalFailure$, InternalFailure);
328
- var InternalStreamFailure$ = [-3, n0, _ISF, { [_e]: _s }, [_M], [0]];
336
+ var InternalStreamFailure$ = [-3, n0, _ISF,
337
+ { [_e]: _s },
338
+ [_M],
339
+ [0]
340
+ ];
329
341
  schema.TypeRegistry.for(n0).registerError(InternalStreamFailure$, InternalStreamFailure);
330
- var InvokeEndpointAsyncInput$ = [
331
- 3,
332
- n0,
333
- _IEAI,
342
+ var InvokeEndpointAsyncInput$ = [3, n0, _IEAI,
334
343
  0,
335
344
  [_EN, _CT, _A, _CA, _II, _IL, _RTTLS, _ITS],
336
- [
337
- [0, 1],
338
- [0, { [_hH]: _XASCT }],
339
- [0, { [_hH]: _XASA }],
340
- [() => CustomAttributesHeader, { [_hH]: _XASCA }],
341
- [0, { [_hH]: _XASII }],
342
- [0, { [_hH]: _XASI }],
343
- [1, { [_hH]: _XASR }],
344
- [1, { [_hH]: _XASI_ }],
345
- ],
345
+ [[0, 1], [0, { [_hH]: _XASCT }], [0, { [_hH]: _XASA }], [() => CustomAttributesHeader, { [_hH]: _XASCA }], [0, { [_hH]: _XASII }], [0, { [_hH]: _XASI }], [1, { [_hH]: _XASR }], [1, { [_hH]: _XASI_ }]]
346
346
  ];
347
- var InvokeEndpointAsyncOutput$ = [
348
- 3,
349
- n0,
350
- _IEAO,
347
+ var InvokeEndpointAsyncOutput$ = [3, n0, _IEAO,
351
348
  0,
352
349
  [_II, _OL, _FL],
353
- [0, [0, { [_hH]: _XASO }], [0, { [_hH]: _XASF }]],
350
+ [0, [0, { [_hH]: _XASO }], [0, { [_hH]: _XASF }]]
354
351
  ];
355
- var InvokeEndpointInput$ = [
356
- 3,
357
- n0,
358
- _IEI,
352
+ var InvokeEndpointInput$ = [3, n0, _IEI,
359
353
  0,
360
354
  [_EN, _B, _CT, _A, _CA, _TM, _TV, _TCH, _II, _EE, _ICN, _SI],
361
- [
362
- [0, 1],
363
- [() => BodyBlob, 16],
364
- [0, { [_hH]: _CT_ }],
365
- [0, { [_hH]: _A }],
366
- [() => CustomAttributesHeader, { [_hH]: _XASCA }],
367
- [0, { [_hH]: _XASTM }],
368
- [0, { [_hH]: _XASTV }],
369
- [0, { [_hH]: _XASTCH }],
370
- [0, { [_hH]: _XASII }],
371
- [0, { [_hH]: _XASEE }],
372
- [0, { [_hH]: _XASIC }],
373
- [0, { [_hH]: _XASSI }],
374
- ],
355
+ [[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 }]]
375
356
  ];
376
- var InvokeEndpointOutput$ = [
377
- 3,
378
- n0,
379
- _IEO,
357
+ var InvokeEndpointOutput$ = [3, n0, _IEO,
380
358
  0,
381
359
  [_B, _CT, _IPV, _CA, _NSI, _CSI],
382
- [
383
- [() => BodyBlob, 16],
384
- [0, { [_hH]: _CT_ }],
385
- [0, { [_hH]: _xAIPV }],
386
- [() => CustomAttributesHeader, { [_hH]: _XASCA }],
387
- [0, { [_hH]: _XASNSI }],
388
- [0, { [_hH]: _XASCSI }],
389
- ],
360
+ [[() => BodyBlob, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _xAIPV }], [() => CustomAttributesHeader, { [_hH]: _XASCA }], [0, { [_hH]: _XASNSI }], [0, { [_hH]: _XASCSI }]]
390
361
  ];
391
- var InvokeEndpointWithResponseStreamInput$ = [
392
- 3,
393
- n0,
394
- _IEWRSI,
362
+ var InvokeEndpointWithResponseStreamInput$ = [3, n0, _IEWRSI,
395
363
  0,
396
364
  [_EN, _B, _CT, _A, _CA, _TV, _TCH, _II, _ICN, _SI],
397
- [
398
- [0, 1],
399
- [() => BodyBlob, 16],
400
- [0, { [_hH]: _CT_ }],
401
- [0, { [_hH]: _XASA }],
402
- [() => CustomAttributesHeader, { [_hH]: _XASCA }],
403
- [0, { [_hH]: _XASTV }],
404
- [0, { [_hH]: _XASTCH }],
405
- [0, { [_hH]: _XASII }],
406
- [0, { [_hH]: _XASIC }],
407
- [0, { [_hH]: _XASSI }],
408
- ],
365
+ [[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 }]]
409
366
  ];
410
- var InvokeEndpointWithResponseStreamOutput$ = [
411
- 3,
412
- n0,
413
- _IEWRSO,
367
+ var InvokeEndpointWithResponseStreamOutput$ = [3, n0, _IEWRSO,
414
368
  0,
415
369
  [_B, _CT, _IPV, _CA],
416
- [
417
- [() => ResponseStream$, 16],
418
- [0, { [_hH]: _XASCT }],
419
- [0, { [_hH]: _xAIPV }],
420
- [() => CustomAttributesHeader, { [_hH]: _XASCA }],
421
- ],
370
+ [[() => ResponseStream$, 16], [0, { [_hH]: _XASCT }], [0, { [_hH]: _xAIPV }], [() => CustomAttributesHeader, { [_hH]: _XASCA }]]
422
371
  ];
423
- var ModelError$ = [
424
- -3,
425
- n0,
426
- _ME,
372
+ var ModelError$ = [-3, n0, _ME,
427
373
  { [_e]: _c, [_hE]: 424 },
428
374
  [_M, _OSC, _OM, _LSA],
429
- [0, 1, 0, 0],
375
+ [0, 1, 0, 0]
430
376
  ];
431
377
  schema.TypeRegistry.for(n0).registerError(ModelError$, ModelError);
432
- var ModelNotReadyException$ = [
433
- -3,
434
- n0,
435
- _MNRE,
378
+ var ModelNotReadyException$ = [-3, n0, _MNRE,
436
379
  { [_aQE]: [`ModelNotReadyException`, 429], [_e]: _c, [_hE]: 429 },
437
380
  [_M],
438
- [0],
381
+ [0]
439
382
  ];
440
383
  schema.TypeRegistry.for(n0).registerError(ModelNotReadyException$, ModelNotReadyException);
441
- var ModelStreamError$ = [-3, n0, _MSE, { [_e]: _c }, [_M, _EC], [0, 0]];
384
+ var ModelStreamError$ = [-3, n0, _MSE,
385
+ { [_e]: _c },
386
+ [_M, _EC],
387
+ [0, 0]
388
+ ];
442
389
  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$ = [
449
- -3,
450
- _sm,
451
- "SageMakerRuntimeServiceException",
390
+ var PayloadPart$ = [3, n0, _PP,
452
391
  0,
453
- [],
454
- [],
392
+ [_By],
393
+ [[() => PartBlob, { [_eP]: 1 }]]
394
+ ];
395
+ var ServiceUnavailable$ = [-3, n0, _SU,
396
+ { [_e]: _s, [_hE]: 503 },
397
+ [_M],
398
+ [0]
455
399
  ];
400
+ schema.TypeRegistry.for(n0).registerError(ServiceUnavailable$, ServiceUnavailable);
401
+ var ValidationError$ = [-3, n0, _VE,
402
+ { [_e]: _c, [_hE]: 400 },
403
+ [_M],
404
+ [0]
405
+ ];
406
+ schema.TypeRegistry.for(n0).registerError(ValidationError$, ValidationError);
407
+ var SageMakerRuntimeServiceException$ = [-3, _sm, "SageMakerRuntimeServiceException", 0, [], []];
456
408
  schema.TypeRegistry.for(_sm).registerError(SageMakerRuntimeServiceException$, SageMakerRuntimeServiceException);
457
- var ResponseStream$ = [
458
- 4,
459
- n0,
460
- _RS,
409
+ var ResponseStream$ = [4, n0, _RS,
461
410
  { [_st]: 1 },
462
411
  [_PP, _MSE, _ISF],
463
- [
464
- [() => PayloadPart$, 0],
465
- [() => ModelStreamError$, 0],
466
- [() => InternalStreamFailure$, 0],
467
- ],
412
+ [[() => PayloadPart$, 0], [() => ModelStreamError$, 0], [() => InternalStreamFailure$, 0]]
468
413
  ];
469
- var InvokeEndpoint$ = [
470
- 9,
471
- n0,
472
- _IE,
473
- { [_h]: ["POST", "/endpoints/{EndpointName}/invocations", 200] },
474
- () => InvokeEndpointInput$,
475
- () => InvokeEndpointOutput$,
414
+ var InvokeEndpoint$ = [9, n0, _IE,
415
+ { [_h]: ["POST", "/endpoints/{EndpointName}/invocations", 200] }, () => InvokeEndpointInput$, () => InvokeEndpointOutput$
476
416
  ];
477
- var InvokeEndpointAsync$ = [
478
- 9,
479
- n0,
480
- _IEA,
481
- { [_h]: ["POST", "/endpoints/{EndpointName}/async-invocations", 202] },
482
- () => InvokeEndpointAsyncInput$,
483
- () => InvokeEndpointAsyncOutput$,
417
+ var InvokeEndpointAsync$ = [9, n0, _IEA,
418
+ { [_h]: ["POST", "/endpoints/{EndpointName}/async-invocations", 202] }, () => InvokeEndpointAsyncInput$, () => InvokeEndpointAsyncOutput$
484
419
  ];
485
- var InvokeEndpointWithResponseStream$ = [
486
- 9,
487
- n0,
488
- _IEWRS,
489
- { [_h]: ["POST", "/endpoints/{EndpointName}/invocations-response-stream", 200] },
490
- () => InvokeEndpointWithResponseStreamInput$,
491
- () => InvokeEndpointWithResponseStreamOutput$,
420
+ var InvokeEndpointWithResponseStream$ = [9, n0, _IEWRS,
421
+ { [_h]: ["POST", "/endpoints/{EndpointName}/invocations-response-stream", 200] }, () => InvokeEndpointWithResponseStreamInput$, () => InvokeEndpointWithResponseStreamOutput$
492
422
  ];
493
423
 
494
424
  class InvokeEndpointAsyncCommand extends smithyClient.Command
@@ -25,8 +25,7 @@ const getRuntimeConfig = (config) => {
25
25
  defaultsMode,
26
26
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
27
27
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
28
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
29
- (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
30
29
  eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_browser_1.eventStreamSerdeProvider,
31
30
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
32
31
  region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
@@ -35,12 +35,10 @@ const getRuntimeConfig = (config) => {
35
35
  authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
36
36
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
37
37
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
38
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
39
- (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
38
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
40
39
  eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
41
40
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
42
- region: config?.region ??
43
- (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
41
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
44
42
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
45
43
  retryMode: config?.retryMode ??
46
44
  (0, node_config_provider_1.loadConfig)({
@@ -3,10 +3,9 @@ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
3
  export const defaultSageMakerRuntimeHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
4
  return {
5
5
  operation: getSmithyContext(context).operation,
6
- region: (await normalizeProvider(config.region)()) ||
7
- (() => {
8
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
9
- })(),
6
+ region: await normalizeProvider(config.region)() || (() => {
7
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
+ })(),
10
9
  };
11
10
  };
12
11
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
@@ -21,8 +21,7 @@ export const getRuntimeConfig = (config) => {
21
21
  defaultsMode,
22
22
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
23
23
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
24
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
25
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
24
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
26
25
  eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
27
26
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
28
27
  region: config?.region ?? invalidProvider("Region is missing"),
@@ -1,7 +1,7 @@
1
1
  import packageInfo from "../package.json";
2
- import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
2
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core";
3
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
- import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
4
+ import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
5
5
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
6
6
  import { eventStreamSerdeProvider } from "@smithy/eventstream-serde-node";
7
7
  import { Hash } from "@smithy/hash-node";
@@ -31,12 +31,10 @@ export const getRuntimeConfig = (config) => {
31
31
  authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
32
32
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
33
33
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
34
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
35
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
34
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
36
35
  eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
37
36
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
38
- region: config?.region ??
39
- loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
37
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
40
38
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
41
39
  retryMode: config?.retryMode ??
42
40
  loadNodeConfig({
@@ -82,172 +82,102 @@ import { SageMakerRuntimeServiceException } from "../models/SageMakerRuntimeServ
82
82
  var BodyBlob = [0, n0, _BB, 8, 21];
83
83
  var CustomAttributesHeader = [0, n0, _CAH, 8, 0];
84
84
  var PartBlob = [0, n0, _PB, 8, 21];
85
- export var InternalDependencyException$ = [-3, n0, _IDE, { [_e]: _s, [_hE]: 530 }, [_M], [0]];
85
+ export var InternalDependencyException$ = [-3, n0, _IDE,
86
+ { [_e]: _s, [_hE]: 530 },
87
+ [_M],
88
+ [0]
89
+ ];
86
90
  TypeRegistry.for(n0).registerError(InternalDependencyException$, InternalDependencyException);
87
- export var InternalFailure$ = [-3, n0, _IF, { [_e]: _s, [_hE]: 500 }, [_M], [0]];
91
+ export var InternalFailure$ = [-3, n0, _IF,
92
+ { [_e]: _s, [_hE]: 500 },
93
+ [_M],
94
+ [0]
95
+ ];
88
96
  TypeRegistry.for(n0).registerError(InternalFailure$, InternalFailure);
89
- export var InternalStreamFailure$ = [-3, n0, _ISF, { [_e]: _s }, [_M], [0]];
97
+ export var InternalStreamFailure$ = [-3, n0, _ISF,
98
+ { [_e]: _s },
99
+ [_M],
100
+ [0]
101
+ ];
90
102
  TypeRegistry.for(n0).registerError(InternalStreamFailure$, InternalStreamFailure);
91
- export var InvokeEndpointAsyncInput$ = [
92
- 3,
93
- n0,
94
- _IEAI,
103
+ export var InvokeEndpointAsyncInput$ = [3, n0, _IEAI,
95
104
  0,
96
105
  [_EN, _CT, _A, _CA, _II, _IL, _RTTLS, _ITS],
97
- [
98
- [0, 1],
99
- [0, { [_hH]: _XASCT }],
100
- [0, { [_hH]: _XASA }],
101
- [() => CustomAttributesHeader, { [_hH]: _XASCA }],
102
- [0, { [_hH]: _XASII }],
103
- [0, { [_hH]: _XASI }],
104
- [1, { [_hH]: _XASR }],
105
- [1, { [_hH]: _XASI_ }],
106
- ],
107
- ];
108
- export var InvokeEndpointAsyncOutput$ = [
109
- 3,
110
- n0,
111
- _IEAO,
106
+ [[0, 1], [0, { [_hH]: _XASCT }], [0, { [_hH]: _XASA }], [() => CustomAttributesHeader, { [_hH]: _XASCA }], [0, { [_hH]: _XASII }], [0, { [_hH]: _XASI }], [1, { [_hH]: _XASR }], [1, { [_hH]: _XASI_ }]]
107
+ ];
108
+ export var InvokeEndpointAsyncOutput$ = [3, n0, _IEAO,
112
109
  0,
113
110
  [_II, _OL, _FL],
114
- [0, [0, { [_hH]: _XASO }], [0, { [_hH]: _XASF }]],
111
+ [0, [0, { [_hH]: _XASO }], [0, { [_hH]: _XASF }]]
115
112
  ];
116
- export var InvokeEndpointInput$ = [
117
- 3,
118
- n0,
119
- _IEI,
113
+ export var InvokeEndpointInput$ = [3, n0, _IEI,
120
114
  0,
121
115
  [_EN, _B, _CT, _A, _CA, _TM, _TV, _TCH, _II, _EE, _ICN, _SI],
122
- [
123
- [0, 1],
124
- [() => BodyBlob, 16],
125
- [0, { [_hH]: _CT_ }],
126
- [0, { [_hH]: _A }],
127
- [() => CustomAttributesHeader, { [_hH]: _XASCA }],
128
- [0, { [_hH]: _XASTM }],
129
- [0, { [_hH]: _XASTV }],
130
- [0, { [_hH]: _XASTCH }],
131
- [0, { [_hH]: _XASII }],
132
- [0, { [_hH]: _XASEE }],
133
- [0, { [_hH]: _XASIC }],
134
- [0, { [_hH]: _XASSI }],
135
- ],
136
- ];
137
- export var InvokeEndpointOutput$ = [
138
- 3,
139
- n0,
140
- _IEO,
116
+ [[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 }]]
117
+ ];
118
+ export var InvokeEndpointOutput$ = [3, n0, _IEO,
141
119
  0,
142
120
  [_B, _CT, _IPV, _CA, _NSI, _CSI],
143
- [
144
- [() => BodyBlob, 16],
145
- [0, { [_hH]: _CT_ }],
146
- [0, { [_hH]: _xAIPV }],
147
- [() => CustomAttributesHeader, { [_hH]: _XASCA }],
148
- [0, { [_hH]: _XASNSI }],
149
- [0, { [_hH]: _XASCSI }],
150
- ],
151
- ];
152
- export var InvokeEndpointWithResponseStreamInput$ = [
153
- 3,
154
- n0,
155
- _IEWRSI,
121
+ [[() => BodyBlob, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _xAIPV }], [() => CustomAttributesHeader, { [_hH]: _XASCA }], [0, { [_hH]: _XASNSI }], [0, { [_hH]: _XASCSI }]]
122
+ ];
123
+ export var InvokeEndpointWithResponseStreamInput$ = [3, n0, _IEWRSI,
156
124
  0,
157
125
  [_EN, _B, _CT, _A, _CA, _TV, _TCH, _II, _ICN, _SI],
158
- [
159
- [0, 1],
160
- [() => BodyBlob, 16],
161
- [0, { [_hH]: _CT_ }],
162
- [0, { [_hH]: _XASA }],
163
- [() => CustomAttributesHeader, { [_hH]: _XASCA }],
164
- [0, { [_hH]: _XASTV }],
165
- [0, { [_hH]: _XASTCH }],
166
- [0, { [_hH]: _XASII }],
167
- [0, { [_hH]: _XASIC }],
168
- [0, { [_hH]: _XASSI }],
169
- ],
170
- ];
171
- export var InvokeEndpointWithResponseStreamOutput$ = [
172
- 3,
173
- n0,
174
- _IEWRSO,
126
+ [[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 }]]
127
+ ];
128
+ export var InvokeEndpointWithResponseStreamOutput$ = [3, n0, _IEWRSO,
175
129
  0,
176
130
  [_B, _CT, _IPV, _CA],
177
- [
178
- [() => ResponseStream$, 16],
179
- [0, { [_hH]: _XASCT }],
180
- [0, { [_hH]: _xAIPV }],
181
- [() => CustomAttributesHeader, { [_hH]: _XASCA }],
182
- ],
183
- ];
184
- export var ModelError$ = [
185
- -3,
186
- n0,
187
- _ME,
131
+ [[() => ResponseStream$, 16], [0, { [_hH]: _XASCT }], [0, { [_hH]: _xAIPV }], [() => CustomAttributesHeader, { [_hH]: _XASCA }]]
132
+ ];
133
+ export var ModelError$ = [-3, n0, _ME,
188
134
  { [_e]: _c, [_hE]: 424 },
189
135
  [_M, _OSC, _OM, _LSA],
190
- [0, 1, 0, 0],
136
+ [0, 1, 0, 0]
191
137
  ];
192
138
  TypeRegistry.for(n0).registerError(ModelError$, ModelError);
193
- export var ModelNotReadyException$ = [
194
- -3,
195
- n0,
196
- _MNRE,
139
+ export var ModelNotReadyException$ = [-3, n0, _MNRE,
197
140
  { [_aQE]: [`ModelNotReadyException`, 429], [_e]: _c, [_hE]: 429 },
198
141
  [_M],
199
- [0],
142
+ [0]
200
143
  ];
201
144
  TypeRegistry.for(n0).registerError(ModelNotReadyException$, ModelNotReadyException);
202
- export var ModelStreamError$ = [-3, n0, _MSE, { [_e]: _c }, [_M, _EC], [0, 0]];
145
+ export var ModelStreamError$ = [-3, n0, _MSE,
146
+ { [_e]: _c },
147
+ [_M, _EC],
148
+ [0, 0]
149
+ ];
203
150
  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$ = [
210
- -3,
211
- _sm,
212
- "SageMakerRuntimeServiceException",
151
+ export var PayloadPart$ = [3, n0, _PP,
213
152
  0,
214
- [],
215
- [],
153
+ [_By],
154
+ [[() => PartBlob, { [_eP]: 1 }]]
155
+ ];
156
+ export var ServiceUnavailable$ = [-3, n0, _SU,
157
+ { [_e]: _s, [_hE]: 503 },
158
+ [_M],
159
+ [0]
216
160
  ];
161
+ TypeRegistry.for(n0).registerError(ServiceUnavailable$, ServiceUnavailable);
162
+ export var ValidationError$ = [-3, n0, _VE,
163
+ { [_e]: _c, [_hE]: 400 },
164
+ [_M],
165
+ [0]
166
+ ];
167
+ TypeRegistry.for(n0).registerError(ValidationError$, ValidationError);
168
+ export var SageMakerRuntimeServiceException$ = [-3, _sm, "SageMakerRuntimeServiceException", 0, [], []];
217
169
  TypeRegistry.for(_sm).registerError(SageMakerRuntimeServiceException$, SageMakerRuntimeServiceException);
218
- export var ResponseStream$ = [
219
- 4,
220
- n0,
221
- _RS,
170
+ export var ResponseStream$ = [4, n0, _RS,
222
171
  { [_st]: 1 },
223
172
  [_PP, _MSE, _ISF],
224
- [
225
- [() => PayloadPart$, 0],
226
- [() => ModelStreamError$, 0],
227
- [() => InternalStreamFailure$, 0],
228
- ],
229
- ];
230
- export var InvokeEndpoint$ = [
231
- 9,
232
- n0,
233
- _IE,
234
- { [_h]: ["POST", "/endpoints/{EndpointName}/invocations", 200] },
235
- () => InvokeEndpointInput$,
236
- () => InvokeEndpointOutput$,
237
- ];
238
- export var InvokeEndpointAsync$ = [
239
- 9,
240
- n0,
241
- _IEA,
242
- { [_h]: ["POST", "/endpoints/{EndpointName}/async-invocations", 202] },
243
- () => InvokeEndpointAsyncInput$,
244
- () => InvokeEndpointAsyncOutput$,
245
- ];
246
- export var InvokeEndpointWithResponseStream$ = [
247
- 9,
248
- n0,
249
- _IEWRS,
250
- { [_h]: ["POST", "/endpoints/{EndpointName}/invocations-response-stream", 200] },
251
- () => InvokeEndpointWithResponseStreamInput$,
252
- () => InvokeEndpointWithResponseStreamOutput$,
173
+ [[() => PayloadPart$, 0], [() => ModelStreamError$, 0], [() => InternalStreamFailure$, 0]]
174
+ ];
175
+ export var InvokeEndpoint$ = [9, n0, _IE,
176
+ { [_h]: ["POST", "/endpoints/{EndpointName}/invocations", 200] }, () => InvokeEndpointInput$, () => InvokeEndpointOutput$
177
+ ];
178
+ export var InvokeEndpointAsync$ = [9, n0, _IEA,
179
+ { [_h]: ["POST", "/endpoints/{EndpointName}/async-invocations", 202] }, () => InvokeEndpointAsyncInput$, () => InvokeEndpointAsyncOutput$
180
+ ];
181
+ export var InvokeEndpointWithResponseStream$ = [9, n0, _IEWRS,
182
+ { [_h]: ["POST", "/endpoints/{EndpointName}/invocations-response-stream", 200] }, () => InvokeEndpointWithResponseStreamInput$, () => InvokeEndpointWithResponseStreamOutput$
253
183
  ];
package/package.json CHANGED
@@ -1,12 +1,12 @@
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.956.0",
4
+ "version": "3.958.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",
8
8
  "build:es": "tsc -p tsconfig.es.json",
9
- "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
9
+ "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
12
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
@@ -21,17 +21,17 @@
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.956.0",
25
- "@aws-sdk/credential-provider-node": "3.956.0",
26
- "@aws-sdk/middleware-host-header": "3.956.0",
27
- "@aws-sdk/middleware-logger": "3.956.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.956.0",
29
- "@aws-sdk/middleware-user-agent": "3.956.0",
30
- "@aws-sdk/region-config-resolver": "3.956.0",
31
- "@aws-sdk/types": "3.956.0",
32
- "@aws-sdk/util-endpoints": "3.956.0",
33
- "@aws-sdk/util-user-agent-browser": "3.956.0",
34
- "@aws-sdk/util-user-agent-node": "3.956.0",
24
+ "@aws-sdk/core": "3.957.0",
25
+ "@aws-sdk/credential-provider-node": "3.958.0",
26
+ "@aws-sdk/middleware-host-header": "3.957.0",
27
+ "@aws-sdk/middleware-logger": "3.957.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.957.0",
29
+ "@aws-sdk/middleware-user-agent": "3.957.0",
30
+ "@aws-sdk/region-config-resolver": "3.957.0",
31
+ "@aws-sdk/types": "3.957.0",
32
+ "@aws-sdk/util-endpoints": "3.957.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.957.0",
34
+ "@aws-sdk/util-user-agent-node": "3.957.0",
35
35
  "@smithy/config-resolver": "^4.4.5",
36
36
  "@smithy/core": "^3.20.0",
37
37
  "@smithy/eventstream-serde-browser": "^4.2.7",