@aws-sdk/client-bedrock-agent 3.565.0 → 3.568.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
@@ -538,6 +538,7 @@ var KnowledgeBaseType = {
538
538
  VECTOR: "VECTOR"
539
539
  };
540
540
  var KnowledgeBaseStorageType = {
541
+ MONGO_DB_ATLAS: "MONGO_DB_ATLAS",
541
542
  OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
542
543
  PINECONE: "PINECONE",
543
544
  RDS: "RDS",
@@ -205,6 +205,7 @@ export const KnowledgeBaseType = {
205
205
  VECTOR: "VECTOR",
206
206
  };
207
207
  export const KnowledgeBaseStorageType = {
208
+ MONGO_DB_ATLAS: "MONGO_DB_ATLAS",
208
209
  OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
209
210
  PINECONE: "PINECONE",
210
211
  RDS: "RDS",
@@ -76,7 +76,7 @@ declare const CreateKnowledgeBaseCommand_base: {
76
76
  * },
77
77
  * },
78
78
  * storageConfiguration: { // StorageConfiguration
79
- * type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS", // required
79
+ * type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS", // required
80
80
  * opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
81
81
  * collectionArn: "STRING_VALUE", // required
82
82
  * vectorIndexName: "STRING_VALUE", // required
@@ -117,6 +117,19 @@ declare const CreateKnowledgeBaseCommand_base: {
117
117
  * metadataField: "STRING_VALUE", // required
118
118
  * },
119
119
  * },
120
+ * mongoDbAtlasConfiguration: { // MongoDbAtlasConfiguration
121
+ * endpoint: "STRING_VALUE", // required
122
+ * databaseName: "STRING_VALUE", // required
123
+ * collectionName: "STRING_VALUE", // required
124
+ * vectorIndexName: "STRING_VALUE", // required
125
+ * credentialsSecretArn: "STRING_VALUE", // required
126
+ * fieldMapping: { // MongoDbAtlasFieldMapping
127
+ * vectorField: "STRING_VALUE", // required
128
+ * textField: "STRING_VALUE", // required
129
+ * metadataField: "STRING_VALUE", // required
130
+ * },
131
+ * endpointServiceName: "STRING_VALUE",
132
+ * },
120
133
  * },
121
134
  * tags: { // TagsMap
122
135
  * "<keys>": "STRING_VALUE",
@@ -138,7 +151,7 @@ declare const CreateKnowledgeBaseCommand_base: {
138
151
  * // },
139
152
  * // },
140
153
  * // storageConfiguration: { // StorageConfiguration
141
- * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS", // required
154
+ * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS", // required
142
155
  * // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
143
156
  * // collectionArn: "STRING_VALUE", // required
144
157
  * // vectorIndexName: "STRING_VALUE", // required
@@ -179,6 +192,19 @@ declare const CreateKnowledgeBaseCommand_base: {
179
192
  * // metadataField: "STRING_VALUE", // required
180
193
  * // },
181
194
  * // },
195
+ * // mongoDbAtlasConfiguration: { // MongoDbAtlasConfiguration
196
+ * // endpoint: "STRING_VALUE", // required
197
+ * // databaseName: "STRING_VALUE", // required
198
+ * // collectionName: "STRING_VALUE", // required
199
+ * // vectorIndexName: "STRING_VALUE", // required
200
+ * // credentialsSecretArn: "STRING_VALUE", // required
201
+ * // fieldMapping: { // MongoDbAtlasFieldMapping
202
+ * // vectorField: "STRING_VALUE", // required
203
+ * // textField: "STRING_VALUE", // required
204
+ * // metadataField: "STRING_VALUE", // required
205
+ * // },
206
+ * // endpointServiceName: "STRING_VALUE",
207
+ * // },
182
208
  * // },
183
209
  * // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
184
210
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -52,7 +52,7 @@ declare const GetKnowledgeBaseCommand_base: {
52
52
  * // },
53
53
  * // },
54
54
  * // storageConfiguration: { // StorageConfiguration
55
- * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS", // required
55
+ * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS", // required
56
56
  * // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
57
57
  * // collectionArn: "STRING_VALUE", // required
58
58
  * // vectorIndexName: "STRING_VALUE", // required
@@ -93,6 +93,19 @@ declare const GetKnowledgeBaseCommand_base: {
93
93
  * // metadataField: "STRING_VALUE", // required
94
94
  * // },
95
95
  * // },
96
+ * // mongoDbAtlasConfiguration: { // MongoDbAtlasConfiguration
97
+ * // endpoint: "STRING_VALUE", // required
98
+ * // databaseName: "STRING_VALUE", // required
99
+ * // collectionName: "STRING_VALUE", // required
100
+ * // vectorIndexName: "STRING_VALUE", // required
101
+ * // credentialsSecretArn: "STRING_VALUE", // required
102
+ * // fieldMapping: { // MongoDbAtlasFieldMapping
103
+ * // vectorField: "STRING_VALUE", // required
104
+ * // textField: "STRING_VALUE", // required
105
+ * // metadataField: "STRING_VALUE", // required
106
+ * // },
107
+ * // endpointServiceName: "STRING_VALUE",
108
+ * // },
96
109
  * // },
97
110
  * // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
98
111
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -64,7 +64,7 @@ declare const UpdateKnowledgeBaseCommand_base: {
64
64
  * },
65
65
  * },
66
66
  * storageConfiguration: { // StorageConfiguration
67
- * type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS", // required
67
+ * type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS", // required
68
68
  * opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
69
69
  * collectionArn: "STRING_VALUE", // required
70
70
  * vectorIndexName: "STRING_VALUE", // required
@@ -105,6 +105,19 @@ declare const UpdateKnowledgeBaseCommand_base: {
105
105
  * metadataField: "STRING_VALUE", // required
106
106
  * },
107
107
  * },
108
+ * mongoDbAtlasConfiguration: { // MongoDbAtlasConfiguration
109
+ * endpoint: "STRING_VALUE", // required
110
+ * databaseName: "STRING_VALUE", // required
111
+ * collectionName: "STRING_VALUE", // required
112
+ * vectorIndexName: "STRING_VALUE", // required
113
+ * credentialsSecretArn: "STRING_VALUE", // required
114
+ * fieldMapping: { // MongoDbAtlasFieldMapping
115
+ * vectorField: "STRING_VALUE", // required
116
+ * textField: "STRING_VALUE", // required
117
+ * metadataField: "STRING_VALUE", // required
118
+ * },
119
+ * endpointServiceName: "STRING_VALUE",
120
+ * },
108
121
  * },
109
122
  * };
110
123
  * const command = new UpdateKnowledgeBaseCommand(input);
@@ -123,7 +136,7 @@ declare const UpdateKnowledgeBaseCommand_base: {
123
136
  * // },
124
137
  * // },
125
138
  * // storageConfiguration: { // StorageConfiguration
126
- * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS", // required
139
+ * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS", // required
127
140
  * // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
128
141
  * // collectionArn: "STRING_VALUE", // required
129
142
  * // vectorIndexName: "STRING_VALUE", // required
@@ -164,6 +177,19 @@ declare const UpdateKnowledgeBaseCommand_base: {
164
177
  * // metadataField: "STRING_VALUE", // required
165
178
  * // },
166
179
  * // },
180
+ * // mongoDbAtlasConfiguration: { // MongoDbAtlasConfiguration
181
+ * // endpoint: "STRING_VALUE", // required
182
+ * // databaseName: "STRING_VALUE", // required
183
+ * // collectionName: "STRING_VALUE", // required
184
+ * // vectorIndexName: "STRING_VALUE", // required
185
+ * // credentialsSecretArn: "STRING_VALUE", // required
186
+ * // fieldMapping: { // MongoDbAtlasFieldMapping
187
+ * // vectorField: "STRING_VALUE", // required
188
+ * // textField: "STRING_VALUE", // required
189
+ * // metadataField: "STRING_VALUE", // required
190
+ * // },
191
+ * // endpointServiceName: "STRING_VALUE",
192
+ * // },
167
193
  * // },
168
194
  * // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
169
195
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -1888,7 +1888,7 @@ export interface S3DataSourceConfiguration {
1888
1888
  */
1889
1889
  inclusionPrefixes?: string[];
1890
1890
  /**
1891
- * <p>The account ID for the owner of the S3 bucket.</p>
1891
+ * <p>The bucket account owner ID for the S3 bucket.</p>
1892
1892
  * @public
1893
1893
  */
1894
1894
  bucketOwnerAccountId?: string;
@@ -2027,7 +2027,7 @@ export interface CreateDataSourceRequest {
2027
2027
  */
2028
2028
  dataSourceConfiguration: DataSourceConfiguration | undefined;
2029
2029
  /**
2030
- * <p>The deletion policy for the requested data source</p>
2030
+ * <p>The data deletion policy assigned to the data source.</p>
2031
2031
  * @public
2032
2032
  */
2033
2033
  dataDeletionPolicy?: DataDeletionPolicy;
@@ -2109,7 +2109,7 @@ export interface DataSource {
2109
2109
  */
2110
2110
  vectorIngestionConfiguration?: VectorIngestionConfiguration;
2111
2111
  /**
2112
- * <p>The deletion policy for the data source.</p>
2112
+ * <p>The data deletion policy for a data source.</p>
2113
2113
  * @public
2114
2114
  */
2115
2115
  dataDeletionPolicy?: DataDeletionPolicy;
@@ -2124,7 +2124,7 @@ export interface DataSource {
2124
2124
  */
2125
2125
  updatedAt: Date | undefined;
2126
2126
  /**
2127
- * <p>The details of the failure reasons related to the data source.</p>
2127
+ * <p>The detailed reasons on the failure to delete a data source.</p>
2128
2128
  * @public
2129
2129
  */
2130
2130
  failureReasons?: string[];
@@ -2300,7 +2300,7 @@ export interface UpdateDataSourceRequest {
2300
2300
  */
2301
2301
  dataSourceConfiguration: DataSourceConfiguration | undefined;
2302
2302
  /**
2303
- * <p>The data deletion policy of the updated data source.</p>
2303
+ * <p>The data deletion policy assigned to the data source.</p>
2304
2304
  * @public
2305
2305
  */
2306
2306
  dataDeletionPolicy?: DataDeletionPolicy;
@@ -2772,6 +2772,68 @@ export interface KnowledgeBaseConfiguration {
2772
2772
  */
2773
2773
  vectorKnowledgeBaseConfiguration?: VectorKnowledgeBaseConfiguration;
2774
2774
  }
2775
+ /**
2776
+ * <p>Contains the names of the fields to which to map information about the vector store.</p>
2777
+ * @public
2778
+ */
2779
+ export interface MongoDbAtlasFieldMapping {
2780
+ /**
2781
+ * <p>The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.</p>
2782
+ * @public
2783
+ */
2784
+ vectorField: string | undefined;
2785
+ /**
2786
+ * <p>The name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.</p>
2787
+ * @public
2788
+ */
2789
+ textField: string | undefined;
2790
+ /**
2791
+ * <p>The name of the field in which Amazon Bedrock stores metadata about the vector store.</p>
2792
+ * @public
2793
+ */
2794
+ metadataField: string | undefined;
2795
+ }
2796
+ /**
2797
+ * <p>Contains details about the storage configuration of the knowledge base in MongoDB Atlas. </p>
2798
+ * @public
2799
+ */
2800
+ export interface MongoDbAtlasConfiguration {
2801
+ /**
2802
+ * <p>The endpoint URL of your MongoDB Atlas cluster for your knowledge base.</p>
2803
+ * @public
2804
+ */
2805
+ endpoint: string | undefined;
2806
+ /**
2807
+ * <p>The database name in your MongoDB Atlas cluster for your knowledge base.</p>
2808
+ * @public
2809
+ */
2810
+ databaseName: string | undefined;
2811
+ /**
2812
+ * <p>The collection name of the knowledge base in MongoDB Atlas.</p>
2813
+ * @public
2814
+ */
2815
+ collectionName: string | undefined;
2816
+ /**
2817
+ * <p>The name of the MongoDB Atlas vector search index.</p>
2818
+ * @public
2819
+ */
2820
+ vectorIndexName: string | undefined;
2821
+ /**
2822
+ * <p>The Amazon Resource Name (ARN) of the secret that you created in Secrets Manager that contains user credentials for your MongoDB Atlas cluster.</p>
2823
+ * @public
2824
+ */
2825
+ credentialsSecretArn: string | undefined;
2826
+ /**
2827
+ * <p>Contains the names of the fields to which to map information about the vector store.</p>
2828
+ * @public
2829
+ */
2830
+ fieldMapping: MongoDbAtlasFieldMapping | undefined;
2831
+ /**
2832
+ * <p>The name of the VPC endpoint service in your account that is connected to your MongoDB Atlas cluster.</p>
2833
+ * @public
2834
+ */
2835
+ endpointServiceName?: string;
2836
+ }
2775
2837
  /**
2776
2838
  * <p>Contains the names of the fields to which to map information about the vector store.</p>
2777
2839
  * @public
@@ -2965,6 +3027,7 @@ export interface RedisEnterpriseCloudConfiguration {
2965
3027
  * @enum
2966
3028
  */
2967
3029
  export declare const KnowledgeBaseStorageType: {
3030
+ readonly MONGO_DB_ATLAS: "MONGO_DB_ATLAS";
2968
3031
  readonly OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS";
2969
3032
  readonly PINECONE: "PINECONE";
2970
3033
  readonly RDS: "RDS";
@@ -3004,6 +3067,11 @@ export interface StorageConfiguration {
3004
3067
  * @public
3005
3068
  */
3006
3069
  rdsConfiguration?: RdsConfiguration;
3070
+ /**
3071
+ * <p>Contains the storage configuration of the knowledge base in MongoDB Atlas.</p>
3072
+ * @public
3073
+ */
3074
+ mongoDbAtlasConfiguration?: MongoDbAtlasConfiguration;
3007
3075
  }
3008
3076
  /**
3009
3077
  * @public
@@ -745,6 +745,20 @@ export interface KnowledgeBaseConfiguration {
745
745
  type: KnowledgeBaseType | undefined;
746
746
  vectorKnowledgeBaseConfiguration?: VectorKnowledgeBaseConfiguration;
747
747
  }
748
+ export interface MongoDbAtlasFieldMapping {
749
+ vectorField: string | undefined;
750
+ textField: string | undefined;
751
+ metadataField: string | undefined;
752
+ }
753
+ export interface MongoDbAtlasConfiguration {
754
+ endpoint: string | undefined;
755
+ databaseName: string | undefined;
756
+ collectionName: string | undefined;
757
+ vectorIndexName: string | undefined;
758
+ credentialsSecretArn: string | undefined;
759
+ fieldMapping: MongoDbAtlasFieldMapping | undefined;
760
+ endpointServiceName?: string;
761
+ }
748
762
  export interface OpenSearchServerlessFieldMapping {
749
763
  vectorField: string | undefined;
750
764
  textField: string | undefined;
@@ -790,6 +804,7 @@ export interface RedisEnterpriseCloudConfiguration {
790
804
  fieldMapping: RedisEnterpriseCloudFieldMapping | undefined;
791
805
  }
792
806
  export declare const KnowledgeBaseStorageType: {
807
+ readonly MONGO_DB_ATLAS: "MONGO_DB_ATLAS";
793
808
  readonly OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS";
794
809
  readonly PINECONE: "PINECONE";
795
810
  readonly RDS: "RDS";
@@ -803,6 +818,7 @@ export interface StorageConfiguration {
803
818
  pineconeConfiguration?: PineconeConfiguration;
804
819
  redisEnterpriseCloudConfiguration?: RedisEnterpriseCloudConfiguration;
805
820
  rdsConfiguration?: RdsConfiguration;
821
+ mongoDbAtlasConfiguration?: MongoDbAtlasConfiguration;
806
822
  }
807
823
  export interface CreateKnowledgeBaseRequest {
808
824
  clientToken?: string;
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.565.0",
4
+ "version": "3.568.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,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/core": "3.556.0",
24
- "@aws-sdk/credential-provider-node": "3.565.0",
25
- "@aws-sdk/middleware-host-header": "3.535.0",
26
- "@aws-sdk/middleware-logger": "3.535.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.535.0",
28
- "@aws-sdk/middleware-user-agent": "3.540.0",
29
- "@aws-sdk/region-config-resolver": "3.535.0",
30
- "@aws-sdk/types": "3.535.0",
31
- "@aws-sdk/util-endpoints": "3.540.0",
32
- "@aws-sdk/util-user-agent-browser": "3.535.0",
33
- "@aws-sdk/util-user-agent-node": "3.535.0",
23
+ "@aws-sdk/core": "3.567.0",
24
+ "@aws-sdk/credential-provider-node": "3.568.0",
25
+ "@aws-sdk/middleware-host-header": "3.567.0",
26
+ "@aws-sdk/middleware-logger": "3.568.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.567.0",
28
+ "@aws-sdk/middleware-user-agent": "3.567.0",
29
+ "@aws-sdk/region-config-resolver": "3.567.0",
30
+ "@aws-sdk/types": "3.567.0",
31
+ "@aws-sdk/util-endpoints": "3.567.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.567.0",
33
+ "@aws-sdk/util-user-agent-node": "3.568.0",
34
34
  "@smithy/config-resolver": "^2.2.0",
35
35
  "@smithy/core": "^1.4.2",
36
36
  "@smithy/fetch-http-handler": "^2.5.0",
@@ -60,9 +60,8 @@
60
60
  "uuid": "^9.0.1"
61
61
  },
62
62
  "devDependencies": {
63
- "@smithy/service-client-documentation-generator": "^2.2.0",
64
- "@tsconfig/node14": "1.0.3",
65
- "@types/node": "^14.14.31",
63
+ "@tsconfig/node16": "16.1.3",
64
+ "@types/node": "^16.18.96",
66
65
  "@types/uuid": "^9.0.4",
67
66
  "concurrently": "7.0.0",
68
67
  "downlevel-dts": "0.10.1",
@@ -70,7 +69,7 @@
70
69
  "typescript": "~4.9.5"
71
70
  },
72
71
  "engines": {
73
- "node": ">=14.0.0"
72
+ "node": ">=16.0.0"
74
73
  },
75
74
  "typesVersions": {
76
75
  "<4.0": {