@aws-sdk/client-s3vectors 3.1169.0 → 3.1171.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 CHANGED
@@ -326,3 +326,10 @@ UpdateIndexMode
326
326
 
327
327
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3vectors/command/UpdateIndexModeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3vectors/Interface/UpdateIndexModeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3vectors/Interface/UpdateIndexModeCommandOutput/)
328
328
  </details>
329
+ <details>
330
+ <summary>
331
+ UpdateMetadataConfiguration
332
+ </summary>
333
+
334
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3vectors/command/UpdateMetadataConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3vectors/Interface/UpdateMetadataConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3vectors/Interface/UpdateMetadataConfigurationCommandOutput/)
335
+ </details>
package/dist-cjs/index.js CHANGED
@@ -67,7 +67,7 @@ const commonParams = {
67
67
  Region: { type: "builtInParams", name: "region" },
68
68
  };
69
69
 
70
- var version = "3.1168.0";
70
+ var version = "3.1170.0";
71
71
  var packageInfo = {
72
72
  version: version};
73
73
 
@@ -299,6 +299,8 @@ class KmsNotFoundException extends S3VectorsServiceException {
299
299
  }
300
300
 
301
301
  const _ADE = "AccessDeniedException";
302
+ const _BS = "Bm25Score";
303
+ const _BSL = "Bm25ScoreList";
302
304
  const _CE = "ConflictException";
303
305
  const _CI = "CreateIndex";
304
306
  const _CII = "CreateIndexInput";
@@ -357,6 +359,8 @@ const _LVI = "ListVectorsInput";
357
359
  const _LVO = "ListVectorsOutput";
358
360
  const _LVOL = "ListVectorsOutputList";
359
361
  const _MC = "MetadataConfiguration";
362
+ const _MCA = "MetadataConfigurationAdd";
363
+ const _MCD = "MetadataConfigurationDelete";
360
364
  const _NFE = "NotFoundException";
361
365
  const _PIV = "PutInputVector";
362
366
  const _PV = "PutVectors";
@@ -370,6 +374,9 @@ const _PVI = "PutVectorsInput";
370
374
  const _PVIL = "PutVectorsInputList";
371
375
  const _PVO = "PutVectorsOutput";
372
376
  const _QOV = "QueryOutputVector";
377
+ const _QS = "QueryScores";
378
+ const _QT = "QueryText";
379
+ const _QTL = "QueryTextList";
373
380
  const _QV = "QueryVectors";
374
381
  const _QVI = "QueryVectorsInput";
375
382
  const _QVO = "QueryVectorsOutput";
@@ -381,9 +388,16 @@ const _TMRE = "TooManyRequestsException";
381
388
  const _TR = "TagResource";
382
389
  const _TRI = "TagResourceInput";
383
390
  const _TRO = "TagResourceOutput";
391
+ const _TSC = "TextSearchConfiguration";
392
+ const _TSCK = "TextSearchConfigurationKey";
393
+ const _TSCKe = "TextSearchConfigurationKeys";
394
+ const _TSCe = "TextSearchConfigurations";
384
395
  const _UIM = "UpdateIndexMode";
385
396
  const _UIMI = "UpdateIndexModeInput";
386
397
  const _UIMO = "UpdateIndexModeOutput";
398
+ const _UMC = "UpdateMetadataConfiguration";
399
+ const _UMCI = "UpdateMetadataConfigurationInput";
400
+ const _UMCO = "UpdateMetadataConfigurationOutput";
387
401
  const _UR = "UntagResource";
388
402
  const _URI = "UntagResourceInput";
389
403
  const _URO = "UntagResourceOutput";
@@ -393,6 +407,8 @@ const _VD = "VectorData";
393
407
  const _VE = "ValidationException";
394
408
  const _VEF = "ValidationExceptionField";
395
409
  const _VEFL = "ValidationExceptionFieldList";
410
+ const _a = "add";
411
+ const _bS = "bm25Scores";
396
412
  const _c = "client";
397
413
  const _cT = "creationTime";
398
414
  const _d = "dimension";
@@ -400,11 +416,13 @@ const _dIM = "defaultIndexMode";
400
416
  const _dM = "distanceMetric";
401
417
  const _dT = "dataType";
402
418
  const _da = "data";
419
+ const _de = "delete";
403
420
  const _di = "distance";
404
421
  const _e = "error";
405
422
  const _eC = "encryptionConfiguration";
406
- const _f = "filter";
423
+ const _f = "fused";
407
424
  const _fL = "fieldList";
425
+ const _fi = "filter";
408
426
  const _fl = "float32";
409
427
  const _h = "http";
410
428
  const _hE = "httpError";
@@ -417,8 +435,10 @@ const _in = "indexes";
417
435
  const _k = "keys";
418
436
  const _kKA = "kmsKeyArn";
419
437
  const _ke = "key";
438
+ const _l = "language";
420
439
  const _m = "message";
421
440
  const _mC = "metadataConfiguration";
441
+ const _mK = "metadataKey";
422
442
  const _mR = "maxResults";
423
443
  const _me = "metadata";
424
444
  const _nFMK = "nonFilterableMetadataKeys";
@@ -427,24 +447,32 @@ const _p = "policy";
427
447
  const _pa = "path";
428
448
  const _pr = "prefix";
429
449
  const _qM = "queryMode";
450
+ const _qT = "queryTexts";
430
451
  const _qV = "queryVector";
431
452
  const _rA = "resourceArn";
432
453
  const _rD = "returnData";
433
454
  const _rDe = "returnDistance";
434
455
  const _rM = "returnMetadata";
456
+ const _rS = "returnScores";
435
457
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.s3vectors";
436
458
  const _sC = "segmentCount";
437
459
  const _sI = "segmentIndex";
438
460
  const _sT = "sseType";
461
+ const _sc = "score";
462
+ const _sco = "scores";
439
463
  const _se = "server";
464
+ const _st = "status";
440
465
  const _t = "tags";
441
466
  const _tK = "topK";
442
467
  const _tKa = "tagKeys";
468
+ const _tSC = "textSearchConfigurations";
469
+ const _te = "text";
443
470
  const _v = "vectors";
444
471
  const _vB = "vectorBucket";
445
472
  const _vBA = "vectorBucketArn";
446
473
  const _vBN = "vectorBucketName";
447
474
  const _vBe = "vectorBuckets";
475
+ const _vD = "vectorDistance";
448
476
  const n0 = "com.amazonaws.s3vectors";
449
477
  const _s_registry = new TypeRegistry(_s);
450
478
  var S3VectorsServiceException$ = [-3, _s, "S3VectorsServiceException", 0, [], []];
@@ -532,6 +560,11 @@ const errorTypeRegistries = [
532
560
  _s_registry,
533
561
  n0_registry,
534
562
  ];
563
+ var Bm25Score$ = [3, n0, _BS,
564
+ 0,
565
+ [_mK, _sc],
566
+ [0, 1], 2
567
+ ];
535
568
  var CreateIndexInput$ = [3, n0, _CII,
536
569
  0,
537
570
  [_iN, _dT, _d, _dM, _vBN, _vBA, _mC, _eC, _t],
@@ -699,8 +732,18 @@ var ListVectorsOutput$ = [3, n0, _LVO,
699
732
  ];
700
733
  var MetadataConfiguration$ = [3, n0, _MC,
701
734
  0,
702
- [_nFMK],
703
- [64 | 0], 1
735
+ [_nFMK, _tSC],
736
+ [64 | 0, () => TextSearchConfigurations]
737
+ ];
738
+ var MetadataConfigurationAdd$ = [3, n0, _MCA,
739
+ 0,
740
+ [_tSC],
741
+ [() => TextSearchConfigurations]
742
+ ];
743
+ var MetadataConfigurationDelete$ = [3, n0, _MCD,
744
+ 0,
745
+ [_tSC],
746
+ [() => TextSearchConfigurationKeys]
704
747
  ];
705
748
  var PutInputVector$ = [3, n0, _PIV,
706
749
  0,
@@ -739,13 +782,23 @@ var PutVectorsOutput$ = [3, n0, _PVO,
739
782
  ];
740
783
  var QueryOutputVector$ = [3, n0, _QOV,
741
784
  0,
742
- [_ke, _di, _me],
743
- [0, 1, 15], 1
785
+ [_ke, _di, _sco, _me],
786
+ [0, 1, () => QueryScores$, 15], 1
787
+ ];
788
+ var QueryScores$ = [3, n0, _QS,
789
+ 0,
790
+ [_f, _bS, _vD],
791
+ [1, () => Bm25ScoreList, 1]
792
+ ];
793
+ var QueryText$ = [3, n0, _QT,
794
+ 8,
795
+ [_te, _mK],
796
+ [0, 0], 2
744
797
  ];
745
798
  var QueryVectorsInput$ = [3, n0, _QVI,
746
799
  0,
747
- [_tK, _qV, _vBN, _iN, _iA, _f, _qM, _rM, _rDe, _nT],
748
- [1, () => VectorData$, 0, 0, 0, 15, 0, 2, 2, 0], 2
800
+ [_tK, _vBN, _iN, _iA, _qV, _fi, _qM, _rM, _rDe, _qT, _rS, _nT],
801
+ [1, 0, 0, 0, () => VectorData$, 15, 0, 2, 2, [() => QueryTextList, 0], 2, 0], 1
749
802
  ];
750
803
  var QueryVectorsOutput$ = [3, n0, _QVO,
751
804
  0,
@@ -762,6 +815,16 @@ var TagResourceOutput$ = [3, n0, _TRO,
762
815
  [],
763
816
  []
764
817
  ];
818
+ var TextSearchConfiguration$ = [3, n0, _TSC,
819
+ 0,
820
+ [_mK, _l, _st],
821
+ [0, 0, 0], 1
822
+ ];
823
+ var TextSearchConfigurationKey$ = [3, n0, _TSCK,
824
+ 0,
825
+ [_mK],
826
+ [0], 1
827
+ ];
765
828
  var UntagResourceInput$ = [3, n0, _URI,
766
829
  0,
767
830
  [_rA, _tKa],
@@ -782,6 +845,16 @@ var UpdateIndexModeOutput$ = [3, n0, _UIMO,
782
845
  [],
783
846
  []
784
847
  ];
848
+ var UpdateMetadataConfigurationInput$ = [3, n0, _UMCI,
849
+ 0,
850
+ [_vBN, _iN, _iA, _a, _de],
851
+ [0, 0, 0, () => MetadataConfigurationAdd$, () => MetadataConfigurationDelete$]
852
+ ];
853
+ var UpdateMetadataConfigurationOutput$ = [3, n0, _UMCO,
854
+ 0,
855
+ [_iA],
856
+ [0], 1
857
+ ];
785
858
  var ValidationExceptionField$ = [3, n0, _VEF,
786
859
  0,
787
860
  [_pa, _m],
@@ -797,6 +870,9 @@ var VectorBucketSummary$ = [3, n0, _VBS,
797
870
  [_vBN, _vBA, _cT],
798
871
  [0, 0, 4], 3
799
872
  ];
873
+ var Bm25ScoreList = [1, n0, _BSL,
874
+ 0, () => Bm25Score$
875
+ ];
800
876
  var GetVectorsOutputList = [1, n0, _GVOL,
801
877
  0, () => GetOutputVector$
802
878
  ];
@@ -812,9 +888,19 @@ var ListVectorsOutputList = [1, n0, _LVOL,
812
888
  var PutVectorsInputList = [1, n0, _PVIL,
813
889
  0, () => PutInputVector$
814
890
  ];
891
+ var QueryTextList = [1, n0, _QTL,
892
+ 0, [() => QueryText$,
893
+ 0]
894
+ ];
815
895
  var QueryVectorsOutputList = [1, n0, _QVOL,
816
896
  0, () => QueryOutputVector$
817
897
  ];
898
+ var TextSearchConfigurationKeys = [1, n0, _TSCKe,
899
+ 0, () => TextSearchConfigurationKey$
900
+ ];
901
+ var TextSearchConfigurations = [1, n0, _TSCe,
902
+ 0, () => TextSearchConfiguration$
903
+ ];
818
904
  var ValidationExceptionFieldList = [1, n0, _VEFL,
819
905
  0, () => ValidationExceptionField$
820
906
  ];
@@ -886,6 +972,9 @@ var UntagResource$ = [9, n0, _UR,
886
972
  var UpdateIndexMode$ = [9, n0, _UIM,
887
973
  { [_h]: ["POST", "/UpdateIndexMode", 200] }, () => UpdateIndexModeInput$, () => UpdateIndexModeOutput$
888
974
  ];
975
+ var UpdateMetadataConfiguration$ = [9, n0, _UMC,
976
+ { [_h]: ["POST", "/UpdateMetadataConfiguration", 200] }, () => UpdateMetadataConfigurationInput$, () => UpdateMetadataConfigurationOutput$
977
+ ];
889
978
 
890
979
  const getRuntimeConfig$1 = (config) => {
891
980
  return {
@@ -1101,6 +1190,9 @@ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagRes
1101
1190
  class UpdateIndexModeCommand extends command(_ep0, _mw0, "UpdateIndexMode", UpdateIndexMode$) {
1102
1191
  }
1103
1192
 
1193
+ class UpdateMetadataConfigurationCommand extends command(_ep0, _mw0, "UpdateMetadataConfiguration", UpdateMetadataConfiguration$) {
1194
+ }
1195
+
1104
1196
  const paginateListIndexes = createPaginator(S3VectorsClient, ListIndexesCommand, "nextToken", "nextToken", "maxResults");
1105
1197
 
1106
1198
  const paginateListVectorBuckets = createPaginator(S3VectorsClient, ListVectorBucketsCommand, "nextToken", "nextToken", "maxResults");
@@ -1131,6 +1223,7 @@ const commands = {
1131
1223
  TagResourceCommand,
1132
1224
  UntagResourceCommand,
1133
1225
  UpdateIndexModeCommand,
1226
+ UpdateMetadataConfigurationCommand,
1134
1227
  };
1135
1228
  const paginators = {
1136
1229
  paginateListIndexes,
@@ -1142,6 +1235,10 @@ class S3Vectors extends S3VectorsClient {
1142
1235
  }
1143
1236
  createAggregatedClient(commands, S3Vectors, { paginators });
1144
1237
 
1238
+ const AnalyzerStatus = {
1239
+ ACTIVE: "ACTIVE",
1240
+ BUILDING: "BUILDING",
1241
+ };
1145
1242
  const DataType = {
1146
1243
  FLOAT32: "float32",
1147
1244
  };
@@ -1153,6 +1250,18 @@ const SseType = {
1153
1250
  AES256: "AES256",
1154
1251
  AWS_KMS: "aws:kms",
1155
1252
  };
1253
+ const LanguageCode = {
1254
+ DE: "de",
1255
+ EN: "en",
1256
+ ES: "es",
1257
+ FR: "fr",
1258
+ IT: "it",
1259
+ JA: "ja",
1260
+ KO: "ko",
1261
+ NL: "nl",
1262
+ PT: "pt",
1263
+ ZH: "zh",
1264
+ };
1156
1265
  const IndexMode = {
1157
1266
  CLASSIC: "CLASSIC",
1158
1267
  ENHANCED: "ENHANCED",
@@ -1160,6 +1269,8 @@ const IndexMode = {
1160
1269
 
1161
1270
  exports.AccessDeniedException = AccessDeniedException;
1162
1271
  exports.AccessDeniedException$ = AccessDeniedException$;
1272
+ exports.AnalyzerStatus = AnalyzerStatus;
1273
+ exports.Bm25Score$ = Bm25Score$;
1163
1274
  exports.ConflictException = ConflictException;
1164
1275
  exports.ConflictException$ = ConflictException$;
1165
1276
  exports.CreateIndex$ = CreateIndex$;
@@ -1219,6 +1330,7 @@ exports.KmsInvalidStateException = KmsInvalidStateException;
1219
1330
  exports.KmsInvalidStateException$ = KmsInvalidStateException$;
1220
1331
  exports.KmsNotFoundException = KmsNotFoundException;
1221
1332
  exports.KmsNotFoundException$ = KmsNotFoundException$;
1333
+ exports.LanguageCode = LanguageCode;
1222
1334
  exports.ListIndexes$ = ListIndexes$;
1223
1335
  exports.ListIndexesCommand = ListIndexesCommand;
1224
1336
  exports.ListIndexesInput$ = ListIndexesInput$;
@@ -1237,6 +1349,8 @@ exports.ListVectorsCommand = ListVectorsCommand;
1237
1349
  exports.ListVectorsInput$ = ListVectorsInput$;
1238
1350
  exports.ListVectorsOutput$ = ListVectorsOutput$;
1239
1351
  exports.MetadataConfiguration$ = MetadataConfiguration$;
1352
+ exports.MetadataConfigurationAdd$ = MetadataConfigurationAdd$;
1353
+ exports.MetadataConfigurationDelete$ = MetadataConfigurationDelete$;
1240
1354
  exports.NotFoundException = NotFoundException;
1241
1355
  exports.NotFoundException$ = NotFoundException$;
1242
1356
  exports.PutInputVector$ = PutInputVector$;
@@ -1253,6 +1367,8 @@ exports.PutVectorsCommand = PutVectorsCommand;
1253
1367
  exports.PutVectorsInput$ = PutVectorsInput$;
1254
1368
  exports.PutVectorsOutput$ = PutVectorsOutput$;
1255
1369
  exports.QueryOutputVector$ = QueryOutputVector$;
1370
+ exports.QueryScores$ = QueryScores$;
1371
+ exports.QueryText$ = QueryText$;
1256
1372
  exports.QueryVectors$ = QueryVectors$;
1257
1373
  exports.QueryVectorsCommand = QueryVectorsCommand;
1258
1374
  exports.QueryVectorsInput$ = QueryVectorsInput$;
@@ -1272,6 +1388,8 @@ exports.TagResource$ = TagResource$;
1272
1388
  exports.TagResourceCommand = TagResourceCommand;
1273
1389
  exports.TagResourceInput$ = TagResourceInput$;
1274
1390
  exports.TagResourceOutput$ = TagResourceOutput$;
1391
+ exports.TextSearchConfiguration$ = TextSearchConfiguration$;
1392
+ exports.TextSearchConfigurationKey$ = TextSearchConfigurationKey$;
1275
1393
  exports.TooManyRequestsException = TooManyRequestsException;
1276
1394
  exports.TooManyRequestsException$ = TooManyRequestsException$;
1277
1395
  exports.UntagResource$ = UntagResource$;
@@ -1282,6 +1400,10 @@ exports.UpdateIndexMode$ = UpdateIndexMode$;
1282
1400
  exports.UpdateIndexModeCommand = UpdateIndexModeCommand;
1283
1401
  exports.UpdateIndexModeInput$ = UpdateIndexModeInput$;
1284
1402
  exports.UpdateIndexModeOutput$ = UpdateIndexModeOutput$;
1403
+ exports.UpdateMetadataConfiguration$ = UpdateMetadataConfiguration$;
1404
+ exports.UpdateMetadataConfigurationCommand = UpdateMetadataConfigurationCommand;
1405
+ exports.UpdateMetadataConfigurationInput$ = UpdateMetadataConfigurationInput$;
1406
+ exports.UpdateMetadataConfigurationOutput$ = UpdateMetadataConfigurationOutput$;
1285
1407
  exports.ValidationException = ValidationException;
1286
1408
  exports.ValidationException$ = ValidationException$;
1287
1409
  exports.ValidationExceptionField$ = ValidationExceptionField$;
@@ -20,6 +20,7 @@ import { QueryVectorsCommand, } from "./commands/QueryVectorsCommand";
20
20
  import { TagResourceCommand, } from "./commands/TagResourceCommand";
21
21
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
22
22
  import { UpdateIndexModeCommand, } from "./commands/UpdateIndexModeCommand";
23
+ import { UpdateMetadataConfigurationCommand, } from "./commands/UpdateMetadataConfigurationCommand";
23
24
  import { paginateListIndexes } from "./pagination/ListIndexesPaginator";
24
25
  import { paginateListVectorBuckets } from "./pagination/ListVectorBucketsPaginator";
25
26
  import { paginateListVectors } from "./pagination/ListVectorsPaginator";
@@ -47,6 +48,7 @@ const commands = {
47
48
  TagResourceCommand,
48
49
  UntagResourceCommand,
49
50
  UpdateIndexModeCommand,
51
+ UpdateMetadataConfigurationCommand,
50
52
  };
51
53
  const paginators = {
52
54
  paginateListIndexes,
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UpdateMetadataConfiguration$ } from "../schemas/schemas_0";
3
+ export class UpdateMetadataConfigurationCommand extends command(_ep0, _mw0, "UpdateMetadataConfiguration", UpdateMetadataConfiguration$) {
4
+ }
@@ -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,7 @@
1
+ export const AnalyzerStatus = {
2
+ ACTIVE: "ACTIVE",
3
+ BUILDING: "BUILDING",
4
+ };
1
5
  export const DataType = {
2
6
  FLOAT32: "float32",
3
7
  };
@@ -9,6 +13,18 @@ export const SseType = {
9
13
  AES256: "AES256",
10
14
  AWS_KMS: "aws:kms",
11
15
  };
16
+ export const LanguageCode = {
17
+ DE: "de",
18
+ EN: "en",
19
+ ES: "es",
20
+ FR: "fr",
21
+ IT: "it",
22
+ JA: "ja",
23
+ KO: "ko",
24
+ NL: "nl",
25
+ PT: "pt",
26
+ ZH: "zh",
27
+ };
12
28
  export const IndexMode = {
13
29
  CLASSIC: "CLASSIC",
14
30
  ENHANCED: "ENHANCED",
@@ -1,4 +1,6 @@
1
1
  const _ADE = "AccessDeniedException";
2
+ const _BS = "Bm25Score";
3
+ const _BSL = "Bm25ScoreList";
2
4
  const _CE = "ConflictException";
3
5
  const _CI = "CreateIndex";
4
6
  const _CII = "CreateIndexInput";
@@ -57,6 +59,8 @@ const _LVI = "ListVectorsInput";
57
59
  const _LVO = "ListVectorsOutput";
58
60
  const _LVOL = "ListVectorsOutputList";
59
61
  const _MC = "MetadataConfiguration";
62
+ const _MCA = "MetadataConfigurationAdd";
63
+ const _MCD = "MetadataConfigurationDelete";
60
64
  const _NFE = "NotFoundException";
61
65
  const _PIV = "PutInputVector";
62
66
  const _PV = "PutVectors";
@@ -70,6 +74,9 @@ const _PVI = "PutVectorsInput";
70
74
  const _PVIL = "PutVectorsInputList";
71
75
  const _PVO = "PutVectorsOutput";
72
76
  const _QOV = "QueryOutputVector";
77
+ const _QS = "QueryScores";
78
+ const _QT = "QueryText";
79
+ const _QTL = "QueryTextList";
73
80
  const _QV = "QueryVectors";
74
81
  const _QVI = "QueryVectorsInput";
75
82
  const _QVO = "QueryVectorsOutput";
@@ -81,9 +88,16 @@ const _TMRE = "TooManyRequestsException";
81
88
  const _TR = "TagResource";
82
89
  const _TRI = "TagResourceInput";
83
90
  const _TRO = "TagResourceOutput";
91
+ const _TSC = "TextSearchConfiguration";
92
+ const _TSCK = "TextSearchConfigurationKey";
93
+ const _TSCKe = "TextSearchConfigurationKeys";
94
+ const _TSCe = "TextSearchConfigurations";
84
95
  const _UIM = "UpdateIndexMode";
85
96
  const _UIMI = "UpdateIndexModeInput";
86
97
  const _UIMO = "UpdateIndexModeOutput";
98
+ const _UMC = "UpdateMetadataConfiguration";
99
+ const _UMCI = "UpdateMetadataConfigurationInput";
100
+ const _UMCO = "UpdateMetadataConfigurationOutput";
87
101
  const _UR = "UntagResource";
88
102
  const _URI = "UntagResourceInput";
89
103
  const _URO = "UntagResourceOutput";
@@ -93,6 +107,8 @@ const _VD = "VectorData";
93
107
  const _VE = "ValidationException";
94
108
  const _VEF = "ValidationExceptionField";
95
109
  const _VEFL = "ValidationExceptionFieldList";
110
+ const _a = "add";
111
+ const _bS = "bm25Scores";
96
112
  const _c = "client";
97
113
  const _cT = "creationTime";
98
114
  const _d = "dimension";
@@ -100,11 +116,13 @@ const _dIM = "defaultIndexMode";
100
116
  const _dM = "distanceMetric";
101
117
  const _dT = "dataType";
102
118
  const _da = "data";
119
+ const _de = "delete";
103
120
  const _di = "distance";
104
121
  const _e = "error";
105
122
  const _eC = "encryptionConfiguration";
106
- const _f = "filter";
123
+ const _f = "fused";
107
124
  const _fL = "fieldList";
125
+ const _fi = "filter";
108
126
  const _fl = "float32";
109
127
  const _h = "http";
110
128
  const _hE = "httpError";
@@ -117,8 +135,10 @@ const _in = "indexes";
117
135
  const _k = "keys";
118
136
  const _kKA = "kmsKeyArn";
119
137
  const _ke = "key";
138
+ const _l = "language";
120
139
  const _m = "message";
121
140
  const _mC = "metadataConfiguration";
141
+ const _mK = "metadataKey";
122
142
  const _mR = "maxResults";
123
143
  const _me = "metadata";
124
144
  const _nFMK = "nonFilterableMetadataKeys";
@@ -127,24 +147,32 @@ const _p = "policy";
127
147
  const _pa = "path";
128
148
  const _pr = "prefix";
129
149
  const _qM = "queryMode";
150
+ const _qT = "queryTexts";
130
151
  const _qV = "queryVector";
131
152
  const _rA = "resourceArn";
132
153
  const _rD = "returnData";
133
154
  const _rDe = "returnDistance";
134
155
  const _rM = "returnMetadata";
156
+ const _rS = "returnScores";
135
157
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.s3vectors";
136
158
  const _sC = "segmentCount";
137
159
  const _sI = "segmentIndex";
138
160
  const _sT = "sseType";
161
+ const _sc = "score";
162
+ const _sco = "scores";
139
163
  const _se = "server";
164
+ const _st = "status";
140
165
  const _t = "tags";
141
166
  const _tK = "topK";
142
167
  const _tKa = "tagKeys";
168
+ const _tSC = "textSearchConfigurations";
169
+ const _te = "text";
143
170
  const _v = "vectors";
144
171
  const _vB = "vectorBucket";
145
172
  const _vBA = "vectorBucketArn";
146
173
  const _vBN = "vectorBucketName";
147
174
  const _vBe = "vectorBuckets";
175
+ const _vD = "vectorDistance";
148
176
  const n0 = "com.amazonaws.s3vectors";
149
177
  import { TypeRegistry } from "@smithy/core/schema";
150
178
  import { AccessDeniedException, ConflictException, InternalServerException, KmsDisabledException, KmsInvalidKeyUsageException, KmsInvalidStateException, KmsNotFoundException, NotFoundException, RequestTimeoutException, ServiceQuotaExceededException, ServiceUnavailableException, TooManyRequestsException, ValidationException, } from "../models/errors";
@@ -235,6 +263,11 @@ export const errorTypeRegistries = [
235
263
  _s_registry,
236
264
  n0_registry,
237
265
  ];
266
+ export var Bm25Score$ = [3, n0, _BS,
267
+ 0,
268
+ [_mK, _sc],
269
+ [0, 1], 2
270
+ ];
238
271
  export var CreateIndexInput$ = [3, n0, _CII,
239
272
  0,
240
273
  [_iN, _dT, _d, _dM, _vBN, _vBA, _mC, _eC, _t],
@@ -402,8 +435,18 @@ export var ListVectorsOutput$ = [3, n0, _LVO,
402
435
  ];
403
436
  export var MetadataConfiguration$ = [3, n0, _MC,
404
437
  0,
405
- [_nFMK],
406
- [64 | 0], 1
438
+ [_nFMK, _tSC],
439
+ [64 | 0, () => TextSearchConfigurations]
440
+ ];
441
+ export var MetadataConfigurationAdd$ = [3, n0, _MCA,
442
+ 0,
443
+ [_tSC],
444
+ [() => TextSearchConfigurations]
445
+ ];
446
+ export var MetadataConfigurationDelete$ = [3, n0, _MCD,
447
+ 0,
448
+ [_tSC],
449
+ [() => TextSearchConfigurationKeys]
407
450
  ];
408
451
  export var PutInputVector$ = [3, n0, _PIV,
409
452
  0,
@@ -442,13 +485,23 @@ export var PutVectorsOutput$ = [3, n0, _PVO,
442
485
  ];
443
486
  export var QueryOutputVector$ = [3, n0, _QOV,
444
487
  0,
445
- [_ke, _di, _me],
446
- [0, 1, 15], 1
488
+ [_ke, _di, _sco, _me],
489
+ [0, 1, () => QueryScores$, 15], 1
490
+ ];
491
+ export var QueryScores$ = [3, n0, _QS,
492
+ 0,
493
+ [_f, _bS, _vD],
494
+ [1, () => Bm25ScoreList, 1]
495
+ ];
496
+ export var QueryText$ = [3, n0, _QT,
497
+ 8,
498
+ [_te, _mK],
499
+ [0, 0], 2
447
500
  ];
448
501
  export var QueryVectorsInput$ = [3, n0, _QVI,
449
502
  0,
450
- [_tK, _qV, _vBN, _iN, _iA, _f, _qM, _rM, _rDe, _nT],
451
- [1, () => VectorData$, 0, 0, 0, 15, 0, 2, 2, 0], 2
503
+ [_tK, _vBN, _iN, _iA, _qV, _fi, _qM, _rM, _rDe, _qT, _rS, _nT],
504
+ [1, 0, 0, 0, () => VectorData$, 15, 0, 2, 2, [() => QueryTextList, 0], 2, 0], 1
452
505
  ];
453
506
  export var QueryVectorsOutput$ = [3, n0, _QVO,
454
507
  0,
@@ -465,6 +518,16 @@ export var TagResourceOutput$ = [3, n0, _TRO,
465
518
  [],
466
519
  []
467
520
  ];
521
+ export var TextSearchConfiguration$ = [3, n0, _TSC,
522
+ 0,
523
+ [_mK, _l, _st],
524
+ [0, 0, 0], 1
525
+ ];
526
+ export var TextSearchConfigurationKey$ = [3, n0, _TSCK,
527
+ 0,
528
+ [_mK],
529
+ [0], 1
530
+ ];
468
531
  export var UntagResourceInput$ = [3, n0, _URI,
469
532
  0,
470
533
  [_rA, _tKa],
@@ -485,6 +548,16 @@ export var UpdateIndexModeOutput$ = [3, n0, _UIMO,
485
548
  [],
486
549
  []
487
550
  ];
551
+ export var UpdateMetadataConfigurationInput$ = [3, n0, _UMCI,
552
+ 0,
553
+ [_vBN, _iN, _iA, _a, _de],
554
+ [0, 0, 0, () => MetadataConfigurationAdd$, () => MetadataConfigurationDelete$]
555
+ ];
556
+ export var UpdateMetadataConfigurationOutput$ = [3, n0, _UMCO,
557
+ 0,
558
+ [_iA],
559
+ [0], 1
560
+ ];
488
561
  export var ValidationExceptionField$ = [3, n0, _VEF,
489
562
  0,
490
563
  [_pa, _m],
@@ -500,6 +573,9 @@ export var VectorBucketSummary$ = [3, n0, _VBS,
500
573
  [_vBN, _vBA, _cT],
501
574
  [0, 0, 4], 3
502
575
  ];
576
+ var Bm25ScoreList = [1, n0, _BSL,
577
+ 0, () => Bm25Score$
578
+ ];
503
579
  var DeleteVectorsInputList = 64 | 0;
504
580
  var Float32VectorData = 64 | 1;
505
581
  var GetVectorsInputList = 64 | 0;
@@ -519,10 +595,20 @@ var NonFilterableMetadataKeys = 64 | 0;
519
595
  var PutVectorsInputList = [1, n0, _PVIL,
520
596
  0, () => PutInputVector$
521
597
  ];
598
+ var QueryTextList = [1, n0, _QTL,
599
+ 0, [() => QueryText$,
600
+ 0]
601
+ ];
522
602
  var QueryVectorsOutputList = [1, n0, _QVOL,
523
603
  0, () => QueryOutputVector$
524
604
  ];
525
605
  var TagKeyList = 64 | 0;
606
+ var TextSearchConfigurationKeys = [1, n0, _TSCKe,
607
+ 0, () => TextSearchConfigurationKey$
608
+ ];
609
+ var TextSearchConfigurations = [1, n0, _TSCe,
610
+ 0, () => TextSearchConfiguration$
611
+ ];
526
612
  var ValidationExceptionFieldList = [1, n0, _VEFL,
527
613
  0, () => ValidationExceptionField$
528
614
  ];
@@ -595,3 +681,6 @@ export var UntagResource$ = [9, n0, _UR,
595
681
  export var UpdateIndexMode$ = [9, n0, _UIM,
596
682
  { [_h]: ["POST", "/UpdateIndexMode", 200] }, () => UpdateIndexModeInput$, () => UpdateIndexModeOutput$
597
683
  ];
684
+ export var UpdateMetadataConfiguration$ = [9, n0, _UMC,
685
+ { [_h]: ["POST", "/UpdateMetadataConfiguration", 200] }, () => UpdateMetadataConfigurationInput$, () => UpdateMetadataConfigurationOutput$
686
+ ];
@@ -20,6 +20,7 @@ import { type QueryVectorsCommandInput, type QueryVectorsCommandOutput } from ".
20
20
  import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./commands/TagResourceCommand";
21
21
  import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
22
22
  import { type UpdateIndexModeCommandInput, type UpdateIndexModeCommandOutput } from "./commands/UpdateIndexModeCommand";
23
+ import { type UpdateMetadataConfigurationCommandInput, type UpdateMetadataConfigurationCommandOutput } from "./commands/UpdateMetadataConfigurationCommand";
23
24
  import { S3VectorsClient } from "./S3VectorsClient";
24
25
  /**
25
26
  * @public
@@ -163,6 +164,13 @@ export interface S3Vectors {
163
164
  updateIndexMode(args: UpdateIndexModeCommandInput, options?: S3VectorsRequestOptions): Promise<UpdateIndexModeCommandOutput>;
164
165
  updateIndexMode(args: UpdateIndexModeCommandInput, cb: (err: any, data?: UpdateIndexModeCommandOutput) => void): void;
165
166
  updateIndexMode(args: UpdateIndexModeCommandInput, options: S3VectorsRequestOptions, cb: (err: any, data?: UpdateIndexModeCommandOutput) => void): void;
167
+ /**
168
+ * @see {@link UpdateMetadataConfigurationCommand}
169
+ */
170
+ updateMetadataConfiguration(): Promise<UpdateMetadataConfigurationCommandOutput>;
171
+ updateMetadataConfiguration(args: UpdateMetadataConfigurationCommandInput, options?: S3VectorsRequestOptions): Promise<UpdateMetadataConfigurationCommandOutput>;
172
+ updateMetadataConfiguration(args: UpdateMetadataConfigurationCommandInput, cb: (err: any, data?: UpdateMetadataConfigurationCommandOutput) => void): void;
173
+ updateMetadataConfiguration(args: UpdateMetadataConfigurationCommandInput, options: S3VectorsRequestOptions, cb: (err: any, data?: UpdateMetadataConfigurationCommandOutput) => void): void;
166
174
  /**
167
175
  * @see {@link ListIndexesCommand}
168
176
  * @param args - command input.