@aws-sdk/client-bedrock-runtime 3.932.0 → 3.934.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -409,6 +409,11 @@ const PerformanceConfigLatency = {
409
409
  OPTIMIZED: "optimized",
410
410
  STANDARD: "standard",
411
411
  };
412
+ const ServiceTierType = {
413
+ DEFAULT: "default",
414
+ FLEX: "flex",
415
+ PRIORITY: "priority",
416
+ };
412
417
  const StopReason = {
413
418
  CONTENT_FILTERED: "content_filtered",
414
419
  END_TURN: "end_turn",
@@ -664,8 +669,9 @@ const _SCB = "SystemContentBlocks";
664
669
  const _SCBy = "SystemContentBlock";
665
670
  const _SL = "S3Location";
666
671
  const _SQEE = "ServiceQuotaExceededException";
667
- const _ST = "SystemTool";
672
+ const _ST = "ServiceTier";
668
673
  const _STC = "SpecificToolChoice";
674
+ const _STy = "SystemTool";
669
675
  const _SUE = "ServiceUnavailableException";
670
676
  const _T = "Tag";
671
677
  const _TC = "ToolConfiguration";
@@ -695,6 +701,7 @@ const _XABCT = "X-Amzn-Bedrock-Content-Type";
695
701
  const _XABG = "X-Amzn-Bedrock-GuardrailIdentifier";
696
702
  const _XABG_ = "X-Amzn-Bedrock-GuardrailVersion";
697
703
  const _XABPL = "X-Amzn-Bedrock-PerformanceConfig-Latency";
704
+ const _XABST = "X-Amzn-Bedrock-Service-Tier";
698
705
  const _XABT = "X-Amzn-Bedrock-Trace";
699
706
  const _a = "action";
700
707
  const _aIS = "asyncInvokeSummaries";
@@ -857,6 +864,7 @@ const _sS = "stopSequences";
857
864
  const _sT = "submitTime";
858
865
  const _sTA = "submitTimeAfter";
859
866
  const _sTB = "submitTimeBefore";
867
+ const _sTe = "serviceTier";
860
868
  const _sTy = "systemTool";
861
869
  const _sU = "s3Uri";
862
870
  const _sUE = "serviceUnavailableException";
@@ -1027,7 +1035,7 @@ var ConverseRequest = [
1027
1035
  n0,
1028
1036
  _CR,
1029
1037
  0,
1030
- [_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC],
1038
+ [_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC, _sTe],
1031
1039
  [
1032
1040
  [0, 1],
1033
1041
  [() => Messages, 0],
@@ -1040,6 +1048,7 @@ var ConverseRequest = [
1040
1048
  64 | 0,
1041
1049
  [() => RequestMetadata, 0],
1042
1050
  () => PerformanceConfiguration,
1051
+ () => ServiceTier,
1043
1052
  ],
1044
1053
  ];
1045
1054
  var ConverseResponse = [
@@ -1047,7 +1056,7 @@ var ConverseResponse = [
1047
1056
  n0,
1048
1057
  _CRo,
1049
1058
  0,
1050
- [_ou, _sR, _u, _met, _aMRFd, _tr, _pC],
1059
+ [_ou, _sR, _u, _met, _aMRFd, _tr, _pC, _sTe],
1051
1060
  [
1052
1061
  [() => ConverseOutput, 0],
1053
1062
  0,
@@ -1056,6 +1065,7 @@ var ConverseResponse = [
1056
1065
  15,
1057
1066
  [() => ConverseTrace, 0],
1058
1067
  () => PerformanceConfiguration,
1068
+ () => ServiceTier,
1059
1069
  ],
1060
1070
  ];
1061
1071
  var ConverseStreamMetadataEvent = [
@@ -1063,8 +1073,14 @@ var ConverseStreamMetadataEvent = [
1063
1073
  n0,
1064
1074
  _CSME,
1065
1075
  0,
1066
- [_u, _met, _tr, _pC],
1067
- [() => TokenUsage, () => ConverseStreamMetrics, [() => ConverseStreamTrace, 0], () => PerformanceConfiguration],
1076
+ [_u, _met, _tr, _pC, _sTe],
1077
+ [
1078
+ () => TokenUsage,
1079
+ () => ConverseStreamMetrics,
1080
+ [() => ConverseStreamTrace, 0],
1081
+ () => PerformanceConfiguration,
1082
+ () => ServiceTier,
1083
+ ],
1068
1084
  ];
1069
1085
  var ConverseStreamMetrics = [3, n0, _CSM, 0, [_lM], [1]];
1070
1086
  var ConverseStreamRequest = [
@@ -1072,7 +1088,7 @@ var ConverseStreamRequest = [
1072
1088
  n0,
1073
1089
  _CSR,
1074
1090
  0,
1075
- [_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC],
1091
+ [_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC, _sTe],
1076
1092
  [
1077
1093
  [0, 1],
1078
1094
  [() => Messages, 0],
@@ -1085,6 +1101,7 @@ var ConverseStreamRequest = [
1085
1101
  64 | 0,
1086
1102
  [() => RequestMetadata, 0],
1087
1103
  () => PerformanceConfiguration,
1104
+ () => ServiceTier,
1088
1105
  ],
1089
1106
  ];
1090
1107
  var ConverseStreamResponse = [
@@ -1108,11 +1125,8 @@ var ConverseTokensRequest = [
1108
1125
  n0,
1109
1126
  _CTR,
1110
1127
  0,
1111
- [_me, _sy],
1112
- [
1113
- [() => Messages, 0],
1114
- [() => SystemContentBlocks, 0],
1115
- ],
1128
+ [_me, _sy, _tC, _aMRF],
1129
+ [[() => Messages, 0], [() => SystemContentBlocks, 0], () => ToolConfiguration, 15],
1116
1130
  ];
1117
1131
  var ConverseTrace = [
1118
1132
  3,
@@ -1427,7 +1441,7 @@ var InvokeModelRequest = [
1427
1441
  n0,
1428
1442
  _IMR,
1429
1443
  0,
1430
- [_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL],
1444
+ [_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL, _sTe],
1431
1445
  [
1432
1446
  [() => Body, 16],
1433
1447
  [
@@ -1467,6 +1481,12 @@ var InvokeModelRequest = [
1467
1481
  [_hH]: _XABPL,
1468
1482
  },
1469
1483
  ],
1484
+ [
1485
+ 0,
1486
+ {
1487
+ [_hH]: _XABST,
1488
+ },
1489
+ ],
1470
1490
  ],
1471
1491
  ];
1472
1492
  var InvokeModelResponse = [
@@ -1474,7 +1494,7 @@ var InvokeModelResponse = [
1474
1494
  n0,
1475
1495
  _IMRn,
1476
1496
  0,
1477
- [_bo, _cT, _pCL],
1497
+ [_bo, _cT, _pCL, _sTe],
1478
1498
  [
1479
1499
  [() => Body, 16],
1480
1500
  [
@@ -1489,6 +1509,12 @@ var InvokeModelResponse = [
1489
1509
  [_hH]: _XABPL,
1490
1510
  },
1491
1511
  ],
1512
+ [
1513
+ 0,
1514
+ {
1515
+ [_hH]: _XABST,
1516
+ },
1517
+ ],
1492
1518
  ],
1493
1519
  ];
1494
1520
  var InvokeModelTokensRequest = [3, n0, _IMTR, 0, [_bo], [[() => Body, 0]]];
@@ -1516,7 +1542,7 @@ var InvokeModelWithResponseStreamRequest = [
1516
1542
  n0,
1517
1543
  _IMWRSR,
1518
1544
  0,
1519
- [_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL],
1545
+ [_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL, _sTe],
1520
1546
  [
1521
1547
  [() => Body, 16],
1522
1548
  [
@@ -1556,6 +1582,12 @@ var InvokeModelWithResponseStreamRequest = [
1556
1582
  [_hH]: _XABPL,
1557
1583
  },
1558
1584
  ],
1585
+ [
1586
+ 0,
1587
+ {
1588
+ [_hH]: _XABST,
1589
+ },
1590
+ ],
1559
1591
  ],
1560
1592
  ];
1561
1593
  var InvokeModelWithResponseStreamResponse = [
@@ -1563,7 +1595,7 @@ var InvokeModelWithResponseStreamResponse = [
1563
1595
  n0,
1564
1596
  _IMWRSRn,
1565
1597
  0,
1566
- [_bo, _cT, _pCL],
1598
+ [_bo, _cT, _pCL, _sTe],
1567
1599
  [
1568
1600
  [() => ResponseStream, 16],
1569
1601
  [
@@ -1578,6 +1610,12 @@ var InvokeModelWithResponseStreamResponse = [
1578
1610
  [_hH]: _XABPL,
1579
1611
  },
1580
1612
  ],
1613
+ [
1614
+ 0,
1615
+ {
1616
+ [_hH]: _XABST,
1617
+ },
1618
+ ],
1581
1619
  ],
1582
1620
  ];
1583
1621
  var ListAsyncInvokesRequest = [
@@ -1719,6 +1757,7 @@ var ServiceQuotaExceededException = [
1719
1757
  [0],
1720
1758
  ];
1721
1759
  schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
1760
+ var ServiceTier = [3, n0, _ST, 0, [_t], [0]];
1722
1761
  var ServiceUnavailableException = [
1723
1762
  -3,
1724
1763
  n0,
@@ -1741,7 +1780,7 @@ var StartAsyncInvokeRequest = [
1741
1780
  [[0, 4], 0, [() => ModelInputPayload, 0], () => AsyncInvokeOutputDataConfig, () => TagList],
1742
1781
  ];
1743
1782
  var StartAsyncInvokeResponse = [3, n0, _SAIRt, 0, [_iA], [0]];
1744
- var SystemTool = [3, n0, _ST, 0, [_n], [0]];
1783
+ var SystemTool = [3, n0, _STy, 0, [_n], [0]];
1745
1784
  var Tag = [3, n0, _T, 0, [_k, _v], [0, 0]];
1746
1785
  var ThrottlingException = [
1747
1786
  -3,
@@ -2411,6 +2450,7 @@ exports.ModelTimeoutException = ModelTimeoutException$1;
2411
2450
  exports.PerformanceConfigLatency = PerformanceConfigLatency;
2412
2451
  exports.ResourceNotFoundException = ResourceNotFoundException$1;
2413
2452
  exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
2453
+ exports.ServiceTierType = ServiceTierType;
2414
2454
  exports.ServiceUnavailableException = ServiceUnavailableException$1;
2415
2455
  exports.SortAsyncInvocationBy = SortAsyncInvocationBy;
2416
2456
  exports.SortOrder = SortOrder;
@@ -276,6 +276,11 @@ export const PerformanceConfigLatency = {
276
276
  OPTIMIZED: "optimized",
277
277
  STANDARD: "standard",
278
278
  };
279
+ export const ServiceTierType = {
280
+ DEFAULT: "default",
281
+ FLEX: "flex",
282
+ PRIORITY: "priority",
283
+ };
279
284
  export const StopReason = {
280
285
  CONTENT_FILTERED: "content_filtered",
281
286
  END_TURN: "end_turn",
@@ -177,8 +177,9 @@ const _SCB = "SystemContentBlocks";
177
177
  const _SCBy = "SystemContentBlock";
178
178
  const _SL = "S3Location";
179
179
  const _SQEE = "ServiceQuotaExceededException";
180
- const _ST = "SystemTool";
180
+ const _ST = "ServiceTier";
181
181
  const _STC = "SpecificToolChoice";
182
+ const _STy = "SystemTool";
182
183
  const _SUE = "ServiceUnavailableException";
183
184
  const _T = "Tag";
184
185
  const _TC = "ToolConfiguration";
@@ -208,6 +209,7 @@ const _XABCT = "X-Amzn-Bedrock-Content-Type";
208
209
  const _XABG = "X-Amzn-Bedrock-GuardrailIdentifier";
209
210
  const _XABG_ = "X-Amzn-Bedrock-GuardrailVersion";
210
211
  const _XABPL = "X-Amzn-Bedrock-PerformanceConfig-Latency";
212
+ const _XABST = "X-Amzn-Bedrock-Service-Tier";
211
213
  const _XABT = "X-Amzn-Bedrock-Trace";
212
214
  const _a = "action";
213
215
  const _aIS = "asyncInvokeSummaries";
@@ -370,6 +372,7 @@ const _sS = "stopSequences";
370
372
  const _sT = "submitTime";
371
373
  const _sTA = "submitTimeAfter";
372
374
  const _sTB = "submitTimeBefore";
375
+ const _sTe = "serviceTier";
373
376
  const _sTy = "systemTool";
374
377
  const _sU = "s3Uri";
375
378
  const _sUE = "serviceUnavailableException";
@@ -543,7 +546,7 @@ export var ConverseRequest = [
543
546
  n0,
544
547
  _CR,
545
548
  0,
546
- [_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC],
549
+ [_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC, _sTe],
547
550
  [
548
551
  [0, 1],
549
552
  [() => Messages, 0],
@@ -556,6 +559,7 @@ export var ConverseRequest = [
556
559
  64 | 0,
557
560
  [() => RequestMetadata, 0],
558
561
  () => PerformanceConfiguration,
562
+ () => ServiceTier,
559
563
  ],
560
564
  ];
561
565
  export var ConverseResponse = [
@@ -563,7 +567,7 @@ export var ConverseResponse = [
563
567
  n0,
564
568
  _CRo,
565
569
  0,
566
- [_ou, _sR, _u, _met, _aMRFd, _tr, _pC],
570
+ [_ou, _sR, _u, _met, _aMRFd, _tr, _pC, _sTe],
567
571
  [
568
572
  [() => ConverseOutput, 0],
569
573
  0,
@@ -572,6 +576,7 @@ export var ConverseResponse = [
572
576
  15,
573
577
  [() => ConverseTrace, 0],
574
578
  () => PerformanceConfiguration,
579
+ () => ServiceTier,
575
580
  ],
576
581
  ];
577
582
  export var ConverseStreamMetadataEvent = [
@@ -579,8 +584,14 @@ export var ConverseStreamMetadataEvent = [
579
584
  n0,
580
585
  _CSME,
581
586
  0,
582
- [_u, _met, _tr, _pC],
583
- [() => TokenUsage, () => ConverseStreamMetrics, [() => ConverseStreamTrace, 0], () => PerformanceConfiguration],
587
+ [_u, _met, _tr, _pC, _sTe],
588
+ [
589
+ () => TokenUsage,
590
+ () => ConverseStreamMetrics,
591
+ [() => ConverseStreamTrace, 0],
592
+ () => PerformanceConfiguration,
593
+ () => ServiceTier,
594
+ ],
584
595
  ];
585
596
  export var ConverseStreamMetrics = [3, n0, _CSM, 0, [_lM], [1]];
586
597
  export var ConverseStreamRequest = [
@@ -588,7 +599,7 @@ export var ConverseStreamRequest = [
588
599
  n0,
589
600
  _CSR,
590
601
  0,
591
- [_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC],
602
+ [_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC, _sTe],
592
603
  [
593
604
  [0, 1],
594
605
  [() => Messages, 0],
@@ -601,6 +612,7 @@ export var ConverseStreamRequest = [
601
612
  64 | 0,
602
613
  [() => RequestMetadata, 0],
603
614
  () => PerformanceConfiguration,
615
+ () => ServiceTier,
604
616
  ],
605
617
  ];
606
618
  export var ConverseStreamResponse = [
@@ -624,11 +636,8 @@ export var ConverseTokensRequest = [
624
636
  n0,
625
637
  _CTR,
626
638
  0,
627
- [_me, _sy],
628
- [
629
- [() => Messages, 0],
630
- [() => SystemContentBlocks, 0],
631
- ],
639
+ [_me, _sy, _tC, _aMRF],
640
+ [[() => Messages, 0], [() => SystemContentBlocks, 0], () => ToolConfiguration, 15],
632
641
  ];
633
642
  export var ConverseTrace = [
634
643
  3,
@@ -943,7 +952,7 @@ export var InvokeModelRequest = [
943
952
  n0,
944
953
  _IMR,
945
954
  0,
946
- [_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL],
955
+ [_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL, _sTe],
947
956
  [
948
957
  [() => Body, 16],
949
958
  [
@@ -983,6 +992,12 @@ export var InvokeModelRequest = [
983
992
  [_hH]: _XABPL,
984
993
  },
985
994
  ],
995
+ [
996
+ 0,
997
+ {
998
+ [_hH]: _XABST,
999
+ },
1000
+ ],
986
1001
  ],
987
1002
  ];
988
1003
  export var InvokeModelResponse = [
@@ -990,7 +1005,7 @@ export var InvokeModelResponse = [
990
1005
  n0,
991
1006
  _IMRn,
992
1007
  0,
993
- [_bo, _cT, _pCL],
1008
+ [_bo, _cT, _pCL, _sTe],
994
1009
  [
995
1010
  [() => Body, 16],
996
1011
  [
@@ -1005,6 +1020,12 @@ export var InvokeModelResponse = [
1005
1020
  [_hH]: _XABPL,
1006
1021
  },
1007
1022
  ],
1023
+ [
1024
+ 0,
1025
+ {
1026
+ [_hH]: _XABST,
1027
+ },
1028
+ ],
1008
1029
  ],
1009
1030
  ];
1010
1031
  export var InvokeModelTokensRequest = [3, n0, _IMTR, 0, [_bo], [[() => Body, 0]]];
@@ -1032,7 +1053,7 @@ export var InvokeModelWithResponseStreamRequest = [
1032
1053
  n0,
1033
1054
  _IMWRSR,
1034
1055
  0,
1035
- [_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL],
1056
+ [_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL, _sTe],
1036
1057
  [
1037
1058
  [() => Body, 16],
1038
1059
  [
@@ -1072,6 +1093,12 @@ export var InvokeModelWithResponseStreamRequest = [
1072
1093
  [_hH]: _XABPL,
1073
1094
  },
1074
1095
  ],
1096
+ [
1097
+ 0,
1098
+ {
1099
+ [_hH]: _XABST,
1100
+ },
1101
+ ],
1075
1102
  ],
1076
1103
  ];
1077
1104
  export var InvokeModelWithResponseStreamResponse = [
@@ -1079,7 +1106,7 @@ export var InvokeModelWithResponseStreamResponse = [
1079
1106
  n0,
1080
1107
  _IMWRSRn,
1081
1108
  0,
1082
- [_bo, _cT, _pCL],
1109
+ [_bo, _cT, _pCL, _sTe],
1083
1110
  [
1084
1111
  [() => ResponseStream, 16],
1085
1112
  [
@@ -1094,6 +1121,12 @@ export var InvokeModelWithResponseStreamResponse = [
1094
1121
  [_hH]: _XABPL,
1095
1122
  },
1096
1123
  ],
1124
+ [
1125
+ 0,
1126
+ {
1127
+ [_hH]: _XABST,
1128
+ },
1129
+ ],
1097
1130
  ],
1098
1131
  ];
1099
1132
  export var ListAsyncInvokesRequest = [
@@ -1235,6 +1268,7 @@ export var ServiceQuotaExceededException = [
1235
1268
  [0],
1236
1269
  ];
1237
1270
  TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, __ServiceQuotaExceededException);
1271
+ export var ServiceTier = [3, n0, _ST, 0, [_t], [0]];
1238
1272
  export var ServiceUnavailableException = [
1239
1273
  -3,
1240
1274
  n0,
@@ -1257,7 +1291,7 @@ export var StartAsyncInvokeRequest = [
1257
1291
  [[0, 4], 0, [() => ModelInputPayload, 0], () => AsyncInvokeOutputDataConfig, () => TagList],
1258
1292
  ];
1259
1293
  export var StartAsyncInvokeResponse = [3, n0, _SAIRt, 0, [_iA], [0]];
1260
- export var SystemTool = [3, n0, _ST, 0, [_n], [0]];
1294
+ export var SystemTool = [3, n0, _STy, 0, [_n], [0]];
1261
1295
  export var Tag = [3, n0, _T, 0, [_k, _v], [0, 0]];
1262
1296
  export var ThrottlingException = [
1263
1297
  -3,
@@ -280,6 +280,9 @@ declare const ConverseCommand_base: {
280
280
  * performanceConfig: { // PerformanceConfiguration
281
281
  * latency: "standard" || "optimized",
282
282
  * },
283
+ * serviceTier: { // ServiceTier
284
+ * type: "priority" || "default" || "flex", // required
285
+ * },
283
286
  * };
284
287
  * const command = new ConverseCommand(input);
285
288
  * const response = await client.send(command);
@@ -886,6 +889,9 @@ declare const ConverseCommand_base: {
886
889
  * // performanceConfig: { // PerformanceConfiguration
887
890
  * // latency: "standard" || "optimized",
888
891
  * // },
892
+ * // serviceTier: { // ServiceTier
893
+ * // type: "priority" || "default" || "flex", // required
894
+ * // },
889
895
  * // };
890
896
  *
891
897
  * ```
@@ -281,6 +281,9 @@ declare const ConverseStreamCommand_base: {
281
281
  * performanceConfig: { // PerformanceConfiguration
282
282
  * latency: "standard" || "optimized",
283
283
  * },
284
+ * serviceTier: { // ServiceTier
285
+ * type: "priority" || "default" || "flex", // required
286
+ * },
284
287
  * };
285
288
  * const command = new ConverseStreamCommand(input);
286
289
  * const response = await client.send(command);
@@ -792,6 +795,9 @@ declare const ConverseStreamCommand_base: {
792
795
  * // performanceConfig: { // PerformanceConfiguration
793
796
  * // latency: "standard" || "optimized",
794
797
  * // },
798
+ * // serviceTier: { // ServiceTier
799
+ * // type: "priority" || "default" || "flex", // required
800
+ * // },
795
801
  * // },
796
802
  * // internalServerException: { // InternalServerException
797
803
  * // message: "STRING_VALUE",
@@ -233,6 +233,31 @@ declare const CountTokensCommand_base: {
233
233
  * },
234
234
  * },
235
235
  * ],
236
+ * toolConfig: { // ToolConfiguration
237
+ * tools: [ // Tools // required
238
+ * { // Tool Union: only one key present
239
+ * toolSpec: { // ToolSpecification
240
+ * name: "STRING_VALUE", // required
241
+ * description: "STRING_VALUE",
242
+ * inputSchema: { // ToolInputSchema Union: only one key present
243
+ * json: "DOCUMENT_VALUE",
244
+ * },
245
+ * },
246
+ * systemTool: { // SystemTool
247
+ * name: "STRING_VALUE", // required
248
+ * },
249
+ * cachePoint: "<CachePointBlock>",
250
+ * },
251
+ * ],
252
+ * toolChoice: { // ToolChoice Union: only one key present
253
+ * auto: {},
254
+ * any: {},
255
+ * tool: { // SpecificToolChoice
256
+ * name: "STRING_VALUE", // required
257
+ * },
258
+ * },
259
+ * },
260
+ * additionalModelRequestFields: "DOCUMENT_VALUE",
236
261
  * },
237
262
  * },
238
263
  * };
@@ -58,6 +58,7 @@ declare const InvokeModelCommand_base: {
58
58
  * guardrailIdentifier: "STRING_VALUE",
59
59
  * guardrailVersion: "STRING_VALUE",
60
60
  * performanceConfigLatency: "standard" || "optimized",
61
+ * serviceTier: "priority" || "default" || "flex",
61
62
  * };
62
63
  * const command = new InvokeModelCommand(input);
63
64
  * const response = await client.send(command);
@@ -65,6 +66,7 @@ declare const InvokeModelCommand_base: {
65
66
  * // body: new Uint8Array(), // required
66
67
  * // contentType: "STRING_VALUE", // required
67
68
  * // performanceConfigLatency: "standard" || "optimized",
69
+ * // serviceTier: "priority" || "default" || "flex",
68
70
  * // };
69
71
  *
70
72
  * ```
@@ -51,6 +51,7 @@ declare const InvokeModelWithResponseStreamCommand_base: {
51
51
  * guardrailIdentifier: "STRING_VALUE",
52
52
  * guardrailVersion: "STRING_VALUE",
53
53
  * performanceConfigLatency: "standard" || "optimized",
54
+ * serviceTier: "priority" || "default" || "flex",
54
55
  * };
55
56
  * const command = new InvokeModelWithResponseStreamCommand(input);
56
57
  * const response = await client.send(command);
@@ -82,6 +83,7 @@ declare const InvokeModelWithResponseStreamCommand_base: {
82
83
  * // },
83
84
  * // contentType: "STRING_VALUE", // required
84
85
  * // performanceConfigLatency: "standard" || "optimized",
86
+ * // serviceTier: "priority" || "default" || "flex",
85
87
  * // };
86
88
  *
87
89
  * ```
@@ -2991,6 +2991,30 @@ export declare namespace PromptVariableValues {
2991
2991
  _: (name: string, value: any) => T;
2992
2992
  }
2993
2993
  }
2994
+ /**
2995
+ * @public
2996
+ * @enum
2997
+ */
2998
+ export declare const ServiceTierType: {
2999
+ readonly DEFAULT: "default";
3000
+ readonly FLEX: "flex";
3001
+ readonly PRIORITY: "priority";
3002
+ };
3003
+ /**
3004
+ * @public
3005
+ */
3006
+ export type ServiceTierType = (typeof ServiceTierType)[keyof typeof ServiceTierType];
3007
+ /**
3008
+ * <p>Specifies the processing tier configuration used for serving the request.</p>
3009
+ * @public
3010
+ */
3011
+ export interface ServiceTier {
3012
+ /**
3013
+ * <p>Specifies the processing tier type used for serving the request.</p>
3014
+ * @public
3015
+ */
3016
+ type: ServiceTierType | undefined;
3017
+ }
2994
3018
  /**
2995
3019
  * <p>Contains configurations for instructions to provide the model for how to handle input. To learn more, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-call.html">Using the Converse API</a>.</p>
2996
3020
  * @public
@@ -3331,6 +3355,11 @@ export interface ConverseRequest {
3331
3355
  * @public
3332
3356
  */
3333
3357
  performanceConfig?: PerformanceConfiguration | undefined;
3358
+ /**
3359
+ * <p>Specifies the processing tier configuration used for serving the request.</p>
3360
+ * @public
3361
+ */
3362
+ serviceTier?: ServiceTier | undefined;
3334
3363
  }
3335
3364
  /**
3336
3365
  * <p>Metrics for a call to <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html">Converse</a>.</p>
@@ -3516,6 +3545,11 @@ export interface ConverseResponse {
3516
3545
  * @public
3517
3546
  */
3518
3547
  performanceConfig?: PerformanceConfiguration | undefined;
3548
+ /**
3549
+ * <p>Specifies the processing tier configuration used for serving the request.</p>
3550
+ * @public
3551
+ */
3552
+ serviceTier?: ServiceTier | undefined;
3519
3553
  }
3520
3554
  /**
3521
3555
  * <p>The request failed due to an error while processing the model.</p>
@@ -3661,6 +3695,11 @@ export interface ConverseStreamRequest {
3661
3695
  * @public
3662
3696
  */
3663
3697
  performanceConfig?: PerformanceConfiguration | undefined;
3698
+ /**
3699
+ * <p>Specifies the processing tier configuration used for serving the request.</p>
3700
+ * @public
3701
+ */
3702
+ serviceTier?: ServiceTier | undefined;
3664
3703
  }
3665
3704
  /**
3666
3705
  * <p>Contains incremental updates to the source content text during streaming responses, allowing clients to build up the cited content progressively.</p>
@@ -4099,6 +4138,11 @@ export interface ConverseStreamMetadataEvent {
4099
4138
  * @public
4100
4139
  */
4101
4140
  performanceConfig?: PerformanceConfiguration | undefined;
4141
+ /**
4142
+ * <p>Specifies the processing tier configuration used for serving the request.</p>
4143
+ * @public
4144
+ */
4145
+ serviceTier?: ServiceTier | undefined;
4102
4146
  }
4103
4147
  /**
4104
4148
  * <p>An error occurred while streaming the response. Retry your request.</p>
@@ -4432,6 +4476,11 @@ export interface InvokeModelRequest {
4432
4476
  * @public
4433
4477
  */
4434
4478
  performanceConfigLatency?: PerformanceConfigLatency | undefined;
4479
+ /**
4480
+ * <p>Specifies the processing tier type used for serving the request.</p>
4481
+ * @public
4482
+ */
4483
+ serviceTier?: ServiceTierType | undefined;
4435
4484
  }
4436
4485
  /**
4437
4486
  * @public
@@ -4452,6 +4501,11 @@ export interface InvokeModelResponse {
4452
4501
  * @public
4453
4502
  */
4454
4503
  performanceConfigLatency?: PerformanceConfigLatency | undefined;
4504
+ /**
4505
+ * <p>Specifies the processing tier type used for serving the request.</p>
4506
+ * @public
4507
+ */
4508
+ serviceTier?: ServiceTierType | undefined;
4455
4509
  }
4456
4510
  /**
4457
4511
  * <p>Payload content for the bidirectional input. The input is an audio stream.</p>
@@ -4712,6 +4766,11 @@ export interface InvokeModelWithResponseStreamRequest {
4712
4766
  * @public
4713
4767
  */
4714
4768
  performanceConfigLatency?: PerformanceConfigLatency | undefined;
4769
+ /**
4770
+ * <p>Specifies the processing tier type used for serving the request.</p>
4771
+ * @public
4772
+ */
4773
+ serviceTier?: ServiceTierType | undefined;
4715
4774
  }
4716
4775
  /**
4717
4776
  * <p>Payload content included in the response.</p>
@@ -4878,6 +4937,11 @@ export interface InvokeModelWithResponseStreamResponse {
4878
4937
  * @public
4879
4938
  */
4880
4939
  performanceConfigLatency?: PerformanceConfigLatency | undefined;
4940
+ /**
4941
+ * <p>Specifies the processing tier type used for serving the request.</p>
4942
+ * @public
4943
+ */
4944
+ serviceTier?: ServiceTierType | undefined;
4881
4945
  }
4882
4946
  /**
4883
4947
  * <p>The inputs from a <code>Converse</code> API request for token counting.</p> <p>This structure mirrors the input format for the <code>Converse</code> operation, allowing you to count tokens for conversation-based inference requests.</p>
@@ -4894,6 +4958,16 @@ export interface ConverseTokensRequest {
4894
4958
  * @public
4895
4959
  */
4896
4960
  system?: SystemContentBlock[] | undefined;
4961
+ /**
4962
+ * <p>The toolConfig of Converse input request to count tokens for. Configuration information for the tools that the model can use when generating a response.</p>
4963
+ * @public
4964
+ */
4965
+ toolConfig?: ToolConfiguration | undefined;
4966
+ /**
4967
+ * <p>The additionalModelRequestFields of Converse input request to count tokens for. Use this field when you want to pass additional parameters that the model supports.</p>
4968
+ * @public
4969
+ */
4970
+ additionalModelRequestFields?: __DocumentType | undefined;
4897
4971
  }
4898
4972
  /**
4899
4973
  * <p>The body of an <code>InvokeModel</code> API request for token counting. This structure mirrors the input format for the <code>InvokeModel</code> operation, allowing you to count tokens for raw text inference requests.</p>
@@ -109,6 +109,7 @@ export declare var ReasoningTextBlock: StaticStructureSchema;
109
109
  export declare var ResourceNotFoundException: StaticErrorSchema;
110
110
  export declare var S3Location: StaticStructureSchema;
111
111
  export declare var ServiceQuotaExceededException: StaticErrorSchema;
112
+ export declare var ServiceTier: StaticStructureSchema;
112
113
  export declare var ServiceUnavailableException: StaticErrorSchema;
113
114
  export declare var SpecificToolChoice: StaticStructureSchema;
114
115
  export declare var StartAsyncInvokeRequest: StaticStructureSchema;
@@ -1331,6 +1331,16 @@ export declare namespace PromptVariableValues {
1331
1331
  _: (name: string, value: any) => T;
1332
1332
  }
1333
1333
  }
1334
+ export declare const ServiceTierType: {
1335
+ readonly DEFAULT: "default";
1336
+ readonly FLEX: "flex";
1337
+ readonly PRIORITY: "priority";
1338
+ };
1339
+ export type ServiceTierType =
1340
+ (typeof ServiceTierType)[keyof typeof ServiceTierType];
1341
+ export interface ServiceTier {
1342
+ type: ServiceTierType | undefined;
1343
+ }
1334
1344
  export type SystemContentBlock =
1335
1345
  | SystemContentBlock.CachePointMember
1336
1346
  | SystemContentBlock.GuardContentMember
@@ -1488,6 +1498,7 @@ export interface ConverseRequest {
1488
1498
  additionalModelResponseFieldPaths?: string[] | undefined;
1489
1499
  requestMetadata?: Record<string, string> | undefined;
1490
1500
  performanceConfig?: PerformanceConfiguration | undefined;
1501
+ serviceTier?: ServiceTier | undefined;
1491
1502
  }
1492
1503
  export interface ConverseMetrics {
1493
1504
  latencyMs: number | undefined;
@@ -1547,6 +1558,7 @@ export interface ConverseResponse {
1547
1558
  additionalModelResponseFields?: __DocumentType | undefined;
1548
1559
  trace?: ConverseTrace | undefined;
1549
1560
  performanceConfig?: PerformanceConfiguration | undefined;
1561
+ serviceTier?: ServiceTier | undefined;
1550
1562
  }
1551
1563
  export declare class ModelErrorException extends __BaseException {
1552
1564
  readonly name: "ModelErrorException";
@@ -1596,6 +1608,7 @@ export interface ConverseStreamRequest {
1596
1608
  additionalModelResponseFieldPaths?: string[] | undefined;
1597
1609
  requestMetadata?: Record<string, string> | undefined;
1598
1610
  performanceConfig?: PerformanceConfiguration | undefined;
1611
+ serviceTier?: ServiceTier | undefined;
1599
1612
  }
1600
1613
  export interface CitationSourceContentDelta {
1601
1614
  text?: string | undefined;
@@ -1793,6 +1806,7 @@ export interface ConverseStreamMetadataEvent {
1793
1806
  metrics: ConverseStreamMetrics | undefined;
1794
1807
  trace?: ConverseStreamTrace | undefined;
1795
1808
  performanceConfig?: PerformanceConfiguration | undefined;
1809
+ serviceTier?: ServiceTier | undefined;
1796
1810
  }
1797
1811
  export declare class ModelStreamErrorException extends __BaseException {
1798
1812
  readonly name: "ModelStreamErrorException";
@@ -2018,11 +2032,13 @@ export interface InvokeModelRequest {
2018
2032
  guardrailIdentifier?: string | undefined;
2019
2033
  guardrailVersion?: string | undefined;
2020
2034
  performanceConfigLatency?: PerformanceConfigLatency | undefined;
2035
+ serviceTier?: ServiceTierType | undefined;
2021
2036
  }
2022
2037
  export interface InvokeModelResponse {
2023
2038
  body: Uint8Array | undefined;
2024
2039
  contentType: string | undefined;
2025
2040
  performanceConfigLatency?: PerformanceConfigLatency | undefined;
2041
+ serviceTier?: ServiceTierType | undefined;
2026
2042
  }
2027
2043
  export interface BidirectionalInputPayloadPart {
2028
2044
  bytes?: Uint8Array | undefined;
@@ -2164,6 +2180,7 @@ export interface InvokeModelWithResponseStreamRequest {
2164
2180
  guardrailIdentifier?: string | undefined;
2165
2181
  guardrailVersion?: string | undefined;
2166
2182
  performanceConfigLatency?: PerformanceConfigLatency | undefined;
2183
+ serviceTier?: ServiceTierType | undefined;
2167
2184
  }
2168
2185
  export interface PayloadPart {
2169
2186
  bytes?: Uint8Array | undefined;
@@ -2273,10 +2290,13 @@ export interface InvokeModelWithResponseStreamResponse {
2273
2290
  body: AsyncIterable<ResponseStream> | undefined;
2274
2291
  contentType: string | undefined;
2275
2292
  performanceConfigLatency?: PerformanceConfigLatency | undefined;
2293
+ serviceTier?: ServiceTierType | undefined;
2276
2294
  }
2277
2295
  export interface ConverseTokensRequest {
2278
2296
  messages?: Message[] | undefined;
2279
2297
  system?: SystemContentBlock[] | undefined;
2298
+ toolConfig?: ToolConfiguration | undefined;
2299
+ additionalModelRequestFields?: __DocumentType | undefined;
2280
2300
  }
2281
2301
  export interface InvokeModelTokensRequest {
2282
2302
  body: Uint8Array | undefined;
@@ -116,6 +116,7 @@ export declare var ReasoningTextBlock: StaticStructureSchema;
116
116
  export declare var ResourceNotFoundException: StaticErrorSchema;
117
117
  export declare var S3Location: StaticStructureSchema;
118
118
  export declare var ServiceQuotaExceededException: StaticErrorSchema;
119
+ export declare var ServiceTier: StaticStructureSchema;
119
120
  export declare var ServiceUnavailableException: StaticErrorSchema;
120
121
  export declare var SpecificToolChoice: StaticStructureSchema;
121
122
  export declare var StartAsyncInvokeRequest: StaticStructureSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-runtime",
3
3
  "description": "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.932.0",
4
+ "version": "3.934.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
@@ -20,21 +20,21 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.932.0",
24
- "@aws-sdk/credential-provider-node": "3.932.0",
23
+ "@aws-sdk/core": "3.934.0",
24
+ "@aws-sdk/credential-provider-node": "3.934.0",
25
25
  "@aws-sdk/eventstream-handler-node": "3.930.0",
26
26
  "@aws-sdk/middleware-eventstream": "3.930.0",
27
27
  "@aws-sdk/middleware-host-header": "3.930.0",
28
28
  "@aws-sdk/middleware-logger": "3.930.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.930.0",
30
- "@aws-sdk/middleware-user-agent": "3.932.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.933.0",
30
+ "@aws-sdk/middleware-user-agent": "3.934.0",
31
31
  "@aws-sdk/middleware-websocket": "3.930.0",
32
32
  "@aws-sdk/region-config-resolver": "3.930.0",
33
- "@aws-sdk/token-providers": "3.932.0",
33
+ "@aws-sdk/token-providers": "3.934.0",
34
34
  "@aws-sdk/types": "3.930.0",
35
35
  "@aws-sdk/util-endpoints": "3.930.0",
36
36
  "@aws-sdk/util-user-agent-browser": "3.930.0",
37
- "@aws-sdk/util-user-agent-node": "3.932.0",
37
+ "@aws-sdk/util-user-agent-node": "3.934.0",
38
38
  "@smithy/config-resolver": "^4.4.3",
39
39
  "@smithy/core": "^3.18.2",
40
40
  "@smithy/eventstream-serde-browser": "^4.2.5",