@aws-sdk/client-s3vectors 3.845.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/LICENSE +201 -0
- package/README.md +333 -0
- package/dist-cjs/S3Vectors.js +43 -0
- package/dist-cjs/S3VectorsClient.js +52 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/CreateIndexCommand.js +26 -0
- package/dist-cjs/commands/CreateVectorBucketCommand.js +26 -0
- package/dist-cjs/commands/DeleteIndexCommand.js +26 -0
- package/dist-cjs/commands/DeleteVectorBucketCommand.js +26 -0
- package/dist-cjs/commands/DeleteVectorBucketPolicyCommand.js +26 -0
- package/dist-cjs/commands/DeleteVectorsCommand.js +26 -0
- package/dist-cjs/commands/GetIndexCommand.js +26 -0
- package/dist-cjs/commands/GetVectorBucketCommand.js +26 -0
- package/dist-cjs/commands/GetVectorBucketPolicyCommand.js +26 -0
- package/dist-cjs/commands/GetVectorsCommand.js +26 -0
- package/dist-cjs/commands/ListIndexesCommand.js +26 -0
- package/dist-cjs/commands/ListVectorBucketsCommand.js +26 -0
- package/dist-cjs/commands/ListVectorsCommand.js +26 -0
- package/dist-cjs/commands/PutVectorBucketPolicyCommand.js +26 -0
- package/dist-cjs/commands/PutVectorsCommand.js +26 -0
- package/dist-cjs/commands/QueryVectorsCommand.js +26 -0
- package/dist-cjs/commands/index.js +19 -0
- package/dist-cjs/endpoint/EndpointParameters.js +15 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/S3VectorsServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +186 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListIndexesPaginator.js +7 -0
- package/dist-cjs/pagination/ListVectorBucketsPaginator.js +7 -0
- package/dist-cjs/pagination/ListVectorsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_restJson1.js +858 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +56 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +13 -0
- package/dist-es/S3Vectors.js +39 -0
- package/dist-es/S3VectorsClient.js +48 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/CreateIndexCommand.js +22 -0
- package/dist-es/commands/CreateVectorBucketCommand.js +22 -0
- package/dist-es/commands/DeleteIndexCommand.js +22 -0
- package/dist-es/commands/DeleteVectorBucketCommand.js +22 -0
- package/dist-es/commands/DeleteVectorBucketPolicyCommand.js +22 -0
- package/dist-es/commands/DeleteVectorsCommand.js +22 -0
- package/dist-es/commands/GetIndexCommand.js +22 -0
- package/dist-es/commands/GetVectorBucketCommand.js +22 -0
- package/dist-es/commands/GetVectorBucketPolicyCommand.js +22 -0
- package/dist-es/commands/GetVectorsCommand.js +22 -0
- package/dist-es/commands/ListIndexesCommand.js +22 -0
- package/dist-es/commands/ListVectorBucketsCommand.js +22 -0
- package/dist-es/commands/ListVectorsCommand.js +22 -0
- package/dist-es/commands/PutVectorBucketPolicyCommand.js +22 -0
- package/dist-es/commands/PutVectorsCommand.js +22 -0
- package/dist-es/commands/QueryVectorsCommand.js +22 -0
- package/dist-es/commands/index.js +16 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/S3VectorsServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +171 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListIndexesPaginator.js +4 -0
- package/dist-es/pagination/ListVectorBucketsPaginator.js +4 -0
- package/dist-es/pagination/ListVectorsPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +823 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +51 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-types/S3Vectors.d.ts +131 -0
- package/dist-types/S3VectorsClient.d.ts +203 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/CreateIndexCommand.d.ts +104 -0
- package/dist-types/commands/CreateVectorBucketCommand.d.ts +95 -0
- package/dist-types/commands/DeleteIndexCommand.d.ts +90 -0
- package/dist-types/commands/DeleteVectorBucketCommand.d.ts +92 -0
- package/dist-types/commands/DeleteVectorBucketPolicyCommand.d.ts +92 -0
- package/dist-types/commands/DeleteVectorsCommand.d.ts +108 -0
- package/dist-types/commands/GetIndexCommand.d.ts +108 -0
- package/dist-types/commands/GetVectorBucketCommand.d.ts +102 -0
- package/dist-types/commands/GetVectorBucketPolicyCommand.d.ts +94 -0
- package/dist-types/commands/GetVectorsCommand.d.ts +122 -0
- package/dist-types/commands/ListIndexesCommand.d.ts +105 -0
- package/dist-types/commands/ListVectorBucketsCommand.d.ts +99 -0
- package/dist-types/commands/ListVectorsCommand.d.ts +112 -0
- package/dist-types/commands/PutVectorBucketPolicyCommand.d.ts +93 -0
- package/dist-types/commands/PutVectorsCommand.d.ts +116 -0
- package/dist-types/commands/QueryVectorsCommand.d.ts +127 -0
- package/dist-types/commands/index.d.ts +16 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +32 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +14 -0
- package/dist-types/models/S3VectorsServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1013 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListIndexesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListVectorBucketsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListVectorsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +146 -0
- package/dist-types/runtimeConfig.browser.d.ts +50 -0
- package/dist-types/runtimeConfig.d.ts +50 -0
- package/dist-types/runtimeConfig.native.d.ts +49 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/S3Vectors.d.ts +286 -0
- package/dist-types/ts3.4/S3VectorsClient.d.ts +215 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateIndexCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateVectorBucketCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteIndexCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteVectorBucketCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteVectorBucketPolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteVectorsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetIndexCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetVectorBucketCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetVectorBucketPolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetVectorsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListIndexesCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListVectorBucketsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListVectorsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/PutVectorBucketPolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutVectorsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/QueryVectorsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +16 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/S3VectorsServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +311 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListIndexesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListVectorBucketsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListVectorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +197 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +89 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +99 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_PutVectorBucketPolicyCommand, se_PutVectorBucketPolicyCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class PutVectorBucketPolicyCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("S3Vectors", "PutVectorBucketPolicy", {})
|
|
17
|
+
.n("S3VectorsClient", "PutVectorBucketPolicyCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_PutVectorBucketPolicyCommand)
|
|
20
|
+
.de(de_PutVectorBucketPolicyCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_PutVectorsCommand, se_PutVectorsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class PutVectorsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("S3Vectors", "PutVectors", {})
|
|
17
|
+
.n("S3VectorsClient", "PutVectorsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_PutVectorsCommand)
|
|
20
|
+
.de(de_PutVectorsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_QueryVectorsCommand, se_QueryVectorsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class QueryVectorsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("S3Vectors", "QueryVectors", {})
|
|
17
|
+
.n("S3VectorsClient", "QueryVectorsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_QueryVectorsCommand)
|
|
20
|
+
.de(de_QueryVectorsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from "./CreateIndexCommand";
|
|
2
|
+
export * from "./CreateVectorBucketCommand";
|
|
3
|
+
export * from "./DeleteIndexCommand";
|
|
4
|
+
export * from "./DeleteVectorBucketCommand";
|
|
5
|
+
export * from "./DeleteVectorBucketPolicyCommand";
|
|
6
|
+
export * from "./DeleteVectorsCommand";
|
|
7
|
+
export * from "./GetIndexCommand";
|
|
8
|
+
export * from "./GetVectorBucketCommand";
|
|
9
|
+
export * from "./GetVectorBucketPolicyCommand";
|
|
10
|
+
export * from "./GetVectorsCommand";
|
|
11
|
+
export * from "./ListIndexesCommand";
|
|
12
|
+
export * from "./ListVectorBucketsCommand";
|
|
13
|
+
export * from "./ListVectorsCommand";
|
|
14
|
+
export * from "./PutVectorBucketPolicyCommand";
|
|
15
|
+
export * from "./PutVectorsCommand";
|
|
16
|
+
export * from "./QueryVectorsCommand";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
+
return Object.assign(options, {
|
|
3
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
4
|
+
defaultSigningName: "s3vectors",
|
|
5
|
+
});
|
|
6
|
+
};
|
|
7
|
+
export const commonParams = {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
|
|
3
|
+
import { ruleSet } from "./ruleset";
|
|
4
|
+
const cache = new EndpointCache({
|
|
5
|
+
size: 50,
|
|
6
|
+
params: ["Endpoint", "Region", "UseFIPS"],
|
|
7
|
+
});
|
|
8
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
|
|
10
|
+
endpointParams: endpointParams,
|
|
11
|
+
logger: context.logger,
|
|
12
|
+
}));
|
|
13
|
+
};
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const l = "ref";
|
|
2
|
+
const a = true, b = false, c = "isSet", d = "error", e = "endpoint", f = "tree", g = { "required": false, "type": "String" }, h = { [l]: "Endpoint" }, i = {}, j = [{ "fn": "booleanEquals", "argv": [{ [l]: "UseFIPS" }, true] }], k = [{ [l]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { UseFIPS: { required: a, default: b, type: "Boolean" }, Endpoint: g, Region: g }, rules: [{ conditions: [{ fn: c, argv: [h] }], rules: [{ conditions: j, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { endpoint: { url: h, properties: i, headers: i }, type: e }], type: f }, { rules: [{ conditions: [{ fn: c, argv: k }], rules: [{ conditions: [{ fn: "aws.partition", argv: k, assign: "PartitionResult" }], rules: [{ conditions: j, endpoint: { url: "https://s3vectors-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }, { endpoint: { url: "https://s3vectors.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
|
|
4
|
+
export const ruleSet = _data;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class S3VectorsServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, S3VectorsServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { S3VectorsServiceException as __BaseException } from "./S3VectorsServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
name = "AccessDeniedException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "AccessDeniedException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class ConflictException extends __BaseException {
|
|
15
|
+
name = "ConflictException";
|
|
16
|
+
$fault = "client";
|
|
17
|
+
constructor(opts) {
|
|
18
|
+
super({
|
|
19
|
+
name: "ConflictException",
|
|
20
|
+
$fault: "client",
|
|
21
|
+
...opts,
|
|
22
|
+
});
|
|
23
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export const DataType = {
|
|
27
|
+
FLOAT32: "float32",
|
|
28
|
+
};
|
|
29
|
+
export const DistanceMetric = {
|
|
30
|
+
COSINE: "cosine",
|
|
31
|
+
EUCLIDEAN: "euclidean",
|
|
32
|
+
};
|
|
33
|
+
export class InternalServerException extends __BaseException {
|
|
34
|
+
name = "InternalServerException";
|
|
35
|
+
$fault = "server";
|
|
36
|
+
$retryable = {};
|
|
37
|
+
constructor(opts) {
|
|
38
|
+
super({
|
|
39
|
+
name: "InternalServerException",
|
|
40
|
+
$fault: "server",
|
|
41
|
+
...opts,
|
|
42
|
+
});
|
|
43
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export class NotFoundException extends __BaseException {
|
|
47
|
+
name = "NotFoundException";
|
|
48
|
+
$fault = "client";
|
|
49
|
+
constructor(opts) {
|
|
50
|
+
super({
|
|
51
|
+
name: "NotFoundException",
|
|
52
|
+
$fault: "client",
|
|
53
|
+
...opts,
|
|
54
|
+
});
|
|
55
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
59
|
+
name = "ServiceQuotaExceededException";
|
|
60
|
+
$fault = "client";
|
|
61
|
+
constructor(opts) {
|
|
62
|
+
super({
|
|
63
|
+
name: "ServiceQuotaExceededException",
|
|
64
|
+
$fault: "client",
|
|
65
|
+
...opts,
|
|
66
|
+
});
|
|
67
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export class ServiceUnavailableException extends __BaseException {
|
|
71
|
+
name = "ServiceUnavailableException";
|
|
72
|
+
$fault = "server";
|
|
73
|
+
$retryable = {};
|
|
74
|
+
constructor(opts) {
|
|
75
|
+
super({
|
|
76
|
+
name: "ServiceUnavailableException",
|
|
77
|
+
$fault: "server",
|
|
78
|
+
...opts,
|
|
79
|
+
});
|
|
80
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
export class TooManyRequestsException extends __BaseException {
|
|
84
|
+
name = "TooManyRequestsException";
|
|
85
|
+
$fault = "client";
|
|
86
|
+
$retryable = {
|
|
87
|
+
throttling: true,
|
|
88
|
+
};
|
|
89
|
+
constructor(opts) {
|
|
90
|
+
super({
|
|
91
|
+
name: "TooManyRequestsException",
|
|
92
|
+
$fault: "client",
|
|
93
|
+
...opts,
|
|
94
|
+
});
|
|
95
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export class ValidationException extends __BaseException {
|
|
99
|
+
name = "ValidationException";
|
|
100
|
+
$fault = "client";
|
|
101
|
+
fieldList;
|
|
102
|
+
constructor(opts) {
|
|
103
|
+
super({
|
|
104
|
+
name: "ValidationException",
|
|
105
|
+
$fault: "client",
|
|
106
|
+
...opts,
|
|
107
|
+
});
|
|
108
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
109
|
+
this.fieldList = opts.fieldList;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
export const SseType = {
|
|
113
|
+
AES256: "AES256",
|
|
114
|
+
AWS_KMS: "aws:kms",
|
|
115
|
+
};
|
|
116
|
+
export class KmsDisabledException extends __BaseException {
|
|
117
|
+
name = "KmsDisabledException";
|
|
118
|
+
$fault = "client";
|
|
119
|
+
constructor(opts) {
|
|
120
|
+
super({
|
|
121
|
+
name: "KmsDisabledException",
|
|
122
|
+
$fault: "client",
|
|
123
|
+
...opts,
|
|
124
|
+
});
|
|
125
|
+
Object.setPrototypeOf(this, KmsDisabledException.prototype);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
export class KmsInvalidKeyUsageException extends __BaseException {
|
|
129
|
+
name = "KmsInvalidKeyUsageException";
|
|
130
|
+
$fault = "client";
|
|
131
|
+
constructor(opts) {
|
|
132
|
+
super({
|
|
133
|
+
name: "KmsInvalidKeyUsageException",
|
|
134
|
+
$fault: "client",
|
|
135
|
+
...opts,
|
|
136
|
+
});
|
|
137
|
+
Object.setPrototypeOf(this, KmsInvalidKeyUsageException.prototype);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
export class KmsInvalidStateException extends __BaseException {
|
|
141
|
+
name = "KmsInvalidStateException";
|
|
142
|
+
$fault = "client";
|
|
143
|
+
constructor(opts) {
|
|
144
|
+
super({
|
|
145
|
+
name: "KmsInvalidStateException",
|
|
146
|
+
$fault: "client",
|
|
147
|
+
...opts,
|
|
148
|
+
});
|
|
149
|
+
Object.setPrototypeOf(this, KmsInvalidStateException.prototype);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
export class KmsNotFoundException extends __BaseException {
|
|
153
|
+
name = "KmsNotFoundException";
|
|
154
|
+
$fault = "client";
|
|
155
|
+
constructor(opts) {
|
|
156
|
+
super({
|
|
157
|
+
name: "KmsNotFoundException",
|
|
158
|
+
$fault: "client",
|
|
159
|
+
...opts,
|
|
160
|
+
});
|
|
161
|
+
Object.setPrototypeOf(this, KmsNotFoundException.prototype);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
export var VectorData;
|
|
165
|
+
(function (VectorData) {
|
|
166
|
+
VectorData.visit = (value, visitor) => {
|
|
167
|
+
if (value.float32 !== undefined)
|
|
168
|
+
return visitor.float32(value.float32);
|
|
169
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
170
|
+
};
|
|
171
|
+
})(VectorData || (VectorData = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListIndexesCommand } from "../commands/ListIndexesCommand";
|
|
3
|
+
import { S3VectorsClient } from "../S3VectorsClient";
|
|
4
|
+
export const paginateListIndexes = createPaginator(S3VectorsClient, ListIndexesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListVectorBucketsCommand, } from "../commands/ListVectorBucketsCommand";
|
|
3
|
+
import { S3VectorsClient } from "../S3VectorsClient";
|
|
4
|
+
export const paginateListVectorBuckets = createPaginator(S3VectorsClient, ListVectorBucketsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListVectorsCommand } from "../commands/ListVectorsCommand";
|
|
3
|
+
import { S3VectorsClient } from "../S3VectorsClient";
|
|
4
|
+
export const paginateListVectors = createPaginator(S3VectorsClient, ListVectorsCommand, "nextToken", "nextToken", "maxResults");
|