@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
@@ -1,5 +1,6 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { BedrockAgentClient } from "./BedrockAgentClient";
3
+ import { AssociateAgentCollaboratorCommand, } from "./commands/AssociateAgentCollaboratorCommand";
3
4
  import { AssociateAgentKnowledgeBaseCommand, } from "./commands/AssociateAgentKnowledgeBaseCommand";
4
5
  import { CreateAgentActionGroupCommand, } from "./commands/CreateAgentActionGroupCommand";
5
6
  import { CreateAgentAliasCommand, } from "./commands/CreateAgentAliasCommand";
@@ -20,10 +21,13 @@ import { DeleteFlowAliasCommand, } from "./commands/DeleteFlowAliasCommand";
20
21
  import { DeleteFlowCommand } from "./commands/DeleteFlowCommand";
21
22
  import { DeleteFlowVersionCommand, } from "./commands/DeleteFlowVersionCommand";
22
23
  import { DeleteKnowledgeBaseCommand, } from "./commands/DeleteKnowledgeBaseCommand";
24
+ import { DeleteKnowledgeBaseDocumentsCommand, } from "./commands/DeleteKnowledgeBaseDocumentsCommand";
23
25
  import { DeletePromptCommand, } from "./commands/DeletePromptCommand";
26
+ import { DisassociateAgentCollaboratorCommand, } from "./commands/DisassociateAgentCollaboratorCommand";
24
27
  import { DisassociateAgentKnowledgeBaseCommand, } from "./commands/DisassociateAgentKnowledgeBaseCommand";
25
28
  import { GetAgentActionGroupCommand, } from "./commands/GetAgentActionGroupCommand";
26
29
  import { GetAgentAliasCommand, } from "./commands/GetAgentAliasCommand";
30
+ import { GetAgentCollaboratorCommand, } from "./commands/GetAgentCollaboratorCommand";
27
31
  import { GetAgentCommand } from "./commands/GetAgentCommand";
28
32
  import { GetAgentKnowledgeBaseCommand, } from "./commands/GetAgentKnowledgeBaseCommand";
29
33
  import { GetAgentVersionCommand, } from "./commands/GetAgentVersionCommand";
@@ -33,9 +37,12 @@ import { GetFlowCommand } from "./commands/GetFlowCommand";
33
37
  import { GetFlowVersionCommand, } from "./commands/GetFlowVersionCommand";
34
38
  import { GetIngestionJobCommand, } from "./commands/GetIngestionJobCommand";
35
39
  import { GetKnowledgeBaseCommand, } from "./commands/GetKnowledgeBaseCommand";
40
+ import { GetKnowledgeBaseDocumentsCommand, } from "./commands/GetKnowledgeBaseDocumentsCommand";
36
41
  import { GetPromptCommand } from "./commands/GetPromptCommand";
42
+ import { IngestKnowledgeBaseDocumentsCommand, } from "./commands/IngestKnowledgeBaseDocumentsCommand";
37
43
  import { ListAgentActionGroupsCommand, } from "./commands/ListAgentActionGroupsCommand";
38
44
  import { ListAgentAliasesCommand, } from "./commands/ListAgentAliasesCommand";
45
+ import { ListAgentCollaboratorsCommand, } from "./commands/ListAgentCollaboratorsCommand";
39
46
  import { ListAgentKnowledgeBasesCommand, } from "./commands/ListAgentKnowledgeBasesCommand";
40
47
  import { ListAgentsCommand } from "./commands/ListAgentsCommand";
41
48
  import { ListAgentVersionsCommand, } from "./commands/ListAgentVersionsCommand";
@@ -44,6 +51,7 @@ import { ListFlowAliasesCommand, } from "./commands/ListFlowAliasesCommand";
44
51
  import { ListFlowsCommand } from "./commands/ListFlowsCommand";
45
52
  import { ListFlowVersionsCommand, } from "./commands/ListFlowVersionsCommand";
46
53
  import { ListIngestionJobsCommand, } from "./commands/ListIngestionJobsCommand";
54
+ import { ListKnowledgeBaseDocumentsCommand, } from "./commands/ListKnowledgeBaseDocumentsCommand";
47
55
  import { ListKnowledgeBasesCommand, } from "./commands/ListKnowledgeBasesCommand";
48
56
  import { ListPromptsCommand } from "./commands/ListPromptsCommand";
49
57
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
@@ -55,6 +63,7 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
55
63
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
56
64
  import { UpdateAgentActionGroupCommand, } from "./commands/UpdateAgentActionGroupCommand";
57
65
  import { UpdateAgentAliasCommand, } from "./commands/UpdateAgentAliasCommand";
66
+ import { UpdateAgentCollaboratorCommand, } from "./commands/UpdateAgentCollaboratorCommand";
58
67
  import { UpdateAgentCommand } from "./commands/UpdateAgentCommand";
59
68
  import { UpdateAgentKnowledgeBaseCommand, } from "./commands/UpdateAgentKnowledgeBaseCommand";
60
69
  import { UpdateDataSourceCommand, } from "./commands/UpdateDataSourceCommand";
@@ -64,6 +73,7 @@ import { UpdateKnowledgeBaseCommand, } from "./commands/UpdateKnowledgeBaseComma
64
73
  import { UpdatePromptCommand, } from "./commands/UpdatePromptCommand";
65
74
  import { ValidateFlowDefinitionCommand, } from "./commands/ValidateFlowDefinitionCommand";
66
75
  const commands = {
76
+ AssociateAgentCollaboratorCommand,
67
77
  AssociateAgentKnowledgeBaseCommand,
68
78
  CreateAgentCommand,
69
79
  CreateAgentActionGroupCommand,
@@ -84,11 +94,14 @@ const commands = {
84
94
  DeleteFlowAliasCommand,
85
95
  DeleteFlowVersionCommand,
86
96
  DeleteKnowledgeBaseCommand,
97
+ DeleteKnowledgeBaseDocumentsCommand,
87
98
  DeletePromptCommand,
99
+ DisassociateAgentCollaboratorCommand,
88
100
  DisassociateAgentKnowledgeBaseCommand,
89
101
  GetAgentCommand,
90
102
  GetAgentActionGroupCommand,
91
103
  GetAgentAliasCommand,
104
+ GetAgentCollaboratorCommand,
92
105
  GetAgentKnowledgeBaseCommand,
93
106
  GetAgentVersionCommand,
94
107
  GetDataSourceCommand,
@@ -97,9 +110,12 @@ const commands = {
97
110
  GetFlowVersionCommand,
98
111
  GetIngestionJobCommand,
99
112
  GetKnowledgeBaseCommand,
113
+ GetKnowledgeBaseDocumentsCommand,
100
114
  GetPromptCommand,
115
+ IngestKnowledgeBaseDocumentsCommand,
101
116
  ListAgentActionGroupsCommand,
102
117
  ListAgentAliasesCommand,
118
+ ListAgentCollaboratorsCommand,
103
119
  ListAgentKnowledgeBasesCommand,
104
120
  ListAgentsCommand,
105
121
  ListAgentVersionsCommand,
@@ -108,6 +124,7 @@ const commands = {
108
124
  ListFlowsCommand,
109
125
  ListFlowVersionsCommand,
110
126
  ListIngestionJobsCommand,
127
+ ListKnowledgeBaseDocumentsCommand,
111
128
  ListKnowledgeBasesCommand,
112
129
  ListPromptsCommand,
113
130
  ListTagsForResourceCommand,
@@ -120,6 +137,7 @@ const commands = {
120
137
  UpdateAgentCommand,
121
138
  UpdateAgentActionGroupCommand,
122
139
  UpdateAgentAliasCommand,
140
+ UpdateAgentCollaboratorCommand,
123
141
  UpdateAgentKnowledgeBaseCommand,
124
142
  UpdateDataSourceCommand,
125
143
  UpdateFlowCommand,
@@ -0,0 +1,23 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { AssociateAgentCollaboratorRequestFilterSensitiveLog, AssociateAgentCollaboratorResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_AssociateAgentCollaboratorCommand, se_AssociateAgentCollaboratorCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class AssociateAgentCollaboratorCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("AmazonBedrockAgentBuildTimeLambda", "AssociateAgentCollaborator", {})
18
+ .n("BedrockAgentClient", "AssociateAgentCollaboratorCommand")
19
+ .f(AssociateAgentCollaboratorRequestFilterSensitiveLog, AssociateAgentCollaboratorResponseFilterSensitiveLog)
20
+ .ser(se_AssociateAgentCollaboratorCommand)
21
+ .de(de_AssociateAgentCollaboratorCommand)
22
+ .build() {
23
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteKnowledgeBaseDocumentsCommand, se_DeleteKnowledgeBaseDocumentsCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteKnowledgeBaseDocumentsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonBedrockAgentBuildTimeLambda", "DeleteKnowledgeBaseDocuments", {})
17
+ .n("BedrockAgentClient", "DeleteKnowledgeBaseDocumentsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteKnowledgeBaseDocumentsCommand)
20
+ .de(de_DeleteKnowledgeBaseDocumentsCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DisassociateAgentCollaboratorCommand, se_DisassociateAgentCollaboratorCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DisassociateAgentCollaboratorCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonBedrockAgentBuildTimeLambda", "DisassociateAgentCollaborator", {})
17
+ .n("BedrockAgentClient", "DisassociateAgentCollaboratorCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DisassociateAgentCollaboratorCommand)
20
+ .de(de_DisassociateAgentCollaboratorCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,23 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { GetAgentCollaboratorResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_GetAgentCollaboratorCommand, se_GetAgentCollaboratorCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class GetAgentCollaboratorCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("AmazonBedrockAgentBuildTimeLambda", "GetAgentCollaborator", {})
18
+ .n("BedrockAgentClient", "GetAgentCollaboratorCommand")
19
+ .f(void 0, GetAgentCollaboratorResponseFilterSensitiveLog)
20
+ .ser(se_GetAgentCollaboratorCommand)
21
+ .de(de_GetAgentCollaboratorCommand)
22
+ .build() {
23
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetKnowledgeBaseDocumentsCommand, se_GetKnowledgeBaseDocumentsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetKnowledgeBaseDocumentsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonBedrockAgentBuildTimeLambda", "GetKnowledgeBaseDocuments", {})
17
+ .n("BedrockAgentClient", "GetKnowledgeBaseDocumentsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetKnowledgeBaseDocumentsCommand)
20
+ .de(de_GetKnowledgeBaseDocumentsCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,23 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { IngestKnowledgeBaseDocumentsRequestFilterSensitiveLog, } from "../models/models_1";
6
+ import { de_IngestKnowledgeBaseDocumentsCommand, se_IngestKnowledgeBaseDocumentsCommand, } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class IngestKnowledgeBaseDocumentsCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("AmazonBedrockAgentBuildTimeLambda", "IngestKnowledgeBaseDocuments", {})
18
+ .n("BedrockAgentClient", "IngestKnowledgeBaseDocumentsCommand")
19
+ .f(IngestKnowledgeBaseDocumentsRequestFilterSensitiveLog, void 0)
20
+ .ser(se_IngestKnowledgeBaseDocumentsCommand)
21
+ .de(de_IngestKnowledgeBaseDocumentsCommand)
22
+ .build() {
23
+ }
@@ -0,0 +1,23 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { ListAgentCollaboratorsResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_ListAgentCollaboratorsCommand, se_ListAgentCollaboratorsCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class ListAgentCollaboratorsCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("AmazonBedrockAgentBuildTimeLambda", "ListAgentCollaborators", {})
18
+ .n("BedrockAgentClient", "ListAgentCollaboratorsCommand")
19
+ .f(void 0, ListAgentCollaboratorsResponseFilterSensitiveLog)
20
+ .ser(se_ListAgentCollaboratorsCommand)
21
+ .de(de_ListAgentCollaboratorsCommand)
22
+ .build() {
23
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListKnowledgeBaseDocumentsCommand, se_ListKnowledgeBaseDocumentsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListKnowledgeBaseDocumentsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonBedrockAgentBuildTimeLambda", "ListKnowledgeBaseDocuments", {})
17
+ .n("BedrockAgentClient", "ListKnowledgeBaseDocumentsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListKnowledgeBaseDocumentsCommand)
20
+ .de(de_ListKnowledgeBaseDocumentsCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,23 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { UpdateAgentCollaboratorRequestFilterSensitiveLog, UpdateAgentCollaboratorResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_UpdateAgentCollaboratorCommand, se_UpdateAgentCollaboratorCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class UpdateAgentCollaboratorCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("AmazonBedrockAgentBuildTimeLambda", "UpdateAgentCollaborator", {})
18
+ .n("BedrockAgentClient", "UpdateAgentCollaboratorCommand")
19
+ .f(UpdateAgentCollaboratorRequestFilterSensitiveLog, UpdateAgentCollaboratorResponseFilterSensitiveLog)
20
+ .ser(se_UpdateAgentCollaboratorCommand)
21
+ .de(de_UpdateAgentCollaboratorCommand)
22
+ .build() {
23
+ }
@@ -1,3 +1,4 @@
1
+ export * from "./AssociateAgentCollaboratorCommand";
1
2
  export * from "./AssociateAgentKnowledgeBaseCommand";
2
3
  export * from "./CreateAgentActionGroupCommand";
3
4
  export * from "./CreateAgentAliasCommand";
@@ -18,10 +19,13 @@ export * from "./DeleteFlowAliasCommand";
18
19
  export * from "./DeleteFlowCommand";
19
20
  export * from "./DeleteFlowVersionCommand";
20
21
  export * from "./DeleteKnowledgeBaseCommand";
22
+ export * from "./DeleteKnowledgeBaseDocumentsCommand";
21
23
  export * from "./DeletePromptCommand";
24
+ export * from "./DisassociateAgentCollaboratorCommand";
22
25
  export * from "./DisassociateAgentKnowledgeBaseCommand";
23
26
  export * from "./GetAgentActionGroupCommand";
24
27
  export * from "./GetAgentAliasCommand";
28
+ export * from "./GetAgentCollaboratorCommand";
25
29
  export * from "./GetAgentCommand";
26
30
  export * from "./GetAgentKnowledgeBaseCommand";
27
31
  export * from "./GetAgentVersionCommand";
@@ -31,9 +35,12 @@ export * from "./GetFlowCommand";
31
35
  export * from "./GetFlowVersionCommand";
32
36
  export * from "./GetIngestionJobCommand";
33
37
  export * from "./GetKnowledgeBaseCommand";
38
+ export * from "./GetKnowledgeBaseDocumentsCommand";
34
39
  export * from "./GetPromptCommand";
40
+ export * from "./IngestKnowledgeBaseDocumentsCommand";
35
41
  export * from "./ListAgentActionGroupsCommand";
36
42
  export * from "./ListAgentAliasesCommand";
43
+ export * from "./ListAgentCollaboratorsCommand";
37
44
  export * from "./ListAgentKnowledgeBasesCommand";
38
45
  export * from "./ListAgentVersionsCommand";
39
46
  export * from "./ListAgentsCommand";
@@ -42,6 +49,7 @@ export * from "./ListFlowAliasesCommand";
42
49
  export * from "./ListFlowVersionsCommand";
43
50
  export * from "./ListFlowsCommand";
44
51
  export * from "./ListIngestionJobsCommand";
52
+ export * from "./ListKnowledgeBaseDocumentsCommand";
45
53
  export * from "./ListKnowledgeBasesCommand";
46
54
  export * from "./ListPromptsCommand";
47
55
  export * from "./ListTagsForResourceCommand";
@@ -53,6 +61,7 @@ export * from "./TagResourceCommand";
53
61
  export * from "./UntagResourceCommand";
54
62
  export * from "./UpdateAgentActionGroupCommand";
55
63
  export * from "./UpdateAgentAliasCommand";
64
+ export * from "./UpdateAgentCollaboratorCommand";
56
65
  export * from "./UpdateAgentCommand";
57
66
  export * from "./UpdateAgentKnowledgeBaseCommand";
58
67
  export * from "./UpdateDataSourceCommand";
@@ -135,6 +135,11 @@ export class ValidationException extends __BaseException {
135
135
  this.fieldList = opts.fieldList;
136
136
  }
137
137
  }
138
+ export const AgentCollaboration = {
139
+ DISABLED: "DISABLED",
140
+ SUPERVISOR: "SUPERVISOR",
141
+ SUPERVISOR_ROUTER: "SUPERVISOR_ROUTER",
142
+ };
138
143
  export const AgentStatus = {
139
144
  CREATING: "CREATING",
140
145
  DELETING: "DELETING",
@@ -181,6 +186,10 @@ export const AgentAliasStatus = {
181
186
  PREPARED: "PREPARED",
182
187
  UPDATING: "UPDATING",
183
188
  };
189
+ export const RelayConversationHistory = {
190
+ DISABLED: "DISABLED",
191
+ TO_COLLABORATOR: "TO_COLLABORATOR",
192
+ };
184
193
  export const KnowledgeBaseState = {
185
194
  DISABLED: "DISABLED",
186
195
  ENABLED: "ENABLED",
@@ -210,6 +219,7 @@ export const SharePointHostType = {
210
219
  };
211
220
  export const DataSourceType = {
212
221
  CONFLUENCE: "CONFLUENCE",
222
+ CUSTOM: "CUSTOM",
213
223
  S3: "S3",
214
224
  SALESFORCE: "SALESFORCE",
215
225
  SHAREPOINT: "SHAREPOINT",
@@ -512,27 +522,27 @@ export const SortOrder = {
512
522
  ASCENDING: "ASCENDING",
513
523
  DESCENDING: "DESCENDING",
514
524
  };
515
- export const KnowledgeBaseType = {
516
- VECTOR: "VECTOR",
517
- };
518
- export const EmbeddingDataType = {
519
- BINARY: "BINARY",
520
- FLOAT32: "FLOAT32",
521
- };
522
- export const KnowledgeBaseStorageType = {
523
- MONGO_DB_ATLAS: "MONGO_DB_ATLAS",
524
- OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
525
- PINECONE: "PINECONE",
526
- RDS: "RDS",
527
- REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD",
525
+ export const ContentDataSourceType = {
526
+ CUSTOM: "CUSTOM",
527
+ S3: "S3",
528
528
  };
529
- export const KnowledgeBaseStatus = {
530
- ACTIVE: "ACTIVE",
531
- CREATING: "CREATING",
532
- DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL",
529
+ export const DocumentStatus = {
530
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
533
531
  DELETING: "DELETING",
534
532
  FAILED: "FAILED",
535
- UPDATING: "UPDATING",
533
+ IGNORED: "IGNORED",
534
+ INDEXED: "INDEXED",
535
+ IN_PROGRESS: "IN_PROGRESS",
536
+ METADATA_PARTIALLY_INDEXED: "METADATA_PARTIALLY_INDEXED",
537
+ METADATA_UPDATE_FAILED: "METADATA_UPDATE_FAILED",
538
+ NOT_FOUND: "NOT_FOUND",
539
+ PARTIALLY_INDEXED: "PARTIALLY_INDEXED",
540
+ PENDING: "PENDING",
541
+ STARTING: "STARTING",
542
+ };
543
+ export const InlineContentType = {
544
+ BYTE: "BYTE",
545
+ TEXT: "TEXT",
536
546
  };
537
547
  export const APISchemaFilterSensitiveLog = (obj) => {
538
548
  if (obj.s3 !== undefined)
@@ -588,6 +598,40 @@ export const AgentFilterSensitiveLog = (obj) => ({
588
598
  ...(obj.customOrchestration && { customOrchestration: obj.customOrchestration }),
589
599
  ...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: SENSITIVE_STRING }),
590
600
  });
601
+ export const AgentCollaboratorFilterSensitiveLog = (obj) => ({
602
+ ...obj,
603
+ ...(obj.collaborationInstruction && { collaborationInstruction: SENSITIVE_STRING }),
604
+ });
605
+ export const AssociateAgentCollaboratorRequestFilterSensitiveLog = (obj) => ({
606
+ ...obj,
607
+ ...(obj.collaborationInstruction && { collaborationInstruction: SENSITIVE_STRING }),
608
+ });
609
+ export const AssociateAgentCollaboratorResponseFilterSensitiveLog = (obj) => ({
610
+ ...obj,
611
+ ...(obj.agentCollaborator && { agentCollaborator: AgentCollaboratorFilterSensitiveLog(obj.agentCollaborator) }),
612
+ });
613
+ export const GetAgentCollaboratorResponseFilterSensitiveLog = (obj) => ({
614
+ ...obj,
615
+ ...(obj.agentCollaborator && { agentCollaborator: AgentCollaboratorFilterSensitiveLog(obj.agentCollaborator) }),
616
+ });
617
+ export const AgentCollaboratorSummaryFilterSensitiveLog = (obj) => ({
618
+ ...obj,
619
+ ...(obj.collaborationInstruction && { collaborationInstruction: SENSITIVE_STRING }),
620
+ });
621
+ export const ListAgentCollaboratorsResponseFilterSensitiveLog = (obj) => ({
622
+ ...obj,
623
+ ...(obj.agentCollaboratorSummaries && {
624
+ agentCollaboratorSummaries: obj.agentCollaboratorSummaries.map((item) => AgentCollaboratorSummaryFilterSensitiveLog(item)),
625
+ }),
626
+ });
627
+ export const UpdateAgentCollaboratorRequestFilterSensitiveLog = (obj) => ({
628
+ ...obj,
629
+ ...(obj.collaborationInstruction && { collaborationInstruction: SENSITIVE_STRING }),
630
+ });
631
+ export const UpdateAgentCollaboratorResponseFilterSensitiveLog = (obj) => ({
632
+ ...obj,
633
+ ...(obj.agentCollaborator && { agentCollaborator: AgentCollaboratorFilterSensitiveLog(obj.agentCollaborator) }),
634
+ });
591
635
  export const CreateAgentRequestFilterSensitiveLog = (obj) => ({
592
636
  ...obj,
593
637
  ...(obj.instruction && { instruction: SENSITIVE_STRING }),
@@ -943,3 +987,16 @@ export const UpdateFlowResponseFilterSensitiveLog = (obj) => ({
943
987
  ...obj,
944
988
  ...(obj.definition && { definition: SENSITIVE_STRING }),
945
989
  });
990
+ export const ByteContentDocFilterSensitiveLog = (obj) => ({
991
+ ...obj,
992
+ ...(obj.data && { data: SENSITIVE_STRING }),
993
+ });
994
+ export const TextContentDocFilterSensitiveLog = (obj) => ({
995
+ ...obj,
996
+ ...(obj.data && { data: SENSITIVE_STRING }),
997
+ });
998
+ export const InlineContentFilterSensitiveLog = (obj) => ({
999
+ ...obj,
1000
+ ...(obj.byteContent && { byteContent: ByteContentDocFilterSensitiveLog(obj.byteContent) }),
1001
+ ...(obj.textContent && { textContent: TextContentDocFilterSensitiveLog(obj.textContent) }),
1002
+ });
@@ -1,5 +1,41 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
- import { AgentVersionFilterSensitiveLog, FlowValidationFilterSensitiveLog, PromptTemplateConfigurationFilterSensitiveLog, } from "./models_0";
2
+ import { AgentVersionFilterSensitiveLog, FlowValidationFilterSensitiveLog, InlineContentFilterSensitiveLog, PromptTemplateConfigurationFilterSensitiveLog, } from "./models_0";
3
+ export const CustomSourceType = {
4
+ IN_LINE: "IN_LINE",
5
+ S3_LOCATION: "S3_LOCATION",
6
+ };
7
+ export const MetadataValueType = {
8
+ BOOLEAN: "BOOLEAN",
9
+ NUMBER: "NUMBER",
10
+ STRING: "STRING",
11
+ STRING_LIST: "STRING_LIST",
12
+ };
13
+ export const MetadataSourceType = {
14
+ IN_LINE_ATTRIBUTE: "IN_LINE_ATTRIBUTE",
15
+ S3_LOCATION: "S3_LOCATION",
16
+ };
17
+ export const KnowledgeBaseType = {
18
+ VECTOR: "VECTOR",
19
+ };
20
+ export const EmbeddingDataType = {
21
+ BINARY: "BINARY",
22
+ FLOAT32: "FLOAT32",
23
+ };
24
+ export const KnowledgeBaseStorageType = {
25
+ MONGO_DB_ATLAS: "MONGO_DB_ATLAS",
26
+ OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
27
+ PINECONE: "PINECONE",
28
+ RDS: "RDS",
29
+ REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD",
30
+ };
31
+ export const KnowledgeBaseStatus = {
32
+ ACTIVE: "ACTIVE",
33
+ CREATING: "CREATING",
34
+ DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL",
35
+ DELETING: "DELETING",
36
+ FAILED: "FAILED",
37
+ UPDATING: "UPDATING",
38
+ };
3
39
  export var PromptGenAiResource;
4
40
  (function (PromptGenAiResource) {
5
41
  PromptGenAiResource.visit = (value, visitor) => {
@@ -8,6 +44,40 @@ export var PromptGenAiResource;
8
44
  return visitor._(value.$unknown[0], value.$unknown[1]);
9
45
  };
10
46
  })(PromptGenAiResource || (PromptGenAiResource = {}));
47
+ export const CustomContentFilterSensitiveLog = (obj) => ({
48
+ ...obj,
49
+ ...(obj.inlineContent && { inlineContent: InlineContentFilterSensitiveLog(obj.inlineContent) }),
50
+ });
51
+ export const DocumentContentFilterSensitiveLog = (obj) => ({
52
+ ...obj,
53
+ ...(obj.custom && { custom: CustomContentFilterSensitiveLog(obj.custom) }),
54
+ });
55
+ export const MetadataAttributeValueFilterSensitiveLog = (obj) => ({
56
+ ...obj,
57
+ ...(obj.numberValue && { numberValue: SENSITIVE_STRING }),
58
+ ...(obj.stringValue && { stringValue: SENSITIVE_STRING }),
59
+ ...(obj.stringListValue && { stringListValue: SENSITIVE_STRING }),
60
+ });
61
+ export const MetadataAttributeFilterSensitiveLog = (obj) => ({
62
+ ...obj,
63
+ ...(obj.key && { key: SENSITIVE_STRING }),
64
+ ...(obj.value && { value: MetadataAttributeValueFilterSensitiveLog(obj.value) }),
65
+ });
66
+ export const DocumentMetadataFilterSensitiveLog = (obj) => ({
67
+ ...obj,
68
+ ...(obj.inlineAttributes && {
69
+ inlineAttributes: obj.inlineAttributes.map((item) => MetadataAttributeFilterSensitiveLog(item)),
70
+ }),
71
+ });
72
+ export const KnowledgeBaseDocumentFilterSensitiveLog = (obj) => ({
73
+ ...obj,
74
+ ...(obj.metadata && { metadata: DocumentMetadataFilterSensitiveLog(obj.metadata) }),
75
+ ...(obj.content && { content: DocumentContentFilterSensitiveLog(obj.content) }),
76
+ });
77
+ export const IngestKnowledgeBaseDocumentsRequestFilterSensitiveLog = (obj) => ({
78
+ ...obj,
79
+ ...(obj.documents && { documents: obj.documents.map((item) => KnowledgeBaseDocumentFilterSensitiveLog(item)) }),
80
+ });
11
81
  export const PromptAgentResourceFilterSensitiveLog = (obj) => ({
12
82
  ...obj,
13
83
  });
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BedrockAgentClient } from "../BedrockAgentClient";
3
+ import { ListAgentCollaboratorsCommand, } from "../commands/ListAgentCollaboratorsCommand";
4
+ export const paginateListAgentCollaborators = createPaginator(BedrockAgentClient, ListAgentCollaboratorsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BedrockAgentClient } from "../BedrockAgentClient";
3
+ import { ListKnowledgeBaseDocumentsCommand, } from "../commands/ListKnowledgeBaseDocumentsCommand";
4
+ export const paginateListKnowledgeBaseDocuments = createPaginator(BedrockAgentClient, ListKnowledgeBaseDocumentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,6 +1,7 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListAgentActionGroupsPaginator";
3
3
  export * from "./ListAgentAliasesPaginator";
4
+ export * from "./ListAgentCollaboratorsPaginator";
4
5
  export * from "./ListAgentKnowledgeBasesPaginator";
5
6
  export * from "./ListAgentVersionsPaginator";
6
7
  export * from "./ListAgentsPaginator";
@@ -9,5 +10,6 @@ export * from "./ListFlowAliasesPaginator";
9
10
  export * from "./ListFlowVersionsPaginator";
10
11
  export * from "./ListFlowsPaginator";
11
12
  export * from "./ListIngestionJobsPaginator";
13
+ export * from "./ListKnowledgeBaseDocumentsPaginator";
12
14
  export * from "./ListKnowledgeBasesPaginator";
13
15
  export * from "./ListPromptsPaginator";