@aws-sdk/client-lex-runtime-v2 3.940.0 → 3.946.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 (34) hide show
  1. package/dist-cjs/index.js +36 -247
  2. package/dist-cjs/runtimeConfig.browser.js +5 -3
  3. package/dist-cjs/runtimeConfig.js +8 -5
  4. package/dist-cjs/runtimeConfig.native.js +3 -1
  5. package/dist-es/LexRuntimeV2Client.js +2 -2
  6. package/dist-es/runtimeConfig.browser.js +5 -3
  7. package/dist-es/runtimeConfig.js +7 -4
  8. package/dist-es/runtimeConfig.native.js +3 -1
  9. package/dist-es/schemas/schemas_0.js +36 -247
  10. package/dist-types/LexRuntimeV2.d.ts +1 -1
  11. package/dist-types/LexRuntimeV2Client.d.ts +12 -12
  12. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
  13. package/dist-types/auth/httpAuthSchemeProvider.d.ts +2 -2
  14. package/dist-types/commands/DeleteSessionCommand.d.ts +3 -3
  15. package/dist-types/commands/GetSessionCommand.d.ts +3 -3
  16. package/dist-types/commands/PutSessionCommand.d.ts +3 -3
  17. package/dist-types/commands/RecognizeTextCommand.d.ts +3 -3
  18. package/dist-types/commands/RecognizeUtteranceCommand.d.ts +2 -2
  19. package/dist-types/commands/StartConversationCommand.d.ts +3 -3
  20. package/dist-types/endpoint/EndpointParameters.d.ts +13 -1
  21. package/dist-types/endpoint/endpointResolver.d.ts +5 -2
  22. package/dist-types/extensionConfiguration.d.ts +4 -4
  23. package/dist-types/models/LexRuntimeV2ServiceException.d.ts +1 -1
  24. package/dist-types/models/errors.d.ts +1 -1
  25. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  26. package/dist-types/runtimeConfig.d.ts +1 -1
  27. package/dist-types/runtimeConfig.native.d.ts +1 -1
  28. package/dist-types/runtimeConfig.shared.d.ts +1 -1
  29. package/dist-types/runtimeExtensions.d.ts +1 -1
  30. package/dist-types/schemas/schemas_0.d.ts +1 -1
  31. package/dist-types/ts3.4/LexRuntimeV2Client.d.ts +3 -3
  32. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  33. package/dist-types/ts3.4/models/LexRuntimeV2ServiceException.d.ts +1 -1
  34. package/package.json +13 -12
package/dist-cjs/index.js CHANGED
@@ -388,29 +388,11 @@ const _xalrbm = "x-amz-lex-recognized-bot-member";
388
388
  const _xalsi = "x-amz-lex-session-id";
389
389
  const _xalss = "x-amz-lex-session-state";
390
390
  const n0 = "com.amazonaws.lexruntimev2";
391
- var BlobStream = [
392
- 0,
393
- n0,
394
- _BS,
395
- {
396
- [_s]: 1,
397
- },
398
- 42,
399
- ];
391
+ var BlobStream = [0, n0, _BS, { [_s]: 1 }, 42];
400
392
  var DTMFRegex = [0, n0, _DTMFR, 8, 0];
401
393
  var SensitiveNonEmptyString = [0, n0, _SNES, 8, 0];
402
394
  var Text = [0, n0, _T, 8, 0];
403
- var AccessDeniedException = [
404
- -3,
405
- n0,
406
- _ADE,
407
- {
408
- [_e]: _c,
409
- [_hE]: 403,
410
- },
411
- [_m],
412
- [0],
413
- ];
395
+ var AccessDeniedException = [-3, n0, _ADE, { [_e]: _c, [_hE]: 403 }, [_m], [0]];
414
396
  schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
415
397
  var ActiveContext = [
416
398
  3,
@@ -423,17 +405,7 @@ var ActiveContext = [
423
405
  var ActiveContextTimeToLive = [3, n0, _ACTTL, 0, [_tTLIS, _tTLu], [1, 1]];
424
406
  var AudioInputEvent = [3, n0, _AIE, 0, [_aC, _cT, _eI, _cTM], [21, 0, 0, 1]];
425
407
  var AudioResponseEvent = [3, n0, _ARE, 0, [_aC, _cT, _eI], [21, 0, 0]];
426
- var BadGatewayException = [
427
- -3,
428
- n0,
429
- _BGE,
430
- {
431
- [_e]: _se,
432
- [_hE]: 502,
433
- },
434
- [_m],
435
- [0],
436
- ];
408
+ var BadGatewayException = [-3, n0, _BGE, { [_e]: _se, [_hE]: 502 }, [_m], [0]];
437
409
  schema.TypeRegistry.for(n0).registerError(BadGatewayException, BadGatewayException$1);
438
410
  var Button = [3, n0, _B, 0, [_t, _v], [0, 0]];
439
411
  var ConfidenceScore = [3, n0, _CS, 0, [_sc], [1]];
@@ -445,17 +417,7 @@ var ConfigurationEvent = [
445
417
  [_rA, _rCT, _sS, _wM, _dP, _eI, _cTM],
446
418
  [128 | 0, 0, [() => SessionState, 0], [() => Messages, 0], 2, 0, 1],
447
419
  ];
448
- var ConflictException = [
449
- -3,
450
- n0,
451
- _CEo,
452
- {
453
- [_e]: _c,
454
- [_hE]: 409,
455
- },
456
- [_m],
457
- [0],
458
- ];
420
+ var ConflictException = [-3, n0, _CEo, { [_e]: _c, [_hE]: 409 }, [_m], [0]];
459
421
  schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
460
422
  var DeleteSessionRequest = [
461
423
  3,
@@ -471,17 +433,7 @@ var DeleteSessionRequest = [
471
433
  ],
472
434
  ];
473
435
  var DeleteSessionResponse = [3, n0, _DSRe, 0, [_bI, _bAI, _lI, _sI], [0, 0, 0, 0]];
474
- var DependencyFailedException = [
475
- -3,
476
- n0,
477
- _DFE,
478
- {
479
- [_e]: _c,
480
- [_hE]: 424,
481
- },
482
- [_m],
483
- [0],
484
- ];
436
+ var DependencyFailedException = [-3, n0, _DFE, { [_e]: _c, [_hE]: 424 }, [_m], [0]];
485
437
  schema.TypeRegistry.for(n0).registerError(DependencyFailedException, DependencyFailedException$1);
486
438
  var DialogAction = [
487
439
  3,
@@ -533,17 +485,7 @@ var IntentResultEvent = [
533
485
  [_iM, _i, _sS, _rA, _sI, _eI, _rBM],
534
486
  [0, () => Interpretations, [() => SessionState, 0], 128 | 0, 0, 0, () => RecognizedBotMember],
535
487
  ];
536
- var InternalServerException = [
537
- -3,
538
- n0,
539
- _ISE,
540
- {
541
- [_e]: _se,
542
- [_hE]: 500,
543
- },
544
- [_m],
545
- [0],
546
- ];
488
+ var InternalServerException = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_m], [0]];
547
489
  schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
548
490
  var Interpretation = [
549
491
  3,
@@ -569,21 +511,7 @@ var PutSessionRequest = [
569
511
  _PSR,
570
512
  0,
571
513
  [_bI, _bAI, _lI, _sI, _me, _sS, _rA, _rCT],
572
- [
573
- [0, 1],
574
- [0, 1],
575
- [0, 1],
576
- [0, 1],
577
- [() => Messages, 0],
578
- [() => SessionState, 0],
579
- 128 | 0,
580
- [
581
- 0,
582
- {
583
- [_hH]: _RCT,
584
- },
585
- ],
586
- ],
514
+ [[0, 1], [0, 1], [0, 1], [0, 1], [() => Messages, 0], [() => SessionState, 0], 128 | 0, [0, { [_hH]: _RCT }]],
587
515
  ];
588
516
  var PutSessionResponse = [
589
517
  3,
@@ -592,36 +520,11 @@ var PutSessionResponse = [
592
520
  0,
593
521
  [_cT, _me, _sS, _rA, _sI, _aS],
594
522
  [
595
- [
596
- 0,
597
- {
598
- [_hH]: _CT,
599
- },
600
- ],
601
- [
602
- 0,
603
- {
604
- [_hH]: _xalm,
605
- },
606
- ],
607
- [
608
- 0,
609
- {
610
- [_hH]: _xalss,
611
- },
612
- ],
613
- [
614
- 0,
615
- {
616
- [_hH]: _xalra,
617
- },
618
- ],
619
- [
620
- 0,
621
- {
622
- [_hH]: _xalsi,
623
- },
624
- ],
523
+ [0, { [_hH]: _CT }],
524
+ [0, { [_hH]: _xalm }],
525
+ [0, { [_hH]: _xalss }],
526
+ [0, { [_hH]: _xalra }],
527
+ [0, { [_hH]: _xalsi }],
625
528
  [() => BlobStream, 16],
626
529
  ],
627
530
  ];
@@ -653,30 +556,10 @@ var RecognizeUtteranceRequest = [
653
556
  [0, 1],
654
557
  [0, 1],
655
558
  [0, 1],
656
- [
657
- () => SensitiveNonEmptyString,
658
- {
659
- [_hH]: _xalss,
660
- },
661
- ],
662
- [
663
- () => SensitiveNonEmptyString,
664
- {
665
- [_hH]: _xalra,
666
- },
667
- ],
668
- [
669
- 0,
670
- {
671
- [_hH]: _CT,
672
- },
673
- ],
674
- [
675
- 0,
676
- {
677
- [_hH]: _RCT_,
678
- },
679
- ],
559
+ [() => SensitiveNonEmptyString, { [_hH]: _xalss }],
560
+ [() => SensitiveNonEmptyString, { [_hH]: _xalra }],
561
+ [0, { [_hH]: _CT }],
562
+ [0, { [_hH]: _RCT_ }],
680
563
  [() => BlobStream, 16],
681
564
  ],
682
565
  ];
@@ -687,74 +570,19 @@ var RecognizeUtteranceResponse = [
687
570
  0,
688
571
  [_iM, _cT, _me, _i, _sS, _rA, _sI, _iT, _aS, _rBM],
689
572
  [
690
- [
691
- 0,
692
- {
693
- [_hH]: _xalim,
694
- },
695
- ],
696
- [
697
- 0,
698
- {
699
- [_hH]: _CT,
700
- },
701
- ],
702
- [
703
- 0,
704
- {
705
- [_hH]: _xalm,
706
- },
707
- ],
708
- [
709
- 0,
710
- {
711
- [_hH]: _xali,
712
- },
713
- ],
714
- [
715
- 0,
716
- {
717
- [_hH]: _xalss,
718
- },
719
- ],
720
- [
721
- 0,
722
- {
723
- [_hH]: _xalra,
724
- },
725
- ],
726
- [
727
- 0,
728
- {
729
- [_hH]: _xalsi,
730
- },
731
- ],
732
- [
733
- 0,
734
- {
735
- [_hH]: _xalit,
736
- },
737
- ],
573
+ [0, { [_hH]: _xalim }],
574
+ [0, { [_hH]: _CT }],
575
+ [0, { [_hH]: _xalm }],
576
+ [0, { [_hH]: _xali }],
577
+ [0, { [_hH]: _xalss }],
578
+ [0, { [_hH]: _xalra }],
579
+ [0, { [_hH]: _xalsi }],
580
+ [0, { [_hH]: _xalit }],
738
581
  [() => BlobStream, 16],
739
- [
740
- 0,
741
- {
742
- [_hH]: _xalrbm,
743
- },
744
- ],
582
+ [0, { [_hH]: _xalrbm }],
745
583
  ],
746
584
  ];
747
- var ResourceNotFoundException = [
748
- -3,
749
- n0,
750
- _RNFE,
751
- {
752
- [_e]: _c,
753
- [_hE]: 404,
754
- },
755
- [_m],
756
- [0],
757
- ];
585
+ var ResourceNotFoundException = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
758
586
  schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
759
587
  var RuntimeHintDetails = [
760
588
  3,
@@ -795,12 +623,7 @@ var StartConversationRequest = [
795
623
  [0, 1],
796
624
  [0, 1],
797
625
  [0, 1],
798
- [
799
- 0,
800
- {
801
- [_hH]: _xalcm,
802
- },
803
- ],
626
+ [0, { [_hH]: _xalcm }],
804
627
  [() => StartConversationRequestEventStream, 16],
805
628
  ],
806
629
  ];
@@ -814,30 +637,10 @@ var StartConversationResponse = [
814
637
  ];
815
638
  var TextInputEvent = [3, n0, _TIE, 0, [_t, _eI, _cTM], [[() => Text, 0], 0, 1]];
816
639
  var TextResponseEvent = [3, n0, _TRE, 0, [_me, _eI], [[() => Messages, 0], 0]];
817
- var ThrottlingException = [
818
- -3,
819
- n0,
820
- _TE,
821
- {
822
- [_e]: _c,
823
- [_hE]: 429,
824
- },
825
- [_m],
826
- [0],
827
- ];
640
+ var ThrottlingException = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
828
641
  schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
829
642
  var TranscriptEvent = [3, n0, _TEr, 0, [_tr, _eI], [0, 0]];
830
- var ValidationException = [
831
- -3,
832
- n0,
833
- _VE,
834
- {
835
- [_e]: _c,
836
- [_hE]: 400,
837
- },
838
- [_m],
839
- [0],
840
- ];
643
+ var ValidationException = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
841
644
  schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
842
645
  var Value = [3, n0, _V, 0, [_oV, _iV, _rV], [0, 0, 64 | 0]];
843
646
  var LexRuntimeV2ServiceException = [-3, _sm, "LexRuntimeV2ServiceException", 0, [], []];
@@ -856,9 +659,7 @@ var StartConversationRequestEventStream = [
856
659
  3,
857
660
  n0,
858
661
  _SCRES,
859
- {
860
- [_s]: 1,
861
- },
662
+ { [_s]: 1 },
862
663
  [_CE, _AIE, _DTMFIE, _TIE, _PCE, _DE],
863
664
  [
864
665
  [() => ConfigurationEvent, 0],
@@ -873,9 +674,7 @@ var StartConversationResponseEventStream = [
873
674
  3,
874
675
  n0,
875
676
  _SCRESt,
876
- {
877
- [_s]: 1,
878
- },
677
+ { [_s]: 1 },
879
678
  [_PIE, _TEr, _IRE, _TRE, _ARE, _HE, _ADE, _RNFE, _VE, _TE, _ISE, _CEo, _DFE, _BGE],
880
679
  [
881
680
  () => PlaybackInterruptionEvent,
@@ -898,9 +697,7 @@ var DeleteSession = [
898
697
  9,
899
698
  n0,
900
699
  _DS,
901
- {
902
- [_h]: ["DELETE", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200],
903
- },
700
+ { [_h]: ["DELETE", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200] },
904
701
  () => DeleteSessionRequest,
905
702
  () => DeleteSessionResponse,
906
703
  ];
@@ -908,9 +705,7 @@ var GetSession = [
908
705
  9,
909
706
  n0,
910
707
  _GS,
911
- {
912
- [_h]: ["GET", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200],
913
- },
708
+ { [_h]: ["GET", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200] },
914
709
  () => GetSessionRequest,
915
710
  () => GetSessionResponse,
916
711
  ];
@@ -918,9 +713,7 @@ var PutSession = [
918
713
  9,
919
714
  n0,
920
715
  _PS,
921
- {
922
- [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200],
923
- },
716
+ { [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}", 200] },
924
717
  () => PutSessionRequest,
925
718
  () => PutSessionResponse,
926
719
  ];
@@ -928,9 +721,7 @@ var RecognizeText = [
928
721
  9,
929
722
  n0,
930
723
  _RT,
931
- {
932
- [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/text", 200],
933
- },
724
+ { [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/text", 200] },
934
725
  () => RecognizeTextRequest,
935
726
  () => RecognizeTextResponse,
936
727
  ];
@@ -938,9 +729,7 @@ var RecognizeUtterance = [
938
729
  9,
939
730
  n0,
940
731
  _RU,
941
- {
942
- [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/utterance", 200],
943
- },
732
+ { [_h]: ["POST", "/bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/utterance", 200] },
944
733
  () => RecognizeUtteranceRequest,
945
734
  () => RecognizeUtteranceResponse,
946
735
  ];
@@ -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);
@@ -28,7 +28,9 @@ const getRuntimeConfig = (config) => {
28
28
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
29
29
  (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
30
30
  eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
31
- (() => ({ handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in browser.") })),
31
+ (() => ({
32
+ handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in browser."),
33
+ })),
32
34
  eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_browser_1.eventStreamSerdeProvider,
33
35
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
34
36
  region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
@@ -13,14 +13,13 @@ const hash_node_1 = require("@smithy/hash-node");
13
13
  const middleware_retry_1 = require("@smithy/middleware-retry");
14
14
  const node_config_provider_1 = require("@smithy/node-config-provider");
15
15
  const node_http_handler_1 = require("@smithy/node-http-handler");
16
+ const smithy_client_1 = require("@smithy/smithy-client");
16
17
  const util_body_length_node_1 = require("@smithy/util-body-length-node");
18
+ const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
17
19
  const util_retry_1 = require("@smithy/util-retry");
18
20
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
19
- const smithy_client_1 = require("@smithy/smithy-client");
20
- const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
21
- const smithy_client_2 = require("@smithy/smithy-client");
22
21
  const getRuntimeConfig = (config) => {
23
- (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
22
+ (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
24
23
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
25
24
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
26
25
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -44,7 +43,11 @@ const getRuntimeConfig = (config) => {
44
43
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
45
44
  region: config?.region ??
46
45
  (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
47
- requestHandler: node_http_handler_1.NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({ ...(await defaultConfigProvider()), disableConcurrentStreams: true }))),
46
+ requestHandler: node_http_handler_1.NodeHttp2Handler.create(config?.requestHandler ??
47
+ (async () => ({
48
+ ...(await defaultConfigProvider()),
49
+ disableConcurrentStreams: true,
50
+ }))),
48
51
  retryMode: config?.retryMode ??
49
52
  (0, node_config_provider_1.loadConfig)({
50
53
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
@@ -11,7 +11,9 @@ const getRuntimeConfig = (config) => {
11
11
  ...config,
12
12
  runtime: "react-native",
13
13
  eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
14
- (() => ({ handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in ReactNative.") })),
14
+ (() => ({
15
+ handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in ReactNative."),
16
+ })),
15
17
  sha256: config?.sha256 ?? sha256_js_1.Sha256,
16
18
  };
17
19
  };
@@ -8,8 +8,8 @@ import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin,
8
8
  import { getSchemaSerdePlugin } from "@smithy/core/schema";
9
9
  import { resolveEventStreamSerdeConfig, } from "@smithy/eventstream-serde-config-resolver";
10
10
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
11
- import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
12
- import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
11
+ import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
12
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
13
13
  import { Client as __Client, } from "@smithy/smithy-client";
14
14
  import { defaultLexRuntimeV2HttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
15
15
  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 { invalidFunction, 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);
@@ -24,7 +24,9 @@ export const getRuntimeConfig = (config) => {
24
24
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
25
25
  createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
26
26
  eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
27
- (() => ({ handle: invalidFunction("event stream request is not supported in browser.") })),
27
+ (() => ({
28
+ handle: invalidFunction("event stream request is not supported in browser."),
29
+ })),
28
30
  eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
29
31
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
30
32
  region: config?.region ?? invalidProvider("Region is missing"),
@@ -9,12 +9,11 @@ import { Hash } from "@smithy/hash-node";
9
9
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
10
10
  import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
11
11
  import { NodeHttp2Handler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
12
+ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
12
13
  import { calculateBodyLength } from "@smithy/util-body-length-node";
14
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
13
15
  import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
14
16
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
16
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
17
- import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
18
17
  export const getRuntimeConfig = (config) => {
19
18
  emitWarningIfUnsupportedVersion(process.version);
20
19
  const defaultsMode = resolveDefaultsModeConfig(config);
@@ -40,7 +39,11 @@ export const getRuntimeConfig = (config) => {
40
39
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
41
40
  region: config?.region ??
42
41
  loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
43
- requestHandler: RequestHandler.create(config?.requestHandler ?? (async () => ({ ...(await defaultConfigProvider()), disableConcurrentStreams: true }))),
42
+ requestHandler: RequestHandler.create(config?.requestHandler ??
43
+ (async () => ({
44
+ ...(await defaultConfigProvider()),
45
+ disableConcurrentStreams: true,
46
+ }))),
44
47
  retryMode: config?.retryMode ??
45
48
  loadNodeConfig({
46
49
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
@@ -8,7 +8,9 @@ export const getRuntimeConfig = (config) => {
8
8
  ...config,
9
9
  runtime: "react-native",
10
10
  eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
11
- (() => ({ handle: invalidFunction("event stream request is not supported in ReactNative.") })),
11
+ (() => ({
12
+ handle: invalidFunction("event stream request is not supported in ReactNative."),
13
+ })),
12
14
  sha256: config?.sha256 ?? Sha256,
13
15
  };
14
16
  };