@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.
- package/README.md +32 -0
- package/dist-cjs/index.js +422 -22
- package/dist-es/BedrockAgent.js +8 -0
- package/dist-es/commands/DeleteKnowledgeBaseDocumentsCommand.js +22 -0
- package/dist-es/commands/GetKnowledgeBaseDocumentsCommand.js +22 -0
- package/dist-es/commands/IngestKnowledgeBaseDocumentsCommand.js +23 -0
- package/dist-es/commands/ListKnowledgeBaseDocumentsCommand.js +22 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +80 -18
- package/dist-es/models/models_1.js +22 -0
- package/dist-es/pagination/ListKnowledgeBaseDocumentsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +208 -0
- package/dist-types/BedrockAgent.d.ts +28 -0
- package/dist-types/BedrockAgentClient.d.ts +6 -2
- package/dist-types/commands/AssociateAgentKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/CreateDataSourceCommand.d.ts +3 -3
- package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/DeleteKnowledgeBaseDocumentsCommand.d.ts +119 -0
- package/dist-types/commands/DisassociateAgentKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/commands/GetDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/GetKnowledgeBaseDocumentsCommand.d.ts +118 -0
- package/dist-types/commands/IngestKnowledgeBaseDocumentsCommand.d.ts +161 -0
- package/dist-types/commands/ListKnowledgeBaseDocumentsCommand.d.ts +110 -0
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +370 -351
- package/dist-types/models/models_1.d.ts +623 -1
- package/dist-types/pagination/ListKnowledgeBaseDocumentsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/BedrockAgent.d.ts +68 -0
- package/dist-types/ts3.4/BedrockAgentClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/AssociateAgentKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteKnowledgeBaseDocumentsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisassociateAgentKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetKnowledgeBaseDocumentsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/IngestKnowledgeBaseDocumentsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListKnowledgeBaseDocumentsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +161 -147
- package/dist-types/ts3.4/models/models_1.d.ts +167 -4
- package/dist-types/ts3.4/pagination/ListKnowledgeBaseDocumentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/package.json +1 -1
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
|
|
4
|
+
import { ListKnowledgeBaseDocumentsRequest, ListKnowledgeBaseDocumentsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListKnowledgeBaseDocumentsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListKnowledgeBaseDocumentsCommandInput extends ListKnowledgeBaseDocumentsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListKnowledgeBaseDocumentsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListKnowledgeBaseDocumentsCommandOutput extends ListKnowledgeBaseDocumentsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListKnowledgeBaseDocumentsCommand_base: {
|
|
25
|
+
new (input: ListKnowledgeBaseDocumentsCommandInput): import("@smithy/smithy-client").CommandImpl<ListKnowledgeBaseDocumentsCommandInput, ListKnowledgeBaseDocumentsCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ListKnowledgeBaseDocumentsCommandInput): import("@smithy/smithy-client").CommandImpl<ListKnowledgeBaseDocumentsCommandInput, ListKnowledgeBaseDocumentsCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves all the documents contained in a data source that is connected to a knowledge base. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-real-time-ingestion.html">Ingest documents into a knowledge base in real-time</a> in the Amazon Bedrock User Guide.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentClient, ListKnowledgeBaseDocumentsCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentClient, ListKnowledgeBaseDocumentsCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
36
|
+
* const client = new BedrockAgentClient(config);
|
|
37
|
+
* const input = { // ListKnowledgeBaseDocumentsRequest
|
|
38
|
+
* knowledgeBaseId: "STRING_VALUE", // required
|
|
39
|
+
* dataSourceId: "STRING_VALUE", // required
|
|
40
|
+
* maxResults: Number("int"),
|
|
41
|
+
* nextToken: "STRING_VALUE",
|
|
42
|
+
* };
|
|
43
|
+
* const command = new ListKnowledgeBaseDocumentsCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // ListKnowledgeBaseDocumentsResponse
|
|
46
|
+
* // documentDetails: [ // KnowledgeBaseDocumentDetails // required
|
|
47
|
+
* // { // KnowledgeBaseDocumentDetail
|
|
48
|
+
* // knowledgeBaseId: "STRING_VALUE", // required
|
|
49
|
+
* // dataSourceId: "STRING_VALUE", // required
|
|
50
|
+
* // status: "INDEXED" || "PARTIALLY_INDEXED" || "PENDING" || "FAILED" || "METADATA_PARTIALLY_INDEXED" || "METADATA_UPDATE_FAILED" || "IGNORED" || "NOT_FOUND" || "STARTING" || "IN_PROGRESS" || "DELETING" || "DELETE_IN_PROGRESS", // required
|
|
51
|
+
* // identifier: { // DocumentIdentifier
|
|
52
|
+
* // dataSourceType: "CUSTOM" || "S3", // required
|
|
53
|
+
* // s3: { // S3Location
|
|
54
|
+
* // uri: "STRING_VALUE", // required
|
|
55
|
+
* // },
|
|
56
|
+
* // custom: { // CustomDocumentIdentifier
|
|
57
|
+
* // id: "STRING_VALUE", // required
|
|
58
|
+
* // },
|
|
59
|
+
* // },
|
|
60
|
+
* // statusReason: "STRING_VALUE",
|
|
61
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
62
|
+
* // },
|
|
63
|
+
* // ],
|
|
64
|
+
* // nextToken: "STRING_VALUE",
|
|
65
|
+
* // };
|
|
66
|
+
*
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* @param ListKnowledgeBaseDocumentsCommandInput - {@link ListKnowledgeBaseDocumentsCommandInput}
|
|
70
|
+
* @returns {@link ListKnowledgeBaseDocumentsCommandOutput}
|
|
71
|
+
* @see {@link ListKnowledgeBaseDocumentsCommandInput} for command's `input` shape.
|
|
72
|
+
* @see {@link ListKnowledgeBaseDocumentsCommandOutput} for command's `response` shape.
|
|
73
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
76
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link InternalServerException} (server fault)
|
|
79
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
82
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
85
|
+
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
88
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ValidationException} (client fault)
|
|
91
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link BedrockAgentServiceException}
|
|
94
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
95
|
+
*
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
export declare class ListKnowledgeBaseDocumentsCommand extends ListKnowledgeBaseDocumentsCommand_base {
|
|
99
|
+
/** @internal type navigation helper, not in runtime. */
|
|
100
|
+
protected static __types: {
|
|
101
|
+
api: {
|
|
102
|
+
input: ListKnowledgeBaseDocumentsRequest;
|
|
103
|
+
output: ListKnowledgeBaseDocumentsResponse;
|
|
104
|
+
};
|
|
105
|
+
sdk: {
|
|
106
|
+
input: ListKnowledgeBaseDocumentsCommandInput;
|
|
107
|
+
output: ListKnowledgeBaseDocumentsCommandOutput;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
}
|
|
@@ -43,7 +43,7 @@ declare const UpdateDataSourceCommand_base: {
|
|
|
43
43
|
* name: "STRING_VALUE", // required
|
|
44
44
|
* description: "STRING_VALUE",
|
|
45
45
|
* dataSourceConfiguration: { // DataSourceConfiguration
|
|
46
|
-
* type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT", // required
|
|
46
|
+
* type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT" || "CUSTOM", // required
|
|
47
47
|
* s3Configuration: { // S3DataSourceConfiguration
|
|
48
48
|
* bucketArn: "STRING_VALUE", // required
|
|
49
49
|
* inclusionPrefixes: [ // S3Prefixes
|
|
@@ -213,7 +213,7 @@ declare const UpdateDataSourceCommand_base: {
|
|
|
213
213
|
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL", // required
|
|
214
214
|
* // description: "STRING_VALUE",
|
|
215
215
|
* // dataSourceConfiguration: { // DataSourceConfiguration
|
|
216
|
-
* // type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT", // required
|
|
216
|
+
* // type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT" || "CUSTOM", // required
|
|
217
217
|
* // s3Configuration: { // S3DataSourceConfiguration
|
|
218
218
|
* // bucketArn: "STRING_VALUE", // required
|
|
219
219
|
* // inclusionPrefixes: [ // S3Prefixes
|
|
@@ -18,6 +18,7 @@ export * from "./DeleteFlowAliasCommand";
|
|
|
18
18
|
export * from "./DeleteFlowCommand";
|
|
19
19
|
export * from "./DeleteFlowVersionCommand";
|
|
20
20
|
export * from "./DeleteKnowledgeBaseCommand";
|
|
21
|
+
export * from "./DeleteKnowledgeBaseDocumentsCommand";
|
|
21
22
|
export * from "./DeletePromptCommand";
|
|
22
23
|
export * from "./DisassociateAgentKnowledgeBaseCommand";
|
|
23
24
|
export * from "./GetAgentActionGroupCommand";
|
|
@@ -31,7 +32,9 @@ export * from "./GetFlowCommand";
|
|
|
31
32
|
export * from "./GetFlowVersionCommand";
|
|
32
33
|
export * from "./GetIngestionJobCommand";
|
|
33
34
|
export * from "./GetKnowledgeBaseCommand";
|
|
35
|
+
export * from "./GetKnowledgeBaseDocumentsCommand";
|
|
34
36
|
export * from "./GetPromptCommand";
|
|
37
|
+
export * from "./IngestKnowledgeBaseDocumentsCommand";
|
|
35
38
|
export * from "./ListAgentActionGroupsCommand";
|
|
36
39
|
export * from "./ListAgentAliasesCommand";
|
|
37
40
|
export * from "./ListAgentKnowledgeBasesCommand";
|
|
@@ -42,6 +45,7 @@ export * from "./ListFlowAliasesCommand";
|
|
|
42
45
|
export * from "./ListFlowVersionsCommand";
|
|
43
46
|
export * from "./ListFlowsCommand";
|
|
44
47
|
export * from "./ListIngestionJobsCommand";
|
|
48
|
+
export * from "./ListKnowledgeBaseDocumentsCommand";
|
|
45
49
|
export * from "./ListKnowledgeBasesCommand";
|
|
46
50
|
export * from "./ListPromptsCommand";
|
|
47
51
|
export * from "./ListTagsForResourceCommand";
|