@aws-sdk/client-s3vectors 3.974.0 → 3.978.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 +12 -7
- package/dist-es/S3Vectors.js +9 -1
- package/dist-types/S3Vectors.d.ts +22 -1
- package/dist-types/ts3.4/S3Vectors.d.ts +26 -1
- package/package.json +17 -17
package/dist-cjs/index.js
CHANGED
|
@@ -1056,6 +1056,12 @@ class UntagResourceCommand extends smithyClient.Command
|
|
|
1056
1056
|
.build() {
|
|
1057
1057
|
}
|
|
1058
1058
|
|
|
1059
|
+
const paginateListIndexes = core.createPaginator(S3VectorsClient, ListIndexesCommand, "nextToken", "nextToken", "maxResults");
|
|
1060
|
+
|
|
1061
|
+
const paginateListVectorBuckets = core.createPaginator(S3VectorsClient, ListVectorBucketsCommand, "nextToken", "nextToken", "maxResults");
|
|
1062
|
+
|
|
1063
|
+
const paginateListVectors = core.createPaginator(S3VectorsClient, ListVectorsCommand, "nextToken", "nextToken", "maxResults");
|
|
1064
|
+
|
|
1059
1065
|
const commands = {
|
|
1060
1066
|
CreateIndexCommand,
|
|
1061
1067
|
CreateVectorBucketCommand,
|
|
@@ -1077,15 +1083,14 @@ const commands = {
|
|
|
1077
1083
|
TagResourceCommand,
|
|
1078
1084
|
UntagResourceCommand,
|
|
1079
1085
|
};
|
|
1086
|
+
const paginators = {
|
|
1087
|
+
paginateListIndexes,
|
|
1088
|
+
paginateListVectorBuckets,
|
|
1089
|
+
paginateListVectors,
|
|
1090
|
+
};
|
|
1080
1091
|
class S3Vectors extends S3VectorsClient {
|
|
1081
1092
|
}
|
|
1082
|
-
smithyClient.createAggregatedClient(commands, S3Vectors);
|
|
1083
|
-
|
|
1084
|
-
const paginateListIndexes = core.createPaginator(S3VectorsClient, ListIndexesCommand, "nextToken", "nextToken", "maxResults");
|
|
1085
|
-
|
|
1086
|
-
const paginateListVectorBuckets = core.createPaginator(S3VectorsClient, ListVectorBucketsCommand, "nextToken", "nextToken", "maxResults");
|
|
1087
|
-
|
|
1088
|
-
const paginateListVectors = core.createPaginator(S3VectorsClient, ListVectorsCommand, "nextToken", "nextToken", "maxResults");
|
|
1093
|
+
smithyClient.createAggregatedClient(commands, S3Vectors, { paginators });
|
|
1089
1094
|
|
|
1090
1095
|
const DataType = {
|
|
1091
1096
|
FLOAT32: "float32",
|
package/dist-es/S3Vectors.js
CHANGED
|
@@ -18,6 +18,9 @@ import { PutVectorsCommand } from "./commands/PutVectorsCommand";
|
|
|
18
18
|
import { QueryVectorsCommand, } from "./commands/QueryVectorsCommand";
|
|
19
19
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
20
20
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
21
|
+
import { paginateListIndexes } from "./pagination/ListIndexesPaginator";
|
|
22
|
+
import { paginateListVectorBuckets } from "./pagination/ListVectorBucketsPaginator";
|
|
23
|
+
import { paginateListVectors } from "./pagination/ListVectorsPaginator";
|
|
21
24
|
import { S3VectorsClient } from "./S3VectorsClient";
|
|
22
25
|
const commands = {
|
|
23
26
|
CreateIndexCommand,
|
|
@@ -40,6 +43,11 @@ const commands = {
|
|
|
40
43
|
TagResourceCommand,
|
|
41
44
|
UntagResourceCommand,
|
|
42
45
|
};
|
|
46
|
+
const paginators = {
|
|
47
|
+
paginateListIndexes,
|
|
48
|
+
paginateListVectorBuckets,
|
|
49
|
+
paginateListVectors,
|
|
50
|
+
};
|
|
43
51
|
export class S3Vectors extends S3VectorsClient {
|
|
44
52
|
}
|
|
45
|
-
createAggregatedClient(commands, S3Vectors);
|
|
53
|
+
createAggregatedClient(commands, S3Vectors, { paginators });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { CreateIndexCommandInput, CreateIndexCommandOutput } from "./commands/CreateIndexCommand";
|
|
3
3
|
import { CreateVectorBucketCommandInput, CreateVectorBucketCommandOutput } from "./commands/CreateVectorBucketCommand";
|
|
4
4
|
import { DeleteIndexCommandInput, DeleteIndexCommandOutput } from "./commands/DeleteIndexCommand";
|
|
@@ -143,6 +143,27 @@ export interface S3Vectors {
|
|
|
143
143
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
144
144
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
145
145
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
146
|
+
/**
|
|
147
|
+
* @see {@link ListIndexesCommand}
|
|
148
|
+
* @param args - command input.
|
|
149
|
+
* @param paginationConfig - optional pagination config.
|
|
150
|
+
* @returns AsyncIterable of {@link ListIndexesCommandOutput}.
|
|
151
|
+
*/
|
|
152
|
+
paginateListIndexes(args?: ListIndexesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListIndexesCommandOutput>;
|
|
153
|
+
/**
|
|
154
|
+
* @see {@link ListVectorBucketsCommand}
|
|
155
|
+
* @param args - command input.
|
|
156
|
+
* @param paginationConfig - optional pagination config.
|
|
157
|
+
* @returns AsyncIterable of {@link ListVectorBucketsCommandOutput}.
|
|
158
|
+
*/
|
|
159
|
+
paginateListVectorBuckets(args?: ListVectorBucketsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListVectorBucketsCommandOutput>;
|
|
160
|
+
/**
|
|
161
|
+
* @see {@link ListVectorsCommand}
|
|
162
|
+
* @param args - command input.
|
|
163
|
+
* @param paginationConfig - optional pagination config.
|
|
164
|
+
* @returns AsyncIterable of {@link ListVectorsCommandOutput}.
|
|
165
|
+
*/
|
|
166
|
+
paginateListVectors(args?: ListVectorsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListVectorsCommandOutput>;
|
|
146
167
|
}
|
|
147
168
|
/**
|
|
148
169
|
* <p>Amazon S3 vector buckets are a bucket type to store and search vectors with sub-second search times. They are designed to provide dedicated API operations for you to interact with vectors to do similarity search. Within a vector bucket, you use a vector index to organize and logically group your vector data. When you make a write or read request, you direct it to a single vector index. You store your vector data as vectors. A vector contains a key (a name that you assign), a multi-dimensional vector, and, optionally, metadata that describes a vector. The key uniquely identifies the vector in a vector index.</p>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
2
6
|
import {
|
|
3
7
|
CreateIndexCommandInput,
|
|
4
8
|
CreateIndexCommandOutput,
|
|
@@ -333,5 +337,26 @@ export interface S3Vectors {
|
|
|
333
337
|
options: __HttpHandlerOptions,
|
|
334
338
|
cb: (err: any, data?: UntagResourceCommandOutput) => void
|
|
335
339
|
): void;
|
|
340
|
+
paginateListIndexes(
|
|
341
|
+
args?: ListIndexesCommandInput,
|
|
342
|
+
paginationConfig?: Pick<
|
|
343
|
+
PaginationConfiguration,
|
|
344
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
345
|
+
>
|
|
346
|
+
): Paginator<ListIndexesCommandOutput>;
|
|
347
|
+
paginateListVectorBuckets(
|
|
348
|
+
args?: ListVectorBucketsCommandInput,
|
|
349
|
+
paginationConfig?: Pick<
|
|
350
|
+
PaginationConfiguration,
|
|
351
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
352
|
+
>
|
|
353
|
+
): Paginator<ListVectorBucketsCommandOutput>;
|
|
354
|
+
paginateListVectors(
|
|
355
|
+
args?: ListVectorsCommandInput,
|
|
356
|
+
paginationConfig?: Pick<
|
|
357
|
+
PaginationConfiguration,
|
|
358
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
359
|
+
>
|
|
360
|
+
): Paginator<ListVectorsCommandOutput>;
|
|
336
361
|
}
|
|
337
362
|
export declare class S3Vectors extends S3VectorsClient implements S3Vectors {}
|
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.978.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-s3vectors",
|
|
@@ -23,38 +23,38 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26
|
-
"@aws-sdk/core": "^3.973.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
32
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
33
|
-
"@aws-sdk/types": "^3.973.
|
|
26
|
+
"@aws-sdk/core": "^3.973.4",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "^3.972.2",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "^3.972.2",
|
|
29
|
+
"@aws-sdk/middleware-logger": "^3.972.2",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.2",
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "^3.972.4",
|
|
32
|
+
"@aws-sdk/region-config-resolver": "^3.972.2",
|
|
33
|
+
"@aws-sdk/types": "^3.973.1",
|
|
34
34
|
"@aws-sdk/util-endpoints": "3.972.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
35
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.2",
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "^3.972.2",
|
|
37
37
|
"@smithy/config-resolver": "^4.4.6",
|
|
38
|
-
"@smithy/core": "^3.
|
|
38
|
+
"@smithy/core": "^3.22.0",
|
|
39
39
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
40
40
|
"@smithy/hash-node": "^4.2.8",
|
|
41
41
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
42
42
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
43
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
44
|
-
"@smithy/middleware-retry": "^4.4.
|
|
43
|
+
"@smithy/middleware-endpoint": "^4.4.12",
|
|
44
|
+
"@smithy/middleware-retry": "^4.4.29",
|
|
45
45
|
"@smithy/middleware-serde": "^4.2.9",
|
|
46
46
|
"@smithy/middleware-stack": "^4.2.8",
|
|
47
47
|
"@smithy/node-config-provider": "^4.3.8",
|
|
48
48
|
"@smithy/node-http-handler": "^4.4.8",
|
|
49
49
|
"@smithy/protocol-http": "^5.3.8",
|
|
50
|
-
"@smithy/smithy-client": "^4.
|
|
50
|
+
"@smithy/smithy-client": "^4.11.1",
|
|
51
51
|
"@smithy/types": "^4.12.0",
|
|
52
52
|
"@smithy/url-parser": "^4.2.8",
|
|
53
53
|
"@smithy/util-base64": "^4.3.0",
|
|
54
54
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
55
55
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^4.3.28",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^4.2.31",
|
|
58
58
|
"@smithy/util-endpoints": "^3.2.8",
|
|
59
59
|
"@smithy/util-middleware": "^4.2.8",
|
|
60
60
|
"@smithy/util-retry": "^4.2.8",
|