@aws-sdk/client-bedrock-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 (43) hide show
  1. package/dist-cjs/index.js +53 -322
  2. package/dist-cjs/runtimeConfig.browser.js +2 -2
  3. package/dist-cjs/runtimeConfig.js +8 -5
  4. package/dist-cjs/runtimeConfig.native.js +3 -1
  5. package/dist-es/BedrockRuntimeClient.js +3 -3
  6. package/dist-es/runtimeConfig.browser.js +2 -2
  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 +53 -323
  10. package/dist-types/BedrockRuntime.d.ts +1 -1
  11. package/dist-types/BedrockRuntimeClient.d.ts +13 -13
  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/ApplyGuardrailCommand.d.ts +3 -3
  15. package/dist-types/commands/ConverseCommand.d.ts +3 -3
  16. package/dist-types/commands/ConverseStreamCommand.d.ts +3 -3
  17. package/dist-types/commands/CountTokensCommand.d.ts +3 -3
  18. package/dist-types/commands/GetAsyncInvokeCommand.d.ts +3 -3
  19. package/dist-types/commands/InvokeModelCommand.d.ts +2 -2
  20. package/dist-types/commands/InvokeModelWithBidirectionalStreamCommand.d.ts +3 -3
  21. package/dist-types/commands/InvokeModelWithResponseStreamCommand.d.ts +3 -3
  22. package/dist-types/commands/ListAsyncInvokesCommand.d.ts +3 -3
  23. package/dist-types/commands/StartAsyncInvokeCommand.d.ts +3 -3
  24. package/dist-types/endpoint/EndpointParameters.d.ts +13 -1
  25. package/dist-types/endpoint/endpointResolver.d.ts +5 -2
  26. package/dist-types/extensionConfiguration.d.ts +4 -4
  27. package/dist-types/models/BedrockRuntimeServiceException.d.ts +1 -1
  28. package/dist-types/models/errors.d.ts +1 -1
  29. package/dist-types/pagination/Interfaces.d.ts +1 -1
  30. package/dist-types/pagination/ListAsyncInvokesPaginator.d.ts +1 -1
  31. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  32. package/dist-types/runtimeConfig.d.ts +2 -2
  33. package/dist-types/runtimeConfig.native.d.ts +1 -1
  34. package/dist-types/runtimeConfig.shared.d.ts +2 -2
  35. package/dist-types/runtimeExtensions.d.ts +1 -1
  36. package/dist-types/schemas/schemas_0.d.ts +1 -2
  37. package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +3 -3
  38. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  39. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +1 -1
  40. package/dist-types/ts3.4/commands/InvokeModelWithResponseStreamCommand.d.ts +1 -1
  41. package/dist-types/ts3.4/models/BedrockRuntimeServiceException.d.ts +1 -1
  42. package/dist-types/ts3.4/schemas/schemas_0.d.ts +0 -1
  43. package/package.json +14 -13
package/dist-cjs/index.js CHANGED
@@ -740,17 +740,7 @@ var GuardrailAutomatedReasoningStatementLogicContent = [0, n0, _GARSLC, 8, 0];
740
740
  var GuardrailAutomatedReasoningStatementNaturalLanguageContent = [0, n0, _GARSNLC, 8, 0];
741
741
  var ModelInputPayload = [0, n0, _MIP, 8, 15];
742
742
  var PartBody = [0, n0, _PB, 8, 21];
743
- var AccessDeniedException = [
744
- -3,
745
- n0,
746
- _ADE,
747
- {
748
- [_e]: _c,
749
- [_hE]: 403,
750
- },
751
- [_m],
752
- [0],
753
- ];
743
+ var AccessDeniedException = [-3, n0, _ADE, { [_e]: _c, [_hE]: 403 }, [_m], [0]];
754
744
  schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
755
745
  var AnyToolChoice = [3, n0, _ATC, 0, [], []];
756
746
  var AppliedGuardrailDetails = [
@@ -831,17 +821,7 @@ var CitationsDelta = [
831
821
  [0, 0, () => CitationSourceContentListDelta, () => CitationLocation],
832
822
  ];
833
823
  var CitationSourceContentDelta = [3, n0, _CSCD, 0, [_te], [0]];
834
- var ConflictException = [
835
- -3,
836
- n0,
837
- _CE,
838
- {
839
- [_e]: _c,
840
- [_hE]: 400,
841
- },
842
- [_m],
843
- [0],
844
- ];
824
+ var ConflictException = [-3, n0, _CE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
845
825
  schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
846
826
  var ContentBlockDeltaEvent = [
847
827
  3,
@@ -1276,17 +1256,7 @@ var ImageBlockDelta = [
1276
1256
  ];
1277
1257
  var ImageBlockStart = [3, n0, _IBS, 0, [_f], [0]];
1278
1258
  var InferenceConfiguration = [3, n0, _IC, 0, [_mT, _tem, _tPo, _sS], [1, 1, 1, 64 | 0]];
1279
- var InternalServerException = [
1280
- -3,
1281
- n0,
1282
- _ISE,
1283
- {
1284
- [_e]: _se,
1285
- [_hE]: 500,
1286
- },
1287
- [_m],
1288
- [0],
1289
- ];
1259
+ var InternalServerException = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_m], [0]];
1290
1260
  schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
1291
1261
  var InvokeModelRequest = [
1292
1262
  3,
@@ -1296,49 +1266,14 @@ var InvokeModelRequest = [
1296
1266
  [_bo, _cT, _ac, _mI, _tr, _gIu, _gV, _pCL, _sTe],
1297
1267
  [
1298
1268
  [() => Body, 16],
1299
- [
1300
- 0,
1301
- {
1302
- [_hH]: _CT_,
1303
- },
1304
- ],
1305
- [
1306
- 0,
1307
- {
1308
- [_hH]: _A,
1309
- },
1310
- ],
1269
+ [0, { [_hH]: _CT_ }],
1270
+ [0, { [_hH]: _A }],
1311
1271
  [0, 1],
1312
- [
1313
- 0,
1314
- {
1315
- [_hH]: _XABT,
1316
- },
1317
- ],
1318
- [
1319
- 0,
1320
- {
1321
- [_hH]: _XABG,
1322
- },
1323
- ],
1324
- [
1325
- 0,
1326
- {
1327
- [_hH]: _XABG_,
1328
- },
1329
- ],
1330
- [
1331
- 0,
1332
- {
1333
- [_hH]: _XABPL,
1334
- },
1335
- ],
1336
- [
1337
- 0,
1338
- {
1339
- [_hH]: _XABST,
1340
- },
1341
- ],
1272
+ [0, { [_hH]: _XABT }],
1273
+ [0, { [_hH]: _XABG }],
1274
+ [0, { [_hH]: _XABG_ }],
1275
+ [0, { [_hH]: _XABPL }],
1276
+ [0, { [_hH]: _XABST }],
1342
1277
  ],
1343
1278
  ];
1344
1279
  var InvokeModelResponse = [
@@ -1349,24 +1284,9 @@ var InvokeModelResponse = [
1349
1284
  [_bo, _cT, _pCL, _sTe],
1350
1285
  [
1351
1286
  [() => Body, 16],
1352
- [
1353
- 0,
1354
- {
1355
- [_hH]: _CT_,
1356
- },
1357
- ],
1358
- [
1359
- 0,
1360
- {
1361
- [_hH]: _XABPL,
1362
- },
1363
- ],
1364
- [
1365
- 0,
1366
- {
1367
- [_hH]: _XABST,
1368
- },
1369
- ],
1287
+ [0, { [_hH]: _CT_ }],
1288
+ [0, { [_hH]: _XABPL }],
1289
+ [0, { [_hH]: _XABST }],
1370
1290
  ],
1371
1291
  ];
1372
1292
  var InvokeModelTokensRequest = [3, n0, _IMTR, 0, [_bo], [[() => Body, 0]]];
@@ -1397,49 +1317,14 @@ var InvokeModelWithResponseStreamRequest = [
1397
1317
  [_bo, _cT, _ac, _mI, _tr, _gIu, _gV, _pCL, _sTe],
1398
1318
  [
1399
1319
  [() => Body, 16],
1400
- [
1401
- 0,
1402
- {
1403
- [_hH]: _CT_,
1404
- },
1405
- ],
1406
- [
1407
- 0,
1408
- {
1409
- [_hH]: _XABA,
1410
- },
1411
- ],
1320
+ [0, { [_hH]: _CT_ }],
1321
+ [0, { [_hH]: _XABA }],
1412
1322
  [0, 1],
1413
- [
1414
- 0,
1415
- {
1416
- [_hH]: _XABT,
1417
- },
1418
- ],
1419
- [
1420
- 0,
1421
- {
1422
- [_hH]: _XABG,
1423
- },
1424
- ],
1425
- [
1426
- 0,
1427
- {
1428
- [_hH]: _XABG_,
1429
- },
1430
- ],
1431
- [
1432
- 0,
1433
- {
1434
- [_hH]: _XABPL,
1435
- },
1436
- ],
1437
- [
1438
- 0,
1439
- {
1440
- [_hH]: _XABST,
1441
- },
1442
- ],
1323
+ [0, { [_hH]: _XABT }],
1324
+ [0, { [_hH]: _XABG }],
1325
+ [0, { [_hH]: _XABG_ }],
1326
+ [0, { [_hH]: _XABPL }],
1327
+ [0, { [_hH]: _XABST }],
1443
1328
  ],
1444
1329
  ];
1445
1330
  var InvokeModelWithResponseStreamResponse = [
@@ -1450,24 +1335,9 @@ var InvokeModelWithResponseStreamResponse = [
1450
1335
  [_bo, _cT, _pCL, _sTe],
1451
1336
  [
1452
1337
  [() => ResponseStream, 16],
1453
- [
1454
- 0,
1455
- {
1456
- [_hH]: _XABCT,
1457
- },
1458
- ],
1459
- [
1460
- 0,
1461
- {
1462
- [_hH]: _XABPL,
1463
- },
1464
- ],
1465
- [
1466
- 0,
1467
- {
1468
- [_hH]: _XABST,
1469
- },
1470
- ],
1338
+ [0, { [_hH]: _XABCT }],
1339
+ [0, { [_hH]: _XABPL }],
1340
+ [0, { [_hH]: _XABST }],
1471
1341
  ],
1472
1342
  ];
1473
1343
  var ListAsyncInvokesRequest = [
@@ -1477,48 +1347,13 @@ var ListAsyncInvokesRequest = [
1477
1347
  0,
1478
1348
  [_sTA, _sTB, _sE, _mR, _nT, _sB, _sO],
1479
1349
  [
1480
- [
1481
- 5,
1482
- {
1483
- [_hQ]: _sTA,
1484
- },
1485
- ],
1486
- [
1487
- 5,
1488
- {
1489
- [_hQ]: _sTB,
1490
- },
1491
- ],
1492
- [
1493
- 0,
1494
- {
1495
- [_hQ]: _sE,
1496
- },
1497
- ],
1498
- [
1499
- 1,
1500
- {
1501
- [_hQ]: _mR,
1502
- },
1503
- ],
1504
- [
1505
- 0,
1506
- {
1507
- [_hQ]: _nT,
1508
- },
1509
- ],
1510
- [
1511
- 0,
1512
- {
1513
- [_hQ]: _sB,
1514
- },
1515
- ],
1516
- [
1517
- 0,
1518
- {
1519
- [_hQ]: _sO,
1520
- },
1521
- ],
1350
+ [5, { [_hQ]: _sTA }],
1351
+ [5, { [_hQ]: _sTB }],
1352
+ [0, { [_hQ]: _sE }],
1353
+ [1, { [_hQ]: _mR }],
1354
+ [0, { [_hQ]: _nT }],
1355
+ [0, { [_hQ]: _sB }],
1356
+ [0, { [_hQ]: _sO }],
1522
1357
  ],
1523
1358
  ];
1524
1359
  var ListAsyncInvokesResponse = [
@@ -1536,65 +1371,29 @@ var ModelErrorException = [
1536
1371
  -3,
1537
1372
  n0,
1538
1373
  _MEE,
1539
- {
1540
- [_e]: _c,
1541
- [_hE]: 424,
1542
- },
1374
+ { [_e]: _c, [_hE]: 424 },
1543
1375
  [_m, _oSC, _rN],
1544
1376
  [0, 1, 0],
1545
1377
  ];
1546
1378
  schema.TypeRegistry.for(n0).registerError(ModelErrorException, ModelErrorException$1);
1547
- var ModelNotReadyException = [
1548
- -3,
1549
- n0,
1550
- _MNRE,
1551
- {
1552
- [_e]: _c,
1553
- [_hE]: 429,
1554
- },
1555
- [_m],
1556
- [0],
1557
- ];
1379
+ var ModelNotReadyException = [-3, n0, _MNRE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
1558
1380
  schema.TypeRegistry.for(n0).registerError(ModelNotReadyException, ModelNotReadyException$1);
1559
1381
  var ModelStreamErrorException = [
1560
1382
  -3,
1561
1383
  n0,
1562
1384
  _MSEE,
1563
- {
1564
- [_e]: _c,
1565
- [_hE]: 424,
1566
- },
1385
+ { [_e]: _c, [_hE]: 424 },
1567
1386
  [_m, _oSC, _oM],
1568
1387
  [0, 1, 0],
1569
1388
  ];
1570
1389
  schema.TypeRegistry.for(n0).registerError(ModelStreamErrorException, ModelStreamErrorException$1);
1571
- var ModelTimeoutException = [
1572
- -3,
1573
- n0,
1574
- _MTE,
1575
- {
1576
- [_e]: _c,
1577
- [_hE]: 408,
1578
- },
1579
- [_m],
1580
- [0],
1581
- ];
1390
+ var ModelTimeoutException = [-3, n0, _MTE, { [_e]: _c, [_hE]: 408 }, [_m], [0]];
1582
1391
  schema.TypeRegistry.for(n0).registerError(ModelTimeoutException, ModelTimeoutException$1);
1583
1392
  var PayloadPart = [3, n0, _PP, 8, [_b], [[() => PartBody, 0]]];
1584
1393
  var PerformanceConfiguration = [3, n0, _PC, 0, [_la], [0]];
1585
1394
  var PromptRouterTrace = [3, n0, _PRT, 0, [_iMI], [0]];
1586
1395
  var ReasoningTextBlock = [3, n0, _RTB, 8, [_te, _si], [0, 0]];
1587
- var ResourceNotFoundException = [
1588
- -3,
1589
- n0,
1590
- _RNFE,
1591
- {
1592
- [_e]: _c,
1593
- [_hE]: 404,
1594
- },
1595
- [_m],
1596
- [0],
1597
- ];
1396
+ var ResourceNotFoundException = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
1598
1397
  schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
1599
1398
  var S3Location = [3, n0, _SL, 0, [_ur, _bO], [0, 0]];
1600
1399
  var SearchResultBlock = [
@@ -1607,30 +1406,10 @@ var SearchResultBlock = [
1607
1406
  ];
1608
1407
  var SearchResultContentBlock = [3, n0, _SRCB, 0, [_te], [0]];
1609
1408
  var SearchResultLocation = [3, n0, _SRL, 0, [_sRI, _sta, _end], [1, 1, 1]];
1610
- var ServiceQuotaExceededException = [
1611
- -3,
1612
- n0,
1613
- _SQEE,
1614
- {
1615
- [_e]: _c,
1616
- [_hE]: 400,
1617
- },
1618
- [_m],
1619
- [0],
1620
- ];
1409
+ var ServiceQuotaExceededException = [-3, n0, _SQEE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
1621
1410
  schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
1622
1411
  var ServiceTier = [3, n0, _ST, 0, [_t], [0]];
1623
- var ServiceUnavailableException = [
1624
- -3,
1625
- n0,
1626
- _SUE,
1627
- {
1628
- [_e]: _se,
1629
- [_hE]: 503,
1630
- },
1631
- [_m],
1632
- [0],
1633
- ];
1412
+ var ServiceUnavailableException = [-3, n0, _SUE, { [_e]: _se, [_hE]: 503 }, [_m], [0]];
1634
1413
  schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException, ServiceUnavailableException$1);
1635
1414
  var SpecificToolChoice = [3, n0, _STC, 0, [_n], [0]];
1636
1415
  var StartAsyncInvokeRequest = [
@@ -1644,17 +1423,7 @@ var StartAsyncInvokeRequest = [
1644
1423
  var StartAsyncInvokeResponse = [3, n0, _SAIRt, 0, [_iA], [0]];
1645
1424
  var SystemTool = [3, n0, _STy, 0, [_n], [0]];
1646
1425
  var Tag = [3, n0, _T, 0, [_k, _v], [0, 0]];
1647
- var ThrottlingException = [
1648
- -3,
1649
- n0,
1650
- _TE,
1651
- {
1652
- [_e]: _c,
1653
- [_hE]: 429,
1654
- },
1655
- [_m],
1656
- [0],
1657
- ];
1426
+ var ThrottlingException = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
1658
1427
  schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
1659
1428
  var TokenUsage = [3, n0, _TU, 0, [_iT, _oT, _tT, _cRIT, _cWIT], [1, 1, 1, 1, 1]];
1660
1429
  var ToolConfiguration = [3, n0, _TC, 0, [_too, _tCo], [() => Tools, () => ToolChoice]];
@@ -1671,17 +1440,7 @@ var ToolSpecification = [3, n0, _TS, 0, [_n, _des, _iS], [0, 0, () => ToolInputS
1671
1440
  var ToolUseBlock = [3, n0, _TUB, 0, [_tUI, _n, _i, _t], [0, 0, 15, 0]];
1672
1441
  var ToolUseBlockDelta = [3, n0, _TUBD, 0, [_i], [0]];
1673
1442
  var ToolUseBlockStart = [3, n0, _TUBS, 0, [_tUI, _n, _t], [0, 0, 0]];
1674
- var ValidationException = [
1675
- -3,
1676
- n0,
1677
- _VE,
1678
- {
1679
- [_e]: _c,
1680
- [_hE]: 400,
1681
- },
1682
- [_m],
1683
- [0],
1684
- ];
1443
+ var ValidationException = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
1685
1444
  schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
1686
1445
  var VideoBlock = [3, n0, _VB, 0, [_f, _s], [0, () => VideoSource]];
1687
1446
  var WebLocation = [3, n0, _WL, 0, [_url, _do], [0, 0]];
@@ -1844,9 +1603,7 @@ var ConverseStreamOutput = [
1844
1603
  3,
1845
1604
  n0,
1846
1605
  _CSO,
1847
- {
1848
- [_stre]: 1,
1849
- },
1606
+ { [_stre]: 1 },
1850
1607
  [_mS, _cBS, _cBD, _cBSo, _mSe, _meta, _iSE, _mSEE, _vE, _tE, _sUE],
1851
1608
  [
1852
1609
  () => MessageStartEvent,
@@ -1921,9 +1678,7 @@ var InvokeModelWithBidirectionalStreamInput = [
1921
1678
  3,
1922
1679
  n0,
1923
1680
  _IMWBSI,
1924
- {
1925
- [_stre]: 1,
1926
- },
1681
+ { [_stre]: 1 },
1927
1682
  [_ch],
1928
1683
  [[() => BidirectionalInputPayloadPart, 0]],
1929
1684
  ];
@@ -1931,9 +1686,7 @@ var InvokeModelWithBidirectionalStreamOutput = [
1931
1686
  3,
1932
1687
  n0,
1933
1688
  _IMWBSO,
1934
- {
1935
- [_stre]: 1,
1936
- },
1689
+ { [_stre]: 1 },
1937
1690
  [_ch, _iSE, _mSEE, _vE, _tE, _mTE, _sUE],
1938
1691
  [
1939
1692
  [() => BidirectionalOutputPayloadPart, 0],
@@ -1959,9 +1712,7 @@ var ResponseStream = [
1959
1712
  3,
1960
1713
  n0,
1961
1714
  _RS,
1962
- {
1963
- [_stre]: 1,
1964
- },
1715
+ { [_stre]: 1 },
1965
1716
  [_ch, _iSE, _mSEE, _vE, _tE, _mTE, _sUE],
1966
1717
  [
1967
1718
  [() => PayloadPart, 0],
@@ -2012,9 +1763,7 @@ var ApplyGuardrail = [
2012
1763
  9,
2013
1764
  n0,
2014
1765
  _AG,
2015
- {
2016
- [_h]: ["POST", "/guardrail/{guardrailIdentifier}/version/{guardrailVersion}/apply", 200],
2017
- },
1766
+ { [_h]: ["POST", "/guardrail/{guardrailIdentifier}/version/{guardrailVersion}/apply", 200] },
2018
1767
  () => ApplyGuardrailRequest,
2019
1768
  () => ApplyGuardrailResponse,
2020
1769
  ];
@@ -2022,9 +1771,7 @@ var Converse = [
2022
1771
  9,
2023
1772
  n0,
2024
1773
  _Co,
2025
- {
2026
- [_h]: ["POST", "/model/{modelId}/converse", 200],
2027
- },
1774
+ { [_h]: ["POST", "/model/{modelId}/converse", 200] },
2028
1775
  () => ConverseRequest,
2029
1776
  () => ConverseResponse,
2030
1777
  ];
@@ -2032,9 +1779,7 @@ var ConverseStream = [
2032
1779
  9,
2033
1780
  n0,
2034
1781
  _CS,
2035
- {
2036
- [_h]: ["POST", "/model/{modelId}/converse-stream", 200],
2037
- },
1782
+ { [_h]: ["POST", "/model/{modelId}/converse-stream", 200] },
2038
1783
  () => ConverseStreamRequest,
2039
1784
  () => ConverseStreamResponse,
2040
1785
  ];
@@ -2042,9 +1787,7 @@ var CountTokens = [
2042
1787
  9,
2043
1788
  n0,
2044
1789
  _CTo,
2045
- {
2046
- [_h]: ["POST", "/model/{modelId}/count-tokens", 200],
2047
- },
1790
+ { [_h]: ["POST", "/model/{modelId}/count-tokens", 200] },
2048
1791
  () => CountTokensRequest,
2049
1792
  () => CountTokensResponse,
2050
1793
  ];
@@ -2052,9 +1795,7 @@ var GetAsyncInvoke = [
2052
1795
  9,
2053
1796
  n0,
2054
1797
  _GAI,
2055
- {
2056
- [_h]: ["GET", "/async-invoke/{invocationArn}", 200],
2057
- },
1798
+ { [_h]: ["GET", "/async-invoke/{invocationArn}", 200] },
2058
1799
  () => GetAsyncInvokeRequest,
2059
1800
  () => GetAsyncInvokeResponse,
2060
1801
  ];
@@ -2062,9 +1803,7 @@ var InvokeModel = [
2062
1803
  9,
2063
1804
  n0,
2064
1805
  _IM,
2065
- {
2066
- [_h]: ["POST", "/model/{modelId}/invoke", 200],
2067
- },
1806
+ { [_h]: ["POST", "/model/{modelId}/invoke", 200] },
2068
1807
  () => InvokeModelRequest,
2069
1808
  () => InvokeModelResponse,
2070
1809
  ];
@@ -2072,9 +1811,7 @@ var InvokeModelWithBidirectionalStream = [
2072
1811
  9,
2073
1812
  n0,
2074
1813
  _IMWBS,
2075
- {
2076
- [_h]: ["POST", "/model/{modelId}/invoke-with-bidirectional-stream", 200],
2077
- },
1814
+ { [_h]: ["POST", "/model/{modelId}/invoke-with-bidirectional-stream", 200] },
2078
1815
  () => InvokeModelWithBidirectionalStreamRequest,
2079
1816
  () => InvokeModelWithBidirectionalStreamResponse,
2080
1817
  ];
@@ -2082,9 +1819,7 @@ var InvokeModelWithResponseStream = [
2082
1819
  9,
2083
1820
  n0,
2084
1821
  _IMWRS,
2085
- {
2086
- [_h]: ["POST", "/model/{modelId}/invoke-with-response-stream", 200],
2087
- },
1822
+ { [_h]: ["POST", "/model/{modelId}/invoke-with-response-stream", 200] },
2088
1823
  () => InvokeModelWithResponseStreamRequest,
2089
1824
  () => InvokeModelWithResponseStreamResponse,
2090
1825
  ];
@@ -2092,9 +1827,7 @@ var ListAsyncInvokes = [
2092
1827
  9,
2093
1828
  n0,
2094
1829
  _LAI,
2095
- {
2096
- [_h]: ["GET", "/async-invoke", 200],
2097
- },
1830
+ { [_h]: ["GET", "/async-invoke", 200] },
2098
1831
  () => ListAsyncInvokesRequest,
2099
1832
  () => ListAsyncInvokesResponse,
2100
1833
  ];
@@ -2102,9 +1835,7 @@ var StartAsyncInvoke = [
2102
1835
  9,
2103
1836
  n0,
2104
1837
  _SAI,
2105
- {
2106
- [_h]: ["POST", "/async-invoke", 200],
2107
- },
1838
+ { [_h]: ["POST", "/async-invoke", 200] },
2108
1839
  () => StartAsyncInvokeRequest,
2109
1840
  () => StartAsyncInvokeResponse,
2110
1841
  ];
@@ -10,11 +10,11 @@ const config_resolver_1 = require("@smithy/config-resolver");
10
10
  const eventstream_serde_browser_1 = require("@smithy/eventstream-serde-browser");
11
11
  const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
12
12
  const invalid_dependency_1 = require("@smithy/invalid-dependency");
13
+ const smithy_client_1 = require("@smithy/smithy-client");
13
14
  const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
15
+ const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
14
16
  const util_retry_1 = require("@smithy/util-retry");
15
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
- const smithy_client_1 = require("@smithy/smithy-client");
17
- const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
19
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
20
20
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -15,14 +15,13 @@ const hash_node_1 = require("@smithy/hash-node");
15
15
  const middleware_retry_1 = require("@smithy/middleware-retry");
16
16
  const node_config_provider_1 = require("@smithy/node-config-provider");
17
17
  const node_http_handler_1 = require("@smithy/node-http-handler");
18
+ const smithy_client_1 = require("@smithy/smithy-client");
18
19
  const util_body_length_node_1 = require("@smithy/util-body-length-node");
20
+ const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
19
21
  const util_retry_1 = require("@smithy/util-retry");
20
22
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
21
- const smithy_client_1 = require("@smithy/smithy-client");
22
- const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
23
- const smithy_client_2 = require("@smithy/smithy-client");
24
23
  const getRuntimeConfig = (config) => {
25
- (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
24
+ (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
26
25
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
27
26
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
28
27
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -67,7 +66,11 @@ const getRuntimeConfig = (config) => {
67
66
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
68
67
  region: config?.region ??
69
68
  (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
70
- requestHandler: node_http_handler_1.NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({ ...(await defaultConfigProvider()), disableConcurrentStreams: true }))),
69
+ requestHandler: node_http_handler_1.NodeHttp2Handler.create(config?.requestHandler ??
70
+ (async () => ({
71
+ ...(await defaultConfigProvider()),
72
+ disableConcurrentStreams: true,
73
+ }))),
71
74
  retryMode: config?.retryMode ??
72
75
  (0, node_config_provider_1.loadConfig)({
73
76
  ...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
  };
@@ -3,14 +3,14 @@ import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middlewa
3
3
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
4
4
  import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
5
5
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
6
- import { resolveWebSocketConfig } from "@aws-sdk/middleware-websocket";
6
+ import { resolveWebSocketConfig, } from "@aws-sdk/middleware-websocket";
7
7
  import { resolveRegionConfig } from "@smithy/config-resolver";
8
8
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
9
9
  import { getSchemaSerdePlugin } from "@smithy/core/schema";
10
10
  import { resolveEventStreamSerdeConfig, } from "@smithy/eventstream-serde-config-resolver";
11
11
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
12
- import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
13
- import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
12
+ import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
13
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
14
14
  import { Client as __Client, } from "@smithy/smithy-client";
15
15
  import { defaultBedrockRuntimeHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
16
16
  import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
@@ -6,11 +6,11 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smit
6
6
  import { eventStreamSerdeProvider } from "@smithy/eventstream-serde-browser";
7
7
  import { FetchHttpHandler as HttpRequestHandler, streamCollector } from "@smithy/fetch-http-handler";
8
8
  import { invalidProvider } from "@smithy/invalid-dependency";
9
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
9
10
  import { calculateBodyLength } from "@smithy/util-body-length-browser";
11
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
10
12
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
11
13
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
13
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
14
14
  export const getRuntimeConfig = (config) => {
15
15
  const defaultsMode = resolveDefaultsModeConfig(config);
16
16
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
@@ -11,12 +11,11 @@ import { Hash } from "@smithy/hash-node";
11
11
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
12
12
  import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
13
13
  import { NodeHttp2Handler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
14
+ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
14
15
  import { calculateBodyLength } from "@smithy/util-body-length-node";
16
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
15
17
  import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
16
18
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
17
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
18
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
19
- import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
20
19
  export const getRuntimeConfig = (config) => {
21
20
  emitWarningIfUnsupportedVersion(process.version);
22
21
  const defaultsMode = resolveDefaultsModeConfig(config);
@@ -63,7 +62,11 @@ export const getRuntimeConfig = (config) => {
63
62
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
64
63
  region: config?.region ??
65
64
  loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
66
- requestHandler: RequestHandler.create(config?.requestHandler ?? (async () => ({ ...(await defaultConfigProvider()), disableConcurrentStreams: true }))),
65
+ requestHandler: RequestHandler.create(config?.requestHandler ??
66
+ (async () => ({
67
+ ...(await defaultConfigProvider()),
68
+ disableConcurrentStreams: true,
69
+ }))),
67
70
  retryMode: config?.retryMode ??
68
71
  loadNodeConfig({
69
72
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,