@aws-sdk/client-bedrock-runtime 3.1049.0 → 3.1051.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/schemas/schemas_0.js +7 -4
- package/dist-es/schemas/schemas_0.js +7 -4
- package/dist-types/commands/InvokeModelCommand.d.ts +1 -0
- package/dist-types/commands/InvokeModelWithResponseStreamCommand.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/package.json +2 -2
|
@@ -185,6 +185,7 @@ const _PVV = "PromptVariableValues";
|
|
|
185
185
|
const _RCB = "ReasoningContentBlock";
|
|
186
186
|
const _RCBD = "ReasoningContentBlockDelta";
|
|
187
187
|
const _RM = "RequestMetadata";
|
|
188
|
+
const _RMJ = "RequestMetadataJson";
|
|
188
189
|
const _RNFE = "ResourceNotFoundException";
|
|
189
190
|
const _RS = "ResponseStream";
|
|
190
191
|
const _RTB = "ReasoningTextBlock";
|
|
@@ -231,6 +232,7 @@ const _XABCT = "X-Amzn-Bedrock-Content-Type";
|
|
|
231
232
|
const _XABG = "X-Amzn-Bedrock-GuardrailIdentifier";
|
|
232
233
|
const _XABG_ = "X-Amzn-Bedrock-GuardrailVersion";
|
|
233
234
|
const _XABPL = "X-Amzn-Bedrock-PerformanceConfig-Latency";
|
|
235
|
+
const _XABRM = "X-Amzn-Bedrock-Request-Metadata";
|
|
234
236
|
const _XABST = "X-Amzn-Bedrock-Service-Tier";
|
|
235
237
|
const _XABT = "X-Amzn-Bedrock-Trace";
|
|
236
238
|
const _a = "action";
|
|
@@ -555,6 +557,7 @@ var GuardrailAutomatedReasoningStatementLogicContent = [0, n0, _GARSLC, 8, 0];
|
|
|
555
557
|
var GuardrailAutomatedReasoningStatementNaturalLanguageContent = [0, n0, _GARSNLC, 8, 0];
|
|
556
558
|
var ModelInputPayload = [0, n0, _MIP, 8, 15];
|
|
557
559
|
var PartBody = [0, n0, _PB, 8, 21];
|
|
560
|
+
var RequestMetadataJson = [0, n0, _RMJ, 8, 0];
|
|
558
561
|
exports.AnyToolChoice$ = [3, n0, _ATC,
|
|
559
562
|
0,
|
|
560
563
|
[],
|
|
@@ -977,8 +980,8 @@ exports.InferenceConfiguration$ = [3, n0, _IC,
|
|
|
977
980
|
];
|
|
978
981
|
exports.InvokeModelRequest$ = [3, n0, _IMR,
|
|
979
982
|
0,
|
|
980
|
-
[_mI, _bo, _cT, _ac, _tr, _gIu, _gV, _pCL, _sTe],
|
|
981
|
-
[[0, 1], [() => Body, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _A }], [0, { [_hH]: _XABT }], [0, { [_hH]: _XABG }], [0, { [_hH]: _XABG_ }], [0, { [_hH]: _XABPL }], [0, { [_hH]: _XABST }]], 1
|
|
983
|
+
[_mI, _bo, _cT, _ac, _tr, _gIu, _gV, _pCL, _sTe, _rM],
|
|
984
|
+
[[0, 1], [() => Body, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _A }], [0, { [_hH]: _XABT }], [0, { [_hH]: _XABG }], [0, { [_hH]: _XABG_ }], [0, { [_hH]: _XABPL }], [0, { [_hH]: _XABST }], [() => RequestMetadataJson, { [_hH]: _XABRM }]], 1
|
|
982
985
|
];
|
|
983
986
|
exports.InvokeModelResponse$ = [3, n0, _IMRn,
|
|
984
987
|
0,
|
|
@@ -1002,8 +1005,8 @@ exports.InvokeModelWithBidirectionalStreamResponse$ = [3, n0, _IMWBSRn,
|
|
|
1002
1005
|
];
|
|
1003
1006
|
exports.InvokeModelWithResponseStreamRequest$ = [3, n0, _IMWRSR,
|
|
1004
1007
|
0,
|
|
1005
|
-
[_mI, _bo, _cT, _ac, _tr, _gIu, _gV, _pCL, _sTe],
|
|
1006
|
-
[[0, 1], [() => Body, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _XABA }], [0, { [_hH]: _XABT }], [0, { [_hH]: _XABG }], [0, { [_hH]: _XABG_ }], [0, { [_hH]: _XABPL }], [0, { [_hH]: _XABST }]], 1
|
|
1008
|
+
[_mI, _bo, _cT, _ac, _tr, _gIu, _gV, _pCL, _sTe, _rM],
|
|
1009
|
+
[[0, 1], [() => Body, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _XABA }], [0, { [_hH]: _XABT }], [0, { [_hH]: _XABG }], [0, { [_hH]: _XABG_ }], [0, { [_hH]: _XABPL }], [0, { [_hH]: _XABST }], [() => RequestMetadataJson, { [_hH]: _XABRM }]], 1
|
|
1007
1010
|
];
|
|
1008
1011
|
exports.InvokeModelWithResponseStreamResponse$ = [3, n0, _IMWRSRn,
|
|
1009
1012
|
0,
|
|
@@ -179,6 +179,7 @@ const _PVV = "PromptVariableValues";
|
|
|
179
179
|
const _RCB = "ReasoningContentBlock";
|
|
180
180
|
const _RCBD = "ReasoningContentBlockDelta";
|
|
181
181
|
const _RM = "RequestMetadata";
|
|
182
|
+
const _RMJ = "RequestMetadataJson";
|
|
182
183
|
const _RNFE = "ResourceNotFoundException";
|
|
183
184
|
const _RS = "ResponseStream";
|
|
184
185
|
const _RTB = "ReasoningTextBlock";
|
|
@@ -225,6 +226,7 @@ const _XABCT = "X-Amzn-Bedrock-Content-Type";
|
|
|
225
226
|
const _XABG = "X-Amzn-Bedrock-GuardrailIdentifier";
|
|
226
227
|
const _XABG_ = "X-Amzn-Bedrock-GuardrailVersion";
|
|
227
228
|
const _XABPL = "X-Amzn-Bedrock-PerformanceConfig-Latency";
|
|
229
|
+
const _XABRM = "X-Amzn-Bedrock-Request-Metadata";
|
|
228
230
|
const _XABST = "X-Amzn-Bedrock-Service-Tier";
|
|
229
231
|
const _XABT = "X-Amzn-Bedrock-Trace";
|
|
230
232
|
const _a = "action";
|
|
@@ -549,6 +551,7 @@ var GuardrailAutomatedReasoningStatementLogicContent = [0, n0, _GARSLC, 8, 0];
|
|
|
549
551
|
var GuardrailAutomatedReasoningStatementNaturalLanguageContent = [0, n0, _GARSNLC, 8, 0];
|
|
550
552
|
var ModelInputPayload = [0, n0, _MIP, 8, 15];
|
|
551
553
|
var PartBody = [0, n0, _PB, 8, 21];
|
|
554
|
+
var RequestMetadataJson = [0, n0, _RMJ, 8, 0];
|
|
552
555
|
export var AnyToolChoice$ = [3, n0, _ATC,
|
|
553
556
|
0,
|
|
554
557
|
[],
|
|
@@ -971,8 +974,8 @@ export var InferenceConfiguration$ = [3, n0, _IC,
|
|
|
971
974
|
];
|
|
972
975
|
export var InvokeModelRequest$ = [3, n0, _IMR,
|
|
973
976
|
0,
|
|
974
|
-
[_mI, _bo, _cT, _ac, _tr, _gIu, _gV, _pCL, _sTe],
|
|
975
|
-
[[0, 1], [() => Body, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _A }], [0, { [_hH]: _XABT }], [0, { [_hH]: _XABG }], [0, { [_hH]: _XABG_ }], [0, { [_hH]: _XABPL }], [0, { [_hH]: _XABST }]], 1
|
|
977
|
+
[_mI, _bo, _cT, _ac, _tr, _gIu, _gV, _pCL, _sTe, _rM],
|
|
978
|
+
[[0, 1], [() => Body, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _A }], [0, { [_hH]: _XABT }], [0, { [_hH]: _XABG }], [0, { [_hH]: _XABG_ }], [0, { [_hH]: _XABPL }], [0, { [_hH]: _XABST }], [() => RequestMetadataJson, { [_hH]: _XABRM }]], 1
|
|
976
979
|
];
|
|
977
980
|
export var InvokeModelResponse$ = [3, n0, _IMRn,
|
|
978
981
|
0,
|
|
@@ -996,8 +999,8 @@ export var InvokeModelWithBidirectionalStreamResponse$ = [3, n0, _IMWBSRn,
|
|
|
996
999
|
];
|
|
997
1000
|
export var InvokeModelWithResponseStreamRequest$ = [3, n0, _IMWRSR,
|
|
998
1001
|
0,
|
|
999
|
-
[_mI, _bo, _cT, _ac, _tr, _gIu, _gV, _pCL, _sTe],
|
|
1000
|
-
[[0, 1], [() => Body, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _XABA }], [0, { [_hH]: _XABT }], [0, { [_hH]: _XABG }], [0, { [_hH]: _XABG_ }], [0, { [_hH]: _XABPL }], [0, { [_hH]: _XABST }]], 1
|
|
1002
|
+
[_mI, _bo, _cT, _ac, _tr, _gIu, _gV, _pCL, _sTe, _rM],
|
|
1003
|
+
[[0, 1], [() => Body, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _XABA }], [0, { [_hH]: _XABT }], [0, { [_hH]: _XABG }], [0, { [_hH]: _XABG_ }], [0, { [_hH]: _XABPL }], [0, { [_hH]: _XABST }], [() => RequestMetadataJson, { [_hH]: _XABRM }]], 1
|
|
1001
1004
|
];
|
|
1002
1005
|
export var InvokeModelWithResponseStreamResponse$ = [3, n0, _IMWRSRn,
|
|
1003
1006
|
0,
|
|
@@ -61,6 +61,7 @@ declare const InvokeModelCommand_base: {
|
|
|
61
61
|
* guardrailVersion: "STRING_VALUE",
|
|
62
62
|
* performanceConfigLatency: "standard" || "optimized",
|
|
63
63
|
* serviceTier: "priority" || "default" || "flex" || "reserved",
|
|
64
|
+
* requestMetadata: "STRING_VALUE",
|
|
64
65
|
* };
|
|
65
66
|
* const command = new InvokeModelCommand(input);
|
|
66
67
|
* const response = await client.send(command);
|
|
@@ -54,6 +54,7 @@ declare const InvokeModelWithResponseStreamCommand_base: {
|
|
|
54
54
|
* guardrailVersion: "STRING_VALUE",
|
|
55
55
|
* performanceConfigLatency: "standard" || "optimized",
|
|
56
56
|
* serviceTier: "priority" || "default" || "flex" || "reserved",
|
|
57
|
+
* requestMetadata: "STRING_VALUE",
|
|
57
58
|
* };
|
|
58
59
|
* const command = new InvokeModelWithResponseStreamCommand(input);
|
|
59
60
|
* const response = await client.send(command);
|
|
@@ -4305,6 +4305,11 @@ export interface InvokeModelRequest {
|
|
|
4305
4305
|
* @public
|
|
4306
4306
|
*/
|
|
4307
4307
|
serviceTier?: ServiceTierType | undefined;
|
|
4308
|
+
/**
|
|
4309
|
+
* <p>Key-value pairs that you can use to filter invocation logs.</p>
|
|
4310
|
+
* @public
|
|
4311
|
+
*/
|
|
4312
|
+
requestMetadata?: string | undefined;
|
|
4308
4313
|
}
|
|
4309
4314
|
/**
|
|
4310
4315
|
* @public
|
|
@@ -4595,6 +4600,11 @@ export interface InvokeModelWithResponseStreamRequest {
|
|
|
4595
4600
|
* @public
|
|
4596
4601
|
*/
|
|
4597
4602
|
serviceTier?: ServiceTierType | undefined;
|
|
4603
|
+
/**
|
|
4604
|
+
* <p>Key-value pairs that you can use to filter invocation logs.</p>
|
|
4605
|
+
* @public
|
|
4606
|
+
*/
|
|
4607
|
+
requestMetadata?: string | undefined;
|
|
4598
4608
|
}
|
|
4599
4609
|
/**
|
|
4600
4610
|
* <p>Payload content included in the response.</p>
|
|
@@ -1954,6 +1954,7 @@ export interface InvokeModelRequest {
|
|
|
1954
1954
|
guardrailVersion?: string | undefined;
|
|
1955
1955
|
performanceConfigLatency?: PerformanceConfigLatency | undefined;
|
|
1956
1956
|
serviceTier?: ServiceTierType | undefined;
|
|
1957
|
+
requestMetadata?: string | undefined;
|
|
1957
1958
|
}
|
|
1958
1959
|
export interface InvokeModelResponse {
|
|
1959
1960
|
body: Uint8Array | undefined;
|
|
@@ -2102,6 +2103,7 @@ export interface InvokeModelWithResponseStreamRequest {
|
|
|
2102
2103
|
guardrailVersion?: string | undefined;
|
|
2103
2104
|
performanceConfigLatency?: PerformanceConfigLatency | undefined;
|
|
2104
2105
|
serviceTier?: ServiceTierType | undefined;
|
|
2106
|
+
requestMetadata?: string | undefined;
|
|
2105
2107
|
}
|
|
2106
2108
|
export interface PayloadPart {
|
|
2107
2109
|
bytes?: Uint8Array | undefined;
|
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.
|
|
4
|
+
"version": "3.1051.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",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@aws-sdk/eventstream-handler-node": "^3.972.16",
|
|
35
35
|
"@aws-sdk/middleware-eventstream": "^3.972.12",
|
|
36
36
|
"@aws-sdk/middleware-websocket": "^3.972.20",
|
|
37
|
-
"@aws-sdk/token-providers": "3.
|
|
37
|
+
"@aws-sdk/token-providers": "3.1051.0",
|
|
38
38
|
"@aws-sdk/types": "^3.973.8",
|
|
39
39
|
"@smithy/core": "^3.24.2",
|
|
40
40
|
"@smithy/fetch-http-handler": "^5.4.2",
|