@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
package/dist-cjs/index.js
CHANGED
|
@@ -36,6 +36,7 @@ __export(src_exports, {
|
|
|
36
36
|
BedrockAgent: () => BedrockAgent,
|
|
37
37
|
BedrockAgentClient: () => BedrockAgentClient,
|
|
38
38
|
BedrockAgentServiceException: () => BedrockAgentServiceException,
|
|
39
|
+
ByteContentDocFilterSensitiveLog: () => ByteContentDocFilterSensitiveLog,
|
|
39
40
|
ChatPromptTemplateConfigurationFilterSensitiveLog: () => ChatPromptTemplateConfigurationFilterSensitiveLog,
|
|
40
41
|
ChunkingStrategy: () => ChunkingStrategy,
|
|
41
42
|
ConditionFlowNodeConfigurationFilterSensitiveLog: () => ConditionFlowNodeConfigurationFilterSensitiveLog,
|
|
@@ -46,6 +47,7 @@ __export(src_exports, {
|
|
|
46
47
|
ConfluenceHostType: () => ConfluenceHostType,
|
|
47
48
|
ContentBlock: () => ContentBlock,
|
|
48
49
|
ContentBlockFilterSensitiveLog: () => ContentBlockFilterSensitiveLog,
|
|
50
|
+
ContentDataSourceType: () => ContentDataSourceType,
|
|
49
51
|
ConversationRole: () => ConversationRole,
|
|
50
52
|
CrawlFilterConfigurationFilterSensitiveLog: () => CrawlFilterConfigurationFilterSensitiveLog,
|
|
51
53
|
CrawlFilterConfigurationType: () => CrawlFilterConfigurationType,
|
|
@@ -72,7 +74,9 @@ __export(src_exports, {
|
|
|
72
74
|
CreatePromptVersionCommand: () => CreatePromptVersionCommand,
|
|
73
75
|
CreatePromptVersionResponseFilterSensitiveLog: () => CreatePromptVersionResponseFilterSensitiveLog,
|
|
74
76
|
CreationMode: () => CreationMode,
|
|
77
|
+
CustomContentFilterSensitiveLog: () => CustomContentFilterSensitiveLog,
|
|
75
78
|
CustomControlMethod: () => CustomControlMethod,
|
|
79
|
+
CustomSourceType: () => CustomSourceType,
|
|
76
80
|
DataDeletionPolicy: () => DataDeletionPolicy,
|
|
77
81
|
DataSourceConfigurationFilterSensitiveLog: () => DataSourceConfigurationFilterSensitiveLog,
|
|
78
82
|
DataSourceFilterSensitiveLog: () => DataSourceFilterSensitiveLog,
|
|
@@ -87,8 +91,12 @@ __export(src_exports, {
|
|
|
87
91
|
DeleteFlowCommand: () => DeleteFlowCommand,
|
|
88
92
|
DeleteFlowVersionCommand: () => DeleteFlowVersionCommand,
|
|
89
93
|
DeleteKnowledgeBaseCommand: () => DeleteKnowledgeBaseCommand,
|
|
94
|
+
DeleteKnowledgeBaseDocumentsCommand: () => DeleteKnowledgeBaseDocumentsCommand,
|
|
90
95
|
DeletePromptCommand: () => DeletePromptCommand,
|
|
91
96
|
DisassociateAgentKnowledgeBaseCommand: () => DisassociateAgentKnowledgeBaseCommand,
|
|
97
|
+
DocumentContentFilterSensitiveLog: () => DocumentContentFilterSensitiveLog,
|
|
98
|
+
DocumentMetadataFilterSensitiveLog: () => DocumentMetadataFilterSensitiveLog,
|
|
99
|
+
DocumentStatus: () => DocumentStatus,
|
|
92
100
|
DuplicateConditionExpressionFlowValidationDetailsFilterSensitiveLog: () => DuplicateConditionExpressionFlowValidationDetailsFilterSensitiveLog,
|
|
93
101
|
EmbeddingDataType: () => EmbeddingDataType,
|
|
94
102
|
FlowConditionFilterSensitiveLog: () => FlowConditionFilterSensitiveLog,
|
|
@@ -125,13 +133,19 @@ __export(src_exports, {
|
|
|
125
133
|
GetFlowVersionResponseFilterSensitiveLog: () => GetFlowVersionResponseFilterSensitiveLog,
|
|
126
134
|
GetIngestionJobCommand: () => GetIngestionJobCommand,
|
|
127
135
|
GetKnowledgeBaseCommand: () => GetKnowledgeBaseCommand,
|
|
136
|
+
GetKnowledgeBaseDocumentsCommand: () => GetKnowledgeBaseDocumentsCommand,
|
|
128
137
|
GetPromptCommand: () => GetPromptCommand,
|
|
129
138
|
GetPromptResponseFilterSensitiveLog: () => GetPromptResponseFilterSensitiveLog,
|
|
139
|
+
IngestKnowledgeBaseDocumentsCommand: () => IngestKnowledgeBaseDocumentsCommand,
|
|
140
|
+
IngestKnowledgeBaseDocumentsRequestFilterSensitiveLog: () => IngestKnowledgeBaseDocumentsRequestFilterSensitiveLog,
|
|
130
141
|
IngestionJobFilterAttribute: () => IngestionJobFilterAttribute,
|
|
131
142
|
IngestionJobFilterOperator: () => IngestionJobFilterOperator,
|
|
132
143
|
IngestionJobSortByAttribute: () => IngestionJobSortByAttribute,
|
|
133
144
|
IngestionJobStatus: () => IngestionJobStatus,
|
|
145
|
+
InlineContentFilterSensitiveLog: () => InlineContentFilterSensitiveLog,
|
|
146
|
+
InlineContentType: () => InlineContentType,
|
|
134
147
|
InternalServerException: () => InternalServerException,
|
|
148
|
+
KnowledgeBaseDocumentFilterSensitiveLog: () => KnowledgeBaseDocumentFilterSensitiveLog,
|
|
135
149
|
KnowledgeBaseState: () => KnowledgeBaseState,
|
|
136
150
|
KnowledgeBaseStatus: () => KnowledgeBaseStatus,
|
|
137
151
|
KnowledgeBaseStorageType: () => KnowledgeBaseStorageType,
|
|
@@ -146,11 +160,16 @@ __export(src_exports, {
|
|
|
146
160
|
ListFlowVersionsCommand: () => ListFlowVersionsCommand,
|
|
147
161
|
ListFlowsCommand: () => ListFlowsCommand,
|
|
148
162
|
ListIngestionJobsCommand: () => ListIngestionJobsCommand,
|
|
163
|
+
ListKnowledgeBaseDocumentsCommand: () => ListKnowledgeBaseDocumentsCommand,
|
|
149
164
|
ListKnowledgeBasesCommand: () => ListKnowledgeBasesCommand,
|
|
150
165
|
ListPromptsCommand: () => ListPromptsCommand,
|
|
151
166
|
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
152
167
|
MemoryType: () => MemoryType,
|
|
153
168
|
MessageFilterSensitiveLog: () => MessageFilterSensitiveLog,
|
|
169
|
+
MetadataAttributeFilterSensitiveLog: () => MetadataAttributeFilterSensitiveLog,
|
|
170
|
+
MetadataAttributeValueFilterSensitiveLog: () => MetadataAttributeValueFilterSensitiveLog,
|
|
171
|
+
MetadataSourceType: () => MetadataSourceType,
|
|
172
|
+
MetadataValueType: () => MetadataValueType,
|
|
154
173
|
OrchestrationExecutor: () => OrchestrationExecutor,
|
|
155
174
|
OrchestrationType: () => OrchestrationType,
|
|
156
175
|
ParsingStrategy: () => ParsingStrategy,
|
|
@@ -195,6 +214,7 @@ __export(src_exports, {
|
|
|
195
214
|
SystemContentBlock: () => SystemContentBlock,
|
|
196
215
|
SystemContentBlockFilterSensitiveLog: () => SystemContentBlockFilterSensitiveLog,
|
|
197
216
|
TagResourceCommand: () => TagResourceCommand,
|
|
217
|
+
TextContentDocFilterSensitiveLog: () => TextContentDocFilterSensitiveLog,
|
|
198
218
|
TextPromptTemplateConfigurationFilterSensitiveLog: () => TextPromptTemplateConfigurationFilterSensitiveLog,
|
|
199
219
|
ThrottlingException: () => ThrottlingException,
|
|
200
220
|
Tool: () => Tool,
|
|
@@ -241,6 +261,7 @@ __export(src_exports, {
|
|
|
241
261
|
paginateListFlowVersions: () => paginateListFlowVersions,
|
|
242
262
|
paginateListFlows: () => paginateListFlows,
|
|
243
263
|
paginateListIngestionJobs: () => paginateListIngestionJobs,
|
|
264
|
+
paginateListKnowledgeBaseDocuments: () => paginateListKnowledgeBaseDocuments,
|
|
244
265
|
paginateListKnowledgeBases: () => paginateListKnowledgeBases,
|
|
245
266
|
paginateListPrompts: () => paginateListPrompts
|
|
246
267
|
});
|
|
@@ -658,6 +679,7 @@ var SharePointHostType = {
|
|
|
658
679
|
};
|
|
659
680
|
var DataSourceType = {
|
|
660
681
|
CONFLUENCE: "CONFLUENCE",
|
|
682
|
+
CUSTOM: "CUSTOM",
|
|
661
683
|
S3: "S3",
|
|
662
684
|
SALESFORCE: "SALESFORCE",
|
|
663
685
|
SHAREPOINT: "SHAREPOINT",
|
|
@@ -960,27 +982,41 @@ var SortOrder = {
|
|
|
960
982
|
ASCENDING: "ASCENDING",
|
|
961
983
|
DESCENDING: "DESCENDING"
|
|
962
984
|
};
|
|
963
|
-
var
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
var EmbeddingDataType = {
|
|
967
|
-
BINARY: "BINARY",
|
|
968
|
-
FLOAT32: "FLOAT32"
|
|
985
|
+
var ContentDataSourceType = {
|
|
986
|
+
CUSTOM: "CUSTOM",
|
|
987
|
+
S3: "S3"
|
|
969
988
|
};
|
|
970
|
-
var
|
|
971
|
-
|
|
972
|
-
OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
|
|
973
|
-
PINECONE: "PINECONE",
|
|
974
|
-
RDS: "RDS",
|
|
975
|
-
REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD"
|
|
976
|
-
};
|
|
977
|
-
var KnowledgeBaseStatus = {
|
|
978
|
-
ACTIVE: "ACTIVE",
|
|
979
|
-
CREATING: "CREATING",
|
|
980
|
-
DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL",
|
|
989
|
+
var DocumentStatus = {
|
|
990
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
981
991
|
DELETING: "DELETING",
|
|
982
992
|
FAILED: "FAILED",
|
|
983
|
-
|
|
993
|
+
IGNORED: "IGNORED",
|
|
994
|
+
INDEXED: "INDEXED",
|
|
995
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
996
|
+
METADATA_PARTIALLY_INDEXED: "METADATA_PARTIALLY_INDEXED",
|
|
997
|
+
METADATA_UPDATE_FAILED: "METADATA_UPDATE_FAILED",
|
|
998
|
+
NOT_FOUND: "NOT_FOUND",
|
|
999
|
+
PARTIALLY_INDEXED: "PARTIALLY_INDEXED",
|
|
1000
|
+
PENDING: "PENDING",
|
|
1001
|
+
STARTING: "STARTING"
|
|
1002
|
+
};
|
|
1003
|
+
var InlineContentType = {
|
|
1004
|
+
BYTE: "BYTE",
|
|
1005
|
+
TEXT: "TEXT"
|
|
1006
|
+
};
|
|
1007
|
+
var CustomSourceType = {
|
|
1008
|
+
IN_LINE: "IN_LINE",
|
|
1009
|
+
S3_LOCATION: "S3_LOCATION"
|
|
1010
|
+
};
|
|
1011
|
+
var MetadataValueType = {
|
|
1012
|
+
BOOLEAN: "BOOLEAN",
|
|
1013
|
+
NUMBER: "NUMBER",
|
|
1014
|
+
STRING: "STRING",
|
|
1015
|
+
STRING_LIST: "STRING_LIST"
|
|
1016
|
+
};
|
|
1017
|
+
var MetadataSourceType = {
|
|
1018
|
+
IN_LINE_ATTRIBUTE: "IN_LINE_ATTRIBUTE",
|
|
1019
|
+
S3_LOCATION: "S3_LOCATION"
|
|
984
1020
|
};
|
|
985
1021
|
var APISchemaFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
986
1022
|
if (obj.s3 !== void 0)
|
|
@@ -1393,6 +1429,53 @@ var UpdateFlowResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1393
1429
|
...obj,
|
|
1394
1430
|
...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
|
|
1395
1431
|
}), "UpdateFlowResponseFilterSensitiveLog");
|
|
1432
|
+
var ByteContentDocFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1433
|
+
...obj,
|
|
1434
|
+
...obj.data && { data: import_smithy_client.SENSITIVE_STRING }
|
|
1435
|
+
}), "ByteContentDocFilterSensitiveLog");
|
|
1436
|
+
var TextContentDocFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1437
|
+
...obj,
|
|
1438
|
+
...obj.data && { data: import_smithy_client.SENSITIVE_STRING }
|
|
1439
|
+
}), "TextContentDocFilterSensitiveLog");
|
|
1440
|
+
var InlineContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1441
|
+
...obj,
|
|
1442
|
+
...obj.byteContent && { byteContent: ByteContentDocFilterSensitiveLog(obj.byteContent) },
|
|
1443
|
+
...obj.textContent && { textContent: TextContentDocFilterSensitiveLog(obj.textContent) }
|
|
1444
|
+
}), "InlineContentFilterSensitiveLog");
|
|
1445
|
+
var CustomContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1446
|
+
...obj,
|
|
1447
|
+
...obj.inlineContent && { inlineContent: InlineContentFilterSensitiveLog(obj.inlineContent) }
|
|
1448
|
+
}), "CustomContentFilterSensitiveLog");
|
|
1449
|
+
var DocumentContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1450
|
+
...obj,
|
|
1451
|
+
...obj.custom && { custom: CustomContentFilterSensitiveLog(obj.custom) }
|
|
1452
|
+
}), "DocumentContentFilterSensitiveLog");
|
|
1453
|
+
var MetadataAttributeValueFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1454
|
+
...obj,
|
|
1455
|
+
...obj.numberValue && { numberValue: import_smithy_client.SENSITIVE_STRING },
|
|
1456
|
+
...obj.stringValue && { stringValue: import_smithy_client.SENSITIVE_STRING },
|
|
1457
|
+
...obj.stringListValue && { stringListValue: import_smithy_client.SENSITIVE_STRING }
|
|
1458
|
+
}), "MetadataAttributeValueFilterSensitiveLog");
|
|
1459
|
+
var MetadataAttributeFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1460
|
+
...obj,
|
|
1461
|
+
...obj.key && { key: import_smithy_client.SENSITIVE_STRING },
|
|
1462
|
+
...obj.value && { value: MetadataAttributeValueFilterSensitiveLog(obj.value) }
|
|
1463
|
+
}), "MetadataAttributeFilterSensitiveLog");
|
|
1464
|
+
var DocumentMetadataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1465
|
+
...obj,
|
|
1466
|
+
...obj.inlineAttributes && {
|
|
1467
|
+
inlineAttributes: obj.inlineAttributes.map((item) => MetadataAttributeFilterSensitiveLog(item))
|
|
1468
|
+
}
|
|
1469
|
+
}), "DocumentMetadataFilterSensitiveLog");
|
|
1470
|
+
var KnowledgeBaseDocumentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1471
|
+
...obj,
|
|
1472
|
+
...obj.metadata && { metadata: DocumentMetadataFilterSensitiveLog(obj.metadata) },
|
|
1473
|
+
...obj.content && { content: DocumentContentFilterSensitiveLog(obj.content) }
|
|
1474
|
+
}), "KnowledgeBaseDocumentFilterSensitiveLog");
|
|
1475
|
+
var IngestKnowledgeBaseDocumentsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1476
|
+
...obj,
|
|
1477
|
+
...obj.documents && { documents: obj.documents.map((item) => KnowledgeBaseDocumentFilterSensitiveLog(item)) }
|
|
1478
|
+
}), "IngestKnowledgeBaseDocumentsRequestFilterSensitiveLog");
|
|
1396
1479
|
|
|
1397
1480
|
// src/protocols/Aws_restJson1.ts
|
|
1398
1481
|
var se_AssociateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
@@ -1729,6 +1812,24 @@ var se_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
1729
1812
|
b.m("DELETE").h(headers).b(body);
|
|
1730
1813
|
return b.build();
|
|
1731
1814
|
}, "se_DeleteKnowledgeBaseCommand");
|
|
1815
|
+
var se_DeleteKnowledgeBaseDocumentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1816
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1817
|
+
const headers = {
|
|
1818
|
+
"content-type": "application/json"
|
|
1819
|
+
};
|
|
1820
|
+
b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/documents/deleteDocuments");
|
|
1821
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
1822
|
+
b.p("dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
|
|
1823
|
+
let body;
|
|
1824
|
+
body = JSON.stringify(
|
|
1825
|
+
(0, import_smithy_client.take)(input, {
|
|
1826
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1827
|
+
documentIdentifiers: (_) => (0, import_smithy_client._json)(_)
|
|
1828
|
+
})
|
|
1829
|
+
);
|
|
1830
|
+
b.m("POST").h(headers).b(body);
|
|
1831
|
+
return b.build();
|
|
1832
|
+
}, "se_DeleteKnowledgeBaseDocumentsCommand");
|
|
1732
1833
|
var se_DeletePromptCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1733
1834
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1734
1835
|
const headers = {};
|
|
@@ -1862,6 +1963,23 @@ var se_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
1862
1963
|
b.m("GET").h(headers).b(body);
|
|
1863
1964
|
return b.build();
|
|
1864
1965
|
}, "se_GetKnowledgeBaseCommand");
|
|
1966
|
+
var se_GetKnowledgeBaseDocumentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1967
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1968
|
+
const headers = {
|
|
1969
|
+
"content-type": "application/json"
|
|
1970
|
+
};
|
|
1971
|
+
b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/documents/getDocuments");
|
|
1972
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
1973
|
+
b.p("dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
|
|
1974
|
+
let body;
|
|
1975
|
+
body = JSON.stringify(
|
|
1976
|
+
(0, import_smithy_client.take)(input, {
|
|
1977
|
+
documentIdentifiers: (_) => (0, import_smithy_client._json)(_)
|
|
1978
|
+
})
|
|
1979
|
+
);
|
|
1980
|
+
b.m("POST").h(headers).b(body);
|
|
1981
|
+
return b.build();
|
|
1982
|
+
}, "se_GetKnowledgeBaseDocumentsCommand");
|
|
1865
1983
|
var se_GetPromptCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1866
1984
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1867
1985
|
const headers = {};
|
|
@@ -1874,6 +1992,24 @@ var se_GetPromptCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1874
1992
|
b.m("GET").h(headers).q(query).b(body);
|
|
1875
1993
|
return b.build();
|
|
1876
1994
|
}, "se_GetPromptCommand");
|
|
1995
|
+
var se_IngestKnowledgeBaseDocumentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1996
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1997
|
+
const headers = {
|
|
1998
|
+
"content-type": "application/json"
|
|
1999
|
+
};
|
|
2000
|
+
b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/documents");
|
|
2001
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
2002
|
+
b.p("dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
|
|
2003
|
+
let body;
|
|
2004
|
+
body = JSON.stringify(
|
|
2005
|
+
(0, import_smithy_client.take)(input, {
|
|
2006
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
2007
|
+
documents: (_) => se_KnowledgeBaseDocuments(_, context)
|
|
2008
|
+
})
|
|
2009
|
+
);
|
|
2010
|
+
b.m("PUT").h(headers).b(body);
|
|
2011
|
+
return b.build();
|
|
2012
|
+
}, "se_IngestKnowledgeBaseDocumentsCommand");
|
|
1877
2013
|
var se_ListAgentActionGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1878
2014
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1879
2015
|
const headers = {
|
|
@@ -2035,6 +2171,24 @@ var se_ListIngestionJobsCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
2035
2171
|
b.m("POST").h(headers).b(body);
|
|
2036
2172
|
return b.build();
|
|
2037
2173
|
}, "se_ListIngestionJobsCommand");
|
|
2174
|
+
var se_ListKnowledgeBaseDocumentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2175
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
2176
|
+
const headers = {
|
|
2177
|
+
"content-type": "application/json"
|
|
2178
|
+
};
|
|
2179
|
+
b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/documents");
|
|
2180
|
+
b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
|
|
2181
|
+
b.p("dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
|
|
2182
|
+
let body;
|
|
2183
|
+
body = JSON.stringify(
|
|
2184
|
+
(0, import_smithy_client.take)(input, {
|
|
2185
|
+
maxResults: [],
|
|
2186
|
+
nextToken: []
|
|
2187
|
+
})
|
|
2188
|
+
);
|
|
2189
|
+
b.m("POST").h(headers).b(body);
|
|
2190
|
+
return b.build();
|
|
2191
|
+
}, "se_ListKnowledgeBaseDocumentsCommand");
|
|
2038
2192
|
var se_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2039
2193
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
2040
2194
|
const headers = {
|
|
@@ -2683,6 +2837,20 @@ var de_DeleteKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2683
2837
|
Object.assign(contents, doc);
|
|
2684
2838
|
return contents;
|
|
2685
2839
|
}, "de_DeleteKnowledgeBaseCommand");
|
|
2840
|
+
var de_DeleteKnowledgeBaseDocumentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2841
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2842
|
+
return de_CommandError(output, context);
|
|
2843
|
+
}
|
|
2844
|
+
const contents = (0, import_smithy_client.map)({
|
|
2845
|
+
$metadata: deserializeMetadata(output)
|
|
2846
|
+
});
|
|
2847
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2848
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2849
|
+
documentDetails: (_) => de_KnowledgeBaseDocumentDetails(_, context)
|
|
2850
|
+
});
|
|
2851
|
+
Object.assign(contents, doc);
|
|
2852
|
+
return contents;
|
|
2853
|
+
}, "de_DeleteKnowledgeBaseDocumentsCommand");
|
|
2686
2854
|
var de_DeletePromptCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2687
2855
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2688
2856
|
return de_CommandError(output, context);
|
|
@@ -2889,6 +3057,20 @@ var de_GetKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2889
3057
|
Object.assign(contents, doc);
|
|
2890
3058
|
return contents;
|
|
2891
3059
|
}, "de_GetKnowledgeBaseCommand");
|
|
3060
|
+
var de_GetKnowledgeBaseDocumentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3061
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3062
|
+
return de_CommandError(output, context);
|
|
3063
|
+
}
|
|
3064
|
+
const contents = (0, import_smithy_client.map)({
|
|
3065
|
+
$metadata: deserializeMetadata(output)
|
|
3066
|
+
});
|
|
3067
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3068
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
3069
|
+
documentDetails: (_) => de_KnowledgeBaseDocumentDetails(_, context)
|
|
3070
|
+
});
|
|
3071
|
+
Object.assign(contents, doc);
|
|
3072
|
+
return contents;
|
|
3073
|
+
}, "de_GetKnowledgeBaseDocumentsCommand");
|
|
2892
3074
|
var de_GetPromptCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2893
3075
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2894
3076
|
return de_CommandError(output, context);
|
|
@@ -2912,6 +3094,20 @@ var de_GetPromptCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2912
3094
|
Object.assign(contents, doc);
|
|
2913
3095
|
return contents;
|
|
2914
3096
|
}, "de_GetPromptCommand");
|
|
3097
|
+
var de_IngestKnowledgeBaseDocumentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3098
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3099
|
+
return de_CommandError(output, context);
|
|
3100
|
+
}
|
|
3101
|
+
const contents = (0, import_smithy_client.map)({
|
|
3102
|
+
$metadata: deserializeMetadata(output)
|
|
3103
|
+
});
|
|
3104
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3105
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
3106
|
+
documentDetails: (_) => de_KnowledgeBaseDocumentDetails(_, context)
|
|
3107
|
+
});
|
|
3108
|
+
Object.assign(contents, doc);
|
|
3109
|
+
return contents;
|
|
3110
|
+
}, "de_IngestKnowledgeBaseDocumentsCommand");
|
|
2915
3111
|
var de_ListAgentActionGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2916
3112
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2917
3113
|
return de_CommandError(output, context);
|
|
@@ -3062,6 +3258,21 @@ var de_ListIngestionJobsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3062
3258
|
Object.assign(contents, doc);
|
|
3063
3259
|
return contents;
|
|
3064
3260
|
}, "de_ListIngestionJobsCommand");
|
|
3261
|
+
var de_ListKnowledgeBaseDocumentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3262
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3263
|
+
return de_CommandError(output, context);
|
|
3264
|
+
}
|
|
3265
|
+
const contents = (0, import_smithy_client.map)({
|
|
3266
|
+
$metadata: deserializeMetadata(output)
|
|
3267
|
+
});
|
|
3268
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3269
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
3270
|
+
documentDetails: (_) => de_KnowledgeBaseDocumentDetails(_, context),
|
|
3271
|
+
nextToken: import_smithy_client.expectString
|
|
3272
|
+
});
|
|
3273
|
+
Object.assign(contents, doc);
|
|
3274
|
+
return contents;
|
|
3275
|
+
}, "de_ListKnowledgeBaseDocumentsCommand");
|
|
3065
3276
|
var de_ListKnowledgeBasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3066
3277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3067
3278
|
return de_CommandError(output, context);
|
|
@@ -3482,6 +3693,12 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
|
|
|
3482
3693
|
});
|
|
3483
3694
|
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
3484
3695
|
}, "de_ValidationExceptionRes");
|
|
3696
|
+
var se_ByteContentDoc = /* @__PURE__ */ __name((input, context) => {
|
|
3697
|
+
return (0, import_smithy_client.take)(input, {
|
|
3698
|
+
data: context.base64Encoder,
|
|
3699
|
+
mimeType: []
|
|
3700
|
+
});
|
|
3701
|
+
}, "se_ByteContentDoc");
|
|
3485
3702
|
var se_ChatPromptTemplateConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
3486
3703
|
return (0, import_smithy_client.take)(input, {
|
|
3487
3704
|
inputVariables: import_smithy_client._json,
|
|
@@ -3490,6 +3707,28 @@ var se_ChatPromptTemplateConfiguration = /* @__PURE__ */ __name((input, context)
|
|
|
3490
3707
|
toolConfiguration: (_) => se_ToolConfiguration(_, context)
|
|
3491
3708
|
});
|
|
3492
3709
|
}, "se_ChatPromptTemplateConfiguration");
|
|
3710
|
+
var se_CustomContent = /* @__PURE__ */ __name((input, context) => {
|
|
3711
|
+
return (0, import_smithy_client.take)(input, {
|
|
3712
|
+
customDocumentIdentifier: import_smithy_client._json,
|
|
3713
|
+
inlineContent: (_) => se_InlineContent(_, context),
|
|
3714
|
+
s3Location: import_smithy_client._json,
|
|
3715
|
+
sourceType: []
|
|
3716
|
+
});
|
|
3717
|
+
}, "se_CustomContent");
|
|
3718
|
+
var se_DocumentContent = /* @__PURE__ */ __name((input, context) => {
|
|
3719
|
+
return (0, import_smithy_client.take)(input, {
|
|
3720
|
+
custom: (_) => se_CustomContent(_, context),
|
|
3721
|
+
dataSourceType: [],
|
|
3722
|
+
s3: import_smithy_client._json
|
|
3723
|
+
});
|
|
3724
|
+
}, "se_DocumentContent");
|
|
3725
|
+
var se_DocumentMetadata = /* @__PURE__ */ __name((input, context) => {
|
|
3726
|
+
return (0, import_smithy_client.take)(input, {
|
|
3727
|
+
inlineAttributes: (_) => se_MetadataAttributes(_, context),
|
|
3728
|
+
s3Location: import_smithy_client._json,
|
|
3729
|
+
type: []
|
|
3730
|
+
});
|
|
3731
|
+
}, "se_DocumentMetadata");
|
|
3493
3732
|
var se_FlowDefinition = /* @__PURE__ */ __name((input, context) => {
|
|
3494
3733
|
return (0, import_smithy_client.take)(input, {
|
|
3495
3734
|
connections: import_smithy_client._json,
|
|
@@ -3536,6 +3775,44 @@ var se_InferenceConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
|
3536
3775
|
topP: import_smithy_client.serializeFloat
|
|
3537
3776
|
});
|
|
3538
3777
|
}, "se_InferenceConfiguration");
|
|
3778
|
+
var se_InlineContent = /* @__PURE__ */ __name((input, context) => {
|
|
3779
|
+
return (0, import_smithy_client.take)(input, {
|
|
3780
|
+
byteContent: (_) => se_ByteContentDoc(_, context),
|
|
3781
|
+
textContent: import_smithy_client._json,
|
|
3782
|
+
type: []
|
|
3783
|
+
});
|
|
3784
|
+
}, "se_InlineContent");
|
|
3785
|
+
var se_KnowledgeBaseDocument = /* @__PURE__ */ __name((input, context) => {
|
|
3786
|
+
return (0, import_smithy_client.take)(input, {
|
|
3787
|
+
content: (_) => se_DocumentContent(_, context),
|
|
3788
|
+
metadata: (_) => se_DocumentMetadata(_, context)
|
|
3789
|
+
});
|
|
3790
|
+
}, "se_KnowledgeBaseDocument");
|
|
3791
|
+
var se_KnowledgeBaseDocuments = /* @__PURE__ */ __name((input, context) => {
|
|
3792
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
3793
|
+
return se_KnowledgeBaseDocument(entry, context);
|
|
3794
|
+
});
|
|
3795
|
+
}, "se_KnowledgeBaseDocuments");
|
|
3796
|
+
var se_MetadataAttribute = /* @__PURE__ */ __name((input, context) => {
|
|
3797
|
+
return (0, import_smithy_client.take)(input, {
|
|
3798
|
+
key: [],
|
|
3799
|
+
value: (_) => se_MetadataAttributeValue(_, context)
|
|
3800
|
+
});
|
|
3801
|
+
}, "se_MetadataAttribute");
|
|
3802
|
+
var se_MetadataAttributes = /* @__PURE__ */ __name((input, context) => {
|
|
3803
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
3804
|
+
return se_MetadataAttribute(entry, context);
|
|
3805
|
+
});
|
|
3806
|
+
}, "se_MetadataAttributes");
|
|
3807
|
+
var se_MetadataAttributeValue = /* @__PURE__ */ __name((input, context) => {
|
|
3808
|
+
return (0, import_smithy_client.take)(input, {
|
|
3809
|
+
booleanValue: [],
|
|
3810
|
+
numberValue: import_smithy_client.serializeFloat,
|
|
3811
|
+
stringListValue: import_smithy_client._json,
|
|
3812
|
+
stringValue: [],
|
|
3813
|
+
type: []
|
|
3814
|
+
});
|
|
3815
|
+
}, "se_MetadataAttributeValue");
|
|
3539
3816
|
var se_PromptConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
3540
3817
|
return (0, import_smithy_client.take)(input, {
|
|
3541
3818
|
basePromptTemplate: [],
|
|
@@ -4065,6 +4342,22 @@ var de_KnowledgeBase = /* @__PURE__ */ __name((output, context) => {
|
|
|
4065
4342
|
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
4066
4343
|
});
|
|
4067
4344
|
}, "de_KnowledgeBase");
|
|
4345
|
+
var de_KnowledgeBaseDocumentDetail = /* @__PURE__ */ __name((output, context) => {
|
|
4346
|
+
return (0, import_smithy_client.take)(output, {
|
|
4347
|
+
dataSourceId: import_smithy_client.expectString,
|
|
4348
|
+
identifier: import_smithy_client._json,
|
|
4349
|
+
knowledgeBaseId: import_smithy_client.expectString,
|
|
4350
|
+
status: import_smithy_client.expectString,
|
|
4351
|
+
statusReason: import_smithy_client.expectString,
|
|
4352
|
+
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
4353
|
+
});
|
|
4354
|
+
}, "de_KnowledgeBaseDocumentDetail");
|
|
4355
|
+
var de_KnowledgeBaseDocumentDetails = /* @__PURE__ */ __name((output, context) => {
|
|
4356
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
4357
|
+
return de_KnowledgeBaseDocumentDetail(entry, context);
|
|
4358
|
+
});
|
|
4359
|
+
return retVal;
|
|
4360
|
+
}, "de_KnowledgeBaseDocumentDetails");
|
|
4068
4361
|
var de_KnowledgeBaseSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
4069
4362
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
4070
4363
|
return de_KnowledgeBaseSummary(entry, context);
|
|
@@ -4375,6 +4668,28 @@ var CreateKnowledgeBaseCommand = _CreateKnowledgeBaseCommand;
|
|
|
4375
4668
|
|
|
4376
4669
|
// src/models/models_1.ts
|
|
4377
4670
|
|
|
4671
|
+
var KnowledgeBaseType = {
|
|
4672
|
+
VECTOR: "VECTOR"
|
|
4673
|
+
};
|
|
4674
|
+
var EmbeddingDataType = {
|
|
4675
|
+
BINARY: "BINARY",
|
|
4676
|
+
FLOAT32: "FLOAT32"
|
|
4677
|
+
};
|
|
4678
|
+
var KnowledgeBaseStorageType = {
|
|
4679
|
+
MONGO_DB_ATLAS: "MONGO_DB_ATLAS",
|
|
4680
|
+
OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
|
|
4681
|
+
PINECONE: "PINECONE",
|
|
4682
|
+
RDS: "RDS",
|
|
4683
|
+
REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD"
|
|
4684
|
+
};
|
|
4685
|
+
var KnowledgeBaseStatus = {
|
|
4686
|
+
ACTIVE: "ACTIVE",
|
|
4687
|
+
CREATING: "CREATING",
|
|
4688
|
+
DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL",
|
|
4689
|
+
DELETING: "DELETING",
|
|
4690
|
+
FAILED: "FAILED",
|
|
4691
|
+
UPDATING: "UPDATING"
|
|
4692
|
+
};
|
|
4378
4693
|
var PromptGenAiResource;
|
|
4379
4694
|
((PromptGenAiResource2) => {
|
|
4380
4695
|
PromptGenAiResource2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
@@ -4594,6 +4909,20 @@ var _DeleteKnowledgeBaseCommand = class _DeleteKnowledgeBaseCommand extends impo
|
|
|
4594
4909
|
__name(_DeleteKnowledgeBaseCommand, "DeleteKnowledgeBaseCommand");
|
|
4595
4910
|
var DeleteKnowledgeBaseCommand = _DeleteKnowledgeBaseCommand;
|
|
4596
4911
|
|
|
4912
|
+
// src/commands/DeleteKnowledgeBaseDocumentsCommand.ts
|
|
4913
|
+
|
|
4914
|
+
|
|
4915
|
+
|
|
4916
|
+
var _DeleteKnowledgeBaseDocumentsCommand = class _DeleteKnowledgeBaseDocumentsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4917
|
+
return [
|
|
4918
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4919
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4920
|
+
];
|
|
4921
|
+
}).s("AmazonBedrockAgentBuildTimeLambda", "DeleteKnowledgeBaseDocuments", {}).n("BedrockAgentClient", "DeleteKnowledgeBaseDocumentsCommand").f(void 0, void 0).ser(se_DeleteKnowledgeBaseDocumentsCommand).de(de_DeleteKnowledgeBaseDocumentsCommand).build() {
|
|
4922
|
+
};
|
|
4923
|
+
__name(_DeleteKnowledgeBaseDocumentsCommand, "DeleteKnowledgeBaseDocumentsCommand");
|
|
4924
|
+
var DeleteKnowledgeBaseDocumentsCommand = _DeleteKnowledgeBaseDocumentsCommand;
|
|
4925
|
+
|
|
4597
4926
|
// src/commands/DeletePromptCommand.ts
|
|
4598
4927
|
|
|
4599
4928
|
|
|
@@ -4776,6 +5105,20 @@ var _GetKnowledgeBaseCommand = class _GetKnowledgeBaseCommand extends import_smi
|
|
|
4776
5105
|
__name(_GetKnowledgeBaseCommand, "GetKnowledgeBaseCommand");
|
|
4777
5106
|
var GetKnowledgeBaseCommand = _GetKnowledgeBaseCommand;
|
|
4778
5107
|
|
|
5108
|
+
// src/commands/GetKnowledgeBaseDocumentsCommand.ts
|
|
5109
|
+
|
|
5110
|
+
|
|
5111
|
+
|
|
5112
|
+
var _GetKnowledgeBaseDocumentsCommand = class _GetKnowledgeBaseDocumentsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
5113
|
+
return [
|
|
5114
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
5115
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
5116
|
+
];
|
|
5117
|
+
}).s("AmazonBedrockAgentBuildTimeLambda", "GetKnowledgeBaseDocuments", {}).n("BedrockAgentClient", "GetKnowledgeBaseDocumentsCommand").f(void 0, void 0).ser(se_GetKnowledgeBaseDocumentsCommand).de(de_GetKnowledgeBaseDocumentsCommand).build() {
|
|
5118
|
+
};
|
|
5119
|
+
__name(_GetKnowledgeBaseDocumentsCommand, "GetKnowledgeBaseDocumentsCommand");
|
|
5120
|
+
var GetKnowledgeBaseDocumentsCommand = _GetKnowledgeBaseDocumentsCommand;
|
|
5121
|
+
|
|
4779
5122
|
// src/commands/GetPromptCommand.ts
|
|
4780
5123
|
|
|
4781
5124
|
|
|
@@ -4790,6 +5133,20 @@ var _GetPromptCommand = class _GetPromptCommand extends import_smithy_client.Com
|
|
|
4790
5133
|
__name(_GetPromptCommand, "GetPromptCommand");
|
|
4791
5134
|
var GetPromptCommand = _GetPromptCommand;
|
|
4792
5135
|
|
|
5136
|
+
// src/commands/IngestKnowledgeBaseDocumentsCommand.ts
|
|
5137
|
+
|
|
5138
|
+
|
|
5139
|
+
|
|
5140
|
+
var _IngestKnowledgeBaseDocumentsCommand = class _IngestKnowledgeBaseDocumentsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
5141
|
+
return [
|
|
5142
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
5143
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
5144
|
+
];
|
|
5145
|
+
}).s("AmazonBedrockAgentBuildTimeLambda", "IngestKnowledgeBaseDocuments", {}).n("BedrockAgentClient", "IngestKnowledgeBaseDocumentsCommand").f(IngestKnowledgeBaseDocumentsRequestFilterSensitiveLog, void 0).ser(se_IngestKnowledgeBaseDocumentsCommand).de(de_IngestKnowledgeBaseDocumentsCommand).build() {
|
|
5146
|
+
};
|
|
5147
|
+
__name(_IngestKnowledgeBaseDocumentsCommand, "IngestKnowledgeBaseDocumentsCommand");
|
|
5148
|
+
var IngestKnowledgeBaseDocumentsCommand = _IngestKnowledgeBaseDocumentsCommand;
|
|
5149
|
+
|
|
4793
5150
|
// src/commands/ListAgentActionGroupsCommand.ts
|
|
4794
5151
|
|
|
4795
5152
|
|
|
@@ -4930,6 +5287,20 @@ var _ListIngestionJobsCommand = class _ListIngestionJobsCommand extends import_s
|
|
|
4930
5287
|
__name(_ListIngestionJobsCommand, "ListIngestionJobsCommand");
|
|
4931
5288
|
var ListIngestionJobsCommand = _ListIngestionJobsCommand;
|
|
4932
5289
|
|
|
5290
|
+
// src/commands/ListKnowledgeBaseDocumentsCommand.ts
|
|
5291
|
+
|
|
5292
|
+
|
|
5293
|
+
|
|
5294
|
+
var _ListKnowledgeBaseDocumentsCommand = class _ListKnowledgeBaseDocumentsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
5295
|
+
return [
|
|
5296
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
5297
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
5298
|
+
];
|
|
5299
|
+
}).s("AmazonBedrockAgentBuildTimeLambda", "ListKnowledgeBaseDocuments", {}).n("BedrockAgentClient", "ListKnowledgeBaseDocumentsCommand").f(void 0, void 0).ser(se_ListKnowledgeBaseDocumentsCommand).de(de_ListKnowledgeBaseDocumentsCommand).build() {
|
|
5300
|
+
};
|
|
5301
|
+
__name(_ListKnowledgeBaseDocumentsCommand, "ListKnowledgeBaseDocumentsCommand");
|
|
5302
|
+
var ListKnowledgeBaseDocumentsCommand = _ListKnowledgeBaseDocumentsCommand;
|
|
5303
|
+
|
|
4933
5304
|
// src/commands/ListKnowledgeBasesCommand.ts
|
|
4934
5305
|
|
|
4935
5306
|
|
|
@@ -5218,6 +5589,7 @@ var commands = {
|
|
|
5218
5589
|
DeleteFlowAliasCommand,
|
|
5219
5590
|
DeleteFlowVersionCommand,
|
|
5220
5591
|
DeleteKnowledgeBaseCommand,
|
|
5592
|
+
DeleteKnowledgeBaseDocumentsCommand,
|
|
5221
5593
|
DeletePromptCommand,
|
|
5222
5594
|
DisassociateAgentKnowledgeBaseCommand,
|
|
5223
5595
|
GetAgentCommand,
|
|
@@ -5231,7 +5603,9 @@ var commands = {
|
|
|
5231
5603
|
GetFlowVersionCommand,
|
|
5232
5604
|
GetIngestionJobCommand,
|
|
5233
5605
|
GetKnowledgeBaseCommand,
|
|
5606
|
+
GetKnowledgeBaseDocumentsCommand,
|
|
5234
5607
|
GetPromptCommand,
|
|
5608
|
+
IngestKnowledgeBaseDocumentsCommand,
|
|
5235
5609
|
ListAgentActionGroupsCommand,
|
|
5236
5610
|
ListAgentAliasesCommand,
|
|
5237
5611
|
ListAgentKnowledgeBasesCommand,
|
|
@@ -5242,6 +5616,7 @@ var commands = {
|
|
|
5242
5616
|
ListFlowsCommand,
|
|
5243
5617
|
ListFlowVersionsCommand,
|
|
5244
5618
|
ListIngestionJobsCommand,
|
|
5619
|
+
ListKnowledgeBaseDocumentsCommand,
|
|
5245
5620
|
ListKnowledgeBasesCommand,
|
|
5246
5621
|
ListPromptsCommand,
|
|
5247
5622
|
ListTagsForResourceCommand,
|
|
@@ -5308,6 +5683,10 @@ var paginateListFlows = (0, import_core.createPaginator)(BedrockAgentClient, Lis
|
|
|
5308
5683
|
|
|
5309
5684
|
var paginateListIngestionJobs = (0, import_core.createPaginator)(BedrockAgentClient, ListIngestionJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
5310
5685
|
|
|
5686
|
+
// src/pagination/ListKnowledgeBaseDocumentsPaginator.ts
|
|
5687
|
+
|
|
5688
|
+
var paginateListKnowledgeBaseDocuments = (0, import_core.createPaginator)(BedrockAgentClient, ListKnowledgeBaseDocumentsCommand, "nextToken", "nextToken", "maxResults");
|
|
5689
|
+
|
|
5311
5690
|
// src/pagination/ListKnowledgeBasesPaginator.ts
|
|
5312
5691
|
|
|
5313
5692
|
var paginateListKnowledgeBases = (0, import_core.createPaginator)(BedrockAgentClient, ListKnowledgeBasesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -5343,6 +5722,7 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
|
|
|
5343
5722
|
DeleteFlowCommand,
|
|
5344
5723
|
DeleteFlowVersionCommand,
|
|
5345
5724
|
DeleteKnowledgeBaseCommand,
|
|
5725
|
+
DeleteKnowledgeBaseDocumentsCommand,
|
|
5346
5726
|
DeletePromptCommand,
|
|
5347
5727
|
DisassociateAgentKnowledgeBaseCommand,
|
|
5348
5728
|
GetAgentActionGroupCommand,
|
|
@@ -5356,7 +5736,9 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
|
|
|
5356
5736
|
GetFlowVersionCommand,
|
|
5357
5737
|
GetIngestionJobCommand,
|
|
5358
5738
|
GetKnowledgeBaseCommand,
|
|
5739
|
+
GetKnowledgeBaseDocumentsCommand,
|
|
5359
5740
|
GetPromptCommand,
|
|
5741
|
+
IngestKnowledgeBaseDocumentsCommand,
|
|
5360
5742
|
ListAgentActionGroupsCommand,
|
|
5361
5743
|
ListAgentAliasesCommand,
|
|
5362
5744
|
ListAgentKnowledgeBasesCommand,
|
|
@@ -5367,6 +5749,7 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
|
|
|
5367
5749
|
ListFlowVersionsCommand,
|
|
5368
5750
|
ListFlowsCommand,
|
|
5369
5751
|
ListIngestionJobsCommand,
|
|
5752
|
+
ListKnowledgeBaseDocumentsCommand,
|
|
5370
5753
|
ListKnowledgeBasesCommand,
|
|
5371
5754
|
ListPromptsCommand,
|
|
5372
5755
|
ListTagsForResourceCommand,
|
|
@@ -5396,6 +5779,7 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
|
|
|
5396
5779
|
paginateListFlowVersions,
|
|
5397
5780
|
paginateListFlows,
|
|
5398
5781
|
paginateListIngestionJobs,
|
|
5782
|
+
paginateListKnowledgeBaseDocuments,
|
|
5399
5783
|
paginateListKnowledgeBases,
|
|
5400
5784
|
paginateListPrompts,
|
|
5401
5785
|
AccessDeniedException,
|
|
@@ -5461,10 +5845,12 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
|
|
|
5461
5845
|
IngestionJobFilterOperator,
|
|
5462
5846
|
IngestionJobSortByAttribute,
|
|
5463
5847
|
SortOrder,
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5848
|
+
ContentDataSourceType,
|
|
5849
|
+
DocumentStatus,
|
|
5850
|
+
InlineContentType,
|
|
5851
|
+
CustomSourceType,
|
|
5852
|
+
MetadataValueType,
|
|
5853
|
+
MetadataSourceType,
|
|
5468
5854
|
APISchemaFilterSensitiveLog,
|
|
5469
5855
|
CreateAgentActionGroupRequestFilterSensitiveLog,
|
|
5470
5856
|
AgentActionGroupFilterSensitiveLog,
|
|
@@ -5527,6 +5913,20 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
|
|
|
5527
5913
|
GetFlowResponseFilterSensitiveLog,
|
|
5528
5914
|
UpdateFlowRequestFilterSensitiveLog,
|
|
5529
5915
|
UpdateFlowResponseFilterSensitiveLog,
|
|
5916
|
+
ByteContentDocFilterSensitiveLog,
|
|
5917
|
+
TextContentDocFilterSensitiveLog,
|
|
5918
|
+
InlineContentFilterSensitiveLog,
|
|
5919
|
+
CustomContentFilterSensitiveLog,
|
|
5920
|
+
DocumentContentFilterSensitiveLog,
|
|
5921
|
+
MetadataAttributeValueFilterSensitiveLog,
|
|
5922
|
+
MetadataAttributeFilterSensitiveLog,
|
|
5923
|
+
DocumentMetadataFilterSensitiveLog,
|
|
5924
|
+
KnowledgeBaseDocumentFilterSensitiveLog,
|
|
5925
|
+
IngestKnowledgeBaseDocumentsRequestFilterSensitiveLog,
|
|
5926
|
+
KnowledgeBaseType,
|
|
5927
|
+
EmbeddingDataType,
|
|
5928
|
+
KnowledgeBaseStorageType,
|
|
5929
|
+
KnowledgeBaseStatus,
|
|
5530
5930
|
PromptGenAiResource,
|
|
5531
5931
|
PromptAgentResourceFilterSensitiveLog,
|
|
5532
5932
|
PromptGenAiResourceFilterSensitiveLog,
|