@aws-sdk/client-bedrock-agent 3.702.0 → 3.703.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.
Files changed (49) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/index.js +422 -22
  3. package/dist-es/BedrockAgent.js +8 -0
  4. package/dist-es/commands/DeleteKnowledgeBaseDocumentsCommand.js +22 -0
  5. package/dist-es/commands/GetKnowledgeBaseDocumentsCommand.js +22 -0
  6. package/dist-es/commands/IngestKnowledgeBaseDocumentsCommand.js +23 -0
  7. package/dist-es/commands/ListKnowledgeBaseDocumentsCommand.js +22 -0
  8. package/dist-es/commands/index.js +4 -0
  9. package/dist-es/models/models_0.js +80 -18
  10. package/dist-es/models/models_1.js +22 -0
  11. package/dist-es/pagination/ListKnowledgeBaseDocumentsPaginator.js +4 -0
  12. package/dist-es/pagination/index.js +1 -0
  13. package/dist-es/protocols/Aws_restJson1.js +208 -0
  14. package/dist-types/BedrockAgent.d.ts +28 -0
  15. package/dist-types/BedrockAgentClient.d.ts +6 -2
  16. package/dist-types/commands/AssociateAgentKnowledgeBaseCommand.d.ts +1 -1
  17. package/dist-types/commands/CreateDataSourceCommand.d.ts +3 -3
  18. package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +1 -1
  19. package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
  20. package/dist-types/commands/DeleteKnowledgeBaseDocumentsCommand.d.ts +119 -0
  21. package/dist-types/commands/DisassociateAgentKnowledgeBaseCommand.d.ts +1 -1
  22. package/dist-types/commands/GetDataSourceCommand.d.ts +1 -1
  23. package/dist-types/commands/GetKnowledgeBaseDocumentsCommand.d.ts +118 -0
  24. package/dist-types/commands/IngestKnowledgeBaseDocumentsCommand.d.ts +161 -0
  25. package/dist-types/commands/ListKnowledgeBaseDocumentsCommand.d.ts +110 -0
  26. package/dist-types/commands/UpdateDataSourceCommand.d.ts +2 -2
  27. package/dist-types/commands/index.d.ts +4 -0
  28. package/dist-types/models/models_0.d.ts +370 -351
  29. package/dist-types/models/models_1.d.ts +623 -1
  30. package/dist-types/pagination/ListKnowledgeBaseDocumentsPaginator.d.ts +7 -0
  31. package/dist-types/pagination/index.d.ts +1 -0
  32. package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
  33. package/dist-types/ts3.4/BedrockAgent.d.ts +68 -0
  34. package/dist-types/ts3.4/BedrockAgentClient.d.ts +24 -0
  35. package/dist-types/ts3.4/commands/AssociateAgentKnowledgeBaseCommand.d.ts +1 -1
  36. package/dist-types/ts3.4/commands/CreateKnowledgeBaseCommand.d.ts +1 -1
  37. package/dist-types/ts3.4/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
  38. package/dist-types/ts3.4/commands/DeleteKnowledgeBaseDocumentsCommand.d.ts +51 -0
  39. package/dist-types/ts3.4/commands/DisassociateAgentKnowledgeBaseCommand.d.ts +1 -1
  40. package/dist-types/ts3.4/commands/GetKnowledgeBaseDocumentsCommand.d.ts +51 -0
  41. package/dist-types/ts3.4/commands/IngestKnowledgeBaseDocumentsCommand.d.ts +51 -0
  42. package/dist-types/ts3.4/commands/ListKnowledgeBaseDocumentsCommand.d.ts +51 -0
  43. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  44. package/dist-types/ts3.4/models/models_0.d.ts +161 -147
  45. package/dist-types/ts3.4/models/models_1.d.ts +167 -4
  46. package/dist-types/ts3.4/pagination/ListKnowledgeBaseDocumentsPaginator.d.ts +11 -0
  47. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  48. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  49. package/package.json +1 -1
@@ -1,5 +1,627 @@
1
1
  import { DocumentType as __DocumentType } from "@smithy/types";
2
- import { AgentKnowledgeBase, AgentKnowledgeBaseSummary, AgentStatus, AgentVersion, AgentVersionSummary, FlowDefinition, FlowValidation, KnowledgeBase, KnowledgeBaseConfiguration, KnowledgeBaseState, KnowledgeBaseStatus, PromptInferenceConfiguration, PromptTemplateConfiguration, PromptTemplateType, StorageConfiguration } from "./models_0";
2
+ import { AgentKnowledgeBase, AgentKnowledgeBaseSummary, AgentStatus, AgentVersion, AgentVersionSummary, FlowDefinition, FlowValidation, KnowledgeBaseState, PromptInferenceConfiguration, PromptTemplateConfiguration, PromptTemplateType } from "./models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface AssociateAgentKnowledgeBaseRequest {
7
+ /**
8
+ * <p>The unique identifier of the agent with which you want to associate the knowledge base.</p>
9
+ * @public
10
+ */
11
+ agentId: string | undefined;
12
+ /**
13
+ * <p>The version of the agent with which you want to associate the knowledge base.</p>
14
+ * @public
15
+ */
16
+ agentVersion: string | undefined;
17
+ /**
18
+ * <p>The unique identifier of the knowledge base to associate with the agent.</p>
19
+ * @public
20
+ */
21
+ knowledgeBaseId: string | undefined;
22
+ /**
23
+ * <p>A description of what the agent should use the knowledge base for.</p>
24
+ * @public
25
+ */
26
+ description: string | undefined;
27
+ /**
28
+ * <p>Specifies whether to use the knowledge base or not when sending an <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html">InvokeAgent</a> request.</p>
29
+ * @public
30
+ */
31
+ knowledgeBaseState?: KnowledgeBaseState | undefined;
32
+ }
33
+ /**
34
+ * @public
35
+ */
36
+ export interface AssociateAgentKnowledgeBaseResponse {
37
+ /**
38
+ * <p>Contains details about the knowledge base that has been associated with the agent.</p>
39
+ * @public
40
+ */
41
+ agentKnowledgeBase: AgentKnowledgeBase | undefined;
42
+ }
43
+ /**
44
+ * @public
45
+ * @enum
46
+ */
47
+ export declare const KnowledgeBaseType: {
48
+ readonly VECTOR: "VECTOR";
49
+ };
50
+ /**
51
+ * @public
52
+ */
53
+ export type KnowledgeBaseType = (typeof KnowledgeBaseType)[keyof typeof KnowledgeBaseType];
54
+ /**
55
+ * @public
56
+ * @enum
57
+ */
58
+ export declare const EmbeddingDataType: {
59
+ readonly BINARY: "BINARY";
60
+ readonly FLOAT32: "FLOAT32";
61
+ };
62
+ /**
63
+ * @public
64
+ */
65
+ export type EmbeddingDataType = (typeof EmbeddingDataType)[keyof typeof EmbeddingDataType];
66
+ /**
67
+ * <p>The vector configuration details for the Bedrock embeddings model.</p>
68
+ * @public
69
+ */
70
+ export interface BedrockEmbeddingModelConfiguration {
71
+ /**
72
+ * <p>The dimensions details for the vector configuration used on the Bedrock embeddings model.</p>
73
+ * @public
74
+ */
75
+ dimensions?: number | undefined;
76
+ /**
77
+ * <p>The data type for the vectors when using a model to convert text into vector
78
+ * embeddings. The model must support the specified data type for vector embeddings.
79
+ * Floating-point (float32) is the default data type, and is supported by most models
80
+ * for vector embeddings. See <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-supported.html">Supported embeddings
81
+ * models</a> for information on the available models and their vector data types.</p>
82
+ * @public
83
+ */
84
+ embeddingDataType?: EmbeddingDataType | undefined;
85
+ }
86
+ /**
87
+ * <p>The configuration details for the embeddings model.</p>
88
+ * @public
89
+ */
90
+ export interface EmbeddingModelConfiguration {
91
+ /**
92
+ * <p>The vector configuration details on the Bedrock embeddings model.</p>
93
+ * @public
94
+ */
95
+ bedrockEmbeddingModelConfiguration?: BedrockEmbeddingModelConfiguration | undefined;
96
+ }
97
+ /**
98
+ * <p>Contains details about the model used to create vector embeddings for the knowledge base.</p>
99
+ * @public
100
+ */
101
+ export interface VectorKnowledgeBaseConfiguration {
102
+ /**
103
+ * <p>The Amazon Resource Name (ARN) of the model or inference profile used to create vector embeddings for the knowledge base.</p>
104
+ * @public
105
+ */
106
+ embeddingModelArn: string | undefined;
107
+ /**
108
+ * <p>The embeddings model configuration details for the vector model used in Knowledge Base.</p>
109
+ * @public
110
+ */
111
+ embeddingModelConfiguration?: EmbeddingModelConfiguration | undefined;
112
+ }
113
+ /**
114
+ * <p>Contains details about the vector embeddings configuration of the knowledge base.</p>
115
+ * @public
116
+ */
117
+ export interface KnowledgeBaseConfiguration {
118
+ /**
119
+ * <p>The type of data that the data source is converted into for the knowledge base.</p>
120
+ * @public
121
+ */
122
+ type: KnowledgeBaseType | undefined;
123
+ /**
124
+ * <p>Contains details about the model that's used to convert the data source into vector embeddings.</p>
125
+ * @public
126
+ */
127
+ vectorKnowledgeBaseConfiguration?: VectorKnowledgeBaseConfiguration | undefined;
128
+ }
129
+ /**
130
+ * <p>Contains the names of the fields to which to map information about the vector store.</p>
131
+ * @public
132
+ */
133
+ export interface MongoDbAtlasFieldMapping {
134
+ /**
135
+ * <p>The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.</p>
136
+ * @public
137
+ */
138
+ vectorField: string | undefined;
139
+ /**
140
+ * <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>
141
+ * @public
142
+ */
143
+ textField: string | undefined;
144
+ /**
145
+ * <p>The name of the field in which Amazon Bedrock stores metadata about the vector store.</p>
146
+ * @public
147
+ */
148
+ metadataField: string | undefined;
149
+ }
150
+ /**
151
+ * <p>Contains details about the storage configuration of the knowledge base in MongoDB Atlas. </p>
152
+ * @public
153
+ */
154
+ export interface MongoDbAtlasConfiguration {
155
+ /**
156
+ * <p>The endpoint URL of your MongoDB Atlas cluster for your knowledge base.</p>
157
+ * @public
158
+ */
159
+ endpoint: string | undefined;
160
+ /**
161
+ * <p>The database name in your MongoDB Atlas cluster for your knowledge base.</p>
162
+ * @public
163
+ */
164
+ databaseName: string | undefined;
165
+ /**
166
+ * <p>The collection name of the knowledge base in MongoDB Atlas.</p>
167
+ * @public
168
+ */
169
+ collectionName: string | undefined;
170
+ /**
171
+ * <p>The name of the MongoDB Atlas vector search index.</p>
172
+ * @public
173
+ */
174
+ vectorIndexName: string | undefined;
175
+ /**
176
+ * <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>
177
+ * @public
178
+ */
179
+ credentialsSecretArn: string | undefined;
180
+ /**
181
+ * <p>Contains the names of the fields to which to map information about the vector store.</p>
182
+ * @public
183
+ */
184
+ fieldMapping: MongoDbAtlasFieldMapping | undefined;
185
+ /**
186
+ * <p>The name of the VPC endpoint service in your account that is connected to your MongoDB Atlas cluster.</p>
187
+ * @public
188
+ */
189
+ endpointServiceName?: string | undefined;
190
+ }
191
+ /**
192
+ * <p>Contains the names of the fields to which to map information about the vector store.</p>
193
+ * @public
194
+ */
195
+ export interface OpenSearchServerlessFieldMapping {
196
+ /**
197
+ * <p>The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.</p>
198
+ * @public
199
+ */
200
+ vectorField: string | undefined;
201
+ /**
202
+ * <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>
203
+ * @public
204
+ */
205
+ textField: string | undefined;
206
+ /**
207
+ * <p>The name of the field in which Amazon Bedrock stores metadata about the vector store.</p>
208
+ * @public
209
+ */
210
+ metadataField: string | undefined;
211
+ }
212
+ /**
213
+ * <p>Contains details about the storage configuration of the knowledge base in Amazon OpenSearch Service. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-oss.html">Create a vector index in Amazon OpenSearch Service</a>.</p>
214
+ * @public
215
+ */
216
+ export interface OpenSearchServerlessConfiguration {
217
+ /**
218
+ * <p>The Amazon Resource Name (ARN) of the OpenSearch Service vector store.</p>
219
+ * @public
220
+ */
221
+ collectionArn: string | undefined;
222
+ /**
223
+ * <p>The name of the vector store.</p>
224
+ * @public
225
+ */
226
+ vectorIndexName: string | undefined;
227
+ /**
228
+ * <p>Contains the names of the fields to which to map information about the vector store.</p>
229
+ * @public
230
+ */
231
+ fieldMapping: OpenSearchServerlessFieldMapping | undefined;
232
+ }
233
+ /**
234
+ * <p>Contains the names of the fields to which to map information about the vector store.</p>
235
+ * @public
236
+ */
237
+ export interface PineconeFieldMapping {
238
+ /**
239
+ * <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>
240
+ * @public
241
+ */
242
+ textField: string | undefined;
243
+ /**
244
+ * <p>The name of the field in which Amazon Bedrock stores metadata about the vector store.</p>
245
+ * @public
246
+ */
247
+ metadataField: string | undefined;
248
+ }
249
+ /**
250
+ * <p>Contains details about the storage configuration of the knowledge base in Pinecone. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-pinecone.html">Create a vector index in Pinecone</a>.</p>
251
+ * @public
252
+ */
253
+ export interface PineconeConfiguration {
254
+ /**
255
+ * <p>The endpoint URL for your index management page.</p>
256
+ * @public
257
+ */
258
+ connectionString: string | undefined;
259
+ /**
260
+ * <p>The Amazon Resource Name (ARN) of the secret that you created in Secrets Manager that is linked to your Pinecone API key.</p>
261
+ * @public
262
+ */
263
+ credentialsSecretArn: string | undefined;
264
+ /**
265
+ * <p>The namespace to be used to write new data to your database.</p>
266
+ * @public
267
+ */
268
+ namespace?: string | undefined;
269
+ /**
270
+ * <p>Contains the names of the fields to which to map information about the vector store.</p>
271
+ * @public
272
+ */
273
+ fieldMapping: PineconeFieldMapping | undefined;
274
+ }
275
+ /**
276
+ * <p>Contains the names of the fields to which to map information about the vector store.</p>
277
+ * @public
278
+ */
279
+ export interface RdsFieldMapping {
280
+ /**
281
+ * <p>The name of the field in which Amazon Bedrock stores the ID for each entry.</p>
282
+ * @public
283
+ */
284
+ primaryKeyField: string | undefined;
285
+ /**
286
+ * <p>The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.</p>
287
+ * @public
288
+ */
289
+ vectorField: string | undefined;
290
+ /**
291
+ * <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>
292
+ * @public
293
+ */
294
+ textField: string | undefined;
295
+ /**
296
+ * <p>The name of the field in which Amazon Bedrock stores metadata about the vector store.</p>
297
+ * @public
298
+ */
299
+ metadataField: string | undefined;
300
+ }
301
+ /**
302
+ * <p>Contains details about the storage configuration of the knowledge base in Amazon RDS. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-rds.html">Create a vector index in Amazon RDS</a>.</p>
303
+ * @public
304
+ */
305
+ export interface RdsConfiguration {
306
+ /**
307
+ * <p>The Amazon Resource Name (ARN) of the vector store.</p>
308
+ * @public
309
+ */
310
+ resourceArn: string | undefined;
311
+ /**
312
+ * <p>The Amazon Resource Name (ARN) of the secret that you created in Secrets Manager that is linked to your Amazon RDS database.</p>
313
+ * @public
314
+ */
315
+ credentialsSecretArn: string | undefined;
316
+ /**
317
+ * <p>The name of your Amazon RDS database.</p>
318
+ * @public
319
+ */
320
+ databaseName: string | undefined;
321
+ /**
322
+ * <p>The name of the table in the database.</p>
323
+ * @public
324
+ */
325
+ tableName: string | undefined;
326
+ /**
327
+ * <p>Contains the names of the fields to which to map information about the vector store.</p>
328
+ * @public
329
+ */
330
+ fieldMapping: RdsFieldMapping | undefined;
331
+ }
332
+ /**
333
+ * <p>Contains the names of the fields to which to map information about the vector store.</p>
334
+ * @public
335
+ */
336
+ export interface RedisEnterpriseCloudFieldMapping {
337
+ /**
338
+ * <p>The name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.</p>
339
+ * @public
340
+ */
341
+ vectorField: string | undefined;
342
+ /**
343
+ * <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>
344
+ * @public
345
+ */
346
+ textField: string | undefined;
347
+ /**
348
+ * <p>The name of the field in which Amazon Bedrock stores metadata about the vector store.</p>
349
+ * @public
350
+ */
351
+ metadataField: string | undefined;
352
+ }
353
+ /**
354
+ * <p>Contains details about the storage configuration of the knowledge base in Redis Enterprise Cloud. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-oss.html">Create a vector index in Redis Enterprise Cloud</a>.</p>
355
+ * @public
356
+ */
357
+ export interface RedisEnterpriseCloudConfiguration {
358
+ /**
359
+ * <p>The endpoint URL of the Redis Enterprise Cloud database.</p>
360
+ * @public
361
+ */
362
+ endpoint: string | undefined;
363
+ /**
364
+ * <p>The name of the vector index.</p>
365
+ * @public
366
+ */
367
+ vectorIndexName: string | undefined;
368
+ /**
369
+ * <p>The Amazon Resource Name (ARN) of the secret that you created in Secrets Manager that is linked to your Redis Enterprise Cloud database.</p>
370
+ * @public
371
+ */
372
+ credentialsSecretArn: string | undefined;
373
+ /**
374
+ * <p>Contains the names of the fields to which to map information about the vector store.</p>
375
+ * @public
376
+ */
377
+ fieldMapping: RedisEnterpriseCloudFieldMapping | undefined;
378
+ }
379
+ /**
380
+ * @public
381
+ * @enum
382
+ */
383
+ export declare const KnowledgeBaseStorageType: {
384
+ readonly MONGO_DB_ATLAS: "MONGO_DB_ATLAS";
385
+ readonly OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS";
386
+ readonly PINECONE: "PINECONE";
387
+ readonly RDS: "RDS";
388
+ readonly REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD";
389
+ };
390
+ /**
391
+ * @public
392
+ */
393
+ export type KnowledgeBaseStorageType = (typeof KnowledgeBaseStorageType)[keyof typeof KnowledgeBaseStorageType];
394
+ /**
395
+ * <p>Contains the storage configuration of the knowledge base.</p>
396
+ * @public
397
+ */
398
+ export interface StorageConfiguration {
399
+ /**
400
+ * <p>The vector store service in which the knowledge base is stored.</p>
401
+ * @public
402
+ */
403
+ type: KnowledgeBaseStorageType | undefined;
404
+ /**
405
+ * <p>Contains the storage configuration of the knowledge base in Amazon OpenSearch Service.</p>
406
+ * @public
407
+ */
408
+ opensearchServerlessConfiguration?: OpenSearchServerlessConfiguration | undefined;
409
+ /**
410
+ * <p>Contains the storage configuration of the knowledge base in Pinecone.</p>
411
+ * @public
412
+ */
413
+ pineconeConfiguration?: PineconeConfiguration | undefined;
414
+ /**
415
+ * <p>Contains the storage configuration of the knowledge base in Redis Enterprise Cloud.</p>
416
+ * @public
417
+ */
418
+ redisEnterpriseCloudConfiguration?: RedisEnterpriseCloudConfiguration | undefined;
419
+ /**
420
+ * <p>Contains details about the storage configuration of the knowledge base in Amazon RDS. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-rds.html">Create a vector index in Amazon RDS</a>.</p>
421
+ * @public
422
+ */
423
+ rdsConfiguration?: RdsConfiguration | undefined;
424
+ /**
425
+ * <p>Contains the storage configuration of the knowledge base in MongoDB Atlas.</p>
426
+ * @public
427
+ */
428
+ mongoDbAtlasConfiguration?: MongoDbAtlasConfiguration | undefined;
429
+ }
430
+ /**
431
+ * @public
432
+ */
433
+ export interface CreateKnowledgeBaseRequest {
434
+ /**
435
+ * <p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,
436
+ * Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
437
+ * @public
438
+ */
439
+ clientToken?: string | undefined;
440
+ /**
441
+ * <p>A name for the knowledge base.</p>
442
+ * @public
443
+ */
444
+ name: string | undefined;
445
+ /**
446
+ * <p>A description of the knowledge base.</p>
447
+ * @public
448
+ */
449
+ description?: string | undefined;
450
+ /**
451
+ * <p>The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.</p>
452
+ * @public
453
+ */
454
+ roleArn: string | undefined;
455
+ /**
456
+ * <p>Contains details about the embeddings model used for the knowledge base.</p>
457
+ * @public
458
+ */
459
+ knowledgeBaseConfiguration: KnowledgeBaseConfiguration | undefined;
460
+ /**
461
+ * <p>Contains details about the configuration of the vector database used for the knowledge base.</p>
462
+ * @public
463
+ */
464
+ storageConfiguration: StorageConfiguration | undefined;
465
+ /**
466
+ * <p>Specify the key-value pairs for the tags that you want to attach to your knowledge base in this object.</p>
467
+ * @public
468
+ */
469
+ tags?: Record<string, string> | undefined;
470
+ }
471
+ /**
472
+ * @public
473
+ * @enum
474
+ */
475
+ export declare const KnowledgeBaseStatus: {
476
+ readonly ACTIVE: "ACTIVE";
477
+ readonly CREATING: "CREATING";
478
+ readonly DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL";
479
+ readonly DELETING: "DELETING";
480
+ readonly FAILED: "FAILED";
481
+ readonly UPDATING: "UPDATING";
482
+ };
483
+ /**
484
+ * @public
485
+ */
486
+ export type KnowledgeBaseStatus = (typeof KnowledgeBaseStatus)[keyof typeof KnowledgeBaseStatus];
487
+ /**
488
+ * <p>Contains information about a knowledge base.</p>
489
+ * @public
490
+ */
491
+ export interface KnowledgeBase {
492
+ /**
493
+ * <p>The unique identifier of the knowledge base.</p>
494
+ * @public
495
+ */
496
+ knowledgeBaseId: string | undefined;
497
+ /**
498
+ * <p>The name of the knowledge base.</p>
499
+ * @public
500
+ */
501
+ name: string | undefined;
502
+ /**
503
+ * <p>The Amazon Resource Name (ARN) of the knowledge base.</p>
504
+ * @public
505
+ */
506
+ knowledgeBaseArn: string | undefined;
507
+ /**
508
+ * <p>The description of the knowledge base.</p>
509
+ * @public
510
+ */
511
+ description?: string | undefined;
512
+ /**
513
+ * <p>The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.</p>
514
+ * @public
515
+ */
516
+ roleArn: string | undefined;
517
+ /**
518
+ * <p>Contains details about the embeddings configuration of the knowledge base.</p>
519
+ * @public
520
+ */
521
+ knowledgeBaseConfiguration: KnowledgeBaseConfiguration | undefined;
522
+ /**
523
+ * <p>Contains details about the storage configuration of the knowledge base.</p>
524
+ * @public
525
+ */
526
+ storageConfiguration: StorageConfiguration | undefined;
527
+ /**
528
+ * <p>The status of the knowledge base. The following statuses are possible:</p>
529
+ * <ul>
530
+ * <li>
531
+ * <p>CREATING – The knowledge base is being created.</p>
532
+ * </li>
533
+ * <li>
534
+ * <p>ACTIVE – The knowledge base is ready to be queried.</p>
535
+ * </li>
536
+ * <li>
537
+ * <p>DELETING – The knowledge base is being deleted.</p>
538
+ * </li>
539
+ * <li>
540
+ * <p>UPDATING – The knowledge base is being updated.</p>
541
+ * </li>
542
+ * <li>
543
+ * <p>FAILED – The knowledge base API operation failed.</p>
544
+ * </li>
545
+ * </ul>
546
+ * @public
547
+ */
548
+ status: KnowledgeBaseStatus | undefined;
549
+ /**
550
+ * <p>The time the knowledge base was created.</p>
551
+ * @public
552
+ */
553
+ createdAt: Date | undefined;
554
+ /**
555
+ * <p>The time the knowledge base was last updated.</p>
556
+ * @public
557
+ */
558
+ updatedAt: Date | undefined;
559
+ /**
560
+ * <p>A list of reasons that the API operation on the knowledge base failed.</p>
561
+ * @public
562
+ */
563
+ failureReasons?: string[] | undefined;
564
+ }
565
+ /**
566
+ * @public
567
+ */
568
+ export interface CreateKnowledgeBaseResponse {
569
+ /**
570
+ * <p>Contains details about the knowledge base.</p>
571
+ * @public
572
+ */
573
+ knowledgeBase: KnowledgeBase | undefined;
574
+ }
575
+ /**
576
+ * @public
577
+ */
578
+ export interface DeleteKnowledgeBaseRequest {
579
+ /**
580
+ * <p>The unique identifier of the knowledge base to delete.</p>
581
+ * @public
582
+ */
583
+ knowledgeBaseId: string | undefined;
584
+ }
585
+ /**
586
+ * @public
587
+ */
588
+ export interface DeleteKnowledgeBaseResponse {
589
+ /**
590
+ * <p>The unique identifier of the knowledge base that was deleted.</p>
591
+ * @public
592
+ */
593
+ knowledgeBaseId: string | undefined;
594
+ /**
595
+ * <p>The status of the knowledge base and whether it has been successfully deleted.</p>
596
+ * @public
597
+ */
598
+ status: KnowledgeBaseStatus | undefined;
599
+ }
600
+ /**
601
+ * @public
602
+ */
603
+ export interface DisassociateAgentKnowledgeBaseRequest {
604
+ /**
605
+ * <p>The unique identifier of the agent from which to disassociate the knowledge base.</p>
606
+ * @public
607
+ */
608
+ agentId: string | undefined;
609
+ /**
610
+ * <p>The version of the agent from which to disassociate the knowledge base.</p>
611
+ * @public
612
+ */
613
+ agentVersion: string | undefined;
614
+ /**
615
+ * <p>The unique identifier of the knowledge base to disassociate.</p>
616
+ * @public
617
+ */
618
+ knowledgeBaseId: string | undefined;
619
+ }
620
+ /**
621
+ * @public
622
+ */
623
+ export interface DisassociateAgentKnowledgeBaseResponse {
624
+ }
3
625
  /**
4
626
  * @public
5
627
  */
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListKnowledgeBaseDocumentsCommandInput, ListKnowledgeBaseDocumentsCommandOutput } from "../commands/ListKnowledgeBaseDocumentsCommand";
3
+ import { BedrockAgentPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListKnowledgeBaseDocuments: (config: BedrockAgentPaginationConfiguration, input: ListKnowledgeBaseDocumentsCommandInput, ...rest: any[]) => Paginator<ListKnowledgeBaseDocumentsCommandOutput>;
@@ -9,5 +9,6 @@ export * from "./ListFlowAliasesPaginator";
9
9
  export * from "./ListFlowVersionsPaginator";
10
10
  export * from "./ListFlowsPaginator";
11
11
  export * from "./ListIngestionJobsPaginator";
12
+ export * from "./ListKnowledgeBaseDocumentsPaginator";
12
13
  export * from "./ListKnowledgeBasesPaginator";
13
14
  export * from "./ListPromptsPaginator";