@aws-sdk/client-bedrock-agent 3.702.0 → 3.705.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 (71) hide show
  1. package/README.md +72 -0
  2. package/dist-cjs/index.js +772 -28
  3. package/dist-es/BedrockAgent.js +18 -0
  4. package/dist-es/commands/AssociateAgentCollaboratorCommand.js +23 -0
  5. package/dist-es/commands/DeleteKnowledgeBaseDocumentsCommand.js +22 -0
  6. package/dist-es/commands/DisassociateAgentCollaboratorCommand.js +22 -0
  7. package/dist-es/commands/GetAgentCollaboratorCommand.js +23 -0
  8. package/dist-es/commands/GetKnowledgeBaseDocumentsCommand.js +22 -0
  9. package/dist-es/commands/IngestKnowledgeBaseDocumentsCommand.js +23 -0
  10. package/dist-es/commands/ListAgentCollaboratorsCommand.js +23 -0
  11. package/dist-es/commands/ListKnowledgeBaseDocumentsCommand.js +22 -0
  12. package/dist-es/commands/UpdateAgentCollaboratorCommand.js +23 -0
  13. package/dist-es/commands/index.js +9 -0
  14. package/dist-es/models/models_0.js +75 -18
  15. package/dist-es/models/models_1.js +71 -1
  16. package/dist-es/pagination/ListAgentCollaboratorsPaginator.js +4 -0
  17. package/dist-es/pagination/ListKnowledgeBaseDocumentsPaginator.js +4 -0
  18. package/dist-es/pagination/index.js +2 -0
  19. package/dist-es/protocols/Aws_restJson1.js +392 -0
  20. package/dist-types/BedrockAgent.d.ts +63 -0
  21. package/dist-types/BedrockAgentClient.d.ts +11 -2
  22. package/dist-types/commands/AssociateAgentCollaboratorCommand.d.ts +113 -0
  23. package/dist-types/commands/AssociateAgentKnowledgeBaseCommand.d.ts +1 -1
  24. package/dist-types/commands/CreateAgentCommand.d.ts +4 -0
  25. package/dist-types/commands/CreateDataSourceCommand.d.ts +3 -3
  26. package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +1 -1
  27. package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
  28. package/dist-types/commands/DeleteKnowledgeBaseDocumentsCommand.d.ts +119 -0
  29. package/dist-types/commands/DisassociateAgentCollaboratorCommand.d.ts +89 -0
  30. package/dist-types/commands/DisassociateAgentKnowledgeBaseCommand.d.ts +1 -1
  31. package/dist-types/commands/GetAgentCollaboratorCommand.d.ts +101 -0
  32. package/dist-types/commands/GetAgentCommand.d.ts +2 -0
  33. package/dist-types/commands/GetAgentVersionCommand.d.ts +2 -0
  34. package/dist-types/commands/GetDataSourceCommand.d.ts +1 -1
  35. package/dist-types/commands/GetKnowledgeBaseDocumentsCommand.d.ts +118 -0
  36. package/dist-types/commands/IngestKnowledgeBaseDocumentsCommand.d.ts +161 -0
  37. package/dist-types/commands/ListAgentCollaboratorsCommand.d.ts +104 -0
  38. package/dist-types/commands/ListKnowledgeBaseDocumentsCommand.d.ts +110 -0
  39. package/dist-types/commands/UpdateAgentCollaboratorCommand.d.ts +113 -0
  40. package/dist-types/commands/UpdateAgentCommand.d.ts +4 -0
  41. package/dist-types/commands/UpdateDataSourceCommand.d.ts +2 -2
  42. package/dist-types/commands/index.d.ts +9 -0
  43. package/dist-types/models/models_0.d.ts +589 -475
  44. package/dist-types/models/models_1.d.ts +923 -1
  45. package/dist-types/pagination/ListAgentCollaboratorsPaginator.d.ts +7 -0
  46. package/dist-types/pagination/ListKnowledgeBaseDocumentsPaginator.d.ts +7 -0
  47. package/dist-types/pagination/index.d.ts +2 -0
  48. package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
  49. package/dist-types/ts3.4/BedrockAgent.d.ts +153 -0
  50. package/dist-types/ts3.4/BedrockAgentClient.d.ts +54 -0
  51. package/dist-types/ts3.4/commands/AssociateAgentCollaboratorCommand.d.ts +51 -0
  52. package/dist-types/ts3.4/commands/AssociateAgentKnowledgeBaseCommand.d.ts +1 -1
  53. package/dist-types/ts3.4/commands/CreateKnowledgeBaseCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/DeleteKnowledgeBaseDocumentsCommand.d.ts +51 -0
  56. package/dist-types/ts3.4/commands/DisassociateAgentCollaboratorCommand.d.ts +51 -0
  57. package/dist-types/ts3.4/commands/DisassociateAgentKnowledgeBaseCommand.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/GetAgentCollaboratorCommand.d.ts +51 -0
  59. package/dist-types/ts3.4/commands/GetKnowledgeBaseDocumentsCommand.d.ts +51 -0
  60. package/dist-types/ts3.4/commands/IngestKnowledgeBaseDocumentsCommand.d.ts +51 -0
  61. package/dist-types/ts3.4/commands/ListAgentCollaboratorsCommand.d.ts +51 -0
  62. package/dist-types/ts3.4/commands/ListKnowledgeBaseDocumentsCommand.d.ts +51 -0
  63. package/dist-types/ts3.4/commands/UpdateAgentCollaboratorCommand.d.ts +51 -0
  64. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  65. package/dist-types/ts3.4/models/models_0.d.ts +185 -153
  66. package/dist-types/ts3.4/models/models_1.d.ts +270 -4
  67. package/dist-types/ts3.4/pagination/ListAgentCollaboratorsPaginator.d.ts +11 -0
  68. package/dist-types/ts3.4/pagination/ListKnowledgeBaseDocumentsPaginator.d.ts +11 -0
  69. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  70. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
  71. package/package.json +1 -1
@@ -0,0 +1,89 @@
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 { DisassociateAgentCollaboratorRequest, DisassociateAgentCollaboratorResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DisassociateAgentCollaboratorCommand}.
14
+ */
15
+ export interface DisassociateAgentCollaboratorCommandInput extends DisassociateAgentCollaboratorRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DisassociateAgentCollaboratorCommand}.
21
+ */
22
+ export interface DisassociateAgentCollaboratorCommandOutput extends DisassociateAgentCollaboratorResponse, __MetadataBearer {
23
+ }
24
+ declare const DisassociateAgentCollaboratorCommand_base: {
25
+ new (input: DisassociateAgentCollaboratorCommandInput): import("@smithy/smithy-client").CommandImpl<DisassociateAgentCollaboratorCommandInput, DisassociateAgentCollaboratorCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DisassociateAgentCollaboratorCommandInput): import("@smithy/smithy-client").CommandImpl<DisassociateAgentCollaboratorCommandInput, DisassociateAgentCollaboratorCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Disassociates an agent collaborator.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentClient, DisassociateAgentCollaboratorCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
35
+ * // const { BedrockAgentClient, DisassociateAgentCollaboratorCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
36
+ * const client = new BedrockAgentClient(config);
37
+ * const input = { // DisassociateAgentCollaboratorRequest
38
+ * agentId: "STRING_VALUE", // required
39
+ * agentVersion: "STRING_VALUE", // required
40
+ * collaboratorId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DisassociateAgentCollaboratorCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param DisassociateAgentCollaboratorCommandInput - {@link DisassociateAgentCollaboratorCommandInput}
49
+ * @returns {@link DisassociateAgentCollaboratorCommandOutput}
50
+ * @see {@link DisassociateAgentCollaboratorCommandInput} for command's `input` shape.
51
+ * @see {@link DisassociateAgentCollaboratorCommandOutput} for command's `response` shape.
52
+ * @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>The request is denied because of missing access permissions.</p>
56
+ *
57
+ * @throws {@link ConflictException} (client fault)
58
+ * <p>There was a conflict performing an operation.</p>
59
+ *
60
+ * @throws {@link InternalServerException} (server fault)
61
+ * <p>An internal server error occurred. Retry your request.</p>
62
+ *
63
+ * @throws {@link ResourceNotFoundException} (client fault)
64
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
65
+ *
66
+ * @throws {@link ThrottlingException} (client fault)
67
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
68
+ *
69
+ * @throws {@link ValidationException} (client fault)
70
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
71
+ *
72
+ * @throws {@link BedrockAgentServiceException}
73
+ * <p>Base exception class for all service exceptions from BedrockAgent service.</p>
74
+ *
75
+ * @public
76
+ */
77
+ export declare class DisassociateAgentCollaboratorCommand extends DisassociateAgentCollaboratorCommand_base {
78
+ /** @internal type navigation helper, not in runtime. */
79
+ protected static __types: {
80
+ api: {
81
+ input: DisassociateAgentCollaboratorRequest;
82
+ output: {};
83
+ };
84
+ sdk: {
85
+ input: DisassociateAgentCollaboratorCommandInput;
86
+ output: DisassociateAgentCollaboratorCommandOutput;
87
+ };
88
+ };
89
+ }
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
4
- import { DisassociateAgentKnowledgeBaseRequest, DisassociateAgentKnowledgeBaseResponse } from "../models/models_0";
4
+ import { DisassociateAgentKnowledgeBaseRequest, DisassociateAgentKnowledgeBaseResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -0,0 +1,101 @@
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 { GetAgentCollaboratorRequest, GetAgentCollaboratorResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetAgentCollaboratorCommand}.
14
+ */
15
+ export interface GetAgentCollaboratorCommandInput extends GetAgentCollaboratorRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetAgentCollaboratorCommand}.
21
+ */
22
+ export interface GetAgentCollaboratorCommandOutput extends GetAgentCollaboratorResponse, __MetadataBearer {
23
+ }
24
+ declare const GetAgentCollaboratorCommand_base: {
25
+ new (input: GetAgentCollaboratorCommandInput): import("@smithy/smithy-client").CommandImpl<GetAgentCollaboratorCommandInput, GetAgentCollaboratorCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetAgentCollaboratorCommandInput): import("@smithy/smithy-client").CommandImpl<GetAgentCollaboratorCommandInput, GetAgentCollaboratorCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves information about an agent's collaborator.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentClient, GetAgentCollaboratorCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
35
+ * // const { BedrockAgentClient, GetAgentCollaboratorCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
36
+ * const client = new BedrockAgentClient(config);
37
+ * const input = { // GetAgentCollaboratorRequest
38
+ * agentId: "STRING_VALUE", // required
39
+ * agentVersion: "STRING_VALUE", // required
40
+ * collaboratorId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new GetAgentCollaboratorCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // GetAgentCollaboratorResponse
45
+ * // agentCollaborator: { // AgentCollaborator
46
+ * // agentId: "STRING_VALUE", // required
47
+ * // agentVersion: "STRING_VALUE", // required
48
+ * // agentDescriptor: { // AgentDescriptor
49
+ * // aliasArn: "STRING_VALUE",
50
+ * // },
51
+ * // collaboratorId: "STRING_VALUE", // required
52
+ * // collaborationInstruction: "STRING_VALUE", // required
53
+ * // collaboratorName: "STRING_VALUE", // required
54
+ * // createdAt: new Date("TIMESTAMP"), // required
55
+ * // lastUpdatedAt: new Date("TIMESTAMP"), // required
56
+ * // relayConversationHistory: "TO_COLLABORATOR" || "DISABLED",
57
+ * // clientToken: "STRING_VALUE",
58
+ * // },
59
+ * // };
60
+ *
61
+ * ```
62
+ *
63
+ * @param GetAgentCollaboratorCommandInput - {@link GetAgentCollaboratorCommandInput}
64
+ * @returns {@link GetAgentCollaboratorCommandOutput}
65
+ * @see {@link GetAgentCollaboratorCommandInput} for command's `input` shape.
66
+ * @see {@link GetAgentCollaboratorCommandOutput} for command's `response` shape.
67
+ * @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
68
+ *
69
+ * @throws {@link AccessDeniedException} (client fault)
70
+ * <p>The request is denied because of missing access permissions.</p>
71
+ *
72
+ * @throws {@link InternalServerException} (server fault)
73
+ * <p>An internal server error occurred. Retry your request.</p>
74
+ *
75
+ * @throws {@link ResourceNotFoundException} (client fault)
76
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
77
+ *
78
+ * @throws {@link ThrottlingException} (client fault)
79
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
80
+ *
81
+ * @throws {@link ValidationException} (client fault)
82
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
83
+ *
84
+ * @throws {@link BedrockAgentServiceException}
85
+ * <p>Base exception class for all service exceptions from BedrockAgent service.</p>
86
+ *
87
+ * @public
88
+ */
89
+ export declare class GetAgentCollaboratorCommand extends GetAgentCollaboratorCommand_base {
90
+ /** @internal type navigation helper, not in runtime. */
91
+ protected static __types: {
92
+ api: {
93
+ input: GetAgentCollaboratorRequest;
94
+ output: GetAgentCollaboratorResponse;
95
+ };
96
+ sdk: {
97
+ input: GetAgentCollaboratorCommandInput;
98
+ output: GetAgentCollaboratorCommandOutput;
99
+ };
100
+ };
101
+ }
@@ -85,6 +85,7 @@ declare const GetAgentCommand_base: {
85
85
  * // ],
86
86
  * // },
87
87
  * // parserMode: "DEFAULT" || "OVERRIDDEN",
88
+ * // foundationModel: "STRING_VALUE",
88
89
  * // },
89
90
  * // ],
90
91
  * // overrideLambda: "STRING_VALUE",
@@ -99,6 +100,7 @@ declare const GetAgentCommand_base: {
99
100
  * // ],
100
101
  * // storageDays: Number("int"),
101
102
  * // },
103
+ * // agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED",
102
104
  * // },
103
105
  * // };
104
106
  *
@@ -78,6 +78,7 @@ declare const GetAgentVersionCommand_base: {
78
78
  * // ],
79
79
  * // },
80
80
  * // parserMode: "DEFAULT" || "OVERRIDDEN",
81
+ * // foundationModel: "STRING_VALUE",
81
82
  * // },
82
83
  * // ],
83
84
  * // overrideLambda: "STRING_VALUE",
@@ -92,6 +93,7 @@ declare const GetAgentVersionCommand_base: {
92
93
  * // ],
93
94
  * // storageDays: Number("int"),
94
95
  * // },
96
+ * // agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED",
95
97
  * // },
96
98
  * // };
97
99
  *
@@ -48,7 +48,7 @@ declare const GetDataSourceCommand_base: {
48
48
  * // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL", // required
49
49
  * // description: "STRING_VALUE",
50
50
  * // dataSourceConfiguration: { // DataSourceConfiguration
51
- * // type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT", // required
51
+ * // type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT" || "CUSTOM", // required
52
52
  * // s3Configuration: { // S3DataSourceConfiguration
53
53
  * // bucketArn: "STRING_VALUE", // required
54
54
  * // inclusionPrefixes: [ // S3Prefixes
@@ -0,0 +1,118 @@
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 { GetKnowledgeBaseDocumentsRequest, GetKnowledgeBaseDocumentsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetKnowledgeBaseDocumentsCommand}.
14
+ */
15
+ export interface GetKnowledgeBaseDocumentsCommandInput extends GetKnowledgeBaseDocumentsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetKnowledgeBaseDocumentsCommand}.
21
+ */
22
+ export interface GetKnowledgeBaseDocumentsCommandOutput extends GetKnowledgeBaseDocumentsResponse, __MetadataBearer {
23
+ }
24
+ declare const GetKnowledgeBaseDocumentsCommand_base: {
25
+ new (input: GetKnowledgeBaseDocumentsCommandInput): import("@smithy/smithy-client").CommandImpl<GetKnowledgeBaseDocumentsCommandInput, GetKnowledgeBaseDocumentsCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetKnowledgeBaseDocumentsCommandInput): import("@smithy/smithy-client").CommandImpl<GetKnowledgeBaseDocumentsCommandInput, GetKnowledgeBaseDocumentsCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves specific documents from 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, GetKnowledgeBaseDocumentsCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
35
+ * // const { BedrockAgentClient, GetKnowledgeBaseDocumentsCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
36
+ * const client = new BedrockAgentClient(config);
37
+ * const input = { // GetKnowledgeBaseDocumentsRequest
38
+ * knowledgeBaseId: "STRING_VALUE", // required
39
+ * dataSourceId: "STRING_VALUE", // required
40
+ * documentIdentifiers: [ // DocumentIdentifiers // required
41
+ * { // DocumentIdentifier
42
+ * dataSourceType: "CUSTOM" || "S3", // required
43
+ * s3: { // S3Location
44
+ * uri: "STRING_VALUE", // required
45
+ * },
46
+ * custom: { // CustomDocumentIdentifier
47
+ * id: "STRING_VALUE", // required
48
+ * },
49
+ * },
50
+ * ],
51
+ * };
52
+ * const command = new GetKnowledgeBaseDocumentsCommand(input);
53
+ * const response = await client.send(command);
54
+ * // { // GetKnowledgeBaseDocumentsResponse
55
+ * // documentDetails: [ // KnowledgeBaseDocumentDetails
56
+ * // { // KnowledgeBaseDocumentDetail
57
+ * // knowledgeBaseId: "STRING_VALUE", // required
58
+ * // dataSourceId: "STRING_VALUE", // required
59
+ * // status: "INDEXED" || "PARTIALLY_INDEXED" || "PENDING" || "FAILED" || "METADATA_PARTIALLY_INDEXED" || "METADATA_UPDATE_FAILED" || "IGNORED" || "NOT_FOUND" || "STARTING" || "IN_PROGRESS" || "DELETING" || "DELETE_IN_PROGRESS", // required
60
+ * // identifier: { // DocumentIdentifier
61
+ * // dataSourceType: "CUSTOM" || "S3", // required
62
+ * // s3: { // S3Location
63
+ * // uri: "STRING_VALUE", // required
64
+ * // },
65
+ * // custom: { // CustomDocumentIdentifier
66
+ * // id: "STRING_VALUE", // required
67
+ * // },
68
+ * // },
69
+ * // statusReason: "STRING_VALUE",
70
+ * // updatedAt: new Date("TIMESTAMP"),
71
+ * // },
72
+ * // ],
73
+ * // };
74
+ *
75
+ * ```
76
+ *
77
+ * @param GetKnowledgeBaseDocumentsCommandInput - {@link GetKnowledgeBaseDocumentsCommandInput}
78
+ * @returns {@link GetKnowledgeBaseDocumentsCommandOutput}
79
+ * @see {@link GetKnowledgeBaseDocumentsCommandInput} for command's `input` shape.
80
+ * @see {@link GetKnowledgeBaseDocumentsCommandOutput} for command's `response` shape.
81
+ * @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
82
+ *
83
+ * @throws {@link AccessDeniedException} (client fault)
84
+ * <p>The request is denied because of missing access permissions.</p>
85
+ *
86
+ * @throws {@link InternalServerException} (server fault)
87
+ * <p>An internal server error occurred. Retry your request.</p>
88
+ *
89
+ * @throws {@link ResourceNotFoundException} (client fault)
90
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
91
+ *
92
+ * @throws {@link ServiceQuotaExceededException} (client fault)
93
+ * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
94
+ *
95
+ * @throws {@link ThrottlingException} (client fault)
96
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
97
+ *
98
+ * @throws {@link ValidationException} (client fault)
99
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
100
+ *
101
+ * @throws {@link BedrockAgentServiceException}
102
+ * <p>Base exception class for all service exceptions from BedrockAgent service.</p>
103
+ *
104
+ * @public
105
+ */
106
+ export declare class GetKnowledgeBaseDocumentsCommand extends GetKnowledgeBaseDocumentsCommand_base {
107
+ /** @internal type navigation helper, not in runtime. */
108
+ protected static __types: {
109
+ api: {
110
+ input: GetKnowledgeBaseDocumentsRequest;
111
+ output: GetKnowledgeBaseDocumentsResponse;
112
+ };
113
+ sdk: {
114
+ input: GetKnowledgeBaseDocumentsCommandInput;
115
+ output: GetKnowledgeBaseDocumentsCommandOutput;
116
+ };
117
+ };
118
+ }
@@ -0,0 +1,161 @@
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 { IngestKnowledgeBaseDocumentsRequest, IngestKnowledgeBaseDocumentsResponse } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link IngestKnowledgeBaseDocumentsCommand}.
14
+ */
15
+ export interface IngestKnowledgeBaseDocumentsCommandInput extends IngestKnowledgeBaseDocumentsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link IngestKnowledgeBaseDocumentsCommand}.
21
+ */
22
+ export interface IngestKnowledgeBaseDocumentsCommandOutput extends IngestKnowledgeBaseDocumentsResponse, __MetadataBearer {
23
+ }
24
+ declare const IngestKnowledgeBaseDocumentsCommand_base: {
25
+ new (input: IngestKnowledgeBaseDocumentsCommandInput): import("@smithy/smithy-client").CommandImpl<IngestKnowledgeBaseDocumentsCommandInput, IngestKnowledgeBaseDocumentsCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: IngestKnowledgeBaseDocumentsCommandInput): import("@smithy/smithy-client").CommandImpl<IngestKnowledgeBaseDocumentsCommandInput, IngestKnowledgeBaseDocumentsCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Ingests documents directly into the knowledge base that is connected to the data source. The <code>dataSourceType</code> specified in the content for each document must match the type of the data source that you specify in the header. 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, IngestKnowledgeBaseDocumentsCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
35
+ * // const { BedrockAgentClient, IngestKnowledgeBaseDocumentsCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
36
+ * const client = new BedrockAgentClient(config);
37
+ * const input = { // IngestKnowledgeBaseDocumentsRequest
38
+ * knowledgeBaseId: "STRING_VALUE", // required
39
+ * dataSourceId: "STRING_VALUE", // required
40
+ * clientToken: "STRING_VALUE",
41
+ * documents: [ // KnowledgeBaseDocuments // required
42
+ * { // KnowledgeBaseDocument
43
+ * metadata: { // DocumentMetadata
44
+ * type: "IN_LINE_ATTRIBUTE" || "S3_LOCATION", // required
45
+ * inlineAttributes: [ // MetadataAttributes
46
+ * { // MetadataAttribute
47
+ * key: "STRING_VALUE", // required
48
+ * value: { // MetadataAttributeValue
49
+ * type: "BOOLEAN" || "NUMBER" || "STRING" || "STRING_LIST", // required
50
+ * numberValue: Number("double"),
51
+ * booleanValue: true || false,
52
+ * stringValue: "STRING_VALUE",
53
+ * stringListValue: [ // StringListValue
54
+ * "STRING_VALUE",
55
+ * ],
56
+ * },
57
+ * },
58
+ * ],
59
+ * s3Location: { // CustomS3Location
60
+ * uri: "STRING_VALUE", // required
61
+ * bucketOwnerAccountId: "STRING_VALUE",
62
+ * },
63
+ * },
64
+ * content: { // DocumentContent
65
+ * dataSourceType: "CUSTOM" || "S3", // required
66
+ * custom: { // CustomContent
67
+ * customDocumentIdentifier: { // CustomDocumentIdentifier
68
+ * id: "STRING_VALUE", // required
69
+ * },
70
+ * sourceType: "IN_LINE" || "S3_LOCATION", // required
71
+ * s3Location: {
72
+ * uri: "STRING_VALUE", // required
73
+ * bucketOwnerAccountId: "STRING_VALUE",
74
+ * },
75
+ * inlineContent: { // InlineContent
76
+ * type: "BYTE" || "TEXT", // required
77
+ * byteContent: { // ByteContentDoc
78
+ * mimeType: "STRING_VALUE", // required
79
+ * data: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
80
+ * },
81
+ * textContent: { // TextContentDoc
82
+ * data: "STRING_VALUE", // required
83
+ * },
84
+ * },
85
+ * },
86
+ * s3: { // S3Content
87
+ * s3Location: { // S3Location
88
+ * uri: "STRING_VALUE", // required
89
+ * },
90
+ * },
91
+ * },
92
+ * },
93
+ * ],
94
+ * };
95
+ * const command = new IngestKnowledgeBaseDocumentsCommand(input);
96
+ * const response = await client.send(command);
97
+ * // { // IngestKnowledgeBaseDocumentsResponse
98
+ * // documentDetails: [ // KnowledgeBaseDocumentDetails
99
+ * // { // KnowledgeBaseDocumentDetail
100
+ * // knowledgeBaseId: "STRING_VALUE", // required
101
+ * // dataSourceId: "STRING_VALUE", // required
102
+ * // status: "INDEXED" || "PARTIALLY_INDEXED" || "PENDING" || "FAILED" || "METADATA_PARTIALLY_INDEXED" || "METADATA_UPDATE_FAILED" || "IGNORED" || "NOT_FOUND" || "STARTING" || "IN_PROGRESS" || "DELETING" || "DELETE_IN_PROGRESS", // required
103
+ * // identifier: { // DocumentIdentifier
104
+ * // dataSourceType: "CUSTOM" || "S3", // required
105
+ * // s3: { // S3Location
106
+ * // uri: "STRING_VALUE", // required
107
+ * // },
108
+ * // custom: { // CustomDocumentIdentifier
109
+ * // id: "STRING_VALUE", // required
110
+ * // },
111
+ * // },
112
+ * // statusReason: "STRING_VALUE",
113
+ * // updatedAt: new Date("TIMESTAMP"),
114
+ * // },
115
+ * // ],
116
+ * // };
117
+ *
118
+ * ```
119
+ *
120
+ * @param IngestKnowledgeBaseDocumentsCommandInput - {@link IngestKnowledgeBaseDocumentsCommandInput}
121
+ * @returns {@link IngestKnowledgeBaseDocumentsCommandOutput}
122
+ * @see {@link IngestKnowledgeBaseDocumentsCommandInput} for command's `input` shape.
123
+ * @see {@link IngestKnowledgeBaseDocumentsCommandOutput} for command's `response` shape.
124
+ * @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
125
+ *
126
+ * @throws {@link AccessDeniedException} (client fault)
127
+ * <p>The request is denied because of missing access permissions.</p>
128
+ *
129
+ * @throws {@link InternalServerException} (server fault)
130
+ * <p>An internal server error occurred. Retry your request.</p>
131
+ *
132
+ * @throws {@link ResourceNotFoundException} (client fault)
133
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
134
+ *
135
+ * @throws {@link ServiceQuotaExceededException} (client fault)
136
+ * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
137
+ *
138
+ * @throws {@link ThrottlingException} (client fault)
139
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
140
+ *
141
+ * @throws {@link ValidationException} (client fault)
142
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
143
+ *
144
+ * @throws {@link BedrockAgentServiceException}
145
+ * <p>Base exception class for all service exceptions from BedrockAgent service.</p>
146
+ *
147
+ * @public
148
+ */
149
+ export declare class IngestKnowledgeBaseDocumentsCommand extends IngestKnowledgeBaseDocumentsCommand_base {
150
+ /** @internal type navigation helper, not in runtime. */
151
+ protected static __types: {
152
+ api: {
153
+ input: IngestKnowledgeBaseDocumentsRequest;
154
+ output: IngestKnowledgeBaseDocumentsResponse;
155
+ };
156
+ sdk: {
157
+ input: IngestKnowledgeBaseDocumentsCommandInput;
158
+ output: IngestKnowledgeBaseDocumentsCommandOutput;
159
+ };
160
+ };
161
+ }
@@ -0,0 +1,104 @@
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 { ListAgentCollaboratorsRequest, ListAgentCollaboratorsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListAgentCollaboratorsCommand}.
14
+ */
15
+ export interface ListAgentCollaboratorsCommandInput extends ListAgentCollaboratorsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListAgentCollaboratorsCommand}.
21
+ */
22
+ export interface ListAgentCollaboratorsCommandOutput extends ListAgentCollaboratorsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListAgentCollaboratorsCommand_base: {
25
+ new (input: ListAgentCollaboratorsCommandInput): import("@smithy/smithy-client").CommandImpl<ListAgentCollaboratorsCommandInput, ListAgentCollaboratorsCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ListAgentCollaboratorsCommandInput): import("@smithy/smithy-client").CommandImpl<ListAgentCollaboratorsCommandInput, ListAgentCollaboratorsCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieve a list of an agent's collaborators.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentClient, ListAgentCollaboratorsCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
35
+ * // const { BedrockAgentClient, ListAgentCollaboratorsCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
36
+ * const client = new BedrockAgentClient(config);
37
+ * const input = { // ListAgentCollaboratorsRequest
38
+ * agentId: "STRING_VALUE", // required
39
+ * agentVersion: "STRING_VALUE", // required
40
+ * maxResults: Number("int"),
41
+ * nextToken: "STRING_VALUE",
42
+ * };
43
+ * const command = new ListAgentCollaboratorsCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // ListAgentCollaboratorsResponse
46
+ * // agentCollaboratorSummaries: [ // AgentCollaboratorSummaries // required
47
+ * // { // AgentCollaboratorSummary
48
+ * // agentId: "STRING_VALUE", // required
49
+ * // agentVersion: "STRING_VALUE", // required
50
+ * // collaboratorId: "STRING_VALUE", // required
51
+ * // agentDescriptor: { // AgentDescriptor
52
+ * // aliasArn: "STRING_VALUE",
53
+ * // },
54
+ * // collaborationInstruction: "STRING_VALUE", // required
55
+ * // relayConversationHistory: "TO_COLLABORATOR" || "DISABLED", // required
56
+ * // collaboratorName: "STRING_VALUE", // required
57
+ * // createdAt: new Date("TIMESTAMP"), // required
58
+ * // lastUpdatedAt: new Date("TIMESTAMP"), // required
59
+ * // },
60
+ * // ],
61
+ * // nextToken: "STRING_VALUE",
62
+ * // };
63
+ *
64
+ * ```
65
+ *
66
+ * @param ListAgentCollaboratorsCommandInput - {@link ListAgentCollaboratorsCommandInput}
67
+ * @returns {@link ListAgentCollaboratorsCommandOutput}
68
+ * @see {@link ListAgentCollaboratorsCommandInput} for command's `input` shape.
69
+ * @see {@link ListAgentCollaboratorsCommandOutput} for command's `response` shape.
70
+ * @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
71
+ *
72
+ * @throws {@link AccessDeniedException} (client fault)
73
+ * <p>The request is denied because of missing access permissions.</p>
74
+ *
75
+ * @throws {@link InternalServerException} (server fault)
76
+ * <p>An internal server error occurred. Retry your request.</p>
77
+ *
78
+ * @throws {@link ResourceNotFoundException} (client fault)
79
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
80
+ *
81
+ * @throws {@link ThrottlingException} (client fault)
82
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
83
+ *
84
+ * @throws {@link ValidationException} (client fault)
85
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
86
+ *
87
+ * @throws {@link BedrockAgentServiceException}
88
+ * <p>Base exception class for all service exceptions from BedrockAgent service.</p>
89
+ *
90
+ * @public
91
+ */
92
+ export declare class ListAgentCollaboratorsCommand extends ListAgentCollaboratorsCommand_base {
93
+ /** @internal type navigation helper, not in runtime. */
94
+ protected static __types: {
95
+ api: {
96
+ input: ListAgentCollaboratorsRequest;
97
+ output: ListAgentCollaboratorsResponse;
98
+ };
99
+ sdk: {
100
+ input: ListAgentCollaboratorsCommandInput;
101
+ output: ListAgentCollaboratorsCommandOutput;
102
+ };
103
+ };
104
+ }