@aws-sdk/client-s3vectors 3.925.0 → 3.927.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/dist-cjs/index.js +41 -2
- package/dist-es/models/models_0.js +13 -0
- package/dist-es/protocols/Aws_restJson1.js +28 -3
- package/dist-types/commands/CreateIndexCommand.d.ts +9 -4
- package/dist-types/commands/CreateVectorBucketCommand.d.ts +9 -4
- package/dist-types/commands/DeleteIndexCommand.d.ts +2 -2
- package/dist-types/commands/DeleteVectorBucketCommand.d.ts +2 -2
- package/dist-types/commands/DeleteVectorBucketPolicyCommand.d.ts +2 -2
- package/dist-types/commands/DeleteVectorsCommand.d.ts +2 -2
- package/dist-types/commands/GetIndexCommand.d.ts +2 -2
- package/dist-types/commands/GetVectorBucketCommand.d.ts +2 -2
- package/dist-types/commands/GetVectorBucketPolicyCommand.d.ts +2 -2
- package/dist-types/commands/GetVectorsCommand.d.ts +2 -2
- package/dist-types/commands/ListIndexesCommand.d.ts +2 -2
- package/dist-types/commands/ListVectorBucketsCommand.d.ts +2 -2
- package/dist-types/commands/ListVectorsCommand.d.ts +2 -2
- package/dist-types/commands/PutVectorBucketPolicyCommand.d.ts +2 -2
- package/dist-types/commands/PutVectorsCommand.d.ts +5 -2
- package/dist-types/commands/QueryVectorsCommand.d.ts +3 -2
- package/dist-types/models/models_0.d.ts +28 -0
- package/dist-types/ts3.4/commands/CreateIndexCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateVectorBucketCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +15 -2
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -171,6 +171,19 @@ class NotFoundException extends S3VectorsServiceException {
|
|
|
171
171
|
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
+
class RequestTimeoutException extends S3VectorsServiceException {
|
|
175
|
+
name = "RequestTimeoutException";
|
|
176
|
+
$fault = "client";
|
|
177
|
+
$retryable = {};
|
|
178
|
+
constructor(opts) {
|
|
179
|
+
super({
|
|
180
|
+
name: "RequestTimeoutException",
|
|
181
|
+
$fault: "client",
|
|
182
|
+
...opts,
|
|
183
|
+
});
|
|
184
|
+
Object.setPrototypeOf(this, RequestTimeoutException.prototype);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
174
187
|
class ServiceQuotaExceededException extends S3VectorsServiceException {
|
|
175
188
|
name = "ServiceQuotaExceededException";
|
|
176
189
|
$fault = "client";
|
|
@@ -550,7 +563,11 @@ const de_CreateIndexCommand = async (output, context) => {
|
|
|
550
563
|
const contents = smithyClient.map({
|
|
551
564
|
$metadata: deserializeMetadata(output),
|
|
552
565
|
});
|
|
553
|
-
|
|
566
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
567
|
+
const doc = smithyClient.take(data, {
|
|
568
|
+
indexArn: smithyClient.expectString,
|
|
569
|
+
});
|
|
570
|
+
Object.assign(contents, doc);
|
|
554
571
|
return contents;
|
|
555
572
|
};
|
|
556
573
|
const de_CreateVectorBucketCommand = async (output, context) => {
|
|
@@ -560,7 +577,11 @@ const de_CreateVectorBucketCommand = async (output, context) => {
|
|
|
560
577
|
const contents = smithyClient.map({
|
|
561
578
|
$metadata: deserializeMetadata(output),
|
|
562
579
|
});
|
|
563
|
-
|
|
580
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
581
|
+
const doc = smithyClient.take(data, {
|
|
582
|
+
vectorBucketArn: smithyClient.expectString,
|
|
583
|
+
});
|
|
584
|
+
Object.assign(contents, doc);
|
|
564
585
|
return contents;
|
|
565
586
|
};
|
|
566
587
|
const de_DeleteIndexCommand = async (output, context) => {
|
|
@@ -733,6 +754,7 @@ const de_QueryVectorsCommand = async (output, context) => {
|
|
|
733
754
|
});
|
|
734
755
|
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
735
756
|
const doc = smithyClient.take(data, {
|
|
757
|
+
distanceMetric: smithyClient.expectString,
|
|
736
758
|
vectors: (_) => de_QueryVectorsOutputList(_),
|
|
737
759
|
});
|
|
738
760
|
Object.assign(contents, doc);
|
|
@@ -757,6 +779,9 @@ const de_CommandError = async (output, context) => {
|
|
|
757
779
|
case "NotFoundException":
|
|
758
780
|
case "com.amazonaws.s3vectors#NotFoundException":
|
|
759
781
|
throw await de_NotFoundExceptionRes(parsedOutput);
|
|
782
|
+
case "RequestTimeoutException":
|
|
783
|
+
case "com.amazonaws.s3vectors#RequestTimeoutException":
|
|
784
|
+
throw await de_RequestTimeoutExceptionRes(parsedOutput);
|
|
760
785
|
case "ServiceQuotaExceededException":
|
|
761
786
|
case "com.amazonaws.s3vectors#ServiceQuotaExceededException":
|
|
762
787
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
@@ -895,6 +920,19 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
895
920
|
});
|
|
896
921
|
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
897
922
|
};
|
|
923
|
+
const de_RequestTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
924
|
+
const contents = smithyClient.map({});
|
|
925
|
+
const data = parsedOutput.body;
|
|
926
|
+
const doc = smithyClient.take(data, {
|
|
927
|
+
message: smithyClient.expectString,
|
|
928
|
+
});
|
|
929
|
+
Object.assign(contents, doc);
|
|
930
|
+
const exception = new RequestTimeoutException({
|
|
931
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
932
|
+
...contents,
|
|
933
|
+
});
|
|
934
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
935
|
+
};
|
|
898
936
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
899
937
|
const contents = smithyClient.map({});
|
|
900
938
|
const data = parsedOutput.body;
|
|
@@ -1438,6 +1476,7 @@ exports.NotFoundException = NotFoundException;
|
|
|
1438
1476
|
exports.PutVectorBucketPolicyCommand = PutVectorBucketPolicyCommand;
|
|
1439
1477
|
exports.PutVectorsCommand = PutVectorsCommand;
|
|
1440
1478
|
exports.QueryVectorsCommand = QueryVectorsCommand;
|
|
1479
|
+
exports.RequestTimeoutException = RequestTimeoutException;
|
|
1441
1480
|
exports.S3Vectors = S3Vectors;
|
|
1442
1481
|
exports.S3VectorsClient = S3VectorsClient;
|
|
1443
1482
|
exports.S3VectorsServiceException = S3VectorsServiceException;
|
|
@@ -55,6 +55,19 @@ export class NotFoundException extends __BaseException {
|
|
|
55
55
|
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
+
export class RequestTimeoutException extends __BaseException {
|
|
59
|
+
name = "RequestTimeoutException";
|
|
60
|
+
$fault = "client";
|
|
61
|
+
$retryable = {};
|
|
62
|
+
constructor(opts) {
|
|
63
|
+
super({
|
|
64
|
+
name: "RequestTimeoutException",
|
|
65
|
+
$fault: "client",
|
|
66
|
+
...opts,
|
|
67
|
+
});
|
|
68
|
+
Object.setPrototypeOf(this, RequestTimeoutException.prototype);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
58
71
|
export class ServiceQuotaExceededException extends __BaseException {
|
|
59
72
|
name = "ServiceQuotaExceededException";
|
|
60
73
|
$fault = "client";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AccessDeniedException, ConflictException, InternalServerException, KmsDisabledException, KmsInvalidKeyUsageException, KmsInvalidStateException, KmsNotFoundException, NotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, TooManyRequestsException, ValidationException, VectorData, } from "../models/models_0";
|
|
4
|
+
import { AccessDeniedException, ConflictException, InternalServerException, KmsDisabledException, KmsInvalidKeyUsageException, KmsInvalidStateException, KmsNotFoundException, NotFoundException, RequestTimeoutException, ServiceQuotaExceededException, ServiceUnavailableException, TooManyRequestsException, ValidationException, VectorData, } from "../models/models_0";
|
|
5
5
|
import { S3VectorsServiceException as __BaseException } from "../models/S3VectorsServiceException";
|
|
6
6
|
export const se_CreateIndexCommand = async (input, context) => {
|
|
7
7
|
const b = rb(input, context);
|
|
@@ -267,7 +267,11 @@ export const de_CreateIndexCommand = async (output, context) => {
|
|
|
267
267
|
const contents = map({
|
|
268
268
|
$metadata: deserializeMetadata(output),
|
|
269
269
|
});
|
|
270
|
-
await
|
|
270
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
271
|
+
const doc = take(data, {
|
|
272
|
+
indexArn: __expectString,
|
|
273
|
+
});
|
|
274
|
+
Object.assign(contents, doc);
|
|
271
275
|
return contents;
|
|
272
276
|
};
|
|
273
277
|
export const de_CreateVectorBucketCommand = async (output, context) => {
|
|
@@ -277,7 +281,11 @@ export const de_CreateVectorBucketCommand = async (output, context) => {
|
|
|
277
281
|
const contents = map({
|
|
278
282
|
$metadata: deserializeMetadata(output),
|
|
279
283
|
});
|
|
280
|
-
await
|
|
284
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
285
|
+
const doc = take(data, {
|
|
286
|
+
vectorBucketArn: __expectString,
|
|
287
|
+
});
|
|
288
|
+
Object.assign(contents, doc);
|
|
281
289
|
return contents;
|
|
282
290
|
};
|
|
283
291
|
export const de_DeleteIndexCommand = async (output, context) => {
|
|
@@ -450,6 +458,7 @@ export const de_QueryVectorsCommand = async (output, context) => {
|
|
|
450
458
|
});
|
|
451
459
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
452
460
|
const doc = take(data, {
|
|
461
|
+
distanceMetric: __expectString,
|
|
453
462
|
vectors: (_) => de_QueryVectorsOutputList(_, context),
|
|
454
463
|
});
|
|
455
464
|
Object.assign(contents, doc);
|
|
@@ -474,6 +483,9 @@ const de_CommandError = async (output, context) => {
|
|
|
474
483
|
case "NotFoundException":
|
|
475
484
|
case "com.amazonaws.s3vectors#NotFoundException":
|
|
476
485
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
486
|
+
case "RequestTimeoutException":
|
|
487
|
+
case "com.amazonaws.s3vectors#RequestTimeoutException":
|
|
488
|
+
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
477
489
|
case "ServiceQuotaExceededException":
|
|
478
490
|
case "com.amazonaws.s3vectors#ServiceQuotaExceededException":
|
|
479
491
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -612,6 +624,19 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
612
624
|
});
|
|
613
625
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
614
626
|
};
|
|
627
|
+
const de_RequestTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
628
|
+
const contents = map({});
|
|
629
|
+
const data = parsedOutput.body;
|
|
630
|
+
const doc = take(data, {
|
|
631
|
+
message: __expectString,
|
|
632
|
+
});
|
|
633
|
+
Object.assign(contents, doc);
|
|
634
|
+
const exception = new RequestTimeoutException({
|
|
635
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
636
|
+
...contents,
|
|
637
|
+
});
|
|
638
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
639
|
+
};
|
|
615
640
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
616
641
|
const contents = map({});
|
|
617
642
|
const data = parsedOutput.body;
|
|
@@ -51,7 +51,9 @@ declare const CreateIndexCommand_base: {
|
|
|
51
51
|
* };
|
|
52
52
|
* const command = new CreateIndexCommand(input);
|
|
53
53
|
* const response = await client.send(command);
|
|
54
|
-
* // {
|
|
54
|
+
* // { // CreateIndexOutput
|
|
55
|
+
* // indexArn: "STRING_VALUE", // required
|
|
56
|
+
* // };
|
|
55
57
|
*
|
|
56
58
|
* ```
|
|
57
59
|
*
|
|
@@ -67,6 +69,9 @@ declare const CreateIndexCommand_base: {
|
|
|
67
69
|
* @throws {@link NotFoundException} (client fault)
|
|
68
70
|
* <p>The request was rejected because the specified resource can't be found.</p>
|
|
69
71
|
*
|
|
72
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
73
|
+
* <p>Your request exceeds a service quota. </p>
|
|
74
|
+
*
|
|
70
75
|
* @throws {@link ServiceUnavailableException} (server fault)
|
|
71
76
|
* <p>The service is unavailable. Wait briefly and retry your request. If it continues to fail, increase your waiting time between retries.</p>
|
|
72
77
|
*
|
|
@@ -76,8 +81,8 @@ declare const CreateIndexCommand_base: {
|
|
|
76
81
|
* @throws {@link InternalServerException} (server fault)
|
|
77
82
|
* <p>The request failed due to an internal server error.</p>
|
|
78
83
|
*
|
|
79
|
-
* @throws {@link
|
|
80
|
-
* <p>
|
|
84
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
85
|
+
* <p>The request timed out. Retry your request.</p>
|
|
81
86
|
*
|
|
82
87
|
* @throws {@link TooManyRequestsException} (client fault)
|
|
83
88
|
* <p>The request was denied due to request throttling.</p>
|
|
@@ -96,7 +101,7 @@ export declare class CreateIndexCommand extends CreateIndexCommand_base {
|
|
|
96
101
|
protected static __types: {
|
|
97
102
|
api: {
|
|
98
103
|
input: CreateIndexInput;
|
|
99
|
-
output:
|
|
104
|
+
output: CreateIndexOutput;
|
|
100
105
|
};
|
|
101
106
|
sdk: {
|
|
102
107
|
input: CreateIndexCommandInput;
|
|
@@ -45,7 +45,9 @@ declare const CreateVectorBucketCommand_base: {
|
|
|
45
45
|
* };
|
|
46
46
|
* const command = new CreateVectorBucketCommand(input);
|
|
47
47
|
* const response = await client.send(command);
|
|
48
|
-
* // {
|
|
48
|
+
* // { // CreateVectorBucketOutput
|
|
49
|
+
* // vectorBucketArn: "STRING_VALUE", // required
|
|
50
|
+
* // };
|
|
49
51
|
*
|
|
50
52
|
* ```
|
|
51
53
|
*
|
|
@@ -58,6 +60,9 @@ declare const CreateVectorBucketCommand_base: {
|
|
|
58
60
|
* @throws {@link ConflictException} (client fault)
|
|
59
61
|
* <p>The request failed because a vector bucket name or a vector index name already exists. Vector bucket names must be unique within your Amazon Web Services account for each Amazon Web Services Region. Vector index names must be unique within your vector bucket. Choose a different vector bucket name or vector index name, and try again.</p>
|
|
60
62
|
*
|
|
63
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
64
|
+
* <p>Your request exceeds a service quota. </p>
|
|
65
|
+
*
|
|
61
66
|
* @throws {@link ServiceUnavailableException} (server fault)
|
|
62
67
|
* <p>The service is unavailable. Wait briefly and retry your request. If it continues to fail, increase your waiting time between retries.</p>
|
|
63
68
|
*
|
|
@@ -67,8 +72,8 @@ declare const CreateVectorBucketCommand_base: {
|
|
|
67
72
|
* @throws {@link InternalServerException} (server fault)
|
|
68
73
|
* <p>The request failed due to an internal server error.</p>
|
|
69
74
|
*
|
|
70
|
-
* @throws {@link
|
|
71
|
-
* <p>
|
|
75
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
76
|
+
* <p>The request timed out. Retry your request.</p>
|
|
72
77
|
*
|
|
73
78
|
* @throws {@link TooManyRequestsException} (client fault)
|
|
74
79
|
* <p>The request was denied due to request throttling.</p>
|
|
@@ -87,7 +92,7 @@ export declare class CreateVectorBucketCommand extends CreateVectorBucketCommand
|
|
|
87
92
|
protected static __types: {
|
|
88
93
|
api: {
|
|
89
94
|
input: CreateVectorBucketInput;
|
|
90
|
-
output:
|
|
95
|
+
output: CreateVectorBucketOutput;
|
|
91
96
|
};
|
|
92
97
|
sdk: {
|
|
93
98
|
input: CreateVectorBucketCommandInput;
|
|
@@ -62,8 +62,8 @@ declare const DeleteIndexCommand_base: {
|
|
|
62
62
|
* @throws {@link InternalServerException} (server fault)
|
|
63
63
|
* <p>The request failed due to an internal server error.</p>
|
|
64
64
|
*
|
|
65
|
-
* @throws {@link
|
|
66
|
-
* <p>
|
|
65
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
66
|
+
* <p>The request timed out. Retry your request.</p>
|
|
67
67
|
*
|
|
68
68
|
* @throws {@link TooManyRequestsException} (client fault)
|
|
69
69
|
* <p>The request was denied due to request throttling.</p>
|
|
@@ -64,8 +64,8 @@ declare const DeleteVectorBucketCommand_base: {
|
|
|
64
64
|
* @throws {@link InternalServerException} (server fault)
|
|
65
65
|
* <p>The request failed due to an internal server error.</p>
|
|
66
66
|
*
|
|
67
|
-
* @throws {@link
|
|
68
|
-
* <p>
|
|
67
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
68
|
+
* <p>The request timed out. Retry your request.</p>
|
|
69
69
|
*
|
|
70
70
|
* @throws {@link TooManyRequestsException} (client fault)
|
|
71
71
|
* <p>The request was denied due to request throttling.</p>
|
|
@@ -64,8 +64,8 @@ declare const DeleteVectorBucketPolicyCommand_base: {
|
|
|
64
64
|
* @throws {@link InternalServerException} (server fault)
|
|
65
65
|
* <p>The request failed due to an internal server error.</p>
|
|
66
66
|
*
|
|
67
|
-
* @throws {@link
|
|
68
|
-
* <p>
|
|
67
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
68
|
+
* <p>The request timed out. Retry your request.</p>
|
|
69
69
|
*
|
|
70
70
|
* @throws {@link TooManyRequestsException} (client fault)
|
|
71
71
|
* <p>The request was denied due to request throttling.</p>
|
|
@@ -80,8 +80,8 @@ declare const DeleteVectorsCommand_base: {
|
|
|
80
80
|
* @throws {@link InternalServerException} (server fault)
|
|
81
81
|
* <p>The request failed due to an internal server error.</p>
|
|
82
82
|
*
|
|
83
|
-
* @throws {@link
|
|
84
|
-
* <p>
|
|
83
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
84
|
+
* <p>The request timed out. Retry your request.</p>
|
|
85
85
|
*
|
|
86
86
|
* @throws {@link TooManyRequestsException} (client fault)
|
|
87
87
|
* <p>The request was denied due to request throttling.</p>
|
|
@@ -80,8 +80,8 @@ declare const GetIndexCommand_base: {
|
|
|
80
80
|
* @throws {@link InternalServerException} (server fault)
|
|
81
81
|
* <p>The request failed due to an internal server error.</p>
|
|
82
82
|
*
|
|
83
|
-
* @throws {@link
|
|
84
|
-
* <p>
|
|
83
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
84
|
+
* <p>The request timed out. Retry your request.</p>
|
|
85
85
|
*
|
|
86
86
|
* @throws {@link TooManyRequestsException} (client fault)
|
|
87
87
|
* <p>The request was denied due to request throttling.</p>
|
|
@@ -74,8 +74,8 @@ declare const GetVectorBucketCommand_base: {
|
|
|
74
74
|
* @throws {@link InternalServerException} (server fault)
|
|
75
75
|
* <p>The request failed due to an internal server error.</p>
|
|
76
76
|
*
|
|
77
|
-
* @throws {@link
|
|
78
|
-
* <p>
|
|
77
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
78
|
+
* <p>The request timed out. Retry your request.</p>
|
|
79
79
|
*
|
|
80
80
|
* @throws {@link TooManyRequestsException} (client fault)
|
|
81
81
|
* <p>The request was denied due to request throttling.</p>
|
|
@@ -66,8 +66,8 @@ declare const GetVectorBucketPolicyCommand_base: {
|
|
|
66
66
|
* @throws {@link InternalServerException} (server fault)
|
|
67
67
|
* <p>The request failed due to an internal server error.</p>
|
|
68
68
|
*
|
|
69
|
-
* @throws {@link
|
|
70
|
-
* <p>
|
|
69
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
70
|
+
* <p>The request timed out. Retry your request.</p>
|
|
71
71
|
*
|
|
72
72
|
* @throws {@link TooManyRequestsException} (client fault)
|
|
73
73
|
* <p>The request was denied due to request throttling.</p>
|
|
@@ -94,8 +94,8 @@ declare const GetVectorsCommand_base: {
|
|
|
94
94
|
* @throws {@link InternalServerException} (server fault)
|
|
95
95
|
* <p>The request failed due to an internal server error.</p>
|
|
96
96
|
*
|
|
97
|
-
* @throws {@link
|
|
98
|
-
* <p>
|
|
97
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
98
|
+
* <p>The request timed out. Retry your request.</p>
|
|
99
99
|
*
|
|
100
100
|
* @throws {@link TooManyRequestsException} (client fault)
|
|
101
101
|
* <p>The request was denied due to request throttling.</p>
|
|
@@ -77,8 +77,8 @@ declare const ListIndexesCommand_base: {
|
|
|
77
77
|
* @throws {@link InternalServerException} (server fault)
|
|
78
78
|
* <p>The request failed due to an internal server error.</p>
|
|
79
79
|
*
|
|
80
|
-
* @throws {@link
|
|
81
|
-
* <p>
|
|
80
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
81
|
+
* <p>The request timed out. Retry your request.</p>
|
|
82
82
|
*
|
|
83
83
|
* @throws {@link TooManyRequestsException} (client fault)
|
|
84
84
|
* <p>The request was denied due to request throttling.</p>
|
|
@@ -71,8 +71,8 @@ declare const ListVectorBucketsCommand_base: {
|
|
|
71
71
|
* @throws {@link InternalServerException} (server fault)
|
|
72
72
|
* <p>The request failed due to an internal server error.</p>
|
|
73
73
|
*
|
|
74
|
-
* @throws {@link
|
|
75
|
-
* <p>
|
|
74
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
75
|
+
* <p>The request timed out. Retry your request.</p>
|
|
76
76
|
*
|
|
77
77
|
* @throws {@link TooManyRequestsException} (client fault)
|
|
78
78
|
* <p>The request was denied due to request throttling.</p>
|
|
@@ -84,8 +84,8 @@ declare const ListVectorsCommand_base: {
|
|
|
84
84
|
* @throws {@link InternalServerException} (server fault)
|
|
85
85
|
* <p>The request failed due to an internal server error.</p>
|
|
86
86
|
*
|
|
87
|
-
* @throws {@link
|
|
88
|
-
* <p>
|
|
87
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
88
|
+
* <p>The request timed out. Retry your request.</p>
|
|
89
89
|
*
|
|
90
90
|
* @throws {@link TooManyRequestsException} (client fault)
|
|
91
91
|
* <p>The request was denied due to request throttling.</p>
|
|
@@ -65,8 +65,8 @@ declare const PutVectorBucketPolicyCommand_base: {
|
|
|
65
65
|
* @throws {@link InternalServerException} (server fault)
|
|
66
66
|
* <p>The request failed due to an internal server error.</p>
|
|
67
67
|
*
|
|
68
|
-
* @throws {@link
|
|
69
|
-
* <p>
|
|
68
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
69
|
+
* <p>The request timed out. Retry your request.</p>
|
|
70
70
|
*
|
|
71
71
|
* @throws {@link TooManyRequestsException} (client fault)
|
|
72
72
|
* <p>The request was denied due to request throttling.</p>
|
|
@@ -82,14 +82,17 @@ declare const PutVectorsCommand_base: {
|
|
|
82
82
|
* @throws {@link NotFoundException} (client fault)
|
|
83
83
|
* <p>The request was rejected because the specified resource can't be found.</p>
|
|
84
84
|
*
|
|
85
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
86
|
+
* <p>Your request exceeds a service quota. </p>
|
|
87
|
+
*
|
|
85
88
|
* @throws {@link ServiceUnavailableException} (server fault)
|
|
86
89
|
* <p>The service is unavailable. Wait briefly and retry your request. If it continues to fail, increase your waiting time between retries.</p>
|
|
87
90
|
*
|
|
88
91
|
* @throws {@link InternalServerException} (server fault)
|
|
89
92
|
* <p>The request failed due to an internal server error.</p>
|
|
90
93
|
*
|
|
91
|
-
* @throws {@link
|
|
92
|
-
* <p>
|
|
94
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
95
|
+
* <p>The request timed out. Retry your request.</p>
|
|
93
96
|
*
|
|
94
97
|
* @throws {@link TooManyRequestsException} (client fault)
|
|
95
98
|
* <p>The request was denied due to request throttling.</p>
|
|
@@ -65,6 +65,7 @@ declare const QueryVectorsCommand_base: {
|
|
|
65
65
|
* // distance: Number("float"),
|
|
66
66
|
* // },
|
|
67
67
|
* // ],
|
|
68
|
+
* // distanceMetric: "euclidean" || "cosine", // required
|
|
68
69
|
* // };
|
|
69
70
|
*
|
|
70
71
|
* ```
|
|
@@ -99,8 +100,8 @@ declare const QueryVectorsCommand_base: {
|
|
|
99
100
|
* @throws {@link InternalServerException} (server fault)
|
|
100
101
|
* <p>The request failed due to an internal server error.</p>
|
|
101
102
|
*
|
|
102
|
-
* @throws {@link
|
|
103
|
-
* <p>
|
|
103
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
104
|
+
* <p>The request timed out. Retry your request.</p>
|
|
104
105
|
*
|
|
105
106
|
* @throws {@link TooManyRequestsException} (client fault)
|
|
106
107
|
* <p>The request was denied due to request throttling.</p>
|
|
@@ -103,6 +103,11 @@ export interface CreateIndexInput {
|
|
|
103
103
|
* @public
|
|
104
104
|
*/
|
|
105
105
|
export interface CreateIndexOutput {
|
|
106
|
+
/**
|
|
107
|
+
* <p>The Amazon Resource Name (ARN) of the newly created vector index.</p>
|
|
108
|
+
* @public
|
|
109
|
+
*/
|
|
110
|
+
indexArn: string | undefined;
|
|
106
111
|
}
|
|
107
112
|
/**
|
|
108
113
|
* <p>The request failed due to an internal server error.</p>
|
|
@@ -129,6 +134,19 @@ export declare class NotFoundException extends __BaseException {
|
|
|
129
134
|
*/
|
|
130
135
|
constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
|
|
131
136
|
}
|
|
137
|
+
/**
|
|
138
|
+
* <p>The request timed out. Retry your request.</p>
|
|
139
|
+
* @public
|
|
140
|
+
*/
|
|
141
|
+
export declare class RequestTimeoutException extends __BaseException {
|
|
142
|
+
readonly name: "RequestTimeoutException";
|
|
143
|
+
readonly $fault: "client";
|
|
144
|
+
$retryable: {};
|
|
145
|
+
/**
|
|
146
|
+
* @internal
|
|
147
|
+
*/
|
|
148
|
+
constructor(opts: __ExceptionOptionType<RequestTimeoutException, __BaseException>);
|
|
149
|
+
}
|
|
132
150
|
/**
|
|
133
151
|
* <p>Your request exceeds a service quota. </p>
|
|
134
152
|
* @public
|
|
@@ -249,6 +267,11 @@ export interface CreateVectorBucketInput {
|
|
|
249
267
|
* @public
|
|
250
268
|
*/
|
|
251
269
|
export interface CreateVectorBucketOutput {
|
|
270
|
+
/**
|
|
271
|
+
* <p>The Amazon Resource Name (ARN) of the newly created vector bucket.</p>
|
|
272
|
+
* @public
|
|
273
|
+
*/
|
|
274
|
+
vectorBucketArn: string | undefined;
|
|
252
275
|
}
|
|
253
276
|
/**
|
|
254
277
|
* @public
|
|
@@ -929,6 +952,11 @@ export interface QueryVectorsOutput {
|
|
|
929
952
|
* @public
|
|
930
953
|
*/
|
|
931
954
|
vectors: QueryOutputVector[] | undefined;
|
|
955
|
+
/**
|
|
956
|
+
* <p>The distance metric that was used for the similarity search calculation. This is the same distance metric that was configured for the vector index when it was created.</p>
|
|
957
|
+
* @public
|
|
958
|
+
*/
|
|
959
|
+
distanceMetric: DistanceMetric | undefined;
|
|
932
960
|
}
|
|
933
961
|
/**
|
|
934
962
|
* @public
|
|
@@ -41,7 +41,7 @@ export declare class CreateVectorBucketCommand extends CreateVectorBucketCommand
|
|
|
41
41
|
protected static __types: {
|
|
42
42
|
api: {
|
|
43
43
|
input: CreateVectorBucketInput;
|
|
44
|
-
output:
|
|
44
|
+
output: CreateVectorBucketOutput;
|
|
45
45
|
};
|
|
46
46
|
sdk: {
|
|
47
47
|
input: CreateVectorBucketCommandInput;
|
|
@@ -35,7 +35,9 @@ export interface CreateIndexInput {
|
|
|
35
35
|
distanceMetric: DistanceMetric | undefined;
|
|
36
36
|
metadataConfiguration?: MetadataConfiguration | undefined;
|
|
37
37
|
}
|
|
38
|
-
export interface CreateIndexOutput {
|
|
38
|
+
export interface CreateIndexOutput {
|
|
39
|
+
indexArn: string | undefined;
|
|
40
|
+
}
|
|
39
41
|
export declare class InternalServerException extends __BaseException {
|
|
40
42
|
readonly name: "InternalServerException";
|
|
41
43
|
readonly $fault: "server";
|
|
@@ -49,6 +51,14 @@ export declare class NotFoundException extends __BaseException {
|
|
|
49
51
|
readonly $fault: "client";
|
|
50
52
|
constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
|
|
51
53
|
}
|
|
54
|
+
export declare class RequestTimeoutException extends __BaseException {
|
|
55
|
+
readonly name: "RequestTimeoutException";
|
|
56
|
+
readonly $fault: "client";
|
|
57
|
+
$retryable: {};
|
|
58
|
+
constructor(
|
|
59
|
+
opts: __ExceptionOptionType<RequestTimeoutException, __BaseException>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
52
62
|
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
53
63
|
readonly name: "ServiceQuotaExceededException";
|
|
54
64
|
readonly $fault: "client";
|
|
@@ -99,7 +109,9 @@ export interface CreateVectorBucketInput {
|
|
|
99
109
|
vectorBucketName: string | undefined;
|
|
100
110
|
encryptionConfiguration?: EncryptionConfiguration | undefined;
|
|
101
111
|
}
|
|
102
|
-
export interface CreateVectorBucketOutput {
|
|
112
|
+
export interface CreateVectorBucketOutput {
|
|
113
|
+
vectorBucketArn: string | undefined;
|
|
114
|
+
}
|
|
103
115
|
export interface DeleteIndexInput {
|
|
104
116
|
vectorBucketName?: string | undefined;
|
|
105
117
|
indexName?: string | undefined;
|
|
@@ -288,6 +300,7 @@ export interface QueryOutputVector {
|
|
|
288
300
|
}
|
|
289
301
|
export interface QueryVectorsOutput {
|
|
290
302
|
vectors: QueryOutputVector[] | undefined;
|
|
303
|
+
distanceMetric: DistanceMetric | undefined;
|
|
291
304
|
}
|
|
292
305
|
export interface ListVectorBucketsInput {
|
|
293
306
|
maxResults?: number | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-s3vectors",
|
|
3
3
|
"description": "AWS SDK for JavaScript S3vectors Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.927.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-s3vectors",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.927.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.927.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.927.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.925.0",
|
|
30
30
|
"@aws-sdk/types": "3.922.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.922.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.922.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.927.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.2",
|
|
35
35
|
"@smithy/core": "^3.17.2",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.5",
|