@aws-sdk/client-bedrock-runtime 3.970.0 → 3.972.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
@@ -314,7 +314,9 @@ const _CBSEo = "ContentBlockStopEvent";
314
314
  const _CBo = "ContentBlock";
315
315
  const _CC = "CitationsConfig";
316
316
  const _CCB = "CitationsContentBlock";
317
- const _CD = "CitationsDelta";
317
+ const _CD = "CacheDetail";
318
+ const _CDL = "CacheDetailsList";
319
+ const _CDi = "CitationsDelta";
318
320
  const _CE = "ConflictException";
319
321
  const _CGC = "CitationGeneratedContent";
320
322
  const _CGCL = "CitationGeneratedContentList";
@@ -533,6 +535,7 @@ const _cBI = "contentBlockIndex";
533
535
  const _cBS = "contentBlockStart";
534
536
  const _cBSo = "contentBlockStop";
535
537
  const _cC = "citationsContent";
538
+ const _cD = "cacheDetails";
536
539
  const _cFS = "claimsFalseScenario";
537
540
  const _cGP = "contextualGroundingPolicy";
538
541
  const _cGPU = "contextualGroundingPolicyUnits";
@@ -694,7 +697,7 @@ const _stat = "statements";
694
697
  const _str = "stream";
695
698
  const _stre = "streaming";
696
699
  const _sy = "system";
697
- const _t = "type";
700
+ const _t = "ttl";
698
701
  const _tA = "translationAmbiguous";
699
702
  const _tC = "toolConfig";
700
703
  const _tCe = "textCharacters";
@@ -721,6 +724,7 @@ const _top = "topics";
721
724
  const _tr = "trace";
722
725
  const _tra = "translation";
723
726
  const _tran = "translations";
727
+ const _ty = "type";
724
728
  const _u = "usage";
725
729
  const _uC = "untranslatedClaims";
726
730
  const _uP = "untranslatedPremises";
@@ -796,10 +800,15 @@ var BidirectionalOutputPayloadPart$ = [3, n0, _BOPP,
796
800
  [_b],
797
801
  [[() => PartBody, 0]]
798
802
  ];
803
+ var CacheDetail$ = [3, n0, _CD,
804
+ 0,
805
+ [_t, _iT],
806
+ [0, 1], 2
807
+ ];
799
808
  var CachePointBlock$ = [3, n0, _CPB,
800
809
  0,
801
- [_t],
802
- [0], 1
810
+ [_ty, _t],
811
+ [0, 0], 1
803
812
  ];
804
813
  var Citation$ = [3, n0, _C,
805
814
  0,
@@ -816,7 +825,7 @@ var CitationsContentBlock$ = [3, n0, _CCB,
816
825
  [_co, _ci],
817
826
  [() => CitationGeneratedContentList, () => Citations]
818
827
  ];
819
- var CitationsDelta$ = [3, n0, _CD,
828
+ var CitationsDelta$ = [3, n0, _CDi,
820
829
  0,
821
830
  [_ti, _s, _sC, _l],
822
831
  [0, 0, () => CitationSourceContentListDelta, () => CitationLocation$]
@@ -964,7 +973,7 @@ var GuardrailAutomatedReasoningInvalidFinding$ = [3, n0, _GARIFu,
964
973
  ];
965
974
  var GuardrailAutomatedReasoningLogicWarning$ = [3, n0, _GARLW,
966
975
  0,
967
- [_t, _p, _cl],
976
+ [_ty, _p, _cl],
968
977
  [0, [() => GuardrailAutomatedReasoningStatementList, 0], [() => GuardrailAutomatedReasoningStatementList, 0]]
969
978
  ];
970
979
  var GuardrailAutomatedReasoningNoTranslationsFinding$ = [3, n0, _GARNTF,
@@ -1029,7 +1038,7 @@ var GuardrailConfiguration$ = [3, n0, _GC,
1029
1038
  ];
1030
1039
  var GuardrailContentFilter$ = [3, n0, _GCF,
1031
1040
  0,
1032
- [_t, _conf, _a, _fS, _de],
1041
+ [_ty, _conf, _a, _fS, _de],
1033
1042
  [0, 0, 0, 0, 2], 3
1034
1043
  ];
1035
1044
  var GuardrailContentPolicyAssessment$ = [3, n0, _GCPA,
@@ -1039,7 +1048,7 @@ var GuardrailContentPolicyAssessment$ = [3, n0, _GCPA,
1039
1048
  ];
1040
1049
  var GuardrailContextualGroundingFilter$ = [3, n0, _GCGF,
1041
1050
  0,
1042
- [_t, _th, _sc, _a, _de],
1051
+ [_ty, _th, _sc, _a, _de],
1043
1052
  [0, 1, 1, 0, 2], 4
1044
1053
  ];
1045
1054
  var GuardrailContextualGroundingPolicyAssessment$ = [3, n0, _GCGPA,
@@ -1084,7 +1093,7 @@ var GuardrailInvocationMetrics$ = [3, n0, _GIM,
1084
1093
  ];
1085
1094
  var GuardrailManagedWord$ = [3, n0, _GMW,
1086
1095
  0,
1087
- [_ma, _t, _a, _de],
1096
+ [_ma, _ty, _a, _de],
1088
1097
  [0, 0, 0, 2], 3
1089
1098
  ];
1090
1099
  var GuardrailOutputContent$ = [3, n0, _GOC,
@@ -1094,7 +1103,7 @@ var GuardrailOutputContent$ = [3, n0, _GOC,
1094
1103
  ];
1095
1104
  var GuardrailPiiEntityFilter$ = [3, n0, _GPEF,
1096
1105
  0,
1097
- [_ma, _t, _a, _de],
1106
+ [_ma, _ty, _a, _de],
1098
1107
  [0, 0, 0, 2], 3
1099
1108
  ];
1100
1109
  var GuardrailRegexFilter$ = [3, n0, _GRF,
@@ -1124,7 +1133,7 @@ var GuardrailTextCharactersCoverage$ = [3, n0, _GTCC,
1124
1133
  ];
1125
1134
  var GuardrailTopic$ = [3, n0, _GT,
1126
1135
  0,
1127
- [_n, _t, _a, _de],
1136
+ [_n, _ty, _a, _de],
1128
1137
  [0, 0, 0, 2], 3
1129
1138
  ];
1130
1139
  var GuardrailTopicPolicyAssessment$ = [3, n0, _GTPA,
@@ -1311,7 +1320,7 @@ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
1311
1320
  schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
1312
1321
  var ServiceTier$ = [3, n0, _ST,
1313
1322
  0,
1314
- [_t],
1323
+ [_ty],
1315
1324
  [0], 1
1316
1325
  ];
1317
1326
  var ServiceUnavailableException$ = [-3, n0, _SUE,
@@ -1353,8 +1362,8 @@ var ThrottlingException$ = [-3, n0, _TE,
1353
1362
  schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
1354
1363
  var TokenUsage$ = [3, n0, _TU,
1355
1364
  0,
1356
- [_iT, _oT, _tT, _cRIT, _cWIT],
1357
- [1, 1, 1, 1, 1], 3
1365
+ [_iT, _oT, _tT, _cRIT, _cWIT, _cD],
1366
+ [1, 1, 1, 1, 1, () => CacheDetailsList], 3
1358
1367
  ];
1359
1368
  var ToolConfiguration$ = [3, n0, _TC,
1360
1369
  0,
@@ -1363,12 +1372,12 @@ var ToolConfiguration$ = [3, n0, _TC,
1363
1372
  ];
1364
1373
  var ToolResultBlock$ = [3, n0, _TRB,
1365
1374
  0,
1366
- [_tUI, _co, _st, _t],
1375
+ [_tUI, _co, _st, _ty],
1367
1376
  [0, [() => ToolResultContentBlocks, 0], 0, 0], 2
1368
1377
  ];
1369
1378
  var ToolResultBlockStart$ = [3, n0, _TRBS,
1370
1379
  0,
1371
- [_tUI, _t, _st],
1380
+ [_tUI, _ty, _st],
1372
1381
  [0, 0, 0], 1
1373
1382
  ];
1374
1383
  var ToolSpecification$ = [3, n0, _TS,
@@ -1378,7 +1387,7 @@ var ToolSpecification$ = [3, n0, _TS,
1378
1387
  ];
1379
1388
  var ToolUseBlock$ = [3, n0, _TUB,
1380
1389
  0,
1381
- [_tUI, _n, _i, _t],
1390
+ [_tUI, _n, _i, _ty],
1382
1391
  [0, 0, 15, 0], 3
1383
1392
  ];
1384
1393
  var ToolUseBlockDelta$ = [3, n0, _TUBD,
@@ -1388,7 +1397,7 @@ var ToolUseBlockDelta$ = [3, n0, _TUBD,
1388
1397
  ];
1389
1398
  var ToolUseBlockStart$ = [3, n0, _TUBS,
1390
1399
  0,
1391
- [_tUI, _n, _t],
1400
+ [_tUI, _n, _ty],
1392
1401
  [0, 0, 0], 2
1393
1402
  ];
1394
1403
  var ValidationException$ = [-3, n0, _VE,
@@ -1413,6 +1422,9 @@ var AsyncInvokeSummaries = [1, n0, _AISs,
1413
1422
  0, [() => AsyncInvokeSummary$,
1414
1423
  0]
1415
1424
  ];
1425
+ var CacheDetailsList = [1, n0, _CDL,
1426
+ 0, () => CacheDetail$
1427
+ ];
1416
1428
  var CitationGeneratedContentList = [1, n0, _CGCL,
1417
1429
  0, () => CitationGeneratedContent$
1418
1430
  ];
@@ -2033,6 +2045,10 @@ const AudioFormat = {
2033
2045
  WEBM: "webm",
2034
2046
  X_AAC: "x-aac",
2035
2047
  };
2048
+ const CacheTTL = {
2049
+ FIVE_MINUTES: "5m",
2050
+ ONE_HOUR: "1h",
2051
+ };
2036
2052
  const CachePointType = {
2037
2053
  DEFAULT: "default",
2038
2054
  };
@@ -2145,8 +2161,10 @@ exports.BedrockRuntimeServiceException = BedrockRuntimeServiceException;
2145
2161
  exports.BedrockRuntimeServiceException$ = BedrockRuntimeServiceException$;
2146
2162
  exports.BidirectionalInputPayloadPart$ = BidirectionalInputPayloadPart$;
2147
2163
  exports.BidirectionalOutputPayloadPart$ = BidirectionalOutputPayloadPart$;
2164
+ exports.CacheDetail$ = CacheDetail$;
2148
2165
  exports.CachePointBlock$ = CachePointBlock$;
2149
2166
  exports.CachePointType = CachePointType;
2167
+ exports.CacheTTL = CacheTTL;
2150
2168
  exports.Citation$ = Citation$;
2151
2169
  exports.CitationGeneratedContent$ = CitationGeneratedContent$;
2152
2170
  exports.CitationLocation$ = CitationLocation$;
@@ -150,6 +150,10 @@ export const AudioFormat = {
150
150
  WEBM: "webm",
151
151
  X_AAC: "x-aac",
152
152
  };
153
+ export const CacheTTL = {
154
+ FIVE_MINUTES: "5m",
155
+ ONE_HOUR: "1h",
156
+ };
153
157
  export const CachePointType = {
154
158
  DEFAULT: "default",
155
159
  };
@@ -26,7 +26,9 @@ const _CBSEo = "ContentBlockStopEvent";
26
26
  const _CBo = "ContentBlock";
27
27
  const _CC = "CitationsConfig";
28
28
  const _CCB = "CitationsContentBlock";
29
- const _CD = "CitationsDelta";
29
+ const _CD = "CacheDetail";
30
+ const _CDL = "CacheDetailsList";
31
+ const _CDi = "CitationsDelta";
30
32
  const _CE = "ConflictException";
31
33
  const _CGC = "CitationGeneratedContent";
32
34
  const _CGCL = "CitationGeneratedContentList";
@@ -245,6 +247,7 @@ const _cBI = "contentBlockIndex";
245
247
  const _cBS = "contentBlockStart";
246
248
  const _cBSo = "contentBlockStop";
247
249
  const _cC = "citationsContent";
250
+ const _cD = "cacheDetails";
248
251
  const _cFS = "claimsFalseScenario";
249
252
  const _cGP = "contextualGroundingPolicy";
250
253
  const _cGPU = "contextualGroundingPolicyUnits";
@@ -406,7 +409,7 @@ const _stat = "statements";
406
409
  const _str = "stream";
407
410
  const _stre = "streaming";
408
411
  const _sy = "system";
409
- const _t = "type";
412
+ const _t = "ttl";
410
413
  const _tA = "translationAmbiguous";
411
414
  const _tC = "toolConfig";
412
415
  const _tCe = "textCharacters";
@@ -433,6 +436,7 @@ const _top = "topics";
433
436
  const _tr = "trace";
434
437
  const _tra = "translation";
435
438
  const _tran = "translations";
439
+ const _ty = "type";
436
440
  const _u = "usage";
437
441
  const _uC = "untranslatedClaims";
438
442
  const _uP = "untranslatedPremises";
@@ -511,10 +515,15 @@ export var BidirectionalOutputPayloadPart$ = [3, n0, _BOPP,
511
515
  [_b],
512
516
  [[() => PartBody, 0]]
513
517
  ];
518
+ export var CacheDetail$ = [3, n0, _CD,
519
+ 0,
520
+ [_t, _iT],
521
+ [0, 1], 2
522
+ ];
514
523
  export var CachePointBlock$ = [3, n0, _CPB,
515
524
  0,
516
- [_t],
517
- [0], 1
525
+ [_ty, _t],
526
+ [0, 0], 1
518
527
  ];
519
528
  export var Citation$ = [3, n0, _C,
520
529
  0,
@@ -531,7 +540,7 @@ export var CitationsContentBlock$ = [3, n0, _CCB,
531
540
  [_co, _ci],
532
541
  [() => CitationGeneratedContentList, () => Citations]
533
542
  ];
534
- export var CitationsDelta$ = [3, n0, _CD,
543
+ export var CitationsDelta$ = [3, n0, _CDi,
535
544
  0,
536
545
  [_ti, _s, _sC, _l],
537
546
  [0, 0, () => CitationSourceContentListDelta, () => CitationLocation$]
@@ -679,7 +688,7 @@ export var GuardrailAutomatedReasoningInvalidFinding$ = [3, n0, _GARIFu,
679
688
  ];
680
689
  export var GuardrailAutomatedReasoningLogicWarning$ = [3, n0, _GARLW,
681
690
  0,
682
- [_t, _p, _cl],
691
+ [_ty, _p, _cl],
683
692
  [0, [() => GuardrailAutomatedReasoningStatementList, 0], [() => GuardrailAutomatedReasoningStatementList, 0]]
684
693
  ];
685
694
  export var GuardrailAutomatedReasoningNoTranslationsFinding$ = [3, n0, _GARNTF,
@@ -744,7 +753,7 @@ export var GuardrailConfiguration$ = [3, n0, _GC,
744
753
  ];
745
754
  export var GuardrailContentFilter$ = [3, n0, _GCF,
746
755
  0,
747
- [_t, _conf, _a, _fS, _de],
756
+ [_ty, _conf, _a, _fS, _de],
748
757
  [0, 0, 0, 0, 2], 3
749
758
  ];
750
759
  export var GuardrailContentPolicyAssessment$ = [3, n0, _GCPA,
@@ -754,7 +763,7 @@ export var GuardrailContentPolicyAssessment$ = [3, n0, _GCPA,
754
763
  ];
755
764
  export var GuardrailContextualGroundingFilter$ = [3, n0, _GCGF,
756
765
  0,
757
- [_t, _th, _sc, _a, _de],
766
+ [_ty, _th, _sc, _a, _de],
758
767
  [0, 1, 1, 0, 2], 4
759
768
  ];
760
769
  export var GuardrailContextualGroundingPolicyAssessment$ = [3, n0, _GCGPA,
@@ -799,7 +808,7 @@ export var GuardrailInvocationMetrics$ = [3, n0, _GIM,
799
808
  ];
800
809
  export var GuardrailManagedWord$ = [3, n0, _GMW,
801
810
  0,
802
- [_ma, _t, _a, _de],
811
+ [_ma, _ty, _a, _de],
803
812
  [0, 0, 0, 2], 3
804
813
  ];
805
814
  export var GuardrailOutputContent$ = [3, n0, _GOC,
@@ -809,7 +818,7 @@ export var GuardrailOutputContent$ = [3, n0, _GOC,
809
818
  ];
810
819
  export var GuardrailPiiEntityFilter$ = [3, n0, _GPEF,
811
820
  0,
812
- [_ma, _t, _a, _de],
821
+ [_ma, _ty, _a, _de],
813
822
  [0, 0, 0, 2], 3
814
823
  ];
815
824
  export var GuardrailRegexFilter$ = [3, n0, _GRF,
@@ -839,7 +848,7 @@ export var GuardrailTextCharactersCoverage$ = [3, n0, _GTCC,
839
848
  ];
840
849
  export var GuardrailTopic$ = [3, n0, _GT,
841
850
  0,
842
- [_n, _t, _a, _de],
851
+ [_n, _ty, _a, _de],
843
852
  [0, 0, 0, 2], 3
844
853
  ];
845
854
  export var GuardrailTopicPolicyAssessment$ = [3, n0, _GTPA,
@@ -1026,7 +1035,7 @@ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
1026
1035
  TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
1027
1036
  export var ServiceTier$ = [3, n0, _ST,
1028
1037
  0,
1029
- [_t],
1038
+ [_ty],
1030
1039
  [0], 1
1031
1040
  ];
1032
1041
  export var ServiceUnavailableException$ = [-3, n0, _SUE,
@@ -1068,8 +1077,8 @@ export var ThrottlingException$ = [-3, n0, _TE,
1068
1077
  TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
1069
1078
  export var TokenUsage$ = [3, n0, _TU,
1070
1079
  0,
1071
- [_iT, _oT, _tT, _cRIT, _cWIT],
1072
- [1, 1, 1, 1, 1], 3
1080
+ [_iT, _oT, _tT, _cRIT, _cWIT, _cD],
1081
+ [1, 1, 1, 1, 1, () => CacheDetailsList], 3
1073
1082
  ];
1074
1083
  export var ToolConfiguration$ = [3, n0, _TC,
1075
1084
  0,
@@ -1078,12 +1087,12 @@ export var ToolConfiguration$ = [3, n0, _TC,
1078
1087
  ];
1079
1088
  export var ToolResultBlock$ = [3, n0, _TRB,
1080
1089
  0,
1081
- [_tUI, _co, _st, _t],
1090
+ [_tUI, _co, _st, _ty],
1082
1091
  [0, [() => ToolResultContentBlocks, 0], 0, 0], 2
1083
1092
  ];
1084
1093
  export var ToolResultBlockStart$ = [3, n0, _TRBS,
1085
1094
  0,
1086
- [_tUI, _t, _st],
1095
+ [_tUI, _ty, _st],
1087
1096
  [0, 0, 0], 1
1088
1097
  ];
1089
1098
  export var ToolSpecification$ = [3, n0, _TS,
@@ -1093,7 +1102,7 @@ export var ToolSpecification$ = [3, n0, _TS,
1093
1102
  ];
1094
1103
  export var ToolUseBlock$ = [3, n0, _TUB,
1095
1104
  0,
1096
- [_tUI, _n, _i, _t],
1105
+ [_tUI, _n, _i, _ty],
1097
1106
  [0, 0, 15, 0], 3
1098
1107
  ];
1099
1108
  export var ToolUseBlockDelta$ = [3, n0, _TUBD,
@@ -1103,7 +1112,7 @@ export var ToolUseBlockDelta$ = [3, n0, _TUBD,
1103
1112
  ];
1104
1113
  export var ToolUseBlockStart$ = [3, n0, _TUBS,
1105
1114
  0,
1106
- [_tUI, _n, _t],
1115
+ [_tUI, _n, _ty],
1107
1116
  [0, 0, 0], 2
1108
1117
  ];
1109
1118
  export var ValidationException$ = [-3, n0, _VE,
@@ -1129,6 +1138,9 @@ var AsyncInvokeSummaries = [1, n0, _AISs,
1129
1138
  0, [() => AsyncInvokeSummary$,
1130
1139
  0]
1131
1140
  ];
1141
+ var CacheDetailsList = [1, n0, _CDL,
1142
+ 0, () => CacheDetail$
1143
+ ];
1132
1144
  var CitationGeneratedContentList = [1, n0, _CGCL,
1133
1145
  0, () => CitationGeneratedContent$
1134
1146
  ];
@@ -184,6 +184,7 @@ declare const ConverseCommand_base: {
184
184
  * },
185
185
  * cachePoint: { // CachePointBlock
186
186
  * type: "default", // required
187
+ * ttl: "5m" || "1h",
187
188
  * },
188
189
  * reasoningContent: { // ReasoningContentBlock Union: only one key present
189
190
  * reasoningText: { // ReasoningTextBlock
@@ -271,6 +272,7 @@ declare const ConverseCommand_base: {
271
272
  * },
272
273
  * cachePoint: {
273
274
  * type: "default", // required
275
+ * ttl: "5m" || "1h",
274
276
  * },
275
277
  * },
276
278
  * ],
@@ -479,6 +481,7 @@ declare const ConverseCommand_base: {
479
481
  * // },
480
482
  * // cachePoint: { // CachePointBlock
481
483
  * // type: "default", // required
484
+ * // ttl: "5m" || "1h",
482
485
  * // },
483
486
  * // reasoningContent: { // ReasoningContentBlock Union: only one key present
484
487
  * // reasoningText: { // ReasoningTextBlock
@@ -554,6 +557,12 @@ declare const ConverseCommand_base: {
554
557
  * // totalTokens: Number("int"), // required
555
558
  * // cacheReadInputTokens: Number("int"),
556
559
  * // cacheWriteInputTokens: Number("int"),
560
+ * // cacheDetails: [ // CacheDetailsList
561
+ * // { // CacheDetail
562
+ * // ttl: "5m" || "1h", // required
563
+ * // inputTokens: Number("int"), // required
564
+ * // },
565
+ * // ],
557
566
  * // },
558
567
  * // metrics: { // ConverseMetrics
559
568
  * // latencyMs: Number("long"), // required
@@ -184,6 +184,7 @@ declare const ConverseStreamCommand_base: {
184
184
  * },
185
185
  * cachePoint: { // CachePointBlock
186
186
  * type: "default", // required
187
+ * ttl: "5m" || "1h",
187
188
  * },
188
189
  * reasoningContent: { // ReasoningContentBlock Union: only one key present
189
190
  * reasoningText: { // ReasoningTextBlock
@@ -271,6 +272,7 @@ declare const ConverseStreamCommand_base: {
271
272
  * },
272
273
  * cachePoint: {
273
274
  * type: "default", // required
275
+ * ttl: "5m" || "1h",
274
276
  * },
275
277
  * },
276
278
  * ],
@@ -437,6 +439,12 @@ declare const ConverseStreamCommand_base: {
437
439
  * // totalTokens: Number("int"), // required
438
440
  * // cacheReadInputTokens: Number("int"),
439
441
  * // cacheWriteInputTokens: Number("int"),
442
+ * // cacheDetails: [ // CacheDetailsList
443
+ * // { // CacheDetail
444
+ * // ttl: "5m" || "1h", // required
445
+ * // inputTokens: Number("int"), // required
446
+ * // },
447
+ * // ],
440
448
  * // },
441
449
  * // metrics: { // ConverseStreamMetrics
442
450
  * // latencyMs: Number("long"), // required
@@ -189,6 +189,7 @@ declare const CountTokensCommand_base: {
189
189
  * },
190
190
  * cachePoint: { // CachePointBlock
191
191
  * type: "default", // required
192
+ * ttl: "5m" || "1h",
192
193
  * },
193
194
  * reasoningContent: { // ReasoningContentBlock Union: only one key present
194
195
  * reasoningText: { // ReasoningTextBlock
@@ -276,6 +277,7 @@ declare const CountTokensCommand_base: {
276
277
  * },
277
278
  * cachePoint: {
278
279
  * type: "default", // required
280
+ * ttl: "5m" || "1h",
279
281
  * },
280
282
  * },
281
283
  * ],
@@ -350,6 +350,18 @@ export declare const AudioFormat: {
350
350
  * @public
351
351
  */
352
352
  export type AudioFormat = (typeof AudioFormat)[keyof typeof AudioFormat];
353
+ /**
354
+ * @public
355
+ * @enum
356
+ */
357
+ export declare const CacheTTL: {
358
+ readonly FIVE_MINUTES: "5m";
359
+ readonly ONE_HOUR: "1h";
360
+ };
361
+ /**
362
+ * @public
363
+ */
364
+ export type CacheTTL = (typeof CacheTTL)[keyof typeof CacheTTL];
353
365
  /**
354
366
  * @public
355
367
  * @enum
@@ -1,5 +1,5 @@
1
1
  import { DocumentType as __DocumentType } from "@smithy/types";
2
- import { AsyncInvokeStatus, AudioFormat, CachePointType, ConversationRole, DocumentFormat, GuardrailAction, GuardrailAutomatedReasoningLogicWarningType, GuardrailContentFilterConfidence, GuardrailContentFilterStrength, GuardrailContentFilterType, GuardrailContentPolicyAction, GuardrailContentQualifier, GuardrailContentSource, GuardrailContextualGroundingFilterType, GuardrailContextualGroundingPolicyAction, GuardrailConverseContentQualifier, GuardrailConverseImageFormat, GuardrailImageFormat, GuardrailManagedWordType, GuardrailOrigin, GuardrailOutputScope, GuardrailOwnership, GuardrailPiiEntityType, GuardrailSensitiveInformationPolicyAction, GuardrailStreamProcessingMode, GuardrailTopicPolicyAction, GuardrailTopicType, GuardrailTrace, GuardrailWordPolicyAction, ImageFormat, PerformanceConfigLatency, ServiceTierType, SortAsyncInvocationBy, SortOrder, StopReason, ToolResultStatus, ToolUseType, Trace, VideoFormat } from "./enums";
2
+ import { AsyncInvokeStatus, AudioFormat, CachePointType, CacheTTL, ConversationRole, DocumentFormat, GuardrailAction, GuardrailAutomatedReasoningLogicWarningType, GuardrailContentFilterConfidence, GuardrailContentFilterStrength, GuardrailContentFilterType, GuardrailContentPolicyAction, GuardrailContentQualifier, GuardrailContentSource, GuardrailContextualGroundingFilterType, GuardrailContextualGroundingPolicyAction, GuardrailConverseContentQualifier, GuardrailConverseImageFormat, GuardrailImageFormat, GuardrailManagedWordType, GuardrailOrigin, GuardrailOutputScope, GuardrailOwnership, GuardrailPiiEntityType, GuardrailSensitiveInformationPolicyAction, GuardrailStreamProcessingMode, GuardrailTopicPolicyAction, GuardrailTopicType, GuardrailTrace, GuardrailWordPolicyAction, ImageFormat, PerformanceConfigLatency, ServiceTierType, SortAsyncInvocationBy, SortOrder, StopReason, ToolResultStatus, ToolUseType, Trace, VideoFormat } from "./enums";
3
3
  import { InternalServerException, ModelStreamErrorException, ModelTimeoutException, ServiceUnavailableException, ThrottlingException, ValidationException } from "./errors";
4
4
  /**
5
5
  * @public
@@ -1452,6 +1452,11 @@ export interface CachePointBlock {
1452
1452
  * @public
1453
1453
  */
1454
1454
  type: CachePointType | undefined;
1455
+ /**
1456
+ * <p>Optional TTL duration for cache entries. When specified, enables extended TTL caching with the specified duration. When omitted, uses <code>type</code> value for caching behavior.</p>
1457
+ * @public
1458
+ */
1459
+ ttl?: CacheTTL | undefined;
1455
1460
  }
1456
1461
  /**
1457
1462
  * <p>Specifies a character-level location within a document, providing precise positioning information for cited content using start and end character indices.</p>
@@ -3193,6 +3198,22 @@ export interface ConverseTrace {
3193
3198
  */
3194
3199
  promptRouter?: PromptRouterTrace | undefined;
3195
3200
  }
3201
+ /**
3202
+ * <p>Cache creation metrics for a specific TTL duration</p>
3203
+ * @public
3204
+ */
3205
+ export interface CacheDetail {
3206
+ /**
3207
+ * <p>TTL duration for these cached tokens</p>
3208
+ * @public
3209
+ */
3210
+ ttl: CacheTTL | undefined;
3211
+ /**
3212
+ * <p>Number of tokens written to cache with this TTL (cache creation tokens)</p>
3213
+ * @public
3214
+ */
3215
+ inputTokens: number | undefined;
3216
+ }
3196
3217
  /**
3197
3218
  * <p>The tokens used in a message API inference call. </p>
3198
3219
  * @public
@@ -3223,6 +3244,11 @@ export interface TokenUsage {
3223
3244
  * @public
3224
3245
  */
3225
3246
  cacheWriteInputTokens?: number | undefined;
3247
+ /**
3248
+ * <p>Detailed breakdown of cache writes by TTL. Empty if no cache creation occurred. Sorted by TTL duration (1h before 5m).</p>
3249
+ * @public
3250
+ */
3251
+ cacheDetails?: CacheDetail[] | undefined;
3226
3252
  }
3227
3253
  /**
3228
3254
  * @public
@@ -10,6 +10,7 @@ export declare var AudioBlock$: StaticStructureSchema;
10
10
  export declare var AutoToolChoice$: StaticStructureSchema;
11
11
  export declare var BidirectionalInputPayloadPart$: StaticStructureSchema;
12
12
  export declare var BidirectionalOutputPayloadPart$: StaticStructureSchema;
13
+ export declare var CacheDetail$: StaticStructureSchema;
13
14
  export declare var CachePointBlock$: StaticStructureSchema;
14
15
  export declare var Citation$: StaticStructureSchema;
15
16
  export declare var CitationsConfig$: StaticStructureSchema;
@@ -198,6 +198,11 @@ export declare const AudioFormat: {
198
198
  readonly X_AAC: "x-aac";
199
199
  };
200
200
  export type AudioFormat = (typeof AudioFormat)[keyof typeof AudioFormat];
201
+ export declare const CacheTTL: {
202
+ readonly FIVE_MINUTES: "5m";
203
+ readonly ONE_HOUR: "1h";
204
+ };
205
+ export type CacheTTL = (typeof CacheTTL)[keyof typeof CacheTTL];
201
206
  export declare const CachePointType: {
202
207
  readonly DEFAULT: "default";
203
208
  };
@@ -3,6 +3,7 @@ import {
3
3
  AsyncInvokeStatus,
4
4
  AudioFormat,
5
5
  CachePointType,
6
+ CacheTTL,
6
7
  ConversationRole,
7
8
  DocumentFormat,
8
9
  GuardrailAction,
@@ -523,6 +524,7 @@ export interface AudioBlock {
523
524
  }
524
525
  export interface CachePointBlock {
525
526
  type: CachePointType | undefined;
527
+ ttl?: CacheTTL | undefined;
526
528
  }
527
529
  export interface DocumentCharLocation {
528
530
  documentIndex?: number | undefined;
@@ -1424,12 +1426,17 @@ export interface ConverseTrace {
1424
1426
  guardrail?: GuardrailTraceAssessment | undefined;
1425
1427
  promptRouter?: PromptRouterTrace | undefined;
1426
1428
  }
1429
+ export interface CacheDetail {
1430
+ ttl: CacheTTL | undefined;
1431
+ inputTokens: number | undefined;
1432
+ }
1427
1433
  export interface TokenUsage {
1428
1434
  inputTokens: number | undefined;
1429
1435
  outputTokens: number | undefined;
1430
1436
  totalTokens: number | undefined;
1431
1437
  cacheReadInputTokens?: number | undefined;
1432
1438
  cacheWriteInputTokens?: number | undefined;
1439
+ cacheDetails?: CacheDetail[] | undefined;
1433
1440
  }
1434
1441
  export interface ConverseResponse {
1435
1442
  output: ConverseOutput | undefined;
@@ -15,6 +15,7 @@ export declare var AudioBlock$: StaticStructureSchema;
15
15
  export declare var AutoToolChoice$: StaticStructureSchema;
16
16
  export declare var BidirectionalInputPayloadPart$: StaticStructureSchema;
17
17
  export declare var BidirectionalOutputPayloadPart$: StaticStructureSchema;
18
+ export declare var CacheDetail$: StaticStructureSchema;
18
19
  export declare var CachePointBlock$: StaticStructureSchema;
19
20
  export declare var Citation$: StaticStructureSchema;
20
21
  export declare var CitationsConfig$: 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.970.0",
4
+ "version": "3.972.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
@@ -9,7 +9,7 @@
9
9
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12
+ "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
13
13
  "extract:docs": "api-extractor run --local",
14
14
  "generate:client": "node ../../scripts/generate-clients/single-service --solo bedrock-runtime",
15
15
  "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
@@ -21,21 +21,21 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "3.970.0",
25
- "@aws-sdk/credential-provider-node": "3.970.0",
26
- "@aws-sdk/eventstream-handler-node": "3.969.0",
27
- "@aws-sdk/middleware-eventstream": "3.969.0",
28
- "@aws-sdk/middleware-host-header": "3.969.0",
29
- "@aws-sdk/middleware-logger": "3.969.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.969.0",
31
- "@aws-sdk/middleware-user-agent": "3.970.0",
32
- "@aws-sdk/middleware-websocket": "3.969.0",
33
- "@aws-sdk/region-config-resolver": "3.969.0",
34
- "@aws-sdk/token-providers": "3.970.0",
35
- "@aws-sdk/types": "3.969.0",
36
- "@aws-sdk/util-endpoints": "3.970.0",
37
- "@aws-sdk/util-user-agent-browser": "3.969.0",
38
- "@aws-sdk/util-user-agent-node": "3.970.0",
24
+ "@aws-sdk/core": "3.972.0",
25
+ "@aws-sdk/credential-provider-node": "3.972.0",
26
+ "@aws-sdk/eventstream-handler-node": "3.972.0",
27
+ "@aws-sdk/middleware-eventstream": "3.972.0",
28
+ "@aws-sdk/middleware-host-header": "3.972.0",
29
+ "@aws-sdk/middleware-logger": "3.972.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.972.0",
31
+ "@aws-sdk/middleware-user-agent": "3.972.0",
32
+ "@aws-sdk/middleware-websocket": "3.972.0",
33
+ "@aws-sdk/region-config-resolver": "3.972.0",
34
+ "@aws-sdk/token-providers": "3.972.0",
35
+ "@aws-sdk/types": "3.972.0",
36
+ "@aws-sdk/util-endpoints": "3.972.0",
37
+ "@aws-sdk/util-user-agent-browser": "3.972.0",
38
+ "@aws-sdk/util-user-agent-node": "3.972.0",
39
39
  "@smithy/config-resolver": "^4.4.6",
40
40
  "@smithy/core": "^3.20.6",
41
41
  "@smithy/eventstream-serde-browser": "^4.2.8",
@@ -72,7 +72,7 @@
72
72
  "@types/node": "^20.14.8",
73
73
  "concurrently": "7.0.0",
74
74
  "downlevel-dts": "0.10.1",
75
- "rimraf": "5.0.10",
75
+ "premove": "4.0.0",
76
76
  "typescript": "~5.8.3"
77
77
  },
78
78
  "engines": {