@aws-sdk/client-bedrock-agent 3.701.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 +423 -17
- 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 -14
- 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 +3 -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/GetAgentKnowledgeBaseCommand.d.ts +1 -2
- package/dist-types/commands/GetDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +1 -0
- 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/UpdateKnowledgeBaseCommand.d.ts +2 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +370 -350
- package/dist-types/models/models_1.d.ts +643 -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/GetAgentKnowledgeBaseCommand.d.ts +4 -2
- 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 -145
- package/dist-types/ts3.4/models/models_1.d.ts +172 -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
|
@@ -671,6 +671,7 @@ export interface SharePointDataSourceConfiguration {
|
|
|
671
671
|
}
|
|
672
672
|
export declare const DataSourceType: {
|
|
673
673
|
readonly CONFLUENCE: "CONFLUENCE";
|
|
674
|
+
readonly CUSTOM: "CUSTOM";
|
|
674
675
|
readonly S3: "S3";
|
|
675
676
|
readonly SALESFORCE: "SALESFORCE";
|
|
676
677
|
readonly SHAREPOINT: "SHAREPOINT";
|
|
@@ -2826,170 +2827,155 @@ export interface StopIngestionJobRequest {
|
|
|
2826
2827
|
export interface StopIngestionJobResponse {
|
|
2827
2828
|
ingestionJob: IngestionJob | undefined;
|
|
2828
2829
|
}
|
|
2829
|
-
export interface
|
|
2830
|
-
|
|
2831
|
-
agentVersion: string | undefined;
|
|
2832
|
-
knowledgeBaseId: string | undefined;
|
|
2833
|
-
description: string | undefined;
|
|
2834
|
-
knowledgeBaseState?: KnowledgeBaseState | undefined;
|
|
2835
|
-
}
|
|
2836
|
-
export interface AssociateAgentKnowledgeBaseResponse {
|
|
2837
|
-
agentKnowledgeBase: AgentKnowledgeBase | undefined;
|
|
2830
|
+
export interface CustomDocumentIdentifier {
|
|
2831
|
+
id: string | undefined;
|
|
2838
2832
|
}
|
|
2839
|
-
export declare const
|
|
2840
|
-
readonly
|
|
2833
|
+
export declare const ContentDataSourceType: {
|
|
2834
|
+
readonly CUSTOM: "CUSTOM";
|
|
2835
|
+
readonly S3: "S3";
|
|
2841
2836
|
};
|
|
2842
|
-
export type
|
|
2843
|
-
(typeof
|
|
2844
|
-
export interface
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
embeddingModelConfiguration?: EmbeddingModelConfiguration | undefined;
|
|
2855
|
-
}
|
|
2856
|
-
export interface KnowledgeBaseConfiguration {
|
|
2857
|
-
type: KnowledgeBaseType | undefined;
|
|
2858
|
-
vectorKnowledgeBaseConfiguration?:
|
|
2859
|
-
| VectorKnowledgeBaseConfiguration
|
|
2860
|
-
| undefined;
|
|
2861
|
-
}
|
|
2862
|
-
export interface MongoDbAtlasFieldMapping {
|
|
2863
|
-
vectorField: string | undefined;
|
|
2864
|
-
textField: string | undefined;
|
|
2865
|
-
metadataField: string | undefined;
|
|
2837
|
+
export type ContentDataSourceType =
|
|
2838
|
+
(typeof ContentDataSourceType)[keyof typeof ContentDataSourceType];
|
|
2839
|
+
export interface DocumentIdentifier {
|
|
2840
|
+
dataSourceType: ContentDataSourceType | undefined;
|
|
2841
|
+
s3?: S3Location | undefined;
|
|
2842
|
+
custom?: CustomDocumentIdentifier | undefined;
|
|
2843
|
+
}
|
|
2844
|
+
export interface DeleteKnowledgeBaseDocumentsRequest {
|
|
2845
|
+
knowledgeBaseId: string | undefined;
|
|
2846
|
+
dataSourceId: string | undefined;
|
|
2847
|
+
clientToken?: string | undefined;
|
|
2848
|
+
documentIdentifiers: DocumentIdentifier[] | undefined;
|
|
2866
2849
|
}
|
|
2867
|
-
export
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2850
|
+
export declare const DocumentStatus: {
|
|
2851
|
+
readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
|
|
2852
|
+
readonly DELETING: "DELETING";
|
|
2853
|
+
readonly FAILED: "FAILED";
|
|
2854
|
+
readonly IGNORED: "IGNORED";
|
|
2855
|
+
readonly INDEXED: "INDEXED";
|
|
2856
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
2857
|
+
readonly METADATA_PARTIALLY_INDEXED: "METADATA_PARTIALLY_INDEXED";
|
|
2858
|
+
readonly METADATA_UPDATE_FAILED: "METADATA_UPDATE_FAILED";
|
|
2859
|
+
readonly NOT_FOUND: "NOT_FOUND";
|
|
2860
|
+
readonly PARTIALLY_INDEXED: "PARTIALLY_INDEXED";
|
|
2861
|
+
readonly PENDING: "PENDING";
|
|
2862
|
+
readonly STARTING: "STARTING";
|
|
2863
|
+
};
|
|
2864
|
+
export type DocumentStatus =
|
|
2865
|
+
(typeof DocumentStatus)[keyof typeof DocumentStatus];
|
|
2866
|
+
export interface KnowledgeBaseDocumentDetail {
|
|
2867
|
+
knowledgeBaseId: string | undefined;
|
|
2868
|
+
dataSourceId: string | undefined;
|
|
2869
|
+
status: DocumentStatus | undefined;
|
|
2870
|
+
identifier: DocumentIdentifier | undefined;
|
|
2871
|
+
statusReason?: string | undefined;
|
|
2872
|
+
updatedAt?: Date | undefined;
|
|
2875
2873
|
}
|
|
2876
|
-
export interface
|
|
2877
|
-
|
|
2878
|
-
textField: string | undefined;
|
|
2879
|
-
metadataField: string | undefined;
|
|
2874
|
+
export interface DeleteKnowledgeBaseDocumentsResponse {
|
|
2875
|
+
documentDetails?: KnowledgeBaseDocumentDetail[] | undefined;
|
|
2880
2876
|
}
|
|
2881
|
-
export interface
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2877
|
+
export interface GetKnowledgeBaseDocumentsRequest {
|
|
2878
|
+
knowledgeBaseId: string | undefined;
|
|
2879
|
+
dataSourceId: string | undefined;
|
|
2880
|
+
documentIdentifiers: DocumentIdentifier[] | undefined;
|
|
2885
2881
|
}
|
|
2886
|
-
export interface
|
|
2887
|
-
|
|
2888
|
-
metadataField: string | undefined;
|
|
2882
|
+
export interface GetKnowledgeBaseDocumentsResponse {
|
|
2883
|
+
documentDetails?: KnowledgeBaseDocumentDetail[] | undefined;
|
|
2889
2884
|
}
|
|
2890
|
-
export interface
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
namespace?: string | undefined;
|
|
2894
|
-
fieldMapping: PineconeFieldMapping | undefined;
|
|
2885
|
+
export interface ByteContentDoc {
|
|
2886
|
+
mimeType: string | undefined;
|
|
2887
|
+
data: Uint8Array | undefined;
|
|
2895
2888
|
}
|
|
2896
|
-
export interface
|
|
2897
|
-
|
|
2898
|
-
vectorField: string | undefined;
|
|
2899
|
-
textField: string | undefined;
|
|
2900
|
-
metadataField: string | undefined;
|
|
2889
|
+
export interface TextContentDoc {
|
|
2890
|
+
data: string | undefined;
|
|
2901
2891
|
}
|
|
2902
|
-
export
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
databaseName: string | undefined;
|
|
2906
|
-
tableName: string | undefined;
|
|
2907
|
-
fieldMapping: RdsFieldMapping | undefined;
|
|
2908
|
-
}
|
|
2909
|
-
export interface RedisEnterpriseCloudFieldMapping {
|
|
2910
|
-
vectorField: string | undefined;
|
|
2911
|
-
textField: string | undefined;
|
|
2912
|
-
metadataField: string | undefined;
|
|
2913
|
-
}
|
|
2914
|
-
export interface RedisEnterpriseCloudConfiguration {
|
|
2915
|
-
endpoint: string | undefined;
|
|
2916
|
-
vectorIndexName: string | undefined;
|
|
2917
|
-
credentialsSecretArn: string | undefined;
|
|
2918
|
-
fieldMapping: RedisEnterpriseCloudFieldMapping | undefined;
|
|
2919
|
-
}
|
|
2920
|
-
export declare const KnowledgeBaseStorageType: {
|
|
2921
|
-
readonly MONGO_DB_ATLAS: "MONGO_DB_ATLAS";
|
|
2922
|
-
readonly OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS";
|
|
2923
|
-
readonly PINECONE: "PINECONE";
|
|
2924
|
-
readonly RDS: "RDS";
|
|
2925
|
-
readonly REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD";
|
|
2892
|
+
export declare const InlineContentType: {
|
|
2893
|
+
readonly BYTE: "BYTE";
|
|
2894
|
+
readonly TEXT: "TEXT";
|
|
2926
2895
|
};
|
|
2927
|
-
export type
|
|
2928
|
-
(typeof
|
|
2929
|
-
export interface
|
|
2930
|
-
type:
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
| undefined;
|
|
2938
|
-
rdsConfiguration?: RdsConfiguration | undefined;
|
|
2939
|
-
mongoDbAtlasConfiguration?: MongoDbAtlasConfiguration | undefined;
|
|
2940
|
-
}
|
|
2941
|
-
export interface CreateKnowledgeBaseRequest {
|
|
2942
|
-
clientToken?: string | undefined;
|
|
2943
|
-
name: string | undefined;
|
|
2944
|
-
description?: string | undefined;
|
|
2945
|
-
roleArn: string | undefined;
|
|
2946
|
-
knowledgeBaseConfiguration: KnowledgeBaseConfiguration | undefined;
|
|
2947
|
-
storageConfiguration: StorageConfiguration | undefined;
|
|
2948
|
-
tags?: Record<string, string> | undefined;
|
|
2896
|
+
export type InlineContentType =
|
|
2897
|
+
(typeof InlineContentType)[keyof typeof InlineContentType];
|
|
2898
|
+
export interface InlineContent {
|
|
2899
|
+
type: InlineContentType | undefined;
|
|
2900
|
+
byteContent?: ByteContentDoc | undefined;
|
|
2901
|
+
textContent?: TextContentDoc | undefined;
|
|
2902
|
+
}
|
|
2903
|
+
export interface CustomS3Location {
|
|
2904
|
+
uri: string | undefined;
|
|
2905
|
+
bucketOwnerAccountId?: string | undefined;
|
|
2949
2906
|
}
|
|
2950
|
-
export declare const
|
|
2951
|
-
readonly
|
|
2952
|
-
readonly
|
|
2953
|
-
readonly DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL";
|
|
2954
|
-
readonly DELETING: "DELETING";
|
|
2955
|
-
readonly FAILED: "FAILED";
|
|
2956
|
-
readonly UPDATING: "UPDATING";
|
|
2907
|
+
export declare const CustomSourceType: {
|
|
2908
|
+
readonly IN_LINE: "IN_LINE";
|
|
2909
|
+
readonly S3_LOCATION: "S3_LOCATION";
|
|
2957
2910
|
};
|
|
2958
|
-
export type
|
|
2959
|
-
(typeof
|
|
2960
|
-
export interface
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
status: KnowledgeBaseStatus | undefined;
|
|
2969
|
-
createdAt: Date | undefined;
|
|
2970
|
-
updatedAt: Date | undefined;
|
|
2971
|
-
failureReasons?: string[] | undefined;
|
|
2911
|
+
export type CustomSourceType =
|
|
2912
|
+
(typeof CustomSourceType)[keyof typeof CustomSourceType];
|
|
2913
|
+
export interface CustomContent {
|
|
2914
|
+
customDocumentIdentifier: CustomDocumentIdentifier | undefined;
|
|
2915
|
+
sourceType: CustomSourceType | undefined;
|
|
2916
|
+
s3Location?: CustomS3Location | undefined;
|
|
2917
|
+
inlineContent?: InlineContent | undefined;
|
|
2918
|
+
}
|
|
2919
|
+
export interface S3Content {
|
|
2920
|
+
s3Location: S3Location | undefined;
|
|
2972
2921
|
}
|
|
2973
|
-
export interface
|
|
2974
|
-
|
|
2922
|
+
export interface DocumentContent {
|
|
2923
|
+
dataSourceType: ContentDataSourceType | undefined;
|
|
2924
|
+
custom?: CustomContent | undefined;
|
|
2925
|
+
s3?: S3Content | undefined;
|
|
2975
2926
|
}
|
|
2976
|
-
export
|
|
2927
|
+
export declare const MetadataValueType: {
|
|
2928
|
+
readonly BOOLEAN: "BOOLEAN";
|
|
2929
|
+
readonly NUMBER: "NUMBER";
|
|
2930
|
+
readonly STRING: "STRING";
|
|
2931
|
+
readonly STRING_LIST: "STRING_LIST";
|
|
2932
|
+
};
|
|
2933
|
+
export type MetadataValueType =
|
|
2934
|
+
(typeof MetadataValueType)[keyof typeof MetadataValueType];
|
|
2935
|
+
export interface MetadataAttributeValue {
|
|
2936
|
+
type: MetadataValueType | undefined;
|
|
2937
|
+
numberValue?: number | undefined;
|
|
2938
|
+
booleanValue?: boolean | undefined;
|
|
2939
|
+
stringValue?: string | undefined;
|
|
2940
|
+
stringListValue?: string[] | undefined;
|
|
2941
|
+
}
|
|
2942
|
+
export interface MetadataAttribute {
|
|
2943
|
+
key: string | undefined;
|
|
2944
|
+
value: MetadataAttributeValue | undefined;
|
|
2945
|
+
}
|
|
2946
|
+
export declare const MetadataSourceType: {
|
|
2947
|
+
readonly IN_LINE_ATTRIBUTE: "IN_LINE_ATTRIBUTE";
|
|
2948
|
+
readonly S3_LOCATION: "S3_LOCATION";
|
|
2949
|
+
};
|
|
2950
|
+
export type MetadataSourceType =
|
|
2951
|
+
(typeof MetadataSourceType)[keyof typeof MetadataSourceType];
|
|
2952
|
+
export interface DocumentMetadata {
|
|
2953
|
+
type: MetadataSourceType | undefined;
|
|
2954
|
+
inlineAttributes?: MetadataAttribute[] | undefined;
|
|
2955
|
+
s3Location?: CustomS3Location | undefined;
|
|
2956
|
+
}
|
|
2957
|
+
export interface KnowledgeBaseDocument {
|
|
2958
|
+
metadata?: DocumentMetadata | undefined;
|
|
2959
|
+
content: DocumentContent | undefined;
|
|
2960
|
+
}
|
|
2961
|
+
export interface IngestKnowledgeBaseDocumentsRequest {
|
|
2977
2962
|
knowledgeBaseId: string | undefined;
|
|
2963
|
+
dataSourceId: string | undefined;
|
|
2964
|
+
clientToken?: string | undefined;
|
|
2965
|
+
documents: KnowledgeBaseDocument[] | undefined;
|
|
2978
2966
|
}
|
|
2979
|
-
export interface
|
|
2980
|
-
|
|
2981
|
-
status: KnowledgeBaseStatus | undefined;
|
|
2967
|
+
export interface IngestKnowledgeBaseDocumentsResponse {
|
|
2968
|
+
documentDetails?: KnowledgeBaseDocumentDetail[] | undefined;
|
|
2982
2969
|
}
|
|
2983
|
-
export interface
|
|
2984
|
-
agentId: string | undefined;
|
|
2985
|
-
agentVersion: string | undefined;
|
|
2970
|
+
export interface ListKnowledgeBaseDocumentsRequest {
|
|
2986
2971
|
knowledgeBaseId: string | undefined;
|
|
2972
|
+
dataSourceId: string | undefined;
|
|
2973
|
+
maxResults?: number | undefined;
|
|
2974
|
+
nextToken?: string | undefined;
|
|
2987
2975
|
}
|
|
2988
|
-
export interface
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
agentVersion: string | undefined;
|
|
2992
|
-
knowledgeBaseId: string | undefined;
|
|
2976
|
+
export interface ListKnowledgeBaseDocumentsResponse {
|
|
2977
|
+
documentDetails: KnowledgeBaseDocumentDetail[] | undefined;
|
|
2978
|
+
nextToken?: string | undefined;
|
|
2993
2979
|
}
|
|
2994
2980
|
export declare const APISchemaFilterSensitiveLog: (obj: APISchema) => any;
|
|
2995
2981
|
export declare const CreateAgentActionGroupRequestFilterSensitiveLog: (
|
|
@@ -3161,3 +3147,33 @@ export declare const UpdateFlowRequestFilterSensitiveLog: (
|
|
|
3161
3147
|
export declare const UpdateFlowResponseFilterSensitiveLog: (
|
|
3162
3148
|
obj: UpdateFlowResponse
|
|
3163
3149
|
) => any;
|
|
3150
|
+
export declare const ByteContentDocFilterSensitiveLog: (
|
|
3151
|
+
obj: ByteContentDoc
|
|
3152
|
+
) => any;
|
|
3153
|
+
export declare const TextContentDocFilterSensitiveLog: (
|
|
3154
|
+
obj: TextContentDoc
|
|
3155
|
+
) => any;
|
|
3156
|
+
export declare const InlineContentFilterSensitiveLog: (
|
|
3157
|
+
obj: InlineContent
|
|
3158
|
+
) => any;
|
|
3159
|
+
export declare const CustomContentFilterSensitiveLog: (
|
|
3160
|
+
obj: CustomContent
|
|
3161
|
+
) => any;
|
|
3162
|
+
export declare const DocumentContentFilterSensitiveLog: (
|
|
3163
|
+
obj: DocumentContent
|
|
3164
|
+
) => any;
|
|
3165
|
+
export declare const MetadataAttributeValueFilterSensitiveLog: (
|
|
3166
|
+
obj: MetadataAttributeValue
|
|
3167
|
+
) => any;
|
|
3168
|
+
export declare const MetadataAttributeFilterSensitiveLog: (
|
|
3169
|
+
obj: MetadataAttribute
|
|
3170
|
+
) => any;
|
|
3171
|
+
export declare const DocumentMetadataFilterSensitiveLog: (
|
|
3172
|
+
obj: DocumentMetadata
|
|
3173
|
+
) => any;
|
|
3174
|
+
export declare const KnowledgeBaseDocumentFilterSensitiveLog: (
|
|
3175
|
+
obj: KnowledgeBaseDocument
|
|
3176
|
+
) => any;
|
|
3177
|
+
export declare const IngestKnowledgeBaseDocumentsRequestFilterSensitiveLog: (
|
|
3178
|
+
obj: IngestKnowledgeBaseDocumentsRequest
|
|
3179
|
+
) => any;
|
|
@@ -7,15 +7,183 @@ import {
|
|
|
7
7
|
AgentVersionSummary,
|
|
8
8
|
FlowDefinition,
|
|
9
9
|
FlowValidation,
|
|
10
|
-
KnowledgeBase,
|
|
11
|
-
KnowledgeBaseConfiguration,
|
|
12
10
|
KnowledgeBaseState,
|
|
13
|
-
KnowledgeBaseStatus,
|
|
14
11
|
PromptInferenceConfiguration,
|
|
15
12
|
PromptTemplateConfiguration,
|
|
16
13
|
PromptTemplateType,
|
|
17
|
-
StorageConfiguration,
|
|
18
14
|
} from "./models_0";
|
|
15
|
+
export interface AssociateAgentKnowledgeBaseRequest {
|
|
16
|
+
agentId: string | undefined;
|
|
17
|
+
agentVersion: string | undefined;
|
|
18
|
+
knowledgeBaseId: string | undefined;
|
|
19
|
+
description: string | undefined;
|
|
20
|
+
knowledgeBaseState?: KnowledgeBaseState | undefined;
|
|
21
|
+
}
|
|
22
|
+
export interface AssociateAgentKnowledgeBaseResponse {
|
|
23
|
+
agentKnowledgeBase: AgentKnowledgeBase | undefined;
|
|
24
|
+
}
|
|
25
|
+
export declare const KnowledgeBaseType: {
|
|
26
|
+
readonly VECTOR: "VECTOR";
|
|
27
|
+
};
|
|
28
|
+
export type KnowledgeBaseType =
|
|
29
|
+
(typeof KnowledgeBaseType)[keyof typeof KnowledgeBaseType];
|
|
30
|
+
export declare const EmbeddingDataType: {
|
|
31
|
+
readonly BINARY: "BINARY";
|
|
32
|
+
readonly FLOAT32: "FLOAT32";
|
|
33
|
+
};
|
|
34
|
+
export type EmbeddingDataType =
|
|
35
|
+
(typeof EmbeddingDataType)[keyof typeof EmbeddingDataType];
|
|
36
|
+
export interface BedrockEmbeddingModelConfiguration {
|
|
37
|
+
dimensions?: number | undefined;
|
|
38
|
+
embeddingDataType?: EmbeddingDataType | undefined;
|
|
39
|
+
}
|
|
40
|
+
export interface EmbeddingModelConfiguration {
|
|
41
|
+
bedrockEmbeddingModelConfiguration?:
|
|
42
|
+
| BedrockEmbeddingModelConfiguration
|
|
43
|
+
| undefined;
|
|
44
|
+
}
|
|
45
|
+
export interface VectorKnowledgeBaseConfiguration {
|
|
46
|
+
embeddingModelArn: string | undefined;
|
|
47
|
+
embeddingModelConfiguration?: EmbeddingModelConfiguration | undefined;
|
|
48
|
+
}
|
|
49
|
+
export interface KnowledgeBaseConfiguration {
|
|
50
|
+
type: KnowledgeBaseType | undefined;
|
|
51
|
+
vectorKnowledgeBaseConfiguration?:
|
|
52
|
+
| VectorKnowledgeBaseConfiguration
|
|
53
|
+
| undefined;
|
|
54
|
+
}
|
|
55
|
+
export interface MongoDbAtlasFieldMapping {
|
|
56
|
+
vectorField: string | undefined;
|
|
57
|
+
textField: string | undefined;
|
|
58
|
+
metadataField: string | undefined;
|
|
59
|
+
}
|
|
60
|
+
export interface MongoDbAtlasConfiguration {
|
|
61
|
+
endpoint: string | undefined;
|
|
62
|
+
databaseName: string | undefined;
|
|
63
|
+
collectionName: string | undefined;
|
|
64
|
+
vectorIndexName: string | undefined;
|
|
65
|
+
credentialsSecretArn: string | undefined;
|
|
66
|
+
fieldMapping: MongoDbAtlasFieldMapping | undefined;
|
|
67
|
+
endpointServiceName?: string | undefined;
|
|
68
|
+
}
|
|
69
|
+
export interface OpenSearchServerlessFieldMapping {
|
|
70
|
+
vectorField: string | undefined;
|
|
71
|
+
textField: string | undefined;
|
|
72
|
+
metadataField: string | undefined;
|
|
73
|
+
}
|
|
74
|
+
export interface OpenSearchServerlessConfiguration {
|
|
75
|
+
collectionArn: string | undefined;
|
|
76
|
+
vectorIndexName: string | undefined;
|
|
77
|
+
fieldMapping: OpenSearchServerlessFieldMapping | undefined;
|
|
78
|
+
}
|
|
79
|
+
export interface PineconeFieldMapping {
|
|
80
|
+
textField: string | undefined;
|
|
81
|
+
metadataField: string | undefined;
|
|
82
|
+
}
|
|
83
|
+
export interface PineconeConfiguration {
|
|
84
|
+
connectionString: string | undefined;
|
|
85
|
+
credentialsSecretArn: string | undefined;
|
|
86
|
+
namespace?: string | undefined;
|
|
87
|
+
fieldMapping: PineconeFieldMapping | undefined;
|
|
88
|
+
}
|
|
89
|
+
export interface RdsFieldMapping {
|
|
90
|
+
primaryKeyField: string | undefined;
|
|
91
|
+
vectorField: string | undefined;
|
|
92
|
+
textField: string | undefined;
|
|
93
|
+
metadataField: string | undefined;
|
|
94
|
+
}
|
|
95
|
+
export interface RdsConfiguration {
|
|
96
|
+
resourceArn: string | undefined;
|
|
97
|
+
credentialsSecretArn: string | undefined;
|
|
98
|
+
databaseName: string | undefined;
|
|
99
|
+
tableName: string | undefined;
|
|
100
|
+
fieldMapping: RdsFieldMapping | undefined;
|
|
101
|
+
}
|
|
102
|
+
export interface RedisEnterpriseCloudFieldMapping {
|
|
103
|
+
vectorField: string | undefined;
|
|
104
|
+
textField: string | undefined;
|
|
105
|
+
metadataField: string | undefined;
|
|
106
|
+
}
|
|
107
|
+
export interface RedisEnterpriseCloudConfiguration {
|
|
108
|
+
endpoint: string | undefined;
|
|
109
|
+
vectorIndexName: string | undefined;
|
|
110
|
+
credentialsSecretArn: string | undefined;
|
|
111
|
+
fieldMapping: RedisEnterpriseCloudFieldMapping | undefined;
|
|
112
|
+
}
|
|
113
|
+
export declare const KnowledgeBaseStorageType: {
|
|
114
|
+
readonly MONGO_DB_ATLAS: "MONGO_DB_ATLAS";
|
|
115
|
+
readonly OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS";
|
|
116
|
+
readonly PINECONE: "PINECONE";
|
|
117
|
+
readonly RDS: "RDS";
|
|
118
|
+
readonly REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD";
|
|
119
|
+
};
|
|
120
|
+
export type KnowledgeBaseStorageType =
|
|
121
|
+
(typeof KnowledgeBaseStorageType)[keyof typeof KnowledgeBaseStorageType];
|
|
122
|
+
export interface StorageConfiguration {
|
|
123
|
+
type: KnowledgeBaseStorageType | undefined;
|
|
124
|
+
opensearchServerlessConfiguration?:
|
|
125
|
+
| OpenSearchServerlessConfiguration
|
|
126
|
+
| undefined;
|
|
127
|
+
pineconeConfiguration?: PineconeConfiguration | undefined;
|
|
128
|
+
redisEnterpriseCloudConfiguration?:
|
|
129
|
+
| RedisEnterpriseCloudConfiguration
|
|
130
|
+
| undefined;
|
|
131
|
+
rdsConfiguration?: RdsConfiguration | undefined;
|
|
132
|
+
mongoDbAtlasConfiguration?: MongoDbAtlasConfiguration | undefined;
|
|
133
|
+
}
|
|
134
|
+
export interface CreateKnowledgeBaseRequest {
|
|
135
|
+
clientToken?: string | undefined;
|
|
136
|
+
name: string | undefined;
|
|
137
|
+
description?: string | undefined;
|
|
138
|
+
roleArn: string | undefined;
|
|
139
|
+
knowledgeBaseConfiguration: KnowledgeBaseConfiguration | undefined;
|
|
140
|
+
storageConfiguration: StorageConfiguration | undefined;
|
|
141
|
+
tags?: Record<string, string> | undefined;
|
|
142
|
+
}
|
|
143
|
+
export declare const KnowledgeBaseStatus: {
|
|
144
|
+
readonly ACTIVE: "ACTIVE";
|
|
145
|
+
readonly CREATING: "CREATING";
|
|
146
|
+
readonly DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL";
|
|
147
|
+
readonly DELETING: "DELETING";
|
|
148
|
+
readonly FAILED: "FAILED";
|
|
149
|
+
readonly UPDATING: "UPDATING";
|
|
150
|
+
};
|
|
151
|
+
export type KnowledgeBaseStatus =
|
|
152
|
+
(typeof KnowledgeBaseStatus)[keyof typeof KnowledgeBaseStatus];
|
|
153
|
+
export interface KnowledgeBase {
|
|
154
|
+
knowledgeBaseId: string | undefined;
|
|
155
|
+
name: string | undefined;
|
|
156
|
+
knowledgeBaseArn: string | undefined;
|
|
157
|
+
description?: string | undefined;
|
|
158
|
+
roleArn: string | undefined;
|
|
159
|
+
knowledgeBaseConfiguration: KnowledgeBaseConfiguration | undefined;
|
|
160
|
+
storageConfiguration: StorageConfiguration | undefined;
|
|
161
|
+
status: KnowledgeBaseStatus | undefined;
|
|
162
|
+
createdAt: Date | undefined;
|
|
163
|
+
updatedAt: Date | undefined;
|
|
164
|
+
failureReasons?: string[] | undefined;
|
|
165
|
+
}
|
|
166
|
+
export interface CreateKnowledgeBaseResponse {
|
|
167
|
+
knowledgeBase: KnowledgeBase | undefined;
|
|
168
|
+
}
|
|
169
|
+
export interface DeleteKnowledgeBaseRequest {
|
|
170
|
+
knowledgeBaseId: string | undefined;
|
|
171
|
+
}
|
|
172
|
+
export interface DeleteKnowledgeBaseResponse {
|
|
173
|
+
knowledgeBaseId: string | undefined;
|
|
174
|
+
status: KnowledgeBaseStatus | undefined;
|
|
175
|
+
}
|
|
176
|
+
export interface DisassociateAgentKnowledgeBaseRequest {
|
|
177
|
+
agentId: string | undefined;
|
|
178
|
+
agentVersion: string | undefined;
|
|
179
|
+
knowledgeBaseId: string | undefined;
|
|
180
|
+
}
|
|
181
|
+
export interface DisassociateAgentKnowledgeBaseResponse {}
|
|
182
|
+
export interface GetAgentKnowledgeBaseRequest {
|
|
183
|
+
agentId: string | undefined;
|
|
184
|
+
agentVersion: string | undefined;
|
|
185
|
+
knowledgeBaseId: string | undefined;
|
|
186
|
+
}
|
|
19
187
|
export interface GetAgentKnowledgeBaseResponse {
|
|
20
188
|
agentKnowledgeBase: AgentKnowledgeBase | undefined;
|
|
21
189
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListKnowledgeBaseDocumentsCommandInput,
|
|
4
|
+
ListKnowledgeBaseDocumentsCommandOutput,
|
|
5
|
+
} from "../commands/ListKnowledgeBaseDocumentsCommand";
|
|
6
|
+
import { BedrockAgentPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateListKnowledgeBaseDocuments: (
|
|
8
|
+
config: BedrockAgentPaginationConfiguration,
|
|
9
|
+
input: ListKnowledgeBaseDocumentsCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListKnowledgeBaseDocumentsCommandOutput>;
|
|
@@ -9,5 +9,6 @@ export * from "./ListFlowAliasesPaginator";
|
|
|
9
9
|
export * from "./ListFlowVersionsPaginator";
|
|
10
10
|
export * from "./ListFlowsPaginator";
|
|
11
11
|
export * from "./ListIngestionJobsPaginator";
|
|
12
|
+
export * from "./ListKnowledgeBaseDocumentsPaginator";
|
|
12
13
|
export * from "./ListKnowledgeBasesPaginator";
|
|
13
14
|
export * from "./ListPromptsPaginator";
|
|
@@ -83,6 +83,10 @@ import {
|
|
|
83
83
|
DeleteKnowledgeBaseCommandInput,
|
|
84
84
|
DeleteKnowledgeBaseCommandOutput,
|
|
85
85
|
} from "../commands/DeleteKnowledgeBaseCommand";
|
|
86
|
+
import {
|
|
87
|
+
DeleteKnowledgeBaseDocumentsCommandInput,
|
|
88
|
+
DeleteKnowledgeBaseDocumentsCommandOutput,
|
|
89
|
+
} from "../commands/DeleteKnowledgeBaseDocumentsCommand";
|
|
86
90
|
import {
|
|
87
91
|
DeletePromptCommandInput,
|
|
88
92
|
DeletePromptCommandOutput,
|
|
@@ -135,10 +139,18 @@ import {
|
|
|
135
139
|
GetKnowledgeBaseCommandInput,
|
|
136
140
|
GetKnowledgeBaseCommandOutput,
|
|
137
141
|
} from "../commands/GetKnowledgeBaseCommand";
|
|
142
|
+
import {
|
|
143
|
+
GetKnowledgeBaseDocumentsCommandInput,
|
|
144
|
+
GetKnowledgeBaseDocumentsCommandOutput,
|
|
145
|
+
} from "../commands/GetKnowledgeBaseDocumentsCommand";
|
|
138
146
|
import {
|
|
139
147
|
GetPromptCommandInput,
|
|
140
148
|
GetPromptCommandOutput,
|
|
141
149
|
} from "../commands/GetPromptCommand";
|
|
150
|
+
import {
|
|
151
|
+
IngestKnowledgeBaseDocumentsCommandInput,
|
|
152
|
+
IngestKnowledgeBaseDocumentsCommandOutput,
|
|
153
|
+
} from "../commands/IngestKnowledgeBaseDocumentsCommand";
|
|
142
154
|
import {
|
|
143
155
|
ListAgentActionGroupsCommandInput,
|
|
144
156
|
ListAgentActionGroupsCommandOutput,
|
|
@@ -179,6 +191,10 @@ import {
|
|
|
179
191
|
ListIngestionJobsCommandInput,
|
|
180
192
|
ListIngestionJobsCommandOutput,
|
|
181
193
|
} from "../commands/ListIngestionJobsCommand";
|
|
194
|
+
import {
|
|
195
|
+
ListKnowledgeBaseDocumentsCommandInput,
|
|
196
|
+
ListKnowledgeBaseDocumentsCommandOutput,
|
|
197
|
+
} from "../commands/ListKnowledgeBaseDocumentsCommand";
|
|
182
198
|
import {
|
|
183
199
|
ListKnowledgeBasesCommandInput,
|
|
184
200
|
ListKnowledgeBasesCommandOutput,
|
|
@@ -335,6 +351,10 @@ export declare const se_DeleteKnowledgeBaseCommand: (
|
|
|
335
351
|
input: DeleteKnowledgeBaseCommandInput,
|
|
336
352
|
context: __SerdeContext
|
|
337
353
|
) => Promise<__HttpRequest>;
|
|
354
|
+
export declare const se_DeleteKnowledgeBaseDocumentsCommand: (
|
|
355
|
+
input: DeleteKnowledgeBaseDocumentsCommandInput,
|
|
356
|
+
context: __SerdeContext
|
|
357
|
+
) => Promise<__HttpRequest>;
|
|
338
358
|
export declare const se_DeletePromptCommand: (
|
|
339
359
|
input: DeletePromptCommandInput,
|
|
340
360
|
context: __SerdeContext
|
|
@@ -387,10 +407,18 @@ export declare const se_GetKnowledgeBaseCommand: (
|
|
|
387
407
|
input: GetKnowledgeBaseCommandInput,
|
|
388
408
|
context: __SerdeContext
|
|
389
409
|
) => Promise<__HttpRequest>;
|
|
410
|
+
export declare const se_GetKnowledgeBaseDocumentsCommand: (
|
|
411
|
+
input: GetKnowledgeBaseDocumentsCommandInput,
|
|
412
|
+
context: __SerdeContext
|
|
413
|
+
) => Promise<__HttpRequest>;
|
|
390
414
|
export declare const se_GetPromptCommand: (
|
|
391
415
|
input: GetPromptCommandInput,
|
|
392
416
|
context: __SerdeContext
|
|
393
417
|
) => Promise<__HttpRequest>;
|
|
418
|
+
export declare const se_IngestKnowledgeBaseDocumentsCommand: (
|
|
419
|
+
input: IngestKnowledgeBaseDocumentsCommandInput,
|
|
420
|
+
context: __SerdeContext
|
|
421
|
+
) => Promise<__HttpRequest>;
|
|
394
422
|
export declare const se_ListAgentActionGroupsCommand: (
|
|
395
423
|
input: ListAgentActionGroupsCommandInput,
|
|
396
424
|
context: __SerdeContext
|
|
@@ -431,6 +459,10 @@ export declare const se_ListIngestionJobsCommand: (
|
|
|
431
459
|
input: ListIngestionJobsCommandInput,
|
|
432
460
|
context: __SerdeContext
|
|
433
461
|
) => Promise<__HttpRequest>;
|
|
462
|
+
export declare const se_ListKnowledgeBaseDocumentsCommand: (
|
|
463
|
+
input: ListKnowledgeBaseDocumentsCommandInput,
|
|
464
|
+
context: __SerdeContext
|
|
465
|
+
) => Promise<__HttpRequest>;
|
|
434
466
|
export declare const se_ListKnowledgeBasesCommand: (
|
|
435
467
|
input: ListKnowledgeBasesCommandInput,
|
|
436
468
|
context: __SerdeContext
|
|
@@ -587,6 +619,10 @@ export declare const de_DeleteKnowledgeBaseCommand: (
|
|
|
587
619
|
output: __HttpResponse,
|
|
588
620
|
context: __SerdeContext
|
|
589
621
|
) => Promise<DeleteKnowledgeBaseCommandOutput>;
|
|
622
|
+
export declare const de_DeleteKnowledgeBaseDocumentsCommand: (
|
|
623
|
+
output: __HttpResponse,
|
|
624
|
+
context: __SerdeContext
|
|
625
|
+
) => Promise<DeleteKnowledgeBaseDocumentsCommandOutput>;
|
|
590
626
|
export declare const de_DeletePromptCommand: (
|
|
591
627
|
output: __HttpResponse,
|
|
592
628
|
context: __SerdeContext
|
|
@@ -639,10 +675,18 @@ export declare const de_GetKnowledgeBaseCommand: (
|
|
|
639
675
|
output: __HttpResponse,
|
|
640
676
|
context: __SerdeContext
|
|
641
677
|
) => Promise<GetKnowledgeBaseCommandOutput>;
|
|
678
|
+
export declare const de_GetKnowledgeBaseDocumentsCommand: (
|
|
679
|
+
output: __HttpResponse,
|
|
680
|
+
context: __SerdeContext
|
|
681
|
+
) => Promise<GetKnowledgeBaseDocumentsCommandOutput>;
|
|
642
682
|
export declare const de_GetPromptCommand: (
|
|
643
683
|
output: __HttpResponse,
|
|
644
684
|
context: __SerdeContext
|
|
645
685
|
) => Promise<GetPromptCommandOutput>;
|
|
686
|
+
export declare const de_IngestKnowledgeBaseDocumentsCommand: (
|
|
687
|
+
output: __HttpResponse,
|
|
688
|
+
context: __SerdeContext
|
|
689
|
+
) => Promise<IngestKnowledgeBaseDocumentsCommandOutput>;
|
|
646
690
|
export declare const de_ListAgentActionGroupsCommand: (
|
|
647
691
|
output: __HttpResponse,
|
|
648
692
|
context: __SerdeContext
|
|
@@ -683,6 +727,10 @@ export declare const de_ListIngestionJobsCommand: (
|
|
|
683
727
|
output: __HttpResponse,
|
|
684
728
|
context: __SerdeContext
|
|
685
729
|
) => Promise<ListIngestionJobsCommandOutput>;
|
|
730
|
+
export declare const de_ListKnowledgeBaseDocumentsCommand: (
|
|
731
|
+
output: __HttpResponse,
|
|
732
|
+
context: __SerdeContext
|
|
733
|
+
) => Promise<ListKnowledgeBaseDocumentsCommandOutput>;
|
|
686
734
|
export declare const de_ListKnowledgeBasesCommand: (
|
|
687
735
|
output: __HttpResponse,
|
|
688
736
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agent",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Agent Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.703.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent",
|