@aws-sdk/client-s3vectors 3.1169.0 → 3.1170.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.
@@ -0,0 +1,42 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import {
3
+ UpdateMetadataConfigurationInput,
4
+ UpdateMetadataConfigurationOutput,
5
+ } from "../models/models_0";
6
+ export { __MetadataBearer };
7
+ export interface UpdateMetadataConfigurationCommandInput extends UpdateMetadataConfigurationInput {}
8
+ export interface UpdateMetadataConfigurationCommandOutput
9
+ extends UpdateMetadataConfigurationOutput, __MetadataBearer {}
10
+ declare const UpdateMetadataConfigurationCommand_base: {
11
+ new (
12
+ input: UpdateMetadataConfigurationCommandInput,
13
+ ): import("@smithy/core/client").CommandImpl<
14
+ UpdateMetadataConfigurationCommandInput,
15
+ UpdateMetadataConfigurationCommandOutput,
16
+ import("..").S3VectorsClientResolvedConfig,
17
+ import("..").ServiceInputTypes,
18
+ import("..").ServiceOutputTypes
19
+ >;
20
+ new (
21
+ ...[input]: [] | [UpdateMetadataConfigurationCommandInput]
22
+ ): import("@smithy/core/client").CommandImpl<
23
+ UpdateMetadataConfigurationCommandInput,
24
+ UpdateMetadataConfigurationCommandOutput,
25
+ import("..").S3VectorsClientResolvedConfig,
26
+ import("..").ServiceInputTypes,
27
+ import("..").ServiceOutputTypes
28
+ >;
29
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
+ };
31
+ export declare class UpdateMetadataConfigurationCommand extends UpdateMetadataConfigurationCommand_base {
32
+ protected static __types: {
33
+ api: {
34
+ input: UpdateMetadataConfigurationInput;
35
+ output: UpdateMetadataConfigurationOutput;
36
+ };
37
+ sdk: {
38
+ input: UpdateMetadataConfigurationCommandInput;
39
+ output: UpdateMetadataConfigurationCommandOutput;
40
+ };
41
+ };
42
+ }
@@ -19,3 +19,4 @@ export * from "./QueryVectorsCommand";
19
19
  export * from "./TagResourceCommand";
20
20
  export * from "./UntagResourceCommand";
21
21
  export * from "./UpdateIndexModeCommand";
22
+ export * from "./UpdateMetadataConfigurationCommand";
@@ -1,3 +1,8 @@
1
+ export declare const AnalyzerStatus: {
2
+ readonly ACTIVE: "ACTIVE";
3
+ readonly BUILDING: "BUILDING";
4
+ };
5
+ export type AnalyzerStatus = (typeof AnalyzerStatus)[keyof typeof AnalyzerStatus];
1
6
  export declare const DataType: {
2
7
  readonly FLOAT32: "float32";
3
8
  };
@@ -12,6 +17,19 @@ export declare const SseType: {
12
17
  readonly AWS_KMS: "aws:kms";
13
18
  };
14
19
  export type SseType = (typeof SseType)[keyof typeof SseType];
20
+ export declare const LanguageCode: {
21
+ readonly DE: "de";
22
+ readonly EN: "en";
23
+ readonly ES: "es";
24
+ readonly FR: "fr";
25
+ readonly IT: "it";
26
+ readonly JA: "ja";
27
+ readonly KO: "ko";
28
+ readonly NL: "nl";
29
+ readonly PT: "pt";
30
+ readonly ZH: "zh";
31
+ };
32
+ export type LanguageCode = (typeof LanguageCode)[keyof typeof LanguageCode];
15
33
  export declare const IndexMode: {
16
34
  readonly CLASSIC: "CLASSIC";
17
35
  readonly ENHANCED: "ENHANCED";
@@ -1,11 +1,28 @@
1
1
  import { DocumentType as __DocumentType } from "@smithy/types";
2
- import { DataType, DistanceMetric, IndexMode, SseType } from "./enums";
2
+ import {
3
+ AnalyzerStatus,
4
+ DataType,
5
+ DistanceMetric,
6
+ IndexMode,
7
+ LanguageCode,
8
+ SseType,
9
+ } from "./enums";
10
+ export interface Bm25Score {
11
+ metadataKey: string | undefined;
12
+ score: number | undefined;
13
+ }
3
14
  export interface EncryptionConfiguration {
4
15
  sseType?: SseType | undefined;
5
16
  kmsKeyArn?: string | undefined;
6
17
  }
18
+ export interface TextSearchConfiguration {
19
+ metadataKey: string | undefined;
20
+ language?: LanguageCode | undefined;
21
+ status?: AnalyzerStatus | undefined;
22
+ }
7
23
  export interface MetadataConfiguration {
8
- nonFilterableMetadataKeys: string[] | undefined;
24
+ nonFilterableMetadataKeys?: string[] | undefined;
25
+ textSearchConfigurations?: TextSearchConfiguration[] | undefined;
9
26
  }
10
27
  export interface CreateIndexInput {
11
28
  vectorBucketName?: string | undefined;
@@ -152,6 +169,25 @@ export interface UpdateIndexModeInput {
152
169
  indexMode: IndexMode | undefined;
153
170
  }
154
171
  export interface UpdateIndexModeOutput {}
172
+ export interface MetadataConfigurationAdd {
173
+ textSearchConfigurations?: TextSearchConfiguration[] | undefined;
174
+ }
175
+ export interface TextSearchConfigurationKey {
176
+ metadataKey: string | undefined;
177
+ }
178
+ export interface MetadataConfigurationDelete {
179
+ textSearchConfigurations?: TextSearchConfigurationKey[] | undefined;
180
+ }
181
+ export interface UpdateMetadataConfigurationInput {
182
+ vectorBucketName?: string | undefined;
183
+ indexName?: string | undefined;
184
+ indexArn?: string | undefined;
185
+ add?: MetadataConfigurationAdd | undefined;
186
+ delete?: MetadataConfigurationDelete | undefined;
187
+ }
188
+ export interface UpdateMetadataConfigurationOutput {
189
+ indexArn: string | undefined;
190
+ }
155
191
  export interface ListVectorsInput {
156
192
  vectorBucketName?: string | undefined;
157
193
  indexName?: string | undefined;
@@ -184,20 +220,32 @@ export interface PutVectorsInput {
184
220
  vectors: PutInputVector[] | undefined;
185
221
  }
186
222
  export interface PutVectorsOutput {}
223
+ export interface QueryText {
224
+ text: string | undefined;
225
+ metadataKey: string | undefined;
226
+ }
187
227
  export interface QueryVectorsInput {
188
228
  vectorBucketName?: string | undefined;
189
229
  indexName?: string | undefined;
190
230
  indexArn?: string | undefined;
191
231
  topK: number | undefined;
192
- queryVector: VectorData | undefined;
232
+ queryVector?: VectorData | undefined;
193
233
  filter?: __DocumentType | undefined;
194
234
  queryMode?: IndexMode | undefined;
195
235
  returnMetadata?: boolean | undefined;
196
236
  returnDistance?: boolean | undefined;
237
+ queryTexts?: QueryText[] | undefined;
238
+ returnScores?: boolean | undefined;
197
239
  nextToken?: string | undefined;
198
240
  }
241
+ export interface QueryScores {
242
+ fused?: number | undefined;
243
+ bm25Scores?: Bm25Score[] | undefined;
244
+ vectorDistance?: number | undefined;
245
+ }
199
246
  export interface QueryOutputVector {
200
247
  distance?: number | undefined;
248
+ scores?: QueryScores | undefined;
201
249
  key: string | undefined;
202
250
  metadata?: __DocumentType | undefined;
203
251
  }
@@ -20,6 +20,7 @@ export declare var ServiceUnavailableException$: StaticErrorSchema;
20
20
  export declare var TooManyRequestsException$: StaticErrorSchema;
21
21
  export declare var ValidationException$: StaticErrorSchema;
22
22
  export declare const errorTypeRegistries: TypeRegistry[];
23
+ export declare var Bm25Score$: StaticStructureSchema;
23
24
  export declare var CreateIndexInput$: StaticStructureSchema;
24
25
  export declare var CreateIndexOutput$: StaticStructureSchema;
25
26
  export declare var CreateVectorBucketInput$: StaticStructureSchema;
@@ -54,6 +55,8 @@ export declare var ListVectorBucketsOutput$: StaticStructureSchema;
54
55
  export declare var ListVectorsInput$: StaticStructureSchema;
55
56
  export declare var ListVectorsOutput$: StaticStructureSchema;
56
57
  export declare var MetadataConfiguration$: StaticStructureSchema;
58
+ export declare var MetadataConfigurationAdd$: StaticStructureSchema;
59
+ export declare var MetadataConfigurationDelete$: StaticStructureSchema;
57
60
  export declare var PutInputVector$: StaticStructureSchema;
58
61
  export declare var PutVectorBucketDefaultIndexModeInput$: StaticStructureSchema;
59
62
  export declare var PutVectorBucketDefaultIndexModeOutput$: StaticStructureSchema;
@@ -62,14 +65,20 @@ export declare var PutVectorBucketPolicyOutput$: StaticStructureSchema;
62
65
  export declare var PutVectorsInput$: StaticStructureSchema;
63
66
  export declare var PutVectorsOutput$: StaticStructureSchema;
64
67
  export declare var QueryOutputVector$: StaticStructureSchema;
68
+ export declare var QueryScores$: StaticStructureSchema;
69
+ export declare var QueryText$: StaticStructureSchema;
65
70
  export declare var QueryVectorsInput$: StaticStructureSchema;
66
71
  export declare var QueryVectorsOutput$: StaticStructureSchema;
67
72
  export declare var TagResourceInput$: StaticStructureSchema;
68
73
  export declare var TagResourceOutput$: StaticStructureSchema;
74
+ export declare var TextSearchConfiguration$: StaticStructureSchema;
75
+ export declare var TextSearchConfigurationKey$: StaticStructureSchema;
69
76
  export declare var UntagResourceInput$: StaticStructureSchema;
70
77
  export declare var UntagResourceOutput$: StaticStructureSchema;
71
78
  export declare var UpdateIndexModeInput$: StaticStructureSchema;
72
79
  export declare var UpdateIndexModeOutput$: StaticStructureSchema;
80
+ export declare var UpdateMetadataConfigurationInput$: StaticStructureSchema;
81
+ export declare var UpdateMetadataConfigurationOutput$: StaticStructureSchema;
73
82
  export declare var ValidationExceptionField$: StaticStructureSchema;
74
83
  export declare var VectorBucket$: StaticStructureSchema;
75
84
  export declare var VectorBucketSummary$: StaticStructureSchema;
@@ -95,3 +104,4 @@ export declare var QueryVectors$: StaticOperationSchema;
95
104
  export declare var TagResource$: StaticOperationSchema;
96
105
  export declare var UntagResource$: StaticOperationSchema;
97
106
  export declare var UpdateIndexMode$: StaticOperationSchema;
107
+ export declare var UpdateMetadataConfiguration$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3vectors",
3
- "version": "3.1169.0",
3
+ "version": "3.1170.0",
4
4
  "description": "AWS SDK for JavaScript S3vectors Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3vectors",
6
6
  "license": "Apache-2.0",