@aws-sdk/client-bedrock-runtime 3.943.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.
- package/dist-cjs/index.js +53 -322
- package/dist-cjs/runtimeConfig.browser.js +2 -2
- package/dist-cjs/runtimeConfig.js +8 -5
- package/dist-cjs/runtimeConfig.native.js +3 -1
- package/dist-es/BedrockRuntimeClient.js +3 -3
- package/dist-es/runtimeConfig.browser.js +2 -2
- package/dist-es/runtimeConfig.js +7 -4
- package/dist-es/runtimeConfig.native.js +3 -1
- package/dist-es/schemas/schemas_0.js +53 -322
- package/dist-types/BedrockRuntime.d.ts +1 -1
- package/dist-types/BedrockRuntimeClient.d.ts +13 -13
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +2 -2
- package/dist-types/commands/ApplyGuardrailCommand.d.ts +3 -3
- package/dist-types/commands/ConverseCommand.d.ts +3 -3
- package/dist-types/commands/ConverseStreamCommand.d.ts +3 -3
- package/dist-types/commands/CountTokensCommand.d.ts +3 -3
- package/dist-types/commands/GetAsyncInvokeCommand.d.ts +3 -3
- package/dist-types/commands/InvokeModelCommand.d.ts +2 -2
- package/dist-types/commands/InvokeModelWithBidirectionalStreamCommand.d.ts +3 -3
- package/dist-types/commands/InvokeModelWithResponseStreamCommand.d.ts +3 -3
- package/dist-types/commands/ListAsyncInvokesCommand.d.ts +3 -3
- package/dist-types/commands/StartAsyncInvokeCommand.d.ts +3 -3
- package/dist-types/endpoint/EndpointParameters.d.ts +13 -1
- package/dist-types/endpoint/endpointResolver.d.ts +5 -2
- package/dist-types/extensionConfiguration.d.ts +4 -4
- package/dist-types/models/BedrockRuntimeServiceException.d.ts +1 -1
- package/dist-types/models/errors.d.ts +1 -1
- package/dist-types/pagination/Interfaces.d.ts +1 -1
- package/dist-types/pagination/ListAsyncInvokesPaginator.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/dist-types/runtimeExtensions.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +1 -1
- package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +3 -3
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/dist-types/ts3.4/commands/InvokeModelWithResponseStreamCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/BedrockRuntimeServiceException.d.ts +1 -1
- package/package.json +14 -13
|
@@ -8,7 +8,9 @@ export const getRuntimeConfig = (config) => {
|
|
|
8
8
|
...config,
|
|
9
9
|
runtime: "react-native",
|
|
10
10
|
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
|
|
11
|
-
(() => ({
|
|
11
|
+
(() => ({
|
|
12
|
+
handle: invalidFunction("event stream request is not supported in ReactNative."),
|
|
13
|
+
})),
|
|
12
14
|
sha256: config?.sha256 ?? Sha256,
|
|
13
15
|
};
|
|
14
16
|
};
|
|
@@ -455,17 +455,7 @@ export var GuardrailAutomatedReasoningStatementLogicContent = [0, n0, _GARSLC, 8
|
|
|
455
455
|
export var GuardrailAutomatedReasoningStatementNaturalLanguageContent = [0, n0, _GARSNLC, 8, 0];
|
|
456
456
|
export var ModelInputPayload = [0, n0, _MIP, 8, 15];
|
|
457
457
|
export var PartBody = [0, n0, _PB, 8, 21];
|
|
458
|
-
export var AccessDeniedException = [
|
|
459
|
-
-3,
|
|
460
|
-
n0,
|
|
461
|
-
_ADE,
|
|
462
|
-
{
|
|
463
|
-
[_e]: _c,
|
|
464
|
-
[_hE]: 403,
|
|
465
|
-
},
|
|
466
|
-
[_m],
|
|
467
|
-
[0],
|
|
468
|
-
];
|
|
458
|
+
export var AccessDeniedException = [-3, n0, _ADE, { [_e]: _c, [_hE]: 403 }, [_m], [0]];
|
|
469
459
|
TypeRegistry.for(n0).registerError(AccessDeniedException, __AccessDeniedException);
|
|
470
460
|
export var AnyToolChoice = [3, n0, _ATC, 0, [], []];
|
|
471
461
|
export var AppliedGuardrailDetails = [
|
|
@@ -546,17 +536,7 @@ export var CitationsDelta = [
|
|
|
546
536
|
[0, 0, () => CitationSourceContentListDelta, () => CitationLocation],
|
|
547
537
|
];
|
|
548
538
|
export var CitationSourceContentDelta = [3, n0, _CSCD, 0, [_te], [0]];
|
|
549
|
-
export var ConflictException = [
|
|
550
|
-
-3,
|
|
551
|
-
n0,
|
|
552
|
-
_CE,
|
|
553
|
-
{
|
|
554
|
-
[_e]: _c,
|
|
555
|
-
[_hE]: 400,
|
|
556
|
-
},
|
|
557
|
-
[_m],
|
|
558
|
-
[0],
|
|
559
|
-
];
|
|
539
|
+
export var ConflictException = [-3, n0, _CE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
560
540
|
TypeRegistry.for(n0).registerError(ConflictException, __ConflictException);
|
|
561
541
|
export var ContentBlockDeltaEvent = [
|
|
562
542
|
3,
|
|
@@ -991,17 +971,7 @@ export var ImageBlockDelta = [
|
|
|
991
971
|
];
|
|
992
972
|
export var ImageBlockStart = [3, n0, _IBS, 0, [_f], [0]];
|
|
993
973
|
export var InferenceConfiguration = [3, n0, _IC, 0, [_mT, _tem, _tPo, _sS], [1, 1, 1, 64 | 0]];
|
|
994
|
-
export var InternalServerException = [
|
|
995
|
-
-3,
|
|
996
|
-
n0,
|
|
997
|
-
_ISE,
|
|
998
|
-
{
|
|
999
|
-
[_e]: _se,
|
|
1000
|
-
[_hE]: 500,
|
|
1001
|
-
},
|
|
1002
|
-
[_m],
|
|
1003
|
-
[0],
|
|
1004
|
-
];
|
|
974
|
+
export var InternalServerException = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_m], [0]];
|
|
1005
975
|
TypeRegistry.for(n0).registerError(InternalServerException, __InternalServerException);
|
|
1006
976
|
export var InvokeModelRequest = [
|
|
1007
977
|
3,
|
|
@@ -1011,49 +981,14 @@ export var InvokeModelRequest = [
|
|
|
1011
981
|
[_bo, _cT, _ac, _mI, _tr, _gIu, _gV, _pCL, _sTe],
|
|
1012
982
|
[
|
|
1013
983
|
[() => Body, 16],
|
|
1014
|
-
[
|
|
1015
|
-
|
|
1016
|
-
{
|
|
1017
|
-
[_hH]: _CT_,
|
|
1018
|
-
},
|
|
1019
|
-
],
|
|
1020
|
-
[
|
|
1021
|
-
0,
|
|
1022
|
-
{
|
|
1023
|
-
[_hH]: _A,
|
|
1024
|
-
},
|
|
1025
|
-
],
|
|
984
|
+
[0, { [_hH]: _CT_ }],
|
|
985
|
+
[0, { [_hH]: _A }],
|
|
1026
986
|
[0, 1],
|
|
1027
|
-
[
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
],
|
|
1033
|
-
[
|
|
1034
|
-
0,
|
|
1035
|
-
{
|
|
1036
|
-
[_hH]: _XABG,
|
|
1037
|
-
},
|
|
1038
|
-
],
|
|
1039
|
-
[
|
|
1040
|
-
0,
|
|
1041
|
-
{
|
|
1042
|
-
[_hH]: _XABG_,
|
|
1043
|
-
},
|
|
1044
|
-
],
|
|
1045
|
-
[
|
|
1046
|
-
0,
|
|
1047
|
-
{
|
|
1048
|
-
[_hH]: _XABPL,
|
|
1049
|
-
},
|
|
1050
|
-
],
|
|
1051
|
-
[
|
|
1052
|
-
0,
|
|
1053
|
-
{
|
|
1054
|
-
[_hH]: _XABST,
|
|
1055
|
-
},
|
|
1056
|
-
],
|
|
987
|
+
[0, { [_hH]: _XABT }],
|
|
988
|
+
[0, { [_hH]: _XABG }],
|
|
989
|
+
[0, { [_hH]: _XABG_ }],
|
|
990
|
+
[0, { [_hH]: _XABPL }],
|
|
991
|
+
[0, { [_hH]: _XABST }],
|
|
1057
992
|
],
|
|
1058
993
|
];
|
|
1059
994
|
export var InvokeModelResponse = [
|
|
@@ -1064,24 +999,9 @@ export var InvokeModelResponse = [
|
|
|
1064
999
|
[_bo, _cT, _pCL, _sTe],
|
|
1065
1000
|
[
|
|
1066
1001
|
[() => Body, 16],
|
|
1067
|
-
[
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
[_hH]: _CT_,
|
|
1071
|
-
},
|
|
1072
|
-
],
|
|
1073
|
-
[
|
|
1074
|
-
0,
|
|
1075
|
-
{
|
|
1076
|
-
[_hH]: _XABPL,
|
|
1077
|
-
},
|
|
1078
|
-
],
|
|
1079
|
-
[
|
|
1080
|
-
0,
|
|
1081
|
-
{
|
|
1082
|
-
[_hH]: _XABST,
|
|
1083
|
-
},
|
|
1084
|
-
],
|
|
1002
|
+
[0, { [_hH]: _CT_ }],
|
|
1003
|
+
[0, { [_hH]: _XABPL }],
|
|
1004
|
+
[0, { [_hH]: _XABST }],
|
|
1085
1005
|
],
|
|
1086
1006
|
];
|
|
1087
1007
|
export var InvokeModelTokensRequest = [3, n0, _IMTR, 0, [_bo], [[() => Body, 0]]];
|
|
@@ -1112,49 +1032,14 @@ export var InvokeModelWithResponseStreamRequest = [
|
|
|
1112
1032
|
[_bo, _cT, _ac, _mI, _tr, _gIu, _gV, _pCL, _sTe],
|
|
1113
1033
|
[
|
|
1114
1034
|
[() => Body, 16],
|
|
1115
|
-
[
|
|
1116
|
-
|
|
1117
|
-
{
|
|
1118
|
-
[_hH]: _CT_,
|
|
1119
|
-
},
|
|
1120
|
-
],
|
|
1121
|
-
[
|
|
1122
|
-
0,
|
|
1123
|
-
{
|
|
1124
|
-
[_hH]: _XABA,
|
|
1125
|
-
},
|
|
1126
|
-
],
|
|
1035
|
+
[0, { [_hH]: _CT_ }],
|
|
1036
|
+
[0, { [_hH]: _XABA }],
|
|
1127
1037
|
[0, 1],
|
|
1128
|
-
[
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
],
|
|
1134
|
-
[
|
|
1135
|
-
0,
|
|
1136
|
-
{
|
|
1137
|
-
[_hH]: _XABG,
|
|
1138
|
-
},
|
|
1139
|
-
],
|
|
1140
|
-
[
|
|
1141
|
-
0,
|
|
1142
|
-
{
|
|
1143
|
-
[_hH]: _XABG_,
|
|
1144
|
-
},
|
|
1145
|
-
],
|
|
1146
|
-
[
|
|
1147
|
-
0,
|
|
1148
|
-
{
|
|
1149
|
-
[_hH]: _XABPL,
|
|
1150
|
-
},
|
|
1151
|
-
],
|
|
1152
|
-
[
|
|
1153
|
-
0,
|
|
1154
|
-
{
|
|
1155
|
-
[_hH]: _XABST,
|
|
1156
|
-
},
|
|
1157
|
-
],
|
|
1038
|
+
[0, { [_hH]: _XABT }],
|
|
1039
|
+
[0, { [_hH]: _XABG }],
|
|
1040
|
+
[0, { [_hH]: _XABG_ }],
|
|
1041
|
+
[0, { [_hH]: _XABPL }],
|
|
1042
|
+
[0, { [_hH]: _XABST }],
|
|
1158
1043
|
],
|
|
1159
1044
|
];
|
|
1160
1045
|
export var InvokeModelWithResponseStreamResponse = [
|
|
@@ -1165,24 +1050,9 @@ export var InvokeModelWithResponseStreamResponse = [
|
|
|
1165
1050
|
[_bo, _cT, _pCL, _sTe],
|
|
1166
1051
|
[
|
|
1167
1052
|
[() => ResponseStream, 16],
|
|
1168
|
-
[
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
[_hH]: _XABCT,
|
|
1172
|
-
},
|
|
1173
|
-
],
|
|
1174
|
-
[
|
|
1175
|
-
0,
|
|
1176
|
-
{
|
|
1177
|
-
[_hH]: _XABPL,
|
|
1178
|
-
},
|
|
1179
|
-
],
|
|
1180
|
-
[
|
|
1181
|
-
0,
|
|
1182
|
-
{
|
|
1183
|
-
[_hH]: _XABST,
|
|
1184
|
-
},
|
|
1185
|
-
],
|
|
1053
|
+
[0, { [_hH]: _XABCT }],
|
|
1054
|
+
[0, { [_hH]: _XABPL }],
|
|
1055
|
+
[0, { [_hH]: _XABST }],
|
|
1186
1056
|
],
|
|
1187
1057
|
];
|
|
1188
1058
|
export var ListAsyncInvokesRequest = [
|
|
@@ -1192,48 +1062,13 @@ export var ListAsyncInvokesRequest = [
|
|
|
1192
1062
|
0,
|
|
1193
1063
|
[_sTA, _sTB, _sE, _mR, _nT, _sB, _sO],
|
|
1194
1064
|
[
|
|
1195
|
-
[
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
],
|
|
1201
|
-
[
|
|
1202
|
-
5,
|
|
1203
|
-
{
|
|
1204
|
-
[_hQ]: _sTB,
|
|
1205
|
-
},
|
|
1206
|
-
],
|
|
1207
|
-
[
|
|
1208
|
-
0,
|
|
1209
|
-
{
|
|
1210
|
-
[_hQ]: _sE,
|
|
1211
|
-
},
|
|
1212
|
-
],
|
|
1213
|
-
[
|
|
1214
|
-
1,
|
|
1215
|
-
{
|
|
1216
|
-
[_hQ]: _mR,
|
|
1217
|
-
},
|
|
1218
|
-
],
|
|
1219
|
-
[
|
|
1220
|
-
0,
|
|
1221
|
-
{
|
|
1222
|
-
[_hQ]: _nT,
|
|
1223
|
-
},
|
|
1224
|
-
],
|
|
1225
|
-
[
|
|
1226
|
-
0,
|
|
1227
|
-
{
|
|
1228
|
-
[_hQ]: _sB,
|
|
1229
|
-
},
|
|
1230
|
-
],
|
|
1231
|
-
[
|
|
1232
|
-
0,
|
|
1233
|
-
{
|
|
1234
|
-
[_hQ]: _sO,
|
|
1235
|
-
},
|
|
1236
|
-
],
|
|
1065
|
+
[5, { [_hQ]: _sTA }],
|
|
1066
|
+
[5, { [_hQ]: _sTB }],
|
|
1067
|
+
[0, { [_hQ]: _sE }],
|
|
1068
|
+
[1, { [_hQ]: _mR }],
|
|
1069
|
+
[0, { [_hQ]: _nT }],
|
|
1070
|
+
[0, { [_hQ]: _sB }],
|
|
1071
|
+
[0, { [_hQ]: _sO }],
|
|
1237
1072
|
],
|
|
1238
1073
|
];
|
|
1239
1074
|
export var ListAsyncInvokesResponse = [
|
|
@@ -1251,65 +1086,29 @@ export var ModelErrorException = [
|
|
|
1251
1086
|
-3,
|
|
1252
1087
|
n0,
|
|
1253
1088
|
_MEE,
|
|
1254
|
-
{
|
|
1255
|
-
[_e]: _c,
|
|
1256
|
-
[_hE]: 424,
|
|
1257
|
-
},
|
|
1089
|
+
{ [_e]: _c, [_hE]: 424 },
|
|
1258
1090
|
[_m, _oSC, _rN],
|
|
1259
1091
|
[0, 1, 0],
|
|
1260
1092
|
];
|
|
1261
1093
|
TypeRegistry.for(n0).registerError(ModelErrorException, __ModelErrorException);
|
|
1262
|
-
export var ModelNotReadyException = [
|
|
1263
|
-
-3,
|
|
1264
|
-
n0,
|
|
1265
|
-
_MNRE,
|
|
1266
|
-
{
|
|
1267
|
-
[_e]: _c,
|
|
1268
|
-
[_hE]: 429,
|
|
1269
|
-
},
|
|
1270
|
-
[_m],
|
|
1271
|
-
[0],
|
|
1272
|
-
];
|
|
1094
|
+
export var ModelNotReadyException = [-3, n0, _MNRE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
|
|
1273
1095
|
TypeRegistry.for(n0).registerError(ModelNotReadyException, __ModelNotReadyException);
|
|
1274
1096
|
export var ModelStreamErrorException = [
|
|
1275
1097
|
-3,
|
|
1276
1098
|
n0,
|
|
1277
1099
|
_MSEE,
|
|
1278
|
-
{
|
|
1279
|
-
[_e]: _c,
|
|
1280
|
-
[_hE]: 424,
|
|
1281
|
-
},
|
|
1100
|
+
{ [_e]: _c, [_hE]: 424 },
|
|
1282
1101
|
[_m, _oSC, _oM],
|
|
1283
1102
|
[0, 1, 0],
|
|
1284
1103
|
];
|
|
1285
1104
|
TypeRegistry.for(n0).registerError(ModelStreamErrorException, __ModelStreamErrorException);
|
|
1286
|
-
export var ModelTimeoutException = [
|
|
1287
|
-
-3,
|
|
1288
|
-
n0,
|
|
1289
|
-
_MTE,
|
|
1290
|
-
{
|
|
1291
|
-
[_e]: _c,
|
|
1292
|
-
[_hE]: 408,
|
|
1293
|
-
},
|
|
1294
|
-
[_m],
|
|
1295
|
-
[0],
|
|
1296
|
-
];
|
|
1105
|
+
export var ModelTimeoutException = [-3, n0, _MTE, { [_e]: _c, [_hE]: 408 }, [_m], [0]];
|
|
1297
1106
|
TypeRegistry.for(n0).registerError(ModelTimeoutException, __ModelTimeoutException);
|
|
1298
1107
|
export var PayloadPart = [3, n0, _PP, 8, [_b], [[() => PartBody, 0]]];
|
|
1299
1108
|
export var PerformanceConfiguration = [3, n0, _PC, 0, [_la], [0]];
|
|
1300
1109
|
export var PromptRouterTrace = [3, n0, _PRT, 0, [_iMI], [0]];
|
|
1301
1110
|
export var ReasoningTextBlock = [3, n0, _RTB, 8, [_te, _si], [0, 0]];
|
|
1302
|
-
export var ResourceNotFoundException = [
|
|
1303
|
-
-3,
|
|
1304
|
-
n0,
|
|
1305
|
-
_RNFE,
|
|
1306
|
-
{
|
|
1307
|
-
[_e]: _c,
|
|
1308
|
-
[_hE]: 404,
|
|
1309
|
-
},
|
|
1310
|
-
[_m],
|
|
1311
|
-
[0],
|
|
1312
|
-
];
|
|
1111
|
+
export var ResourceNotFoundException = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
|
|
1313
1112
|
TypeRegistry.for(n0).registerError(ResourceNotFoundException, __ResourceNotFoundException);
|
|
1314
1113
|
export var S3Location = [3, n0, _SL, 0, [_ur, _bO], [0, 0]];
|
|
1315
1114
|
export var SearchResultBlock = [
|
|
@@ -1322,30 +1121,10 @@ export var SearchResultBlock = [
|
|
|
1322
1121
|
];
|
|
1323
1122
|
export var SearchResultContentBlock = [3, n0, _SRCB, 0, [_te], [0]];
|
|
1324
1123
|
export var SearchResultLocation = [3, n0, _SRL, 0, [_sRI, _sta, _end], [1, 1, 1]];
|
|
1325
|
-
export var ServiceQuotaExceededException = [
|
|
1326
|
-
-3,
|
|
1327
|
-
n0,
|
|
1328
|
-
_SQEE,
|
|
1329
|
-
{
|
|
1330
|
-
[_e]: _c,
|
|
1331
|
-
[_hE]: 400,
|
|
1332
|
-
},
|
|
1333
|
-
[_m],
|
|
1334
|
-
[0],
|
|
1335
|
-
];
|
|
1124
|
+
export var ServiceQuotaExceededException = [-3, n0, _SQEE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
1336
1125
|
TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, __ServiceQuotaExceededException);
|
|
1337
1126
|
export var ServiceTier = [3, n0, _ST, 0, [_t], [0]];
|
|
1338
|
-
export var ServiceUnavailableException = [
|
|
1339
|
-
-3,
|
|
1340
|
-
n0,
|
|
1341
|
-
_SUE,
|
|
1342
|
-
{
|
|
1343
|
-
[_e]: _se,
|
|
1344
|
-
[_hE]: 503,
|
|
1345
|
-
},
|
|
1346
|
-
[_m],
|
|
1347
|
-
[0],
|
|
1348
|
-
];
|
|
1127
|
+
export var ServiceUnavailableException = [-3, n0, _SUE, { [_e]: _se, [_hE]: 503 }, [_m], [0]];
|
|
1349
1128
|
TypeRegistry.for(n0).registerError(ServiceUnavailableException, __ServiceUnavailableException);
|
|
1350
1129
|
export var SpecificToolChoice = [3, n0, _STC, 0, [_n], [0]];
|
|
1351
1130
|
export var StartAsyncInvokeRequest = [
|
|
@@ -1359,17 +1138,7 @@ export var StartAsyncInvokeRequest = [
|
|
|
1359
1138
|
export var StartAsyncInvokeResponse = [3, n0, _SAIRt, 0, [_iA], [0]];
|
|
1360
1139
|
export var SystemTool = [3, n0, _STy, 0, [_n], [0]];
|
|
1361
1140
|
export var Tag = [3, n0, _T, 0, [_k, _v], [0, 0]];
|
|
1362
|
-
export var ThrottlingException = [
|
|
1363
|
-
-3,
|
|
1364
|
-
n0,
|
|
1365
|
-
_TE,
|
|
1366
|
-
{
|
|
1367
|
-
[_e]: _c,
|
|
1368
|
-
[_hE]: 429,
|
|
1369
|
-
},
|
|
1370
|
-
[_m],
|
|
1371
|
-
[0],
|
|
1372
|
-
];
|
|
1141
|
+
export var ThrottlingException = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
|
|
1373
1142
|
TypeRegistry.for(n0).registerError(ThrottlingException, __ThrottlingException);
|
|
1374
1143
|
export var TokenUsage = [3, n0, _TU, 0, [_iT, _oT, _tT, _cRIT, _cWIT], [1, 1, 1, 1, 1]];
|
|
1375
1144
|
export var ToolConfiguration = [3, n0, _TC, 0, [_too, _tCo], [() => Tools, () => ToolChoice]];
|
|
@@ -1386,17 +1155,7 @@ export var ToolSpecification = [3, n0, _TS, 0, [_n, _des, _iS], [0, 0, () => Too
|
|
|
1386
1155
|
export var ToolUseBlock = [3, n0, _TUB, 0, [_tUI, _n, _i, _t], [0, 0, 15, 0]];
|
|
1387
1156
|
export var ToolUseBlockDelta = [3, n0, _TUBD, 0, [_i], [0]];
|
|
1388
1157
|
export var ToolUseBlockStart = [3, n0, _TUBS, 0, [_tUI, _n, _t], [0, 0, 0]];
|
|
1389
|
-
export var ValidationException = [
|
|
1390
|
-
-3,
|
|
1391
|
-
n0,
|
|
1392
|
-
_VE,
|
|
1393
|
-
{
|
|
1394
|
-
[_e]: _c,
|
|
1395
|
-
[_hE]: 400,
|
|
1396
|
-
},
|
|
1397
|
-
[_m],
|
|
1398
|
-
[0],
|
|
1399
|
-
];
|
|
1158
|
+
export var ValidationException = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
1400
1159
|
TypeRegistry.for(n0).registerError(ValidationException, __ValidationException);
|
|
1401
1160
|
export var VideoBlock = [3, n0, _VB, 0, [_f, _s], [0, () => VideoSource]];
|
|
1402
1161
|
export var WebLocation = [3, n0, _WL, 0, [_url, _do], [0, 0]];
|
|
@@ -1566,9 +1325,7 @@ export var ConverseStreamOutput = [
|
|
|
1566
1325
|
3,
|
|
1567
1326
|
n0,
|
|
1568
1327
|
_CSO,
|
|
1569
|
-
{
|
|
1570
|
-
[_stre]: 1,
|
|
1571
|
-
},
|
|
1328
|
+
{ [_stre]: 1 },
|
|
1572
1329
|
[_mS, _cBS, _cBD, _cBSo, _mSe, _meta, _iSE, _mSEE, _vE, _tE, _sUE],
|
|
1573
1330
|
[
|
|
1574
1331
|
() => MessageStartEvent,
|
|
@@ -1643,9 +1400,7 @@ export var InvokeModelWithBidirectionalStreamInput = [
|
|
|
1643
1400
|
3,
|
|
1644
1401
|
n0,
|
|
1645
1402
|
_IMWBSI,
|
|
1646
|
-
{
|
|
1647
|
-
[_stre]: 1,
|
|
1648
|
-
},
|
|
1403
|
+
{ [_stre]: 1 },
|
|
1649
1404
|
[_ch],
|
|
1650
1405
|
[[() => BidirectionalInputPayloadPart, 0]],
|
|
1651
1406
|
];
|
|
@@ -1653,9 +1408,7 @@ export var InvokeModelWithBidirectionalStreamOutput = [
|
|
|
1653
1408
|
3,
|
|
1654
1409
|
n0,
|
|
1655
1410
|
_IMWBSO,
|
|
1656
|
-
{
|
|
1657
|
-
[_stre]: 1,
|
|
1658
|
-
},
|
|
1411
|
+
{ [_stre]: 1 },
|
|
1659
1412
|
[_ch, _iSE, _mSEE, _vE, _tE, _mTE, _sUE],
|
|
1660
1413
|
[
|
|
1661
1414
|
[() => BidirectionalOutputPayloadPart, 0],
|
|
@@ -1681,9 +1434,7 @@ export var ResponseStream = [
|
|
|
1681
1434
|
3,
|
|
1682
1435
|
n0,
|
|
1683
1436
|
_RS,
|
|
1684
|
-
{
|
|
1685
|
-
[_stre]: 1,
|
|
1686
|
-
},
|
|
1437
|
+
{ [_stre]: 1 },
|
|
1687
1438
|
[_ch, _iSE, _mSEE, _vE, _tE, _mTE, _sUE],
|
|
1688
1439
|
[
|
|
1689
1440
|
[() => PayloadPart, 0],
|
|
@@ -1734,9 +1485,7 @@ export var ApplyGuardrail = [
|
|
|
1734
1485
|
9,
|
|
1735
1486
|
n0,
|
|
1736
1487
|
_AG,
|
|
1737
|
-
{
|
|
1738
|
-
[_h]: ["POST", "/guardrail/{guardrailIdentifier}/version/{guardrailVersion}/apply", 200],
|
|
1739
|
-
},
|
|
1488
|
+
{ [_h]: ["POST", "/guardrail/{guardrailIdentifier}/version/{guardrailVersion}/apply", 200] },
|
|
1740
1489
|
() => ApplyGuardrailRequest,
|
|
1741
1490
|
() => ApplyGuardrailResponse,
|
|
1742
1491
|
];
|
|
@@ -1744,9 +1493,7 @@ export var Converse = [
|
|
|
1744
1493
|
9,
|
|
1745
1494
|
n0,
|
|
1746
1495
|
_Co,
|
|
1747
|
-
{
|
|
1748
|
-
[_h]: ["POST", "/model/{modelId}/converse", 200],
|
|
1749
|
-
},
|
|
1496
|
+
{ [_h]: ["POST", "/model/{modelId}/converse", 200] },
|
|
1750
1497
|
() => ConverseRequest,
|
|
1751
1498
|
() => ConverseResponse,
|
|
1752
1499
|
];
|
|
@@ -1754,9 +1501,7 @@ export var ConverseStream = [
|
|
|
1754
1501
|
9,
|
|
1755
1502
|
n0,
|
|
1756
1503
|
_CS,
|
|
1757
|
-
{
|
|
1758
|
-
[_h]: ["POST", "/model/{modelId}/converse-stream", 200],
|
|
1759
|
-
},
|
|
1504
|
+
{ [_h]: ["POST", "/model/{modelId}/converse-stream", 200] },
|
|
1760
1505
|
() => ConverseStreamRequest,
|
|
1761
1506
|
() => ConverseStreamResponse,
|
|
1762
1507
|
];
|
|
@@ -1764,9 +1509,7 @@ export var CountTokens = [
|
|
|
1764
1509
|
9,
|
|
1765
1510
|
n0,
|
|
1766
1511
|
_CTo,
|
|
1767
|
-
{
|
|
1768
|
-
[_h]: ["POST", "/model/{modelId}/count-tokens", 200],
|
|
1769
|
-
},
|
|
1512
|
+
{ [_h]: ["POST", "/model/{modelId}/count-tokens", 200] },
|
|
1770
1513
|
() => CountTokensRequest,
|
|
1771
1514
|
() => CountTokensResponse,
|
|
1772
1515
|
];
|
|
@@ -1774,9 +1517,7 @@ export var GetAsyncInvoke = [
|
|
|
1774
1517
|
9,
|
|
1775
1518
|
n0,
|
|
1776
1519
|
_GAI,
|
|
1777
|
-
{
|
|
1778
|
-
[_h]: ["GET", "/async-invoke/{invocationArn}", 200],
|
|
1779
|
-
},
|
|
1520
|
+
{ [_h]: ["GET", "/async-invoke/{invocationArn}", 200] },
|
|
1780
1521
|
() => GetAsyncInvokeRequest,
|
|
1781
1522
|
() => GetAsyncInvokeResponse,
|
|
1782
1523
|
];
|
|
@@ -1784,9 +1525,7 @@ export var InvokeModel = [
|
|
|
1784
1525
|
9,
|
|
1785
1526
|
n0,
|
|
1786
1527
|
_IM,
|
|
1787
|
-
{
|
|
1788
|
-
[_h]: ["POST", "/model/{modelId}/invoke", 200],
|
|
1789
|
-
},
|
|
1528
|
+
{ [_h]: ["POST", "/model/{modelId}/invoke", 200] },
|
|
1790
1529
|
() => InvokeModelRequest,
|
|
1791
1530
|
() => InvokeModelResponse,
|
|
1792
1531
|
];
|
|
@@ -1794,9 +1533,7 @@ export var InvokeModelWithBidirectionalStream = [
|
|
|
1794
1533
|
9,
|
|
1795
1534
|
n0,
|
|
1796
1535
|
_IMWBS,
|
|
1797
|
-
{
|
|
1798
|
-
[_h]: ["POST", "/model/{modelId}/invoke-with-bidirectional-stream", 200],
|
|
1799
|
-
},
|
|
1536
|
+
{ [_h]: ["POST", "/model/{modelId}/invoke-with-bidirectional-stream", 200] },
|
|
1800
1537
|
() => InvokeModelWithBidirectionalStreamRequest,
|
|
1801
1538
|
() => InvokeModelWithBidirectionalStreamResponse,
|
|
1802
1539
|
];
|
|
@@ -1804,9 +1541,7 @@ export var InvokeModelWithResponseStream = [
|
|
|
1804
1541
|
9,
|
|
1805
1542
|
n0,
|
|
1806
1543
|
_IMWRS,
|
|
1807
|
-
{
|
|
1808
|
-
[_h]: ["POST", "/model/{modelId}/invoke-with-response-stream", 200],
|
|
1809
|
-
},
|
|
1544
|
+
{ [_h]: ["POST", "/model/{modelId}/invoke-with-response-stream", 200] },
|
|
1810
1545
|
() => InvokeModelWithResponseStreamRequest,
|
|
1811
1546
|
() => InvokeModelWithResponseStreamResponse,
|
|
1812
1547
|
];
|
|
@@ -1814,9 +1549,7 @@ export var ListAsyncInvokes = [
|
|
|
1814
1549
|
9,
|
|
1815
1550
|
n0,
|
|
1816
1551
|
_LAI,
|
|
1817
|
-
{
|
|
1818
|
-
[_h]: ["GET", "/async-invoke", 200],
|
|
1819
|
-
},
|
|
1552
|
+
{ [_h]: ["GET", "/async-invoke", 200] },
|
|
1820
1553
|
() => ListAsyncInvokesRequest,
|
|
1821
1554
|
() => ListAsyncInvokesResponse,
|
|
1822
1555
|
];
|
|
@@ -1824,9 +1557,7 @@ export var StartAsyncInvoke = [
|
|
|
1824
1557
|
9,
|
|
1825
1558
|
n0,
|
|
1826
1559
|
_SAI,
|
|
1827
|
-
{
|
|
1828
|
-
[_h]: ["POST", "/async-invoke", 200],
|
|
1829
|
-
},
|
|
1560
|
+
{ [_h]: ["POST", "/async-invoke", 200] },
|
|
1830
1561
|
() => StartAsyncInvokeRequest,
|
|
1831
1562
|
() => StartAsyncInvokeResponse,
|
|
1832
1563
|
];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { BedrockRuntimeClient } from "./BedrockRuntimeClient";
|
|
3
3
|
import { ApplyGuardrailCommandInput, ApplyGuardrailCommandOutput } from "./commands/ApplyGuardrailCommand";
|
|
4
4
|
import { ConverseCommandInput, ConverseCommandOutput } from "./commands/ConverseCommand";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { EventStreamInputConfig, EventStreamResolvedConfig } from "@aws-sdk/middleware-eventstream";
|
|
2
|
-
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
|
-
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
4
|
-
import { WebSocketInputConfig, WebSocketResolvedConfig } from "@aws-sdk/middleware-websocket";
|
|
1
|
+
import { type EventStreamInputConfig, type EventStreamResolvedConfig } from "@aws-sdk/middleware-eventstream";
|
|
2
|
+
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
|
+
import { type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
4
|
+
import { type WebSocketInputConfig, type WebSocketResolvedConfig } from "@aws-sdk/middleware-websocket";
|
|
5
5
|
import { EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider } from "@aws-sdk/types";
|
|
6
|
-
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
7
|
-
import { EventStreamSerdeInputConfig, EventStreamSerdeResolvedConfig } from "@smithy/eventstream-serde-config-resolver";
|
|
8
|
-
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
9
|
-
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
10
|
-
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
6
|
+
import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/config-resolver";
|
|
7
|
+
import { type EventStreamSerdeInputConfig, type EventStreamSerdeResolvedConfig } from "@smithy/eventstream-serde-config-resolver";
|
|
8
|
+
import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
9
|
+
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
10
|
+
import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
11
|
+
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
|
|
12
|
+
import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type ClientProtocol, type Decoder as __Decoder, type Encoder as __Encoder, type EventStreamSerdeProvider as __EventStreamSerdeProvider, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type HttpRequest, type HttpResponse, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
|
|
13
|
+
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
14
14
|
import { ApplyGuardrailCommandInput, ApplyGuardrailCommandOutput } from "./commands/ApplyGuardrailCommand";
|
|
15
15
|
import { ConverseCommandInput, ConverseCommandOutput } from "./commands/ConverseCommand";
|
|
16
16
|
import { ConverseStreamCommandInput, ConverseStreamCommandOutput } from "./commands/ConverseStreamCommand";
|
|
@@ -22,7 +22,7 @@ import { InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStrea
|
|
|
22
22
|
import { ListAsyncInvokesCommandInput, ListAsyncInvokesCommandOutput } from "./commands/ListAsyncInvokesCommand";
|
|
23
23
|
import { StartAsyncInvokeCommandInput, StartAsyncInvokeCommandOutput } from "./commands/StartAsyncInvokeCommand";
|
|
24
24
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
25
|
-
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
25
|
+
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
26
26
|
export { __Client };
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AwsCredentialIdentity, AwsCredentialIdentityProvider,
|
|
2
|
-
import { BedrockRuntimeHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
1
|
+
import { type HttpAuthScheme, AwsCredentialIdentity, AwsCredentialIdentityProvider, TokenIdentity, TokenIdentityProvider } from "@smithy/types";
|
|
2
|
+
import type { BedrockRuntimeHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
|
-
import {
|
|
3
|
-
import { BedrockRuntimeClientResolvedConfig } from "../BedrockRuntimeClient";
|
|
2
|
+
import { type HttpAuthScheme, type HttpAuthSchemeParameters, type HttpAuthSchemeParametersProvider, type HttpAuthSchemeProvider, type Provider, HandlerExecutionContext, TokenIdentity, TokenIdentityProvider } from "@smithy/types";
|
|
3
|
+
import { type BedrockRuntimeClientResolvedConfig } from "../BedrockRuntimeClient";
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
-
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
|
|
4
|
-
import { ApplyGuardrailRequest, ApplyGuardrailResponse } from "../models/models_0";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
|
|
4
|
+
import type { ApplyGuardrailRequest, ApplyGuardrailResponse } from "../models/models_0";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
-
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
|
|
4
|
-
import { ConverseRequest, ConverseResponse } from "../models/models_0";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
|
|
4
|
+
import type { ConverseRequest, ConverseResponse } from "../models/models_0";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
-
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
|
|
4
|
-
import { ConverseStreamRequest, ConverseStreamResponse } from "../models/models_0";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
|
|
4
|
+
import type { ConverseStreamRequest, ConverseStreamResponse } from "../models/models_0";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|