@aws-sdk/client-bedrock-agent 3.774.0 → 3.775.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/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-cjs/index.js +29 -18
- package/dist-es/BedrockAgentClient.js +2 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-es/endpoint/EndpointParameters.js +2 -3
- package/dist-es/models/models_1.js +8 -0
- package/dist-es/runtimeExtensions.js +2 -14
- package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +22 -2
- package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +11 -1
- package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +22 -2
- package/dist-types/models/models_0.d.ts +2 -2
- package/dist-types/models/models_1.d.ts +61 -0
- package/dist-types/ts3.4/models/models_1.d.ts +18 -0
- package/package.json +33 -33
|
@@ -40,8 +40,6 @@ const defaultBedrockAgentHttpAuthSchemeProvider = (authParameters) => {
|
|
|
40
40
|
exports.defaultBedrockAgentHttpAuthSchemeProvider = defaultBedrockAgentHttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
42
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
-
return {
|
|
44
|
-
...config_0,
|
|
45
|
-
};
|
|
43
|
+
return Object.assign(config_0, {});
|
|
46
44
|
};
|
|
47
45
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/index.js
CHANGED
|
@@ -191,6 +191,7 @@ __export(index_exports, {
|
|
|
191
191
|
MetadataSourceType: () => MetadataSourceType,
|
|
192
192
|
MetadataValueType: () => MetadataValueType,
|
|
193
193
|
NeptuneAnalyticsConfigurationFilterSensitiveLog: () => NeptuneAnalyticsConfigurationFilterSensitiveLog,
|
|
194
|
+
OpenSearchManagedClusterConfigurationFilterSensitiveLog: () => OpenSearchManagedClusterConfigurationFilterSensitiveLog,
|
|
194
195
|
OrchestrationExecutor: () => OrchestrationExecutor,
|
|
195
196
|
OrchestrationType: () => OrchestrationType,
|
|
196
197
|
ParsingModality: () => ParsingModality,
|
|
@@ -322,12 +323,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
|
322
323
|
|
|
323
324
|
// src/endpoint/EndpointParameters.ts
|
|
324
325
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
325
|
-
return {
|
|
326
|
-
...options,
|
|
326
|
+
return Object.assign(options, {
|
|
327
327
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
328
328
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
329
329
|
defaultSigningName: "bedrock"
|
|
330
|
-
};
|
|
330
|
+
});
|
|
331
331
|
}, "resolveClientEndpointParameters");
|
|
332
332
|
var commonParams = {
|
|
333
333
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -384,22 +384,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
|
384
384
|
}, "resolveHttpAuthRuntimeConfig");
|
|
385
385
|
|
|
386
386
|
// src/runtimeExtensions.ts
|
|
387
|
-
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
388
387
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
389
|
-
const extensionConfiguration =
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
388
|
+
const extensionConfiguration = Object.assign(
|
|
389
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
390
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
391
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
392
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
393
|
+
);
|
|
395
394
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
396
|
-
return
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
395
|
+
return Object.assign(
|
|
396
|
+
runtimeConfig,
|
|
397
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
398
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
399
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
400
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
401
|
+
);
|
|
403
402
|
}, "resolveRuntimeExtensions");
|
|
404
403
|
|
|
405
404
|
// src/BedrockAgentClient.ts
|
|
@@ -413,6 +412,8 @@ var BedrockAgentClient = class extends import_smithy_client.Client {
|
|
|
413
412
|
config;
|
|
414
413
|
constructor(...[configuration]) {
|
|
415
414
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
415
|
+
super(_config_0);
|
|
416
|
+
this.initConfig = _config_0;
|
|
416
417
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
417
418
|
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
418
419
|
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
@@ -421,7 +422,6 @@ var BedrockAgentClient = class extends import_smithy_client.Client {
|
|
|
421
422
|
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
422
423
|
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
423
424
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
424
|
-
super(_config_8);
|
|
425
425
|
this.config = _config_8;
|
|
426
426
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
427
427
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
@@ -4916,6 +4916,7 @@ var SupplementalDataStorageLocationType = {
|
|
|
4916
4916
|
var KnowledgeBaseStorageType = {
|
|
4917
4917
|
MONGO_DB_ATLAS: "MONGO_DB_ATLAS",
|
|
4918
4918
|
NEPTUNE_ANALYTICS: "NEPTUNE_ANALYTICS",
|
|
4919
|
+
OPENSEARCH_MANAGED_CLUSTER: "OPENSEARCH_MANAGED_CLUSTER",
|
|
4919
4920
|
OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
|
|
4920
4921
|
PINECONE: "PINECONE",
|
|
4921
4922
|
RDS: "RDS",
|
|
@@ -5012,8 +5013,17 @@ var NeptuneAnalyticsConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((ob
|
|
|
5012
5013
|
...obj,
|
|
5013
5014
|
...obj.graphArn && { graphArn: import_smithy_client.SENSITIVE_STRING }
|
|
5014
5015
|
}), "NeptuneAnalyticsConfigurationFilterSensitiveLog");
|
|
5016
|
+
var OpenSearchManagedClusterConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
5017
|
+
...obj,
|
|
5018
|
+
...obj.vectorIndexName && { vectorIndexName: import_smithy_client.SENSITIVE_STRING }
|
|
5019
|
+
}), "OpenSearchManagedClusterConfigurationFilterSensitiveLog");
|
|
5015
5020
|
var StorageConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
5016
5021
|
...obj,
|
|
5022
|
+
...obj.opensearchManagedClusterConfiguration && {
|
|
5023
|
+
opensearchManagedClusterConfiguration: OpenSearchManagedClusterConfigurationFilterSensitiveLog(
|
|
5024
|
+
obj.opensearchManagedClusterConfiguration
|
|
5025
|
+
)
|
|
5026
|
+
},
|
|
5017
5027
|
...obj.neptuneAnalyticsConfiguration && {
|
|
5018
5028
|
neptuneAnalyticsConfiguration: NeptuneAnalyticsConfigurationFilterSensitiveLog(obj.neptuneAnalyticsConfiguration)
|
|
5019
5029
|
}
|
|
@@ -6461,6 +6471,7 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
|
|
|
6461
6471
|
SqlKnowledgeBaseConfigurationFilterSensitiveLog,
|
|
6462
6472
|
KnowledgeBaseConfigurationFilterSensitiveLog,
|
|
6463
6473
|
NeptuneAnalyticsConfigurationFilterSensitiveLog,
|
|
6474
|
+
OpenSearchManagedClusterConfigurationFilterSensitiveLog,
|
|
6464
6475
|
StorageConfigurationFilterSensitiveLog,
|
|
6465
6476
|
CreateKnowledgeBaseRequestFilterSensitiveLog,
|
|
6466
6477
|
KnowledgeBaseFilterSensitiveLog,
|
|
@@ -17,6 +17,8 @@ export class BedrockAgentClient extends __Client {
|
|
|
17
17
|
config;
|
|
18
18
|
constructor(...[configuration]) {
|
|
19
19
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
20
|
+
super(_config_0);
|
|
21
|
+
this.initConfig = _config_0;
|
|
20
22
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
23
|
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
22
24
|
const _config_3 = resolveRetryConfig(_config_2);
|
|
@@ -25,7 +27,6 @@ export class BedrockAgentClient extends __Client {
|
|
|
25
27
|
const _config_6 = resolveEndpointConfig(_config_5);
|
|
26
28
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
27
29
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
28
|
-
super(_config_8);
|
|
29
30
|
this.config = _config_8;
|
|
30
31
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
32
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -35,7 +35,5 @@ export const defaultBedrockAgentHttpAuthSchemeProvider = (authParameters) => {
|
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
37
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
-
return {
|
|
39
|
-
...config_0,
|
|
40
|
-
};
|
|
38
|
+
return Object.assign(config_0, {});
|
|
41
39
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
-
return {
|
|
3
|
-
...options,
|
|
2
|
+
return Object.assign(options, {
|
|
4
3
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
5
4
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
6
5
|
defaultSigningName: "bedrock",
|
|
7
|
-
};
|
|
6
|
+
});
|
|
8
7
|
};
|
|
9
8
|
export const commonParams = {
|
|
10
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -75,6 +75,7 @@ export const SupplementalDataStorageLocationType = {
|
|
|
75
75
|
export const KnowledgeBaseStorageType = {
|
|
76
76
|
MONGO_DB_ATLAS: "MONGO_DB_ATLAS",
|
|
77
77
|
NEPTUNE_ANALYTICS: "NEPTUNE_ANALYTICS",
|
|
78
|
+
OPENSEARCH_MANAGED_CLUSTER: "OPENSEARCH_MANAGED_CLUSTER",
|
|
78
79
|
OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
|
|
79
80
|
PINECONE: "PINECONE",
|
|
80
81
|
RDS: "RDS",
|
|
@@ -172,8 +173,15 @@ export const NeptuneAnalyticsConfigurationFilterSensitiveLog = (obj) => ({
|
|
|
172
173
|
...obj,
|
|
173
174
|
...(obj.graphArn && { graphArn: SENSITIVE_STRING }),
|
|
174
175
|
});
|
|
176
|
+
export const OpenSearchManagedClusterConfigurationFilterSensitiveLog = (obj) => ({
|
|
177
|
+
...obj,
|
|
178
|
+
...(obj.vectorIndexName && { vectorIndexName: SENSITIVE_STRING }),
|
|
179
|
+
});
|
|
175
180
|
export const StorageConfigurationFilterSensitiveLog = (obj) => ({
|
|
176
181
|
...obj,
|
|
182
|
+
...(obj.opensearchManagedClusterConfiguration && {
|
|
183
|
+
opensearchManagedClusterConfiguration: OpenSearchManagedClusterConfigurationFilterSensitiveLog(obj.opensearchManagedClusterConfiguration),
|
|
184
|
+
}),
|
|
177
185
|
...(obj.neptuneAnalyticsConfiguration && {
|
|
178
186
|
neptuneAnalyticsConfiguration: NeptuneAnalyticsConfigurationFilterSensitiveLog(obj.neptuneAnalyticsConfiguration),
|
|
179
187
|
}),
|
|
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
|
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
-
const asPartial = (t) => t;
|
|
6
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const extensionConfiguration =
|
|
8
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
-
};
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
13
7
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
-
return
|
|
15
|
-
...runtimeConfig,
|
|
16
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
-
};
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
21
9
|
};
|
|
@@ -157,7 +157,7 @@ declare const CreateKnowledgeBaseCommand_base: {
|
|
|
157
157
|
* },
|
|
158
158
|
* },
|
|
159
159
|
* storageConfiguration: { // StorageConfiguration
|
|
160
|
-
* type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS", // required
|
|
160
|
+
* type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS" || "OPENSEARCH_MANAGED_CLUSTER", // required
|
|
161
161
|
* opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
|
|
162
162
|
* collectionArn: "STRING_VALUE", // required
|
|
163
163
|
* vectorIndexName: "STRING_VALUE", // required
|
|
@@ -167,6 +167,16 @@ declare const CreateKnowledgeBaseCommand_base: {
|
|
|
167
167
|
* metadataField: "STRING_VALUE", // required
|
|
168
168
|
* },
|
|
169
169
|
* },
|
|
170
|
+
* opensearchManagedClusterConfiguration: { // OpenSearchManagedClusterConfiguration
|
|
171
|
+
* domainEndpoint: "STRING_VALUE", // required
|
|
172
|
+
* domainArn: "STRING_VALUE", // required
|
|
173
|
+
* vectorIndexName: "STRING_VALUE", // required
|
|
174
|
+
* fieldMapping: { // OpenSearchManagedClusterFieldMapping
|
|
175
|
+
* vectorField: "STRING_VALUE", // required
|
|
176
|
+
* textField: "STRING_VALUE", // required
|
|
177
|
+
* metadataField: "STRING_VALUE", // required
|
|
178
|
+
* },
|
|
179
|
+
* },
|
|
170
180
|
* pineconeConfiguration: { // PineconeConfiguration
|
|
171
181
|
* connectionString: "STRING_VALUE", // required
|
|
172
182
|
* credentialsSecretArn: "STRING_VALUE", // required
|
|
@@ -319,7 +329,7 @@ declare const CreateKnowledgeBaseCommand_base: {
|
|
|
319
329
|
* // },
|
|
320
330
|
* // },
|
|
321
331
|
* // storageConfiguration: { // StorageConfiguration
|
|
322
|
-
* // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS", // required
|
|
332
|
+
* // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS" || "OPENSEARCH_MANAGED_CLUSTER", // required
|
|
323
333
|
* // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
|
|
324
334
|
* // collectionArn: "STRING_VALUE", // required
|
|
325
335
|
* // vectorIndexName: "STRING_VALUE", // required
|
|
@@ -329,6 +339,16 @@ declare const CreateKnowledgeBaseCommand_base: {
|
|
|
329
339
|
* // metadataField: "STRING_VALUE", // required
|
|
330
340
|
* // },
|
|
331
341
|
* // },
|
|
342
|
+
* // opensearchManagedClusterConfiguration: { // OpenSearchManagedClusterConfiguration
|
|
343
|
+
* // domainEndpoint: "STRING_VALUE", // required
|
|
344
|
+
* // domainArn: "STRING_VALUE", // required
|
|
345
|
+
* // vectorIndexName: "STRING_VALUE", // required
|
|
346
|
+
* // fieldMapping: { // OpenSearchManagedClusterFieldMapping
|
|
347
|
+
* // vectorField: "STRING_VALUE", // required
|
|
348
|
+
* // textField: "STRING_VALUE", // required
|
|
349
|
+
* // metadataField: "STRING_VALUE", // required
|
|
350
|
+
* // },
|
|
351
|
+
* // },
|
|
332
352
|
* // pineconeConfiguration: { // PineconeConfiguration
|
|
333
353
|
* // connectionString: "STRING_VALUE", // required
|
|
334
354
|
* // credentialsSecretArn: "STRING_VALUE", // required
|
|
@@ -133,7 +133,7 @@ declare const GetKnowledgeBaseCommand_base: {
|
|
|
133
133
|
* // },
|
|
134
134
|
* // },
|
|
135
135
|
* // storageConfiguration: { // StorageConfiguration
|
|
136
|
-
* // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS", // required
|
|
136
|
+
* // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS" || "OPENSEARCH_MANAGED_CLUSTER", // required
|
|
137
137
|
* // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
|
|
138
138
|
* // collectionArn: "STRING_VALUE", // required
|
|
139
139
|
* // vectorIndexName: "STRING_VALUE", // required
|
|
@@ -143,6 +143,16 @@ declare const GetKnowledgeBaseCommand_base: {
|
|
|
143
143
|
* // metadataField: "STRING_VALUE", // required
|
|
144
144
|
* // },
|
|
145
145
|
* // },
|
|
146
|
+
* // opensearchManagedClusterConfiguration: { // OpenSearchManagedClusterConfiguration
|
|
147
|
+
* // domainEndpoint: "STRING_VALUE", // required
|
|
148
|
+
* // domainArn: "STRING_VALUE", // required
|
|
149
|
+
* // vectorIndexName: "STRING_VALUE", // required
|
|
150
|
+
* // fieldMapping: { // OpenSearchManagedClusterFieldMapping
|
|
151
|
+
* // vectorField: "STRING_VALUE", // required
|
|
152
|
+
* // textField: "STRING_VALUE", // required
|
|
153
|
+
* // metadataField: "STRING_VALUE", // required
|
|
154
|
+
* // },
|
|
155
|
+
* // },
|
|
146
156
|
* // pineconeConfiguration: { // PineconeConfiguration
|
|
147
157
|
* // connectionString: "STRING_VALUE", // required
|
|
148
158
|
* // credentialsSecretArn: "STRING_VALUE", // required
|
|
@@ -145,7 +145,7 @@ declare const UpdateKnowledgeBaseCommand_base: {
|
|
|
145
145
|
* },
|
|
146
146
|
* },
|
|
147
147
|
* storageConfiguration: { // StorageConfiguration
|
|
148
|
-
* type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS", // required
|
|
148
|
+
* type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS" || "OPENSEARCH_MANAGED_CLUSTER", // required
|
|
149
149
|
* opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
|
|
150
150
|
* collectionArn: "STRING_VALUE", // required
|
|
151
151
|
* vectorIndexName: "STRING_VALUE", // required
|
|
@@ -155,6 +155,16 @@ declare const UpdateKnowledgeBaseCommand_base: {
|
|
|
155
155
|
* metadataField: "STRING_VALUE", // required
|
|
156
156
|
* },
|
|
157
157
|
* },
|
|
158
|
+
* opensearchManagedClusterConfiguration: { // OpenSearchManagedClusterConfiguration
|
|
159
|
+
* domainEndpoint: "STRING_VALUE", // required
|
|
160
|
+
* domainArn: "STRING_VALUE", // required
|
|
161
|
+
* vectorIndexName: "STRING_VALUE", // required
|
|
162
|
+
* fieldMapping: { // OpenSearchManagedClusterFieldMapping
|
|
163
|
+
* vectorField: "STRING_VALUE", // required
|
|
164
|
+
* textField: "STRING_VALUE", // required
|
|
165
|
+
* metadataField: "STRING_VALUE", // required
|
|
166
|
+
* },
|
|
167
|
+
* },
|
|
158
168
|
* pineconeConfiguration: { // PineconeConfiguration
|
|
159
169
|
* connectionString: "STRING_VALUE", // required
|
|
160
170
|
* credentialsSecretArn: "STRING_VALUE", // required
|
|
@@ -304,7 +314,7 @@ declare const UpdateKnowledgeBaseCommand_base: {
|
|
|
304
314
|
* // },
|
|
305
315
|
* // },
|
|
306
316
|
* // storageConfiguration: { // StorageConfiguration
|
|
307
|
-
* // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS", // required
|
|
317
|
+
* // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS" || "OPENSEARCH_MANAGED_CLUSTER", // required
|
|
308
318
|
* // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
|
|
309
319
|
* // collectionArn: "STRING_VALUE", // required
|
|
310
320
|
* // vectorIndexName: "STRING_VALUE", // required
|
|
@@ -314,6 +324,16 @@ declare const UpdateKnowledgeBaseCommand_base: {
|
|
|
314
324
|
* // metadataField: "STRING_VALUE", // required
|
|
315
325
|
* // },
|
|
316
326
|
* // },
|
|
327
|
+
* // opensearchManagedClusterConfiguration: { // OpenSearchManagedClusterConfiguration
|
|
328
|
+
* // domainEndpoint: "STRING_VALUE", // required
|
|
329
|
+
* // domainArn: "STRING_VALUE", // required
|
|
330
|
+
* // vectorIndexName: "STRING_VALUE", // required
|
|
331
|
+
* // fieldMapping: { // OpenSearchManagedClusterFieldMapping
|
|
332
|
+
* // vectorField: "STRING_VALUE", // required
|
|
333
|
+
* // textField: "STRING_VALUE", // required
|
|
334
|
+
* // metadataField: "STRING_VALUE", // required
|
|
335
|
+
* // },
|
|
336
|
+
* // },
|
|
317
337
|
* // pineconeConfiguration: { // PineconeConfiguration
|
|
318
338
|
* // connectionString: "STRING_VALUE", // required
|
|
319
339
|
* // credentialsSecretArn: "STRING_VALUE", // required
|
|
@@ -831,7 +831,7 @@ export interface UpdateAgentActionGroupRequest {
|
|
|
831
831
|
* <p>The configuration settings for a computer use action.</p>
|
|
832
832
|
* <important>
|
|
833
833
|
* <p>
|
|
834
|
-
* Computer use is a new Anthropic Claude model capability (in beta) available with Claude 3.7 and Claude 3.5 Sonnet v2 only. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html">Configure an Amazon Bedrock Agent to complete tasks with computer use tools</a>.
|
|
834
|
+
* Computer use is a new Anthropic Claude model capability (in beta) available with Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html">Configure an Amazon Bedrock Agent to complete tasks with computer use tools</a>.
|
|
835
835
|
* </p>
|
|
836
836
|
* </important>
|
|
837
837
|
* @public
|
|
@@ -3371,7 +3371,7 @@ export interface BedrockFoundationModelContextEnrichmentConfiguration {
|
|
|
3371
3371
|
*/
|
|
3372
3372
|
enrichmentStrategyConfiguration: EnrichmentStrategyConfiguration | undefined;
|
|
3373
3373
|
/**
|
|
3374
|
-
* <p>The Amazon Resource Name (ARN) of the
|
|
3374
|
+
* <p>The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.</p>
|
|
3375
3375
|
* @public
|
|
3376
3376
|
*/
|
|
3377
3377
|
modelArn: string | undefined;
|
|
@@ -1215,6 +1215,55 @@ export interface NeptuneAnalyticsConfiguration {
|
|
|
1215
1215
|
*/
|
|
1216
1216
|
fieldMapping: NeptuneAnalyticsFieldMapping | undefined;
|
|
1217
1217
|
}
|
|
1218
|
+
/**
|
|
1219
|
+
* <p>Contains the names of the fields to which to map information about the vector store.</p>
|
|
1220
|
+
* @public
|
|
1221
|
+
*/
|
|
1222
|
+
export interface OpenSearchManagedClusterFieldMapping {
|
|
1223
|
+
/**
|
|
1224
|
+
* <p>The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.</p>
|
|
1225
|
+
* @public
|
|
1226
|
+
*/
|
|
1227
|
+
vectorField: string | undefined;
|
|
1228
|
+
/**
|
|
1229
|
+
* <p>The name of the field in which Amazon Bedrock stores the raw text from your data. The text
|
|
1230
|
+
* is split according to the chunking strategy you choose.</p>
|
|
1231
|
+
* @public
|
|
1232
|
+
*/
|
|
1233
|
+
textField: string | undefined;
|
|
1234
|
+
/**
|
|
1235
|
+
* <p>The name of the field in which Amazon Bedrock stores metadata about the vector store.</p>
|
|
1236
|
+
* @public
|
|
1237
|
+
*/
|
|
1238
|
+
metadataField: string | undefined;
|
|
1239
|
+
}
|
|
1240
|
+
/**
|
|
1241
|
+
* <p>Contains details about the Managed Cluster configuration of the knowledge base in Amazon OpenSearch Service. For more information,
|
|
1242
|
+
* see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-osm.html">Create a vector index in OpenSearch Managed Cluster</a>.</p>
|
|
1243
|
+
* @public
|
|
1244
|
+
*/
|
|
1245
|
+
export interface OpenSearchManagedClusterConfiguration {
|
|
1246
|
+
/**
|
|
1247
|
+
* <p>The endpoint URL the OpenSearch domain.</p>
|
|
1248
|
+
* @public
|
|
1249
|
+
*/
|
|
1250
|
+
domainEndpoint: string | undefined;
|
|
1251
|
+
/**
|
|
1252
|
+
* <p>The Amazon Resource Name (ARN) of the OpenSearch domain.</p>
|
|
1253
|
+
* @public
|
|
1254
|
+
*/
|
|
1255
|
+
domainArn: string | undefined;
|
|
1256
|
+
/**
|
|
1257
|
+
* <p>The name of the vector store.</p>
|
|
1258
|
+
* @public
|
|
1259
|
+
*/
|
|
1260
|
+
vectorIndexName: string | undefined;
|
|
1261
|
+
/**
|
|
1262
|
+
* <p>Contains the names of the fields to which to map information about the vector store.</p>
|
|
1263
|
+
* @public
|
|
1264
|
+
*/
|
|
1265
|
+
fieldMapping: OpenSearchManagedClusterFieldMapping | undefined;
|
|
1266
|
+
}
|
|
1218
1267
|
/**
|
|
1219
1268
|
* <p>Contains the names of the fields to which to map information about the vector store.</p>
|
|
1220
1269
|
* @public
|
|
@@ -1410,6 +1459,7 @@ export interface RedisEnterpriseCloudConfiguration {
|
|
|
1410
1459
|
export declare const KnowledgeBaseStorageType: {
|
|
1411
1460
|
readonly MONGO_DB_ATLAS: "MONGO_DB_ATLAS";
|
|
1412
1461
|
readonly NEPTUNE_ANALYTICS: "NEPTUNE_ANALYTICS";
|
|
1462
|
+
readonly OPENSEARCH_MANAGED_CLUSTER: "OPENSEARCH_MANAGED_CLUSTER";
|
|
1413
1463
|
readonly OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS";
|
|
1414
1464
|
readonly PINECONE: "PINECONE";
|
|
1415
1465
|
readonly RDS: "RDS";
|
|
@@ -1434,6 +1484,13 @@ export interface StorageConfiguration {
|
|
|
1434
1484
|
* @public
|
|
1435
1485
|
*/
|
|
1436
1486
|
opensearchServerlessConfiguration?: OpenSearchServerlessConfiguration | undefined;
|
|
1487
|
+
/**
|
|
1488
|
+
* <p>Contains details about the storage configuration of the knowledge base in OpenSearch Managed
|
|
1489
|
+
* Cluster. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-osm.html">Create
|
|
1490
|
+
* a vector index in Amazon OpenSearch Service</a>.</p>
|
|
1491
|
+
* @public
|
|
1492
|
+
*/
|
|
1493
|
+
opensearchManagedClusterConfiguration?: OpenSearchManagedClusterConfiguration | undefined;
|
|
1437
1494
|
/**
|
|
1438
1495
|
* <p>Contains the storage configuration of the knowledge base in Pinecone.</p>
|
|
1439
1496
|
* @public
|
|
@@ -2691,6 +2748,10 @@ export declare const KnowledgeBaseConfigurationFilterSensitiveLog: (obj: Knowled
|
|
|
2691
2748
|
* @internal
|
|
2692
2749
|
*/
|
|
2693
2750
|
export declare const NeptuneAnalyticsConfigurationFilterSensitiveLog: (obj: NeptuneAnalyticsConfiguration) => any;
|
|
2751
|
+
/**
|
|
2752
|
+
* @internal
|
|
2753
|
+
*/
|
|
2754
|
+
export declare const OpenSearchManagedClusterConfigurationFilterSensitiveLog: (obj: OpenSearchManagedClusterConfiguration) => any;
|
|
2694
2755
|
/**
|
|
2695
2756
|
* @internal
|
|
2696
2757
|
*/
|
|
@@ -352,6 +352,17 @@ export interface NeptuneAnalyticsConfiguration {
|
|
|
352
352
|
graphArn: string | undefined;
|
|
353
353
|
fieldMapping: NeptuneAnalyticsFieldMapping | undefined;
|
|
354
354
|
}
|
|
355
|
+
export interface OpenSearchManagedClusterFieldMapping {
|
|
356
|
+
vectorField: string | undefined;
|
|
357
|
+
textField: string | undefined;
|
|
358
|
+
metadataField: string | undefined;
|
|
359
|
+
}
|
|
360
|
+
export interface OpenSearchManagedClusterConfiguration {
|
|
361
|
+
domainEndpoint: string | undefined;
|
|
362
|
+
domainArn: string | undefined;
|
|
363
|
+
vectorIndexName: string | undefined;
|
|
364
|
+
fieldMapping: OpenSearchManagedClusterFieldMapping | undefined;
|
|
365
|
+
}
|
|
355
366
|
export interface OpenSearchServerlessFieldMapping {
|
|
356
367
|
vectorField: string | undefined;
|
|
357
368
|
textField: string | undefined;
|
|
@@ -399,6 +410,7 @@ export interface RedisEnterpriseCloudConfiguration {
|
|
|
399
410
|
export declare const KnowledgeBaseStorageType: {
|
|
400
411
|
readonly MONGO_DB_ATLAS: "MONGO_DB_ATLAS";
|
|
401
412
|
readonly NEPTUNE_ANALYTICS: "NEPTUNE_ANALYTICS";
|
|
413
|
+
readonly OPENSEARCH_MANAGED_CLUSTER: "OPENSEARCH_MANAGED_CLUSTER";
|
|
402
414
|
readonly OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS";
|
|
403
415
|
readonly PINECONE: "PINECONE";
|
|
404
416
|
readonly RDS: "RDS";
|
|
@@ -411,6 +423,9 @@ export interface StorageConfiguration {
|
|
|
411
423
|
opensearchServerlessConfiguration?:
|
|
412
424
|
| OpenSearchServerlessConfiguration
|
|
413
425
|
| undefined;
|
|
426
|
+
opensearchManagedClusterConfiguration?:
|
|
427
|
+
| OpenSearchManagedClusterConfiguration
|
|
428
|
+
| undefined;
|
|
414
429
|
pineconeConfiguration?: PineconeConfiguration | undefined;
|
|
415
430
|
redisEnterpriseCloudConfiguration?:
|
|
416
431
|
| RedisEnterpriseCloudConfiguration
|
|
@@ -759,6 +774,9 @@ export declare const KnowledgeBaseConfigurationFilterSensitiveLog: (
|
|
|
759
774
|
export declare const NeptuneAnalyticsConfigurationFilterSensitiveLog: (
|
|
760
775
|
obj: NeptuneAnalyticsConfiguration
|
|
761
776
|
) => any;
|
|
777
|
+
export declare const OpenSearchManagedClusterConfigurationFilterSensitiveLog: (
|
|
778
|
+
obj: OpenSearchManagedClusterConfiguration
|
|
779
|
+
) => any;
|
|
762
780
|
export declare const StorageConfigurationFilterSensitiveLog: (
|
|
763
781
|
obj: StorageConfiguration
|
|
764
782
|
) => any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agent",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Agent Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.775.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-agent",
|
|
@@ -20,41 +20,41 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
26
|
-
"@aws-sdk/middleware-logger": "3.
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
30
|
-
"@aws-sdk/types": "3.
|
|
31
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
34
|
-
"@smithy/config-resolver": "^4.0
|
|
35
|
-
"@smithy/core": "^3.
|
|
36
|
-
"@smithy/fetch-http-handler": "^5.0.
|
|
37
|
-
"@smithy/hash-node": "^4.0.
|
|
38
|
-
"@smithy/invalid-dependency": "^4.0.
|
|
39
|
-
"@smithy/middleware-content-length": "^4.0.
|
|
40
|
-
"@smithy/middleware-endpoint": "^4.0
|
|
41
|
-
"@smithy/middleware-retry": "^4.0
|
|
42
|
-
"@smithy/middleware-serde": "^4.0.
|
|
43
|
-
"@smithy/middleware-stack": "^4.0.
|
|
44
|
-
"@smithy/node-config-provider": "^4.0.
|
|
45
|
-
"@smithy/node-http-handler": "^4.0.
|
|
46
|
-
"@smithy/protocol-http": "^5.0
|
|
47
|
-
"@smithy/smithy-client": "^4.
|
|
48
|
-
"@smithy/types": "^4.
|
|
49
|
-
"@smithy/url-parser": "^4.0.
|
|
23
|
+
"@aws-sdk/core": "3.775.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.775.0",
|
|
25
|
+
"@aws-sdk/middleware-host-header": "3.775.0",
|
|
26
|
+
"@aws-sdk/middleware-logger": "3.775.0",
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.775.0",
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.775.0",
|
|
29
|
+
"@aws-sdk/region-config-resolver": "3.775.0",
|
|
30
|
+
"@aws-sdk/types": "3.775.0",
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.775.0",
|
|
32
|
+
"@aws-sdk/util-user-agent-browser": "3.775.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.775.0",
|
|
34
|
+
"@smithy/config-resolver": "^4.1.0",
|
|
35
|
+
"@smithy/core": "^3.2.0",
|
|
36
|
+
"@smithy/fetch-http-handler": "^5.0.2",
|
|
37
|
+
"@smithy/hash-node": "^4.0.2",
|
|
38
|
+
"@smithy/invalid-dependency": "^4.0.2",
|
|
39
|
+
"@smithy/middleware-content-length": "^4.0.2",
|
|
40
|
+
"@smithy/middleware-endpoint": "^4.1.0",
|
|
41
|
+
"@smithy/middleware-retry": "^4.1.0",
|
|
42
|
+
"@smithy/middleware-serde": "^4.0.3",
|
|
43
|
+
"@smithy/middleware-stack": "^4.0.2",
|
|
44
|
+
"@smithy/node-config-provider": "^4.0.2",
|
|
45
|
+
"@smithy/node-http-handler": "^4.0.4",
|
|
46
|
+
"@smithy/protocol-http": "^5.1.0",
|
|
47
|
+
"@smithy/smithy-client": "^4.2.0",
|
|
48
|
+
"@smithy/types": "^4.2.0",
|
|
49
|
+
"@smithy/url-parser": "^4.0.2",
|
|
50
50
|
"@smithy/util-base64": "^4.0.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^4.0.0",
|
|
52
52
|
"@smithy/util-body-length-node": "^4.0.0",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^4.0.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^4.0.
|
|
55
|
-
"@smithy/util-endpoints": "^3.0.
|
|
56
|
-
"@smithy/util-middleware": "^4.0.
|
|
57
|
-
"@smithy/util-retry": "^4.0.
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^4.0.8",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^4.0.8",
|
|
55
|
+
"@smithy/util-endpoints": "^3.0.2",
|
|
56
|
+
"@smithy/util-middleware": "^4.0.2",
|
|
57
|
+
"@smithy/util-retry": "^4.0.2",
|
|
58
58
|
"@smithy/util-utf8": "^4.0.0",
|
|
59
59
|
"@types/uuid": "^9.0.1",
|
|
60
60
|
"tslib": "^2.6.2",
|