@aws-sdk/client-bedrock-agent 3.705.0 → 3.709.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.
@@ -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: StorageConfiguration | undefined;
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: StorageConfiguration | undefined;
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: StorageConfiguration | undefined;
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.705.0",
4
+ "version": "3.709.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,43 +20,43 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.699.0",
24
- "@aws-sdk/client-sts": "3.699.0",
25
- "@aws-sdk/core": "3.696.0",
26
- "@aws-sdk/credential-provider-node": "3.699.0",
27
- "@aws-sdk/middleware-host-header": "3.696.0",
28
- "@aws-sdk/middleware-logger": "3.696.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.696.0",
30
- "@aws-sdk/middleware-user-agent": "3.696.0",
31
- "@aws-sdk/region-config-resolver": "3.696.0",
32
- "@aws-sdk/types": "3.696.0",
33
- "@aws-sdk/util-endpoints": "3.696.0",
34
- "@aws-sdk/util-user-agent-browser": "3.696.0",
35
- "@aws-sdk/util-user-agent-node": "3.696.0",
36
- "@smithy/config-resolver": "^3.0.12",
37
- "@smithy/core": "^2.5.3",
38
- "@smithy/fetch-http-handler": "^4.1.1",
39
- "@smithy/hash-node": "^3.0.10",
40
- "@smithy/invalid-dependency": "^3.0.10",
41
- "@smithy/middleware-content-length": "^3.0.12",
42
- "@smithy/middleware-endpoint": "^3.2.3",
43
- "@smithy/middleware-retry": "^3.0.27",
44
- "@smithy/middleware-serde": "^3.0.10",
45
- "@smithy/middleware-stack": "^3.0.10",
46
- "@smithy/node-config-provider": "^3.1.11",
47
- "@smithy/node-http-handler": "^3.3.1",
48
- "@smithy/protocol-http": "^4.1.7",
49
- "@smithy/smithy-client": "^3.4.4",
50
- "@smithy/types": "^3.7.1",
51
- "@smithy/url-parser": "^3.0.10",
23
+ "@aws-sdk/client-sso-oidc": "3.709.0",
24
+ "@aws-sdk/client-sts": "3.709.0",
25
+ "@aws-sdk/core": "3.709.0",
26
+ "@aws-sdk/credential-provider-node": "3.709.0",
27
+ "@aws-sdk/middleware-host-header": "3.709.0",
28
+ "@aws-sdk/middleware-logger": "3.709.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.709.0",
30
+ "@aws-sdk/middleware-user-agent": "3.709.0",
31
+ "@aws-sdk/region-config-resolver": "3.709.0",
32
+ "@aws-sdk/types": "3.709.0",
33
+ "@aws-sdk/util-endpoints": "3.709.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.709.0",
35
+ "@aws-sdk/util-user-agent-node": "3.709.0",
36
+ "@smithy/config-resolver": "^3.0.13",
37
+ "@smithy/core": "^2.5.5",
38
+ "@smithy/fetch-http-handler": "^4.1.2",
39
+ "@smithy/hash-node": "^3.0.11",
40
+ "@smithy/invalid-dependency": "^3.0.11",
41
+ "@smithy/middleware-content-length": "^3.0.13",
42
+ "@smithy/middleware-endpoint": "^3.2.5",
43
+ "@smithy/middleware-retry": "^3.0.30",
44
+ "@smithy/middleware-serde": "^3.0.11",
45
+ "@smithy/middleware-stack": "^3.0.11",
46
+ "@smithy/node-config-provider": "^3.1.12",
47
+ "@smithy/node-http-handler": "^3.3.2",
48
+ "@smithy/protocol-http": "^4.1.8",
49
+ "@smithy/smithy-client": "^3.5.0",
50
+ "@smithy/types": "^3.7.2",
51
+ "@smithy/url-parser": "^3.0.11",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.27",
56
- "@smithy/util-defaults-mode-node": "^3.0.27",
57
- "@smithy/util-endpoints": "^2.1.6",
58
- "@smithy/util-middleware": "^3.0.10",
59
- "@smithy/util-retry": "^3.0.10",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.30",
56
+ "@smithy/util-defaults-mode-node": "^3.0.30",
57
+ "@smithy/util-endpoints": "^2.1.7",
58
+ "@smithy/util-middleware": "^3.0.11",
59
+ "@smithy/util-retry": "^3.0.11",
60
60
  "@smithy/util-utf8": "^3.0.0",
61
61
  "@types/uuid": "^9.0.1",
62
62
  "tslib": "^2.6.2",