@aws-sdk/client-s3vectors 3.891.0 → 3.894.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 +1632 -10
- package/package.json +19 -19
- package/dist-cjs/S3Vectors.js +0 -43
- package/dist-cjs/S3VectorsClient.js +0 -52
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/commands/CreateIndexCommand.js +0 -26
- package/dist-cjs/commands/CreateVectorBucketCommand.js +0 -26
- package/dist-cjs/commands/DeleteIndexCommand.js +0 -26
- package/dist-cjs/commands/DeleteVectorBucketCommand.js +0 -26
- package/dist-cjs/commands/DeleteVectorBucketPolicyCommand.js +0 -26
- package/dist-cjs/commands/DeleteVectorsCommand.js +0 -26
- package/dist-cjs/commands/GetIndexCommand.js +0 -26
- package/dist-cjs/commands/GetVectorBucketCommand.js +0 -26
- package/dist-cjs/commands/GetVectorBucketPolicyCommand.js +0 -26
- package/dist-cjs/commands/GetVectorsCommand.js +0 -26
- package/dist-cjs/commands/ListIndexesCommand.js +0 -26
- package/dist-cjs/commands/ListVectorBucketsCommand.js +0 -26
- package/dist-cjs/commands/ListVectorsCommand.js +0 -26
- package/dist-cjs/commands/PutVectorBucketPolicyCommand.js +0 -26
- package/dist-cjs/commands/PutVectorsCommand.js +0 -26
- package/dist-cjs/commands/QueryVectorsCommand.js +0 -26
- package/dist-cjs/commands/index.js +0 -19
- package/dist-cjs/endpoint/EndpointParameters.js +0 -15
- package/dist-cjs/extensionConfiguration.js +0 -2
- package/dist-cjs/models/S3VectorsServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/models/models_0.js +0 -186
- package/dist-cjs/pagination/Interfaces.js +0 -2
- package/dist-cjs/pagination/ListIndexesPaginator.js +0 -7
- package/dist-cjs/pagination/ListVectorBucketsPaginator.js +0 -7
- package/dist-cjs/pagination/ListVectorsPaginator.js +0 -7
- package/dist-cjs/pagination/index.js +0 -7
- package/dist-cjs/protocols/Aws_restJson1.js +0 -858
- package/dist-cjs/runtimeExtensions.js +0 -13
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QueryVectorsCommand = exports.$Command = void 0;
|
|
4
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
-
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
-
class QueryVectorsCommand extends smithy_client_1.Command
|
|
11
|
-
.classBuilder()
|
|
12
|
-
.ep(EndpointParameters_1.commonParams)
|
|
13
|
-
.m(function (Command, cs, config, o) {
|
|
14
|
-
return [
|
|
15
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
16
|
-
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
17
|
-
];
|
|
18
|
-
})
|
|
19
|
-
.s("S3Vectors", "QueryVectors", {})
|
|
20
|
-
.n("S3VectorsClient", "QueryVectorsCommand")
|
|
21
|
-
.f(void 0, void 0)
|
|
22
|
-
.ser(Aws_restJson1_1.se_QueryVectorsCommand)
|
|
23
|
-
.de(Aws_restJson1_1.de_QueryVectorsCommand)
|
|
24
|
-
.build() {
|
|
25
|
-
}
|
|
26
|
-
exports.QueryVectorsCommand = QueryVectorsCommand;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./CreateIndexCommand"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./CreateVectorBucketCommand"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./DeleteIndexCommand"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./DeleteVectorBucketCommand"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./DeleteVectorBucketPolicyCommand"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./DeleteVectorsCommand"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./GetIndexCommand"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./GetVectorBucketCommand"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./GetVectorBucketPolicyCommand"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./GetVectorsCommand"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./ListIndexesCommand"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./ListVectorBucketsCommand"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./ListVectorsCommand"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./PutVectorBucketPolicyCommand"), exports);
|
|
18
|
-
tslib_1.__exportStar(require("./PutVectorsCommand"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./QueryVectorsCommand"), exports);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
|
-
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
return Object.assign(options, {
|
|
6
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
7
|
-
defaultSigningName: "s3vectors",
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
11
|
-
exports.commonParams = {
|
|
12
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
-
Region: { type: "builtInParams", name: "region" },
|
|
15
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.S3VectorsServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
-
class S3VectorsServiceException extends smithy_client_1.ServiceException {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
super(options);
|
|
9
|
-
Object.setPrototypeOf(this, S3VectorsServiceException.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.S3VectorsServiceException = S3VectorsServiceException;
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VectorData = exports.KmsNotFoundException = exports.KmsInvalidStateException = exports.KmsInvalidKeyUsageException = exports.KmsDisabledException = exports.SseType = exports.ValidationException = exports.TooManyRequestsException = exports.ServiceUnavailableException = exports.ServiceQuotaExceededException = exports.NotFoundException = exports.InternalServerException = exports.DistanceMetric = exports.DataType = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
-
const S3VectorsServiceException_1 = require("./S3VectorsServiceException");
|
|
5
|
-
class AccessDeniedException extends S3VectorsServiceException_1.S3VectorsServiceException {
|
|
6
|
-
name = "AccessDeniedException";
|
|
7
|
-
$fault = "client";
|
|
8
|
-
constructor(opts) {
|
|
9
|
-
super({
|
|
10
|
-
name: "AccessDeniedException",
|
|
11
|
-
$fault: "client",
|
|
12
|
-
...opts,
|
|
13
|
-
});
|
|
14
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
18
|
-
class ConflictException extends S3VectorsServiceException_1.S3VectorsServiceException {
|
|
19
|
-
name = "ConflictException";
|
|
20
|
-
$fault = "client";
|
|
21
|
-
constructor(opts) {
|
|
22
|
-
super({
|
|
23
|
-
name: "ConflictException",
|
|
24
|
-
$fault: "client",
|
|
25
|
-
...opts,
|
|
26
|
-
});
|
|
27
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.ConflictException = ConflictException;
|
|
31
|
-
exports.DataType = {
|
|
32
|
-
FLOAT32: "float32",
|
|
33
|
-
};
|
|
34
|
-
exports.DistanceMetric = {
|
|
35
|
-
COSINE: "cosine",
|
|
36
|
-
EUCLIDEAN: "euclidean",
|
|
37
|
-
};
|
|
38
|
-
class InternalServerException extends S3VectorsServiceException_1.S3VectorsServiceException {
|
|
39
|
-
name = "InternalServerException";
|
|
40
|
-
$fault = "server";
|
|
41
|
-
$retryable = {};
|
|
42
|
-
constructor(opts) {
|
|
43
|
-
super({
|
|
44
|
-
name: "InternalServerException",
|
|
45
|
-
$fault: "server",
|
|
46
|
-
...opts,
|
|
47
|
-
});
|
|
48
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
exports.InternalServerException = InternalServerException;
|
|
52
|
-
class NotFoundException extends S3VectorsServiceException_1.S3VectorsServiceException {
|
|
53
|
-
name = "NotFoundException";
|
|
54
|
-
$fault = "client";
|
|
55
|
-
constructor(opts) {
|
|
56
|
-
super({
|
|
57
|
-
name: "NotFoundException",
|
|
58
|
-
$fault: "client",
|
|
59
|
-
...opts,
|
|
60
|
-
});
|
|
61
|
-
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
exports.NotFoundException = NotFoundException;
|
|
65
|
-
class ServiceQuotaExceededException extends S3VectorsServiceException_1.S3VectorsServiceException {
|
|
66
|
-
name = "ServiceQuotaExceededException";
|
|
67
|
-
$fault = "client";
|
|
68
|
-
constructor(opts) {
|
|
69
|
-
super({
|
|
70
|
-
name: "ServiceQuotaExceededException",
|
|
71
|
-
$fault: "client",
|
|
72
|
-
...opts,
|
|
73
|
-
});
|
|
74
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
78
|
-
class ServiceUnavailableException extends S3VectorsServiceException_1.S3VectorsServiceException {
|
|
79
|
-
name = "ServiceUnavailableException";
|
|
80
|
-
$fault = "server";
|
|
81
|
-
$retryable = {};
|
|
82
|
-
constructor(opts) {
|
|
83
|
-
super({
|
|
84
|
-
name: "ServiceUnavailableException",
|
|
85
|
-
$fault: "server",
|
|
86
|
-
...opts,
|
|
87
|
-
});
|
|
88
|
-
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
92
|
-
class TooManyRequestsException extends S3VectorsServiceException_1.S3VectorsServiceException {
|
|
93
|
-
name = "TooManyRequestsException";
|
|
94
|
-
$fault = "client";
|
|
95
|
-
$retryable = {
|
|
96
|
-
throttling: true,
|
|
97
|
-
};
|
|
98
|
-
constructor(opts) {
|
|
99
|
-
super({
|
|
100
|
-
name: "TooManyRequestsException",
|
|
101
|
-
$fault: "client",
|
|
102
|
-
...opts,
|
|
103
|
-
});
|
|
104
|
-
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
exports.TooManyRequestsException = TooManyRequestsException;
|
|
108
|
-
class ValidationException extends S3VectorsServiceException_1.S3VectorsServiceException {
|
|
109
|
-
name = "ValidationException";
|
|
110
|
-
$fault = "client";
|
|
111
|
-
fieldList;
|
|
112
|
-
constructor(opts) {
|
|
113
|
-
super({
|
|
114
|
-
name: "ValidationException",
|
|
115
|
-
$fault: "client",
|
|
116
|
-
...opts,
|
|
117
|
-
});
|
|
118
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
119
|
-
this.fieldList = opts.fieldList;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
exports.ValidationException = ValidationException;
|
|
123
|
-
exports.SseType = {
|
|
124
|
-
AES256: "AES256",
|
|
125
|
-
AWS_KMS: "aws:kms",
|
|
126
|
-
};
|
|
127
|
-
class KmsDisabledException extends S3VectorsServiceException_1.S3VectorsServiceException {
|
|
128
|
-
name = "KmsDisabledException";
|
|
129
|
-
$fault = "client";
|
|
130
|
-
constructor(opts) {
|
|
131
|
-
super({
|
|
132
|
-
name: "KmsDisabledException",
|
|
133
|
-
$fault: "client",
|
|
134
|
-
...opts,
|
|
135
|
-
});
|
|
136
|
-
Object.setPrototypeOf(this, KmsDisabledException.prototype);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
exports.KmsDisabledException = KmsDisabledException;
|
|
140
|
-
class KmsInvalidKeyUsageException extends S3VectorsServiceException_1.S3VectorsServiceException {
|
|
141
|
-
name = "KmsInvalidKeyUsageException";
|
|
142
|
-
$fault = "client";
|
|
143
|
-
constructor(opts) {
|
|
144
|
-
super({
|
|
145
|
-
name: "KmsInvalidKeyUsageException",
|
|
146
|
-
$fault: "client",
|
|
147
|
-
...opts,
|
|
148
|
-
});
|
|
149
|
-
Object.setPrototypeOf(this, KmsInvalidKeyUsageException.prototype);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
exports.KmsInvalidKeyUsageException = KmsInvalidKeyUsageException;
|
|
153
|
-
class KmsInvalidStateException extends S3VectorsServiceException_1.S3VectorsServiceException {
|
|
154
|
-
name = "KmsInvalidStateException";
|
|
155
|
-
$fault = "client";
|
|
156
|
-
constructor(opts) {
|
|
157
|
-
super({
|
|
158
|
-
name: "KmsInvalidStateException",
|
|
159
|
-
$fault: "client",
|
|
160
|
-
...opts,
|
|
161
|
-
});
|
|
162
|
-
Object.setPrototypeOf(this, KmsInvalidStateException.prototype);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
exports.KmsInvalidStateException = KmsInvalidStateException;
|
|
166
|
-
class KmsNotFoundException extends S3VectorsServiceException_1.S3VectorsServiceException {
|
|
167
|
-
name = "KmsNotFoundException";
|
|
168
|
-
$fault = "client";
|
|
169
|
-
constructor(opts) {
|
|
170
|
-
super({
|
|
171
|
-
name: "KmsNotFoundException",
|
|
172
|
-
$fault: "client",
|
|
173
|
-
...opts,
|
|
174
|
-
});
|
|
175
|
-
Object.setPrototypeOf(this, KmsNotFoundException.prototype);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
exports.KmsNotFoundException = KmsNotFoundException;
|
|
179
|
-
var VectorData;
|
|
180
|
-
(function (VectorData) {
|
|
181
|
-
VectorData.visit = (value, visitor) => {
|
|
182
|
-
if (value.float32 !== undefined)
|
|
183
|
-
return visitor.float32(value.float32);
|
|
184
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
185
|
-
};
|
|
186
|
-
})(VectorData || (exports.VectorData = VectorData = {}));
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListIndexes = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const ListIndexesCommand_1 = require("../commands/ListIndexesCommand");
|
|
6
|
-
const S3VectorsClient_1 = require("../S3VectorsClient");
|
|
7
|
-
exports.paginateListIndexes = (0, core_1.createPaginator)(S3VectorsClient_1.S3VectorsClient, ListIndexesCommand_1.ListIndexesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListVectorBuckets = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const ListVectorBucketsCommand_1 = require("../commands/ListVectorBucketsCommand");
|
|
6
|
-
const S3VectorsClient_1 = require("../S3VectorsClient");
|
|
7
|
-
exports.paginateListVectorBuckets = (0, core_1.createPaginator)(S3VectorsClient_1.S3VectorsClient, ListVectorBucketsCommand_1.ListVectorBucketsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListVectors = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const ListVectorsCommand_1 = require("../commands/ListVectorsCommand");
|
|
6
|
-
const S3VectorsClient_1 = require("../S3VectorsClient");
|
|
7
|
-
exports.paginateListVectors = (0, core_1.createPaginator)(S3VectorsClient_1.S3VectorsClient, ListVectorsCommand_1.ListVectorsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./ListIndexesPaginator"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./ListVectorBucketsPaginator"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./ListVectorsPaginator"), exports);
|