@aws-sdk/client-bedrock-agent 3.705.0 → 3.706.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 +154 -27
- package/dist-es/commands/CreateKnowledgeBaseCommand.js +2 -1
- package/dist-es/commands/GetKnowledgeBaseCommand.js +2 -1
- package/dist-es/commands/UpdateKnowledgeBaseCommand.js +2 -1
- package/dist-es/models/models_0.js +5 -9
- package/dist-es/models/models_1.js +94 -1
- package/dist-types/commands/CreateDataSourceCommand.d.ts +12 -4
- package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +150 -2
- package/dist-types/commands/GetDataSourceCommand.d.ts +6 -2
- package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +75 -1
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +12 -4
- package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +150 -2
- package/dist-types/models/models_0.d.ts +42 -59
- package/dist-types/models/models_1.d.ts +488 -4
- package/dist-types/ts3.4/models/models_0.d.ts +14 -14
- package/dist-types/ts3.4/models/models_1.d.ts +181 -4
- package/package.json +1 -1
|
@@ -5,18 +5,30 @@ import {
|
|
|
5
5
|
AgentStatus,
|
|
6
6
|
AgentVersion,
|
|
7
7
|
AgentVersionSummary,
|
|
8
|
+
ByteContentDoc,
|
|
8
9
|
ContentDataSourceType,
|
|
9
10
|
CustomDocumentIdentifier,
|
|
10
11
|
FlowDefinition,
|
|
11
12
|
FlowValidation,
|
|
12
|
-
InlineContent,
|
|
13
13
|
KnowledgeBaseDocumentDetail,
|
|
14
14
|
KnowledgeBaseState,
|
|
15
15
|
PromptInferenceConfiguration,
|
|
16
16
|
PromptTemplateConfiguration,
|
|
17
17
|
PromptTemplateType,
|
|
18
18
|
S3Location,
|
|
19
|
+
TextContentDoc,
|
|
19
20
|
} from "./models_0";
|
|
21
|
+
export declare const InlineContentType: {
|
|
22
|
+
readonly BYTE: "BYTE";
|
|
23
|
+
readonly TEXT: "TEXT";
|
|
24
|
+
};
|
|
25
|
+
export type InlineContentType =
|
|
26
|
+
(typeof InlineContentType)[keyof typeof InlineContentType];
|
|
27
|
+
export interface InlineContent {
|
|
28
|
+
type: InlineContentType | undefined;
|
|
29
|
+
byteContent?: ByteContentDoc | undefined;
|
|
30
|
+
textContent?: TextContentDoc | undefined;
|
|
31
|
+
}
|
|
20
32
|
export interface CustomS3Location {
|
|
21
33
|
uri: string | undefined;
|
|
22
34
|
bucketOwnerAccountId?: string | undefined;
|
|
@@ -104,7 +116,117 @@ export interface AssociateAgentKnowledgeBaseRequest {
|
|
|
104
116
|
export interface AssociateAgentKnowledgeBaseResponse {
|
|
105
117
|
agentKnowledgeBase: AgentKnowledgeBase | undefined;
|
|
106
118
|
}
|
|
119
|
+
export interface KendraKnowledgeBaseConfiguration {
|
|
120
|
+
kendraIndexArn: string | undefined;
|
|
121
|
+
}
|
|
122
|
+
export declare const RedshiftProvisionedAuthType: {
|
|
123
|
+
readonly IAM: "IAM";
|
|
124
|
+
readonly USERNAME: "USERNAME";
|
|
125
|
+
readonly USERNAME_PASSWORD: "USERNAME_PASSWORD";
|
|
126
|
+
};
|
|
127
|
+
export type RedshiftProvisionedAuthType =
|
|
128
|
+
(typeof RedshiftProvisionedAuthType)[keyof typeof RedshiftProvisionedAuthType];
|
|
129
|
+
export interface RedshiftProvisionedAuthConfiguration {
|
|
130
|
+
type: RedshiftProvisionedAuthType | undefined;
|
|
131
|
+
databaseUser?: string | undefined;
|
|
132
|
+
usernamePasswordSecretArn?: string | undefined;
|
|
133
|
+
}
|
|
134
|
+
export interface RedshiftProvisionedConfiguration {
|
|
135
|
+
clusterIdentifier: string | undefined;
|
|
136
|
+
authConfiguration: RedshiftProvisionedAuthConfiguration | undefined;
|
|
137
|
+
}
|
|
138
|
+
export declare const RedshiftServerlessAuthType: {
|
|
139
|
+
readonly IAM: "IAM";
|
|
140
|
+
readonly USERNAME_PASSWORD: "USERNAME_PASSWORD";
|
|
141
|
+
};
|
|
142
|
+
export type RedshiftServerlessAuthType =
|
|
143
|
+
(typeof RedshiftServerlessAuthType)[keyof typeof RedshiftServerlessAuthType];
|
|
144
|
+
export interface RedshiftServerlessAuthConfiguration {
|
|
145
|
+
type: RedshiftServerlessAuthType | undefined;
|
|
146
|
+
usernamePasswordSecretArn?: string | undefined;
|
|
147
|
+
}
|
|
148
|
+
export interface RedshiftServerlessConfiguration {
|
|
149
|
+
workgroupArn: string | undefined;
|
|
150
|
+
authConfiguration: RedshiftServerlessAuthConfiguration | undefined;
|
|
151
|
+
}
|
|
152
|
+
export declare const RedshiftQueryEngineType: {
|
|
153
|
+
readonly PROVISIONED: "PROVISIONED";
|
|
154
|
+
readonly SERVERLESS: "SERVERLESS";
|
|
155
|
+
};
|
|
156
|
+
export type RedshiftQueryEngineType =
|
|
157
|
+
(typeof RedshiftQueryEngineType)[keyof typeof RedshiftQueryEngineType];
|
|
158
|
+
export interface RedshiftQueryEngineConfiguration {
|
|
159
|
+
type: RedshiftQueryEngineType | undefined;
|
|
160
|
+
serverlessConfiguration?: RedshiftServerlessConfiguration | undefined;
|
|
161
|
+
provisionedConfiguration?: RedshiftProvisionedConfiguration | undefined;
|
|
162
|
+
}
|
|
163
|
+
export interface CuratedQuery {
|
|
164
|
+
naturalLanguage: string | undefined;
|
|
165
|
+
sql: string | undefined;
|
|
166
|
+
}
|
|
167
|
+
export declare const IncludeExclude: {
|
|
168
|
+
readonly EXCLUDE: "EXCLUDE";
|
|
169
|
+
readonly INCLUDE: "INCLUDE";
|
|
170
|
+
};
|
|
171
|
+
export type IncludeExclude =
|
|
172
|
+
(typeof IncludeExclude)[keyof typeof IncludeExclude];
|
|
173
|
+
export interface QueryGenerationColumn {
|
|
174
|
+
name?: string | undefined;
|
|
175
|
+
description?: string | undefined;
|
|
176
|
+
inclusion?: IncludeExclude | undefined;
|
|
177
|
+
}
|
|
178
|
+
export interface QueryGenerationTable {
|
|
179
|
+
name: string | undefined;
|
|
180
|
+
description?: string | undefined;
|
|
181
|
+
inclusion?: IncludeExclude | undefined;
|
|
182
|
+
columns?: QueryGenerationColumn[] | undefined;
|
|
183
|
+
}
|
|
184
|
+
export interface QueryGenerationContext {
|
|
185
|
+
tables?: QueryGenerationTable[] | undefined;
|
|
186
|
+
curatedQueries?: CuratedQuery[] | undefined;
|
|
187
|
+
}
|
|
188
|
+
export interface QueryGenerationConfiguration {
|
|
189
|
+
executionTimeoutSeconds?: number | undefined;
|
|
190
|
+
generationContext?: QueryGenerationContext | undefined;
|
|
191
|
+
}
|
|
192
|
+
export interface RedshiftQueryEngineAwsDataCatalogStorageConfiguration {
|
|
193
|
+
tableNames: string[] | undefined;
|
|
194
|
+
}
|
|
195
|
+
export interface RedshiftQueryEngineRedshiftStorageConfiguration {
|
|
196
|
+
databaseName: string | undefined;
|
|
197
|
+
}
|
|
198
|
+
export declare const RedshiftQueryEngineStorageType: {
|
|
199
|
+
readonly AWS_DATA_CATALOG: "AWS_DATA_CATALOG";
|
|
200
|
+
readonly REDSHIFT: "REDSHIFT";
|
|
201
|
+
};
|
|
202
|
+
export type RedshiftQueryEngineStorageType =
|
|
203
|
+
(typeof RedshiftQueryEngineStorageType)[keyof typeof RedshiftQueryEngineStorageType];
|
|
204
|
+
export interface RedshiftQueryEngineStorageConfiguration {
|
|
205
|
+
type: RedshiftQueryEngineStorageType | undefined;
|
|
206
|
+
awsDataCatalogConfiguration?:
|
|
207
|
+
| RedshiftQueryEngineAwsDataCatalogStorageConfiguration
|
|
208
|
+
| undefined;
|
|
209
|
+
redshiftConfiguration?:
|
|
210
|
+
| RedshiftQueryEngineRedshiftStorageConfiguration
|
|
211
|
+
| undefined;
|
|
212
|
+
}
|
|
213
|
+
export interface RedshiftConfiguration {
|
|
214
|
+
storageConfigurations: RedshiftQueryEngineStorageConfiguration[] | undefined;
|
|
215
|
+
queryEngineConfiguration: RedshiftQueryEngineConfiguration | undefined;
|
|
216
|
+
queryGenerationConfiguration?: QueryGenerationConfiguration | undefined;
|
|
217
|
+
}
|
|
218
|
+
export declare const QueryEngineType: {
|
|
219
|
+
readonly REDSHIFT: "REDSHIFT";
|
|
220
|
+
};
|
|
221
|
+
export type QueryEngineType =
|
|
222
|
+
(typeof QueryEngineType)[keyof typeof QueryEngineType];
|
|
223
|
+
export interface SqlKnowledgeBaseConfiguration {
|
|
224
|
+
type: QueryEngineType | undefined;
|
|
225
|
+
redshiftConfiguration?: RedshiftConfiguration | undefined;
|
|
226
|
+
}
|
|
107
227
|
export declare const KnowledgeBaseType: {
|
|
228
|
+
readonly KENDRA: "KENDRA";
|
|
229
|
+
readonly SQL: "SQL";
|
|
108
230
|
readonly VECTOR: "VECTOR";
|
|
109
231
|
};
|
|
110
232
|
export type KnowledgeBaseType =
|
|
@@ -124,15 +246,34 @@ export interface EmbeddingModelConfiguration {
|
|
|
124
246
|
| BedrockEmbeddingModelConfiguration
|
|
125
247
|
| undefined;
|
|
126
248
|
}
|
|
249
|
+
export declare const SupplementalDataStorageLocationType: {
|
|
250
|
+
readonly S3: "S3";
|
|
251
|
+
};
|
|
252
|
+
export type SupplementalDataStorageLocationType =
|
|
253
|
+
(typeof SupplementalDataStorageLocationType)[keyof typeof SupplementalDataStorageLocationType];
|
|
254
|
+
export interface SupplementalDataStorageLocation {
|
|
255
|
+
type: SupplementalDataStorageLocationType | undefined;
|
|
256
|
+
s3Location?: S3Location | undefined;
|
|
257
|
+
}
|
|
258
|
+
export interface SupplementalDataStorageConfiguration {
|
|
259
|
+
storageLocations: SupplementalDataStorageLocation[] | undefined;
|
|
260
|
+
}
|
|
127
261
|
export interface VectorKnowledgeBaseConfiguration {
|
|
128
262
|
embeddingModelArn: string | undefined;
|
|
129
263
|
embeddingModelConfiguration?: EmbeddingModelConfiguration | undefined;
|
|
264
|
+
supplementalDataStorageConfiguration?:
|
|
265
|
+
| SupplementalDataStorageConfiguration
|
|
266
|
+
| undefined;
|
|
130
267
|
}
|
|
131
268
|
export interface KnowledgeBaseConfiguration {
|
|
132
269
|
type: KnowledgeBaseType | undefined;
|
|
133
270
|
vectorKnowledgeBaseConfiguration?:
|
|
134
271
|
| VectorKnowledgeBaseConfiguration
|
|
135
272
|
| undefined;
|
|
273
|
+
kendraKnowledgeBaseConfiguration?:
|
|
274
|
+
| KendraKnowledgeBaseConfiguration
|
|
275
|
+
| undefined;
|
|
276
|
+
sqlKnowledgeBaseConfiguration?: SqlKnowledgeBaseConfiguration | undefined;
|
|
136
277
|
}
|
|
137
278
|
export interface MongoDbAtlasFieldMapping {
|
|
138
279
|
vectorField: string | undefined;
|
|
@@ -219,7 +360,7 @@ export interface CreateKnowledgeBaseRequest {
|
|
|
219
360
|
description?: string | undefined;
|
|
220
361
|
roleArn: string | undefined;
|
|
221
362
|
knowledgeBaseConfiguration: KnowledgeBaseConfiguration | undefined;
|
|
222
|
-
storageConfiguration
|
|
363
|
+
storageConfiguration?: StorageConfiguration | undefined;
|
|
223
364
|
tags?: Record<string, string> | undefined;
|
|
224
365
|
}
|
|
225
366
|
export declare const KnowledgeBaseStatus: {
|
|
@@ -239,7 +380,7 @@ export interface KnowledgeBase {
|
|
|
239
380
|
description?: string | undefined;
|
|
240
381
|
roleArn: string | undefined;
|
|
241
382
|
knowledgeBaseConfiguration: KnowledgeBaseConfiguration | undefined;
|
|
242
|
-
storageConfiguration
|
|
383
|
+
storageConfiguration?: StorageConfiguration | undefined;
|
|
243
384
|
status: KnowledgeBaseStatus | undefined;
|
|
244
385
|
createdAt: Date | undefined;
|
|
245
386
|
updatedAt: Date | undefined;
|
|
@@ -316,7 +457,7 @@ export interface UpdateKnowledgeBaseRequest {
|
|
|
316
457
|
description?: string | undefined;
|
|
317
458
|
roleArn: string | undefined;
|
|
318
459
|
knowledgeBaseConfiguration: KnowledgeBaseConfiguration | undefined;
|
|
319
|
-
storageConfiguration
|
|
460
|
+
storageConfiguration?: StorageConfiguration | undefined;
|
|
320
461
|
}
|
|
321
462
|
export interface UpdateKnowledgeBaseResponse {
|
|
322
463
|
knowledgeBase: KnowledgeBase | undefined;
|
|
@@ -505,6 +646,9 @@ export interface ListAgentVersionsResponse {
|
|
|
505
646
|
agentVersionSummaries: AgentVersionSummary[] | undefined;
|
|
506
647
|
nextToken?: string | undefined;
|
|
507
648
|
}
|
|
649
|
+
export declare const InlineContentFilterSensitiveLog: (
|
|
650
|
+
obj: InlineContent
|
|
651
|
+
) => any;
|
|
508
652
|
export declare const CustomContentFilterSensitiveLog: (
|
|
509
653
|
obj: CustomContent
|
|
510
654
|
) => any;
|
|
@@ -526,6 +670,39 @@ export declare const KnowledgeBaseDocumentFilterSensitiveLog: (
|
|
|
526
670
|
export declare const IngestKnowledgeBaseDocumentsRequestFilterSensitiveLog: (
|
|
527
671
|
obj: IngestKnowledgeBaseDocumentsRequest
|
|
528
672
|
) => any;
|
|
673
|
+
export declare const QueryGenerationContextFilterSensitiveLog: (
|
|
674
|
+
obj: QueryGenerationContext
|
|
675
|
+
) => any;
|
|
676
|
+
export declare const QueryGenerationConfigurationFilterSensitiveLog: (
|
|
677
|
+
obj: QueryGenerationConfiguration
|
|
678
|
+
) => any;
|
|
679
|
+
export declare const RedshiftConfigurationFilterSensitiveLog: (
|
|
680
|
+
obj: RedshiftConfiguration
|
|
681
|
+
) => any;
|
|
682
|
+
export declare const SqlKnowledgeBaseConfigurationFilterSensitiveLog: (
|
|
683
|
+
obj: SqlKnowledgeBaseConfiguration
|
|
684
|
+
) => any;
|
|
685
|
+
export declare const KnowledgeBaseConfigurationFilterSensitiveLog: (
|
|
686
|
+
obj: KnowledgeBaseConfiguration
|
|
687
|
+
) => any;
|
|
688
|
+
export declare const CreateKnowledgeBaseRequestFilterSensitiveLog: (
|
|
689
|
+
obj: CreateKnowledgeBaseRequest
|
|
690
|
+
) => any;
|
|
691
|
+
export declare const KnowledgeBaseFilterSensitiveLog: (
|
|
692
|
+
obj: KnowledgeBase
|
|
693
|
+
) => any;
|
|
694
|
+
export declare const CreateKnowledgeBaseResponseFilterSensitiveLog: (
|
|
695
|
+
obj: CreateKnowledgeBaseResponse
|
|
696
|
+
) => any;
|
|
697
|
+
export declare const GetKnowledgeBaseResponseFilterSensitiveLog: (
|
|
698
|
+
obj: GetKnowledgeBaseResponse
|
|
699
|
+
) => any;
|
|
700
|
+
export declare const UpdateKnowledgeBaseRequestFilterSensitiveLog: (
|
|
701
|
+
obj: UpdateKnowledgeBaseRequest
|
|
702
|
+
) => any;
|
|
703
|
+
export declare const UpdateKnowledgeBaseResponseFilterSensitiveLog: (
|
|
704
|
+
obj: UpdateKnowledgeBaseResponse
|
|
705
|
+
) => any;
|
|
529
706
|
export declare const PromptAgentResourceFilterSensitiveLog: (
|
|
530
707
|
obj: PromptAgentResource
|
|
531
708
|
) => 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.706.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",
|