@aws-sdk/client-bedrock-agentcore 3.1176.0 → 3.1178.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 +12 -3
- package/dist-es/schemas/schemas_0.js +10 -2
- package/dist-types/commands/InvokeWebSearchCommand.d.ts +6 -0
- package/dist-types/models/models_1.d.ts +16 -0
- package/dist-types/schemas/schemas_0.d.ts +1 -0
- package/dist-types/ts3.4/models/models_1.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -70,7 +70,7 @@ const commonParams = {
|
|
|
70
70
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
var version = "3.
|
|
73
|
+
var version = "3.1177.0";
|
|
74
74
|
var packageInfo = {
|
|
75
75
|
version: version};
|
|
76
76
|
|
|
@@ -1037,6 +1037,7 @@ const _WITT = "WorkloadIdentityTokenType";
|
|
|
1037
1037
|
const _WSF = "WebSearchFilters";
|
|
1038
1038
|
const _WSR = "WebSearchResult";
|
|
1039
1039
|
const _WSRL = "WebSearchResultList";
|
|
1040
|
+
const _WSUL = "WebSearchUserLocation";
|
|
1040
1041
|
const _XABAPAN = "X-Amzn-Bedrock-AgentCore-Payments-Agent-Name";
|
|
1041
1042
|
const _XABAPUI = "X-Amzn-Bedrock-AgentCore-Payments-User-Id";
|
|
1042
1043
|
const _XABARSEU = "X-Amzn-Bedrock-AgentCore-Runtime-Session-Endpoint-Url";
|
|
@@ -1173,6 +1174,7 @@ const _conf = "config";
|
|
|
1173
1174
|
const _confi = "confidence";
|
|
1174
1175
|
const _conv = "conversational";
|
|
1175
1176
|
const _cou = "count";
|
|
1177
|
+
const _coun = "country";
|
|
1176
1178
|
const _cr = "crv";
|
|
1177
1179
|
const _cre = "credentials";
|
|
1178
1180
|
const _cu = "currency";
|
|
@@ -1646,6 +1648,7 @@ const _uI = "userIdentifier";
|
|
|
1646
1648
|
const _uIR = "userIntentResult";
|
|
1647
1649
|
const _uIs = "userId";
|
|
1648
1650
|
const _uIse = "userIntents";
|
|
1651
|
+
const _uL = "userLocation";
|
|
1649
1652
|
const _uM = "userMessages";
|
|
1650
1653
|
const _uT = "userToken";
|
|
1651
1654
|
const _ur = "uri";
|
|
@@ -2934,8 +2937,8 @@ var InvokeHarnessResponse$ = [3, n0, _IHRn,
|
|
|
2934
2937
|
];
|
|
2935
2938
|
var InvokeWebSearchInput$ = [3, n0, _IWSI,
|
|
2936
2939
|
0,
|
|
2937
|
-
[_wSI, _sQ, _mRa, _f],
|
|
2938
|
-
[[0, 1], 0, 1, () => WebSearchFilters$], 2
|
|
2940
|
+
[_wSI, _sQ, _mRa, _f, _uL],
|
|
2941
|
+
[[0, 1], 0, 1, () => WebSearchFilters$, () => WebSearchUserLocation$], 2
|
|
2939
2942
|
];
|
|
2940
2943
|
var InvokeWebSearchOutput$ = [3, n0, _IWSO,
|
|
2941
2944
|
0,
|
|
@@ -3757,6 +3760,11 @@ var WebSearchResult$ = [3, n0, _WSR,
|
|
|
3757
3760
|
[_te, _tit, _url, _pAub],
|
|
3758
3761
|
[0, 0, 0, 5], 1
|
|
3759
3762
|
];
|
|
3763
|
+
var WebSearchUserLocation$ = [3, n0, _WSUL,
|
|
3764
|
+
0,
|
|
3765
|
+
[_coun],
|
|
3766
|
+
[0]
|
|
3767
|
+
];
|
|
3760
3768
|
var __Unit = "unit";
|
|
3761
3769
|
var ABTestSummaryList = [1, n0, _ABTSL,
|
|
3762
3770
|
0, () => ABTestSummary$
|
|
@@ -6326,6 +6334,7 @@ exports.VariantResult$ = VariantResult$;
|
|
|
6326
6334
|
exports.ViewPort$ = ViewPort$;
|
|
6327
6335
|
exports.WebSearchFilters$ = WebSearchFilters$;
|
|
6328
6336
|
exports.WebSearchResult$ = WebSearchResult$;
|
|
6337
|
+
exports.WebSearchUserLocation$ = WebSearchUserLocation$;
|
|
6329
6338
|
exports.errorTypeRegistries = errorTypeRegistries;
|
|
6330
6339
|
exports.paginateListABTests = paginateListABTests;
|
|
6331
6340
|
exports.paginateListActors = paginateListActors;
|
|
@@ -674,6 +674,7 @@ const _WITT = "WorkloadIdentityTokenType";
|
|
|
674
674
|
const _WSF = "WebSearchFilters";
|
|
675
675
|
const _WSR = "WebSearchResult";
|
|
676
676
|
const _WSRL = "WebSearchResultList";
|
|
677
|
+
const _WSUL = "WebSearchUserLocation";
|
|
677
678
|
const _XABAPAN = "X-Amzn-Bedrock-AgentCore-Payments-Agent-Name";
|
|
678
679
|
const _XABAPUI = "X-Amzn-Bedrock-AgentCore-Payments-User-Id";
|
|
679
680
|
const _XABARSEU = "X-Amzn-Bedrock-AgentCore-Runtime-Session-Endpoint-Url";
|
|
@@ -810,6 +811,7 @@ const _conf = "config";
|
|
|
810
811
|
const _confi = "confidence";
|
|
811
812
|
const _conv = "conversational";
|
|
812
813
|
const _cou = "count";
|
|
814
|
+
const _coun = "country";
|
|
813
815
|
const _cr = "crv";
|
|
814
816
|
const _cre = "credentials";
|
|
815
817
|
const _cu = "currency";
|
|
@@ -1283,6 +1285,7 @@ const _uI = "userIdentifier";
|
|
|
1283
1285
|
const _uIR = "userIntentResult";
|
|
1284
1286
|
const _uIs = "userId";
|
|
1285
1287
|
const _uIse = "userIntents";
|
|
1288
|
+
const _uL = "userLocation";
|
|
1286
1289
|
const _uM = "userMessages";
|
|
1287
1290
|
const _uT = "userToken";
|
|
1288
1291
|
const _ur = "uri";
|
|
@@ -2574,8 +2577,8 @@ export var InvokeHarnessResponse$ = [3, n0, _IHRn,
|
|
|
2574
2577
|
];
|
|
2575
2578
|
export var InvokeWebSearchInput$ = [3, n0, _IWSI,
|
|
2576
2579
|
0,
|
|
2577
|
-
[_wSI, _sQ, _mRa, _f],
|
|
2578
|
-
[[0, 1], 0, 1, () => WebSearchFilters$], 2
|
|
2580
|
+
[_wSI, _sQ, _mRa, _f, _uL],
|
|
2581
|
+
[[0, 1], 0, 1, () => WebSearchFilters$, () => WebSearchUserLocation$], 2
|
|
2579
2582
|
];
|
|
2580
2583
|
export var InvokeWebSearchOutput$ = [3, n0, _IWSO,
|
|
2581
2584
|
0,
|
|
@@ -3397,6 +3400,11 @@ export var WebSearchResult$ = [3, n0, _WSR,
|
|
|
3397
3400
|
[_te, _tit, _url, _pAub],
|
|
3398
3401
|
[0, 0, 0, 5], 1
|
|
3399
3402
|
];
|
|
3403
|
+
export var WebSearchUserLocation$ = [3, n0, _WSUL,
|
|
3404
|
+
0,
|
|
3405
|
+
[_coun],
|
|
3406
|
+
[0]
|
|
3407
|
+
];
|
|
3400
3408
|
var __Unit = "unit";
|
|
3401
3409
|
var ABTestSummaryList = [1, n0, _ABTSL,
|
|
3402
3410
|
0, () => ABTestSummary$
|
|
@@ -51,6 +51,9 @@ declare const InvokeWebSearchCommand_base: {
|
|
|
51
51
|
* publishedBefore: new Date("TIMESTAMP"),
|
|
52
52
|
* },
|
|
53
53
|
* },
|
|
54
|
+
* userLocation: { // WebSearchUserLocation
|
|
55
|
+
* country: "STRING_VALUE",
|
|
56
|
+
* },
|
|
54
57
|
* };
|
|
55
58
|
* const command = new InvokeWebSearchCommand(input);
|
|
56
59
|
* const response = await client.send(command);
|
|
@@ -111,6 +114,9 @@ declare const InvokeWebSearchCommand_base: {
|
|
|
111
114
|
* },
|
|
112
115
|
* maxResults: 1,
|
|
113
116
|
* searchQuery: "Amazon Bedrock AgentCore web search",
|
|
117
|
+
* userLocation: {
|
|
118
|
+
* country: "US"
|
|
119
|
+
* },
|
|
114
120
|
* webSearchId: "web-search.v1"
|
|
115
121
|
* };
|
|
116
122
|
* const command = new InvokeWebSearchCommand(input);
|
|
@@ -1157,6 +1157,17 @@ export interface WebSearchFilters {
|
|
|
1157
1157
|
*/
|
|
1158
1158
|
publishedDateFilter?: PublishedDateFilter | undefined;
|
|
1159
1159
|
}
|
|
1160
|
+
/**
|
|
1161
|
+
* <p>The geographic location to use for the web search.</p>
|
|
1162
|
+
* @public
|
|
1163
|
+
*/
|
|
1164
|
+
export interface WebSearchUserLocation {
|
|
1165
|
+
/**
|
|
1166
|
+
* <p>The two-letter ISO 3166-1 alpha-2 country code. The code is case-insensitive.</p>
|
|
1167
|
+
* @public
|
|
1168
|
+
*/
|
|
1169
|
+
country?: string | undefined;
|
|
1170
|
+
}
|
|
1160
1171
|
/**
|
|
1161
1172
|
* <p>Request for the <code>InvokeWebSearch</code> operation.</p>
|
|
1162
1173
|
* @public
|
|
@@ -1182,6 +1193,11 @@ export interface InvokeWebSearchInput {
|
|
|
1182
1193
|
* @public
|
|
1183
1194
|
*/
|
|
1184
1195
|
filters?: WebSearchFilters | undefined;
|
|
1196
|
+
/**
|
|
1197
|
+
* <p> <code>userLocation</code> may allow for Web Search results to be refined for that location. This is done by supplying a <code>country</code>. The field is optional.</p> <p>The value is checked against assigned ISO 3166-1 alpha-2 codes, so unassigned and user-assigned codes such as <code>UK</code> and <code>XK</code>, empty or whitespace-only values are rejected. An omitted value is treated as absent. Without location, as a fallback Web Search may use your query to localize results or default to <code>en_US</code>.</p>
|
|
1198
|
+
* @public
|
|
1199
|
+
*/
|
|
1200
|
+
userLocation?: WebSearchUserLocation | undefined;
|
|
1185
1201
|
}
|
|
1186
1202
|
/**
|
|
1187
1203
|
* <p>A web search result.</p>
|
|
@@ -411,6 +411,7 @@ export declare var VariantResult$: StaticStructureSchema;
|
|
|
411
411
|
export declare var ViewPort$: StaticStructureSchema;
|
|
412
412
|
export declare var WebSearchFilters$: StaticStructureSchema;
|
|
413
413
|
export declare var WebSearchResult$: StaticStructureSchema;
|
|
414
|
+
export declare var WebSearchUserLocation$: StaticStructureSchema;
|
|
414
415
|
export declare var ABTestEvaluationConfig$: StaticUnionSchema;
|
|
415
416
|
export declare var AgentInvocationConfig$: StaticUnionSchema;
|
|
416
417
|
export declare var AgentInvocationDetails$: StaticUnionSchema;
|
|
@@ -615,11 +615,15 @@ export interface WebSearchFilters {
|
|
|
615
615
|
domainFilter?: DomainFilter | undefined;
|
|
616
616
|
publishedDateFilter?: PublishedDateFilter | undefined;
|
|
617
617
|
}
|
|
618
|
+
export interface WebSearchUserLocation {
|
|
619
|
+
country?: string | undefined;
|
|
620
|
+
}
|
|
618
621
|
export interface InvokeWebSearchInput {
|
|
619
622
|
webSearchId: string | undefined;
|
|
620
623
|
searchQuery: string | undefined;
|
|
621
624
|
maxResults?: number | undefined;
|
|
622
625
|
filters?: WebSearchFilters | undefined;
|
|
626
|
+
userLocation?: WebSearchUserLocation | undefined;
|
|
623
627
|
}
|
|
624
628
|
export interface WebSearchResult {
|
|
625
629
|
title?: string | undefined;
|
|
@@ -411,6 +411,7 @@ export declare var VariantResult$: StaticStructureSchema;
|
|
|
411
411
|
export declare var ViewPort$: StaticStructureSchema;
|
|
412
412
|
export declare var WebSearchFilters$: StaticStructureSchema;
|
|
413
413
|
export declare var WebSearchResult$: StaticStructureSchema;
|
|
414
|
+
export declare var WebSearchUserLocation$: StaticStructureSchema;
|
|
414
415
|
export declare var ABTestEvaluationConfig$: StaticUnionSchema;
|
|
415
416
|
export declare var AgentInvocationConfig$: StaticUnionSchema;
|
|
416
417
|
export declare var AgentInvocationDetails$: StaticUnionSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agentcore",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1178.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Bedrock Agentcore Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock-agentcore",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@aws-sdk/core": "^3.981.
|
|
50
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
49
|
+
"@aws-sdk/core": "^3.981.2",
|
|
50
|
+
"@aws-sdk/credential-provider-node": "^3.972.99",
|
|
51
51
|
"@aws-sdk/types": "^3.975.1",
|
|
52
|
-
"@smithy/core": "^3.
|
|
52
|
+
"@smithy/core": "^3.41.1",
|
|
53
53
|
"@smithy/fetch-http-handler": "^5.8.1",
|
|
54
54
|
"@smithy/node-http-handler": "^4.14.2",
|
|
55
55
|
"@smithy/types": "^4.20.0",
|