@aws-sdk/client-sagemaker-runtime 3.943.0 → 3.947.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.
Files changed (30) hide show
  1. package/dist-cjs/index.js +47 -320
  2. package/dist-cjs/runtimeConfig.browser.js +2 -2
  3. package/dist-cjs/runtimeConfig.js +3 -4
  4. package/dist-es/SageMakerRuntimeClient.js +2 -2
  5. package/dist-es/runtimeConfig.browser.js +2 -2
  6. package/dist-es/runtimeConfig.js +2 -3
  7. package/dist-es/schemas/schemas_0.js +47 -320
  8. package/dist-types/SageMakerRuntime.d.ts +1 -1
  9. package/dist-types/SageMakerRuntimeClient.d.ts +11 -11
  10. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
  11. package/dist-types/auth/httpAuthSchemeProvider.d.ts +2 -2
  12. package/dist-types/commands/InvokeEndpointAsyncCommand.d.ts +3 -3
  13. package/dist-types/commands/InvokeEndpointCommand.d.ts +2 -2
  14. package/dist-types/commands/InvokeEndpointWithResponseStreamCommand.d.ts +3 -3
  15. package/dist-types/endpoint/EndpointParameters.d.ts +13 -1
  16. package/dist-types/endpoint/endpointResolver.d.ts +5 -2
  17. package/dist-types/extensionConfiguration.d.ts +4 -4
  18. package/dist-types/models/SageMakerRuntimeServiceException.d.ts +1 -1
  19. package/dist-types/models/errors.d.ts +1 -1
  20. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  21. package/dist-types/runtimeConfig.d.ts +1 -1
  22. package/dist-types/runtimeConfig.native.d.ts +1 -1
  23. package/dist-types/runtimeConfig.shared.d.ts +1 -1
  24. package/dist-types/runtimeExtensions.d.ts +1 -1
  25. package/dist-types/schemas/schemas_0.d.ts +1 -1
  26. package/dist-types/ts3.4/SageMakerRuntimeClient.d.ts +3 -3
  27. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  28. package/dist-types/ts3.4/commands/InvokeEndpointWithResponseStreamCommand.d.ts +1 -1
  29. package/dist-types/ts3.4/models/SageMakerRuntimeServiceException.d.ts +1 -1
  30. package/package.json +13 -12
package/dist-cjs/index.js CHANGED
@@ -321,40 +321,11 @@ 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 = [
325
- -3,
326
- n0,
327
- _IDE,
328
- {
329
- [_e]: _s,
330
- [_hE]: 530,
331
- },
332
- [_M],
333
- [0],
334
- ];
324
+ var InternalDependencyException = [-3, n0, _IDE, { [_e]: _s, [_hE]: 530 }, [_M], [0]];
335
325
  schema.TypeRegistry.for(n0).registerError(InternalDependencyException, InternalDependencyException$1);
336
- var InternalFailure = [
337
- -3,
338
- n0,
339
- _IF,
340
- {
341
- [_e]: _s,
342
- [_hE]: 500,
343
- },
344
- [_M],
345
- [0],
346
- ];
326
+ var InternalFailure = [-3, n0, _IF, { [_e]: _s, [_hE]: 500 }, [_M], [0]];
347
327
  schema.TypeRegistry.for(n0).registerError(InternalFailure, InternalFailure$1);
348
- var InternalStreamFailure = [
349
- -3,
350
- n0,
351
- _ISF,
352
- {
353
- [_e]: _s,
354
- },
355
- [_M],
356
- [0],
357
- ];
328
+ var InternalStreamFailure = [-3, n0, _ISF, { [_e]: _s }, [_M], [0]];
358
329
  schema.TypeRegistry.for(n0).registerError(InternalStreamFailure, InternalStreamFailure$1);
359
330
  var InvokeEndpointAsyncInput = [
360
331
  3,
@@ -364,48 +335,13 @@ var InvokeEndpointAsyncInput = [
364
335
  [_EN, _CT, _A, _CA, _II, _IL, _RTTLS, _ITS],
365
336
  [
366
337
  [0, 1],
367
- [
368
- 0,
369
- {
370
- [_hH]: _XASCT,
371
- },
372
- ],
373
- [
374
- 0,
375
- {
376
- [_hH]: _XASA,
377
- },
378
- ],
379
- [
380
- () => CustomAttributesHeader,
381
- {
382
- [_hH]: _XASCA,
383
- },
384
- ],
385
- [
386
- 0,
387
- {
388
- [_hH]: _XASII,
389
- },
390
- ],
391
- [
392
- 0,
393
- {
394
- [_hH]: _XASI,
395
- },
396
- ],
397
- [
398
- 1,
399
- {
400
- [_hH]: _XASR,
401
- },
402
- ],
403
- [
404
- 1,
405
- {
406
- [_hH]: _XASI_,
407
- },
408
- ],
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_ }],
409
345
  ],
410
346
  ];
411
347
  var InvokeEndpointAsyncOutput = [
@@ -414,21 +350,7 @@ var InvokeEndpointAsyncOutput = [
414
350
  _IEAO,
415
351
  0,
416
352
  [_II, _OL, _FL],
417
- [
418
- 0,
419
- [
420
- 0,
421
- {
422
- [_hH]: _XASO,
423
- },
424
- ],
425
- [
426
- 0,
427
- {
428
- [_hH]: _XASF,
429
- },
430
- ],
431
- ],
353
+ [0, [0, { [_hH]: _XASO }], [0, { [_hH]: _XASF }]],
432
354
  ];
433
355
  var InvokeEndpointInput = [
434
356
  3,
@@ -439,66 +361,16 @@ var InvokeEndpointInput = [
439
361
  [
440
362
  [0, 1],
441
363
  [() => BodyBlob, 16],
442
- [
443
- 0,
444
- {
445
- [_hH]: _CT_,
446
- },
447
- ],
448
- [
449
- 0,
450
- {
451
- [_hH]: _A,
452
- },
453
- ],
454
- [
455
- () => CustomAttributesHeader,
456
- {
457
- [_hH]: _XASCA,
458
- },
459
- ],
460
- [
461
- 0,
462
- {
463
- [_hH]: _XASTM,
464
- },
465
- ],
466
- [
467
- 0,
468
- {
469
- [_hH]: _XASTV,
470
- },
471
- ],
472
- [
473
- 0,
474
- {
475
- [_hH]: _XASTCH,
476
- },
477
- ],
478
- [
479
- 0,
480
- {
481
- [_hH]: _XASII,
482
- },
483
- ],
484
- [
485
- 0,
486
- {
487
- [_hH]: _XASEE,
488
- },
489
- ],
490
- [
491
- 0,
492
- {
493
- [_hH]: _XASIC,
494
- },
495
- ],
496
- [
497
- 0,
498
- {
499
- [_hH]: _XASSI,
500
- },
501
- ],
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 }],
502
374
  ],
503
375
  ];
504
376
  var InvokeEndpointOutput = [
@@ -509,36 +381,11 @@ var InvokeEndpointOutput = [
509
381
  [_B, _CT, _IPV, _CA, _NSI, _CSI],
510
382
  [
511
383
  [() => BodyBlob, 16],
512
- [
513
- 0,
514
- {
515
- [_hH]: _CT_,
516
- },
517
- ],
518
- [
519
- 0,
520
- {
521
- [_hH]: _xAIPV,
522
- },
523
- ],
524
- [
525
- () => CustomAttributesHeader,
526
- {
527
- [_hH]: _XASCA,
528
- },
529
- ],
530
- [
531
- 0,
532
- {
533
- [_hH]: _XASNSI,
534
- },
535
- ],
536
- [
537
- 0,
538
- {
539
- [_hH]: _XASCSI,
540
- },
541
- ],
384
+ [0, { [_hH]: _CT_ }],
385
+ [0, { [_hH]: _xAIPV }],
386
+ [() => CustomAttributesHeader, { [_hH]: _XASCA }],
387
+ [0, { [_hH]: _XASNSI }],
388
+ [0, { [_hH]: _XASCSI }],
542
389
  ],
543
390
  ];
544
391
  var InvokeEndpointWithResponseStreamInput = [
@@ -550,54 +397,14 @@ var InvokeEndpointWithResponseStreamInput = [
550
397
  [
551
398
  [0, 1],
552
399
  [() => BodyBlob, 16],
553
- [
554
- 0,
555
- {
556
- [_hH]: _CT_,
557
- },
558
- ],
559
- [
560
- 0,
561
- {
562
- [_hH]: _XASA,
563
- },
564
- ],
565
- [
566
- () => CustomAttributesHeader,
567
- {
568
- [_hH]: _XASCA,
569
- },
570
- ],
571
- [
572
- 0,
573
- {
574
- [_hH]: _XASTV,
575
- },
576
- ],
577
- [
578
- 0,
579
- {
580
- [_hH]: _XASTCH,
581
- },
582
- ],
583
- [
584
- 0,
585
- {
586
- [_hH]: _XASII,
587
- },
588
- ],
589
- [
590
- 0,
591
- {
592
- [_hH]: _XASIC,
593
- },
594
- ],
595
- [
596
- 0,
597
- {
598
- [_hH]: _XASSI,
599
- },
600
- ],
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 }],
601
408
  ],
602
409
  ];
603
410
  var InvokeEndpointWithResponseStreamOutput = [
@@ -608,100 +415,28 @@ var InvokeEndpointWithResponseStreamOutput = [
608
415
  [_B, _CT, _IPV, _CA],
609
416
  [
610
417
  [() => ResponseStream, 16],
611
- [
612
- 0,
613
- {
614
- [_hH]: _XASCT,
615
- },
616
- ],
617
- [
618
- 0,
619
- {
620
- [_hH]: _xAIPV,
621
- },
622
- ],
623
- [
624
- () => CustomAttributesHeader,
625
- {
626
- [_hH]: _XASCA,
627
- },
628
- ],
418
+ [0, { [_hH]: _XASCT }],
419
+ [0, { [_hH]: _xAIPV }],
420
+ [() => CustomAttributesHeader, { [_hH]: _XASCA }],
629
421
  ],
630
422
  ];
631
- var ModelError = [
632
- -3,
633
- n0,
634
- _ME,
635
- {
636
- [_e]: _c,
637
- [_hE]: 424,
638
- },
639
- [_M, _OSC, _OM, _LSA],
640
- [0, 1, 0, 0],
641
- ];
423
+ var ModelError = [-3, n0, _ME, { [_e]: _c, [_hE]: 424 }, [_M, _OSC, _OM, _LSA], [0, 1, 0, 0]];
642
424
  schema.TypeRegistry.for(n0).registerError(ModelError, ModelError$1);
643
425
  var ModelNotReadyException = [
644
426
  -3,
645
427
  n0,
646
428
  _MNRE,
647
- {
648
- [_e]: _c,
649
- [_hE]: 429,
650
- [_aQE]: [`ModelNotReadyException`, 429],
651
- },
429
+ { [_e]: _c, [_hE]: 429, [_aQE]: [`ModelNotReadyException`, 429] },
652
430
  [_M],
653
431
  [0],
654
432
  ];
655
433
  schema.TypeRegistry.for(n0).registerError(ModelNotReadyException, ModelNotReadyException$1);
656
- var ModelStreamError = [
657
- -3,
658
- n0,
659
- _MSE,
660
- {
661
- [_e]: _c,
662
- },
663
- [_M, _EC],
664
- [0, 0],
665
- ];
434
+ var ModelStreamError = [-3, n0, _MSE, { [_e]: _c }, [_M, _EC], [0, 0]];
666
435
  schema.TypeRegistry.for(n0).registerError(ModelStreamError, ModelStreamError$1);
667
- var PayloadPart = [
668
- 3,
669
- n0,
670
- _PP,
671
- 0,
672
- [_By],
673
- [
674
- [
675
- () => PartBlob,
676
- {
677
- [_eP]: 1,
678
- },
679
- ],
680
- ],
681
- ];
682
- var ServiceUnavailable = [
683
- -3,
684
- n0,
685
- _SU,
686
- {
687
- [_e]: _s,
688
- [_hE]: 503,
689
- },
690
- [_M],
691
- [0],
692
- ];
436
+ var PayloadPart = [3, n0, _PP, 0, [_By], [[() => PartBlob, { [_eP]: 1 }]]];
437
+ var ServiceUnavailable = [-3, n0, _SU, { [_e]: _s, [_hE]: 503 }, [_M], [0]];
693
438
  schema.TypeRegistry.for(n0).registerError(ServiceUnavailable, ServiceUnavailable$1);
694
- var ValidationError = [
695
- -3,
696
- n0,
697
- _VE,
698
- {
699
- [_e]: _c,
700
- [_hE]: 400,
701
- },
702
- [_M],
703
- [0],
704
- ];
439
+ var ValidationError = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
705
440
  schema.TypeRegistry.for(n0).registerError(ValidationError, ValidationError$1);
706
441
  var SageMakerRuntimeServiceException = [
707
442
  -3,
@@ -716,9 +451,7 @@ var ResponseStream = [
716
451
  3,
717
452
  n0,
718
453
  _RS,
719
- {
720
- [_st]: 1,
721
- },
454
+ { [_st]: 1 },
722
455
  [_PP, _MSE, _ISF],
723
456
  [
724
457
  [() => PayloadPart, 0],
@@ -730,9 +463,7 @@ var InvokeEndpoint = [
730
463
  9,
731
464
  n0,
732
465
  _IE,
733
- {
734
- [_h]: ["POST", "/endpoints/{EndpointName}/invocations", 200],
735
- },
466
+ { [_h]: ["POST", "/endpoints/{EndpointName}/invocations", 200] },
736
467
  () => InvokeEndpointInput,
737
468
  () => InvokeEndpointOutput,
738
469
  ];
@@ -740,9 +471,7 @@ var InvokeEndpointAsync = [
740
471
  9,
741
472
  n0,
742
473
  _IEA,
743
- {
744
- [_h]: ["POST", "/endpoints/{EndpointName}/async-invocations", 202],
745
- },
474
+ { [_h]: ["POST", "/endpoints/{EndpointName}/async-invocations", 202] },
746
475
  () => InvokeEndpointAsyncInput,
747
476
  () => InvokeEndpointAsyncOutput,
748
477
  ];
@@ -750,9 +479,7 @@ var InvokeEndpointWithResponseStream = [
750
479
  9,
751
480
  n0,
752
481
  _IEWRS,
753
- {
754
- [_h]: ["POST", "/endpoints/{EndpointName}/invocations-response-stream", 200],
755
- },
482
+ { [_h]: ["POST", "/endpoints/{EndpointName}/invocations-response-stream", 200] },
756
483
  () => InvokeEndpointWithResponseStreamInput,
757
484
  () => InvokeEndpointWithResponseStreamOutput,
758
485
  ];
@@ -9,11 +9,11 @@ const config_resolver_1 = require("@smithy/config-resolver");
9
9
  const eventstream_serde_browser_1 = require("@smithy/eventstream-serde-browser");
10
10
  const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
11
11
  const invalid_dependency_1 = require("@smithy/invalid-dependency");
12
+ const smithy_client_1 = require("@smithy/smithy-client");
12
13
  const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
14
+ const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
13
15
  const util_retry_1 = require("@smithy/util-retry");
14
16
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
- const smithy_client_1 = require("@smithy/smithy-client");
16
- const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
17
17
  const getRuntimeConfig = (config) => {
18
18
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
19
19
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -12,14 +12,13 @@ const hash_node_1 = require("@smithy/hash-node");
12
12
  const middleware_retry_1 = require("@smithy/middleware-retry");
13
13
  const node_config_provider_1 = require("@smithy/node-config-provider");
14
14
  const node_http_handler_1 = require("@smithy/node-http-handler");
15
+ const smithy_client_1 = require("@smithy/smithy-client");
15
16
  const util_body_length_node_1 = require("@smithy/util-body-length-node");
17
+ const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
16
18
  const util_retry_1 = require("@smithy/util-retry");
17
19
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
- const smithy_client_1 = require("@smithy/smithy-client");
19
- const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
20
- const smithy_client_2 = require("@smithy/smithy-client");
21
20
  const getRuntimeConfig = (config) => {
22
- (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
21
+ (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
23
22
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
24
23
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
25
24
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -7,8 +7,8 @@ import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin,
7
7
  import { getSchemaSerdePlugin } from "@smithy/core/schema";
8
8
  import { resolveEventStreamSerdeConfig, } from "@smithy/eventstream-serde-config-resolver";
9
9
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
10
- import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
11
- import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
10
+ import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
11
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
12
12
  import { Client as __Client, } from "@smithy/smithy-client";
13
13
  import { defaultSageMakerRuntimeHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
14
14
  import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
@@ -5,11 +5,11 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smit
5
5
  import { eventStreamSerdeProvider } from "@smithy/eventstream-serde-browser";
6
6
  import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
7
7
  import { invalidProvider } from "@smithy/invalid-dependency";
8
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
8
9
  import { calculateBodyLength } from "@smithy/util-body-length-browser";
10
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
9
11
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
10
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
12
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
13
13
  export const getRuntimeConfig = (config) => {
14
14
  const defaultsMode = resolveDefaultsModeConfig(config);
15
15
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
@@ -8,12 +8,11 @@ import { Hash } from "@smithy/hash-node";
8
8
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
9
9
  import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
10
10
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
11
+ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
11
12
  import { calculateBodyLength } from "@smithy/util-body-length-node";
13
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
12
14
  import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
13
15
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
14
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
15
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
16
- import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
17
16
  export const getRuntimeConfig = (config) => {
18
17
  emitWarningIfUnsupportedVersion(process.version);
19
18
  const defaultsMode = resolveDefaultsModeConfig(config);