@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.
Files changed (49) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/index.js +422 -22
  3. package/dist-es/BedrockAgent.js +8 -0
  4. package/dist-es/commands/DeleteKnowledgeBaseDocumentsCommand.js +22 -0
  5. package/dist-es/commands/GetKnowledgeBaseDocumentsCommand.js +22 -0
  6. package/dist-es/commands/IngestKnowledgeBaseDocumentsCommand.js +23 -0
  7. package/dist-es/commands/ListKnowledgeBaseDocumentsCommand.js +22 -0
  8. package/dist-es/commands/index.js +4 -0
  9. package/dist-es/models/models_0.js +80 -18
  10. package/dist-es/models/models_1.js +22 -0
  11. package/dist-es/pagination/ListKnowledgeBaseDocumentsPaginator.js +4 -0
  12. package/dist-es/pagination/index.js +1 -0
  13. package/dist-es/protocols/Aws_restJson1.js +208 -0
  14. package/dist-types/BedrockAgent.d.ts +28 -0
  15. package/dist-types/BedrockAgentClient.d.ts +6 -2
  16. package/dist-types/commands/AssociateAgentKnowledgeBaseCommand.d.ts +1 -1
  17. package/dist-types/commands/CreateDataSourceCommand.d.ts +3 -3
  18. package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +1 -1
  19. package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
  20. package/dist-types/commands/DeleteKnowledgeBaseDocumentsCommand.d.ts +119 -0
  21. package/dist-types/commands/DisassociateAgentKnowledgeBaseCommand.d.ts +1 -1
  22. package/dist-types/commands/GetDataSourceCommand.d.ts +1 -1
  23. package/dist-types/commands/GetKnowledgeBaseDocumentsCommand.d.ts +118 -0
  24. package/dist-types/commands/IngestKnowledgeBaseDocumentsCommand.d.ts +161 -0
  25. package/dist-types/commands/ListKnowledgeBaseDocumentsCommand.d.ts +110 -0
  26. package/dist-types/commands/UpdateDataSourceCommand.d.ts +2 -2
  27. package/dist-types/commands/index.d.ts +4 -0
  28. package/dist-types/models/models_0.d.ts +370 -351
  29. package/dist-types/models/models_1.d.ts +623 -1
  30. package/dist-types/pagination/ListKnowledgeBaseDocumentsPaginator.d.ts +7 -0
  31. package/dist-types/pagination/index.d.ts +1 -0
  32. package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
  33. package/dist-types/ts3.4/BedrockAgent.d.ts +68 -0
  34. package/dist-types/ts3.4/BedrockAgentClient.d.ts +24 -0
  35. package/dist-types/ts3.4/commands/AssociateAgentKnowledgeBaseCommand.d.ts +1 -1
  36. package/dist-types/ts3.4/commands/CreateKnowledgeBaseCommand.d.ts +1 -1
  37. package/dist-types/ts3.4/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
  38. package/dist-types/ts3.4/commands/DeleteKnowledgeBaseDocumentsCommand.d.ts +51 -0
  39. package/dist-types/ts3.4/commands/DisassociateAgentKnowledgeBaseCommand.d.ts +1 -1
  40. package/dist-types/ts3.4/commands/GetKnowledgeBaseDocumentsCommand.d.ts +51 -0
  41. package/dist-types/ts3.4/commands/IngestKnowledgeBaseDocumentsCommand.d.ts +51 -0
  42. package/dist-types/ts3.4/commands/ListKnowledgeBaseDocumentsCommand.d.ts +51 -0
  43. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  44. package/dist-types/ts3.4/models/models_0.d.ts +161 -147
  45. package/dist-types/ts3.4/models/models_1.d.ts +167 -4
  46. package/dist-types/ts3.4/pagination/ListKnowledgeBaseDocumentsPaginator.d.ts +11 -0
  47. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  48. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  49. 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,173 +2827,156 @@ export interface StopIngestionJobRequest {
2826
2827
  export interface StopIngestionJobResponse {
2827
2828
  ingestionJob: IngestionJob | undefined;
2828
2829
  }
2829
- export interface AssociateAgentKnowledgeBaseRequest {
2830
- agentId: string | undefined;
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 KnowledgeBaseType: {
2840
- readonly VECTOR: "VECTOR";
2841
- };
2842
- export type KnowledgeBaseType =
2843
- (typeof KnowledgeBaseType)[keyof typeof KnowledgeBaseType];
2844
- export declare const EmbeddingDataType: {
2845
- readonly BINARY: "BINARY";
2846
- readonly FLOAT32: "FLOAT32";
2833
+ export declare const ContentDataSourceType: {
2834
+ readonly CUSTOM: "CUSTOM";
2835
+ readonly S3: "S3";
2847
2836
  };
2848
- export type EmbeddingDataType =
2849
- (typeof EmbeddingDataType)[keyof typeof EmbeddingDataType];
2850
- export interface BedrockEmbeddingModelConfiguration {
2851
- dimensions?: number | undefined;
2852
- embeddingDataType?: EmbeddingDataType | undefined;
2853
- }
2854
- export interface EmbeddingModelConfiguration {
2855
- bedrockEmbeddingModelConfiguration?:
2856
- | BedrockEmbeddingModelConfiguration
2857
- | undefined;
2858
- }
2859
- export interface VectorKnowledgeBaseConfiguration {
2860
- embeddingModelArn: string | undefined;
2861
- embeddingModelConfiguration?: EmbeddingModelConfiguration | undefined;
2862
- }
2863
- export interface KnowledgeBaseConfiguration {
2864
- type: KnowledgeBaseType | undefined;
2865
- vectorKnowledgeBaseConfiguration?:
2866
- | VectorKnowledgeBaseConfiguration
2867
- | 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;
2868
2849
  }
2869
- export interface MongoDbAtlasFieldMapping {
2870
- vectorField: string | undefined;
2871
- textField: string | undefined;
2872
- metadataField: string | undefined;
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;
2873
2873
  }
2874
- export interface MongoDbAtlasConfiguration {
2875
- endpoint: string | undefined;
2876
- databaseName: string | undefined;
2877
- collectionName: string | undefined;
2878
- vectorIndexName: string | undefined;
2879
- credentialsSecretArn: string | undefined;
2880
- fieldMapping: MongoDbAtlasFieldMapping | undefined;
2881
- endpointServiceName?: string | undefined;
2874
+ export interface DeleteKnowledgeBaseDocumentsResponse {
2875
+ documentDetails?: KnowledgeBaseDocumentDetail[] | undefined;
2882
2876
  }
2883
- export interface OpenSearchServerlessFieldMapping {
2884
- vectorField: string | undefined;
2885
- textField: string | undefined;
2886
- metadataField: string | undefined;
2877
+ export interface GetKnowledgeBaseDocumentsRequest {
2878
+ knowledgeBaseId: string | undefined;
2879
+ dataSourceId: string | undefined;
2880
+ documentIdentifiers: DocumentIdentifier[] | undefined;
2887
2881
  }
2888
- export interface OpenSearchServerlessConfiguration {
2889
- collectionArn: string | undefined;
2890
- vectorIndexName: string | undefined;
2891
- fieldMapping: OpenSearchServerlessFieldMapping | undefined;
2882
+ export interface GetKnowledgeBaseDocumentsResponse {
2883
+ documentDetails?: KnowledgeBaseDocumentDetail[] | undefined;
2892
2884
  }
2893
- export interface PineconeFieldMapping {
2894
- textField: string | undefined;
2895
- metadataField: string | undefined;
2885
+ export interface ByteContentDoc {
2886
+ mimeType: string | undefined;
2887
+ data: Uint8Array | undefined;
2896
2888
  }
2897
- export interface PineconeConfiguration {
2898
- connectionString: string | undefined;
2899
- credentialsSecretArn: string | undefined;
2900
- namespace?: string | undefined;
2901
- fieldMapping: PineconeFieldMapping | undefined;
2889
+ export interface TextContentDoc {
2890
+ data: string | undefined;
2902
2891
  }
2903
- export interface RdsFieldMapping {
2904
- primaryKeyField: string | undefined;
2905
- vectorField: string | undefined;
2906
- textField: string | undefined;
2907
- metadataField: string | undefined;
2892
+ export declare const InlineContentType: {
2893
+ readonly BYTE: "BYTE";
2894
+ readonly TEXT: "TEXT";
2895
+ };
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;
2908
2906
  }
2909
- export interface RdsConfiguration {
2910
- resourceArn: string | undefined;
2911
- credentialsSecretArn: string | undefined;
2912
- databaseName: string | undefined;
2913
- tableName: string | undefined;
2914
- fieldMapping: RdsFieldMapping | undefined;
2915
- }
2916
- export interface RedisEnterpriseCloudFieldMapping {
2917
- vectorField: string | undefined;
2918
- textField: string | undefined;
2919
- metadataField: string | undefined;
2920
- }
2921
- export interface RedisEnterpriseCloudConfiguration {
2922
- endpoint: string | undefined;
2923
- vectorIndexName: string | undefined;
2924
- credentialsSecretArn: string | undefined;
2925
- fieldMapping: RedisEnterpriseCloudFieldMapping | undefined;
2926
- }
2927
- export declare const KnowledgeBaseStorageType: {
2928
- readonly MONGO_DB_ATLAS: "MONGO_DB_ATLAS";
2929
- readonly OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS";
2930
- readonly PINECONE: "PINECONE";
2931
- readonly RDS: "RDS";
2932
- readonly REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD";
2907
+ export declare const CustomSourceType: {
2908
+ readonly IN_LINE: "IN_LINE";
2909
+ readonly S3_LOCATION: "S3_LOCATION";
2933
2910
  };
2934
- export type KnowledgeBaseStorageType =
2935
- (typeof KnowledgeBaseStorageType)[keyof typeof KnowledgeBaseStorageType];
2936
- export interface StorageConfiguration {
2937
- type: KnowledgeBaseStorageType | undefined;
2938
- opensearchServerlessConfiguration?:
2939
- | OpenSearchServerlessConfiguration
2940
- | undefined;
2941
- pineconeConfiguration?: PineconeConfiguration | undefined;
2942
- redisEnterpriseCloudConfiguration?:
2943
- | RedisEnterpriseCloudConfiguration
2944
- | undefined;
2945
- rdsConfiguration?: RdsConfiguration | undefined;
2946
- mongoDbAtlasConfiguration?: MongoDbAtlasConfiguration | 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;
2947
2921
  }
2948
- export interface CreateKnowledgeBaseRequest {
2949
- clientToken?: string | undefined;
2950
- name: string | undefined;
2951
- description?: string | undefined;
2952
- roleArn: string | undefined;
2953
- knowledgeBaseConfiguration: KnowledgeBaseConfiguration | undefined;
2954
- storageConfiguration: StorageConfiguration | undefined;
2955
- tags?: Record<string, string> | undefined;
2922
+ export interface DocumentContent {
2923
+ dataSourceType: ContentDataSourceType | undefined;
2924
+ custom?: CustomContent | undefined;
2925
+ s3?: S3Content | undefined;
2956
2926
  }
2957
- export declare const KnowledgeBaseStatus: {
2958
- readonly ACTIVE: "ACTIVE";
2959
- readonly CREATING: "CREATING";
2960
- readonly DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL";
2961
- readonly DELETING: "DELETING";
2962
- readonly FAILED: "FAILED";
2963
- readonly UPDATING: "UPDATING";
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";
2964
2949
  };
2965
- export type KnowledgeBaseStatus =
2966
- (typeof KnowledgeBaseStatus)[keyof typeof KnowledgeBaseStatus];
2967
- export interface KnowledgeBase {
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 {
2968
2962
  knowledgeBaseId: string | undefined;
2969
- name: string | undefined;
2970
- knowledgeBaseArn: string | undefined;
2971
- description?: string | undefined;
2972
- roleArn: string | undefined;
2973
- knowledgeBaseConfiguration: KnowledgeBaseConfiguration | undefined;
2974
- storageConfiguration: StorageConfiguration | undefined;
2975
- status: KnowledgeBaseStatus | undefined;
2976
- createdAt: Date | undefined;
2977
- updatedAt: Date | undefined;
2978
- failureReasons?: string[] | undefined;
2979
- }
2980
- export interface CreateKnowledgeBaseResponse {
2981
- knowledgeBase: KnowledgeBase | undefined;
2963
+ dataSourceId: string | undefined;
2964
+ clientToken?: string | undefined;
2965
+ documents: KnowledgeBaseDocument[] | undefined;
2982
2966
  }
2983
- export interface DeleteKnowledgeBaseRequest {
2984
- knowledgeBaseId: string | undefined;
2967
+ export interface IngestKnowledgeBaseDocumentsResponse {
2968
+ documentDetails?: KnowledgeBaseDocumentDetail[] | undefined;
2985
2969
  }
2986
- export interface DeleteKnowledgeBaseResponse {
2970
+ export interface ListKnowledgeBaseDocumentsRequest {
2987
2971
  knowledgeBaseId: string | undefined;
2988
- status: KnowledgeBaseStatus | undefined;
2972
+ dataSourceId: string | undefined;
2973
+ maxResults?: number | undefined;
2974
+ nextToken?: string | undefined;
2989
2975
  }
2990
- export interface DisassociateAgentKnowledgeBaseRequest {
2991
- agentId: string | undefined;
2992
- agentVersion: string | undefined;
2993
- knowledgeBaseId: string | undefined;
2976
+ export interface ListKnowledgeBaseDocumentsResponse {
2977
+ documentDetails: KnowledgeBaseDocumentDetail[] | undefined;
2978
+ nextToken?: string | undefined;
2994
2979
  }
2995
- export interface DisassociateAgentKnowledgeBaseResponse {}
2996
2980
  export declare const APISchemaFilterSensitiveLog: (obj: APISchema) => any;
2997
2981
  export declare const CreateAgentActionGroupRequestFilterSensitiveLog: (
2998
2982
  obj: CreateAgentActionGroupRequest
@@ -3163,3 +3147,33 @@ export declare const UpdateFlowRequestFilterSensitiveLog: (
3163
3147
  export declare const UpdateFlowResponseFilterSensitiveLog: (
3164
3148
  obj: UpdateFlowResponse
3165
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,178 @@ 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 {}
19
182
  export interface GetAgentKnowledgeBaseRequest {
20
183
  agentId: string | undefined;
21
184
  agentVersion: string | undefined;
@@ -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.702.0",
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",