@aws-sdk/client-s3vectors 3.899.0 → 3.906.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 +1419 -1601
- package/package.json +37 -37
package/dist-cjs/index.js
CHANGED
|
@@ -1,1633 +1,1451 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
ConflictException: () => ConflictException,
|
|
26
|
-
CreateIndexCommand: () => CreateIndexCommand,
|
|
27
|
-
CreateVectorBucketCommand: () => CreateVectorBucketCommand,
|
|
28
|
-
DataType: () => DataType,
|
|
29
|
-
DeleteIndexCommand: () => DeleteIndexCommand,
|
|
30
|
-
DeleteVectorBucketCommand: () => DeleteVectorBucketCommand,
|
|
31
|
-
DeleteVectorBucketPolicyCommand: () => DeleteVectorBucketPolicyCommand,
|
|
32
|
-
DeleteVectorsCommand: () => DeleteVectorsCommand,
|
|
33
|
-
DistanceMetric: () => DistanceMetric,
|
|
34
|
-
GetIndexCommand: () => GetIndexCommand,
|
|
35
|
-
GetVectorBucketCommand: () => GetVectorBucketCommand,
|
|
36
|
-
GetVectorBucketPolicyCommand: () => GetVectorBucketPolicyCommand,
|
|
37
|
-
GetVectorsCommand: () => GetVectorsCommand,
|
|
38
|
-
InternalServerException: () => InternalServerException,
|
|
39
|
-
KmsDisabledException: () => KmsDisabledException,
|
|
40
|
-
KmsInvalidKeyUsageException: () => KmsInvalidKeyUsageException,
|
|
41
|
-
KmsInvalidStateException: () => KmsInvalidStateException,
|
|
42
|
-
KmsNotFoundException: () => KmsNotFoundException,
|
|
43
|
-
ListIndexesCommand: () => ListIndexesCommand,
|
|
44
|
-
ListVectorBucketsCommand: () => ListVectorBucketsCommand,
|
|
45
|
-
ListVectorsCommand: () => ListVectorsCommand,
|
|
46
|
-
NotFoundException: () => NotFoundException,
|
|
47
|
-
PutVectorBucketPolicyCommand: () => PutVectorBucketPolicyCommand,
|
|
48
|
-
PutVectorsCommand: () => PutVectorsCommand,
|
|
49
|
-
QueryVectorsCommand: () => QueryVectorsCommand,
|
|
50
|
-
S3Vectors: () => S3Vectors,
|
|
51
|
-
S3VectorsClient: () => S3VectorsClient,
|
|
52
|
-
S3VectorsServiceException: () => S3VectorsServiceException,
|
|
53
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
54
|
-
ServiceUnavailableException: () => ServiceUnavailableException,
|
|
55
|
-
SseType: () => SseType,
|
|
56
|
-
TooManyRequestsException: () => TooManyRequestsException,
|
|
57
|
-
ValidationException: () => ValidationException,
|
|
58
|
-
VectorData: () => VectorData,
|
|
59
|
-
__Client: () => import_smithy_client.Client,
|
|
60
|
-
paginateListIndexes: () => paginateListIndexes,
|
|
61
|
-
paginateListVectorBuckets: () => paginateListVectorBuckets,
|
|
62
|
-
paginateListVectors: () => paginateListVectors
|
|
63
|
-
});
|
|
64
|
-
module.exports = __toCommonJS(index_exports);
|
|
65
|
-
|
|
66
|
-
// src/S3VectorsClient.ts
|
|
67
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
68
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
69
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
70
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
71
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
72
|
-
var import_core = require("@smithy/core");
|
|
73
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
74
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
75
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
76
|
-
|
|
77
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
78
|
-
|
|
79
|
-
// src/endpoint/EndpointParameters.ts
|
|
80
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
81
|
-
return Object.assign(options, {
|
|
82
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
83
|
-
defaultSigningName: "s3vectors"
|
|
84
|
-
});
|
|
85
|
-
}, "resolveClientEndpointParameters");
|
|
86
|
-
var commonParams = {
|
|
87
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
88
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
89
|
-
Region: { type: "builtInParams", name: "region" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
23
|
+
defaultSigningName: "s3vectors",
|
|
24
|
+
});
|
|
90
25
|
};
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
// src/runtimeExtensions.ts
|
|
96
|
-
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
97
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
|
98
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
|
99
|
-
|
|
100
|
-
// src/auth/httpAuthExtensionConfiguration.ts
|
|
101
|
-
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
102
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
103
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
104
|
-
let _credentials = runtimeConfig.credentials;
|
|
105
|
-
return {
|
|
106
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
107
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
108
|
-
if (index === -1) {
|
|
109
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
|
110
|
-
} else {
|
|
111
|
-
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
httpAuthSchemes() {
|
|
115
|
-
return _httpAuthSchemes;
|
|
116
|
-
},
|
|
117
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
118
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
119
|
-
},
|
|
120
|
-
httpAuthSchemeProvider() {
|
|
121
|
-
return _httpAuthSchemeProvider;
|
|
122
|
-
},
|
|
123
|
-
setCredentials(credentials) {
|
|
124
|
-
_credentials = credentials;
|
|
125
|
-
},
|
|
126
|
-
credentials() {
|
|
127
|
-
return _credentials;
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
131
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
132
|
-
return {
|
|
133
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
134
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
135
|
-
credentials: config.credentials()
|
|
136
|
-
};
|
|
137
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
138
|
-
|
|
139
|
-
// src/runtimeExtensions.ts
|
|
140
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
141
|
-
const extensionConfiguration = Object.assign(
|
|
142
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
143
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
144
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
145
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
146
|
-
);
|
|
147
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
148
|
-
return Object.assign(
|
|
149
|
-
runtimeConfig,
|
|
150
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
151
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
152
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
153
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
154
|
-
);
|
|
155
|
-
}, "resolveRuntimeExtensions");
|
|
156
|
-
|
|
157
|
-
// src/S3VectorsClient.ts
|
|
158
|
-
var S3VectorsClient = class extends import_smithy_client.Client {
|
|
159
|
-
static {
|
|
160
|
-
__name(this, "S3VectorsClient");
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* The resolved configuration of S3VectorsClient class. This is resolved and normalized from the {@link S3VectorsClientConfig | constructor configuration interface}.
|
|
164
|
-
*/
|
|
165
|
-
config;
|
|
166
|
-
constructor(...[configuration]) {
|
|
167
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
168
|
-
super(_config_0);
|
|
169
|
-
this.initConfig = _config_0;
|
|
170
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
171
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
172
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
173
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
174
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
175
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
176
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
177
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
178
|
-
this.config = _config_8;
|
|
179
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
180
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
181
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
182
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
183
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
184
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
185
|
-
this.middlewareStack.use(
|
|
186
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
187
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultS3VectorsHttpAuthSchemeParametersProvider,
|
|
188
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
189
|
-
"aws.auth#sigv4": config.credentials
|
|
190
|
-
}), "identityProviderConfigProvider")
|
|
191
|
-
})
|
|
192
|
-
);
|
|
193
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
197
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
198
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
199
|
-
*/
|
|
200
|
-
destroy() {
|
|
201
|
-
super.destroy();
|
|
202
|
-
}
|
|
26
|
+
const commonParams = {
|
|
27
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
28
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
29
|
+
Region: { type: "builtInParams", name: "region" },
|
|
203
30
|
};
|
|
204
31
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
32
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
33
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
34
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
35
|
+
let _credentials = runtimeConfig.credentials;
|
|
36
|
+
return {
|
|
37
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
38
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
39
|
+
if (index === -1) {
|
|
40
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
httpAuthSchemes() {
|
|
47
|
+
return _httpAuthSchemes;
|
|
48
|
+
},
|
|
49
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
50
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
51
|
+
},
|
|
52
|
+
httpAuthSchemeProvider() {
|
|
53
|
+
return _httpAuthSchemeProvider;
|
|
54
|
+
},
|
|
55
|
+
setCredentials(credentials) {
|
|
56
|
+
_credentials = credentials;
|
|
57
|
+
},
|
|
58
|
+
credentials() {
|
|
59
|
+
return _credentials;
|
|
60
|
+
},
|
|
61
|
+
};
|
|
231
62
|
};
|
|
232
|
-
|
|
233
|
-
// src/models/models_0.ts
|
|
234
|
-
var AccessDeniedException = class _AccessDeniedException extends S3VectorsServiceException {
|
|
235
|
-
static {
|
|
236
|
-
__name(this, "AccessDeniedException");
|
|
237
|
-
}
|
|
238
|
-
name = "AccessDeniedException";
|
|
239
|
-
$fault = "client";
|
|
240
|
-
/**
|
|
241
|
-
* @internal
|
|
242
|
-
*/
|
|
243
|
-
constructor(opts) {
|
|
244
|
-
super({
|
|
245
|
-
name: "AccessDeniedException",
|
|
246
|
-
$fault: "client",
|
|
247
|
-
...opts
|
|
248
|
-
});
|
|
249
|
-
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
var ConflictException = class _ConflictException extends S3VectorsServiceException {
|
|
253
|
-
static {
|
|
254
|
-
__name(this, "ConflictException");
|
|
255
|
-
}
|
|
256
|
-
name = "ConflictException";
|
|
257
|
-
$fault = "client";
|
|
258
|
-
/**
|
|
259
|
-
* @internal
|
|
260
|
-
*/
|
|
261
|
-
constructor(opts) {
|
|
262
|
-
super({
|
|
263
|
-
name: "ConflictException",
|
|
264
|
-
$fault: "client",
|
|
265
|
-
...opts
|
|
266
|
-
});
|
|
267
|
-
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
268
|
-
}
|
|
269
|
-
};
|
|
270
|
-
var DataType = {
|
|
271
|
-
FLOAT32: "float32"
|
|
272
|
-
};
|
|
273
|
-
var DistanceMetric = {
|
|
274
|
-
COSINE: "cosine",
|
|
275
|
-
EUCLIDEAN: "euclidean"
|
|
276
|
-
};
|
|
277
|
-
var InternalServerException = class _InternalServerException extends S3VectorsServiceException {
|
|
278
|
-
static {
|
|
279
|
-
__name(this, "InternalServerException");
|
|
280
|
-
}
|
|
281
|
-
name = "InternalServerException";
|
|
282
|
-
$fault = "server";
|
|
283
|
-
$retryable = {};
|
|
284
|
-
/**
|
|
285
|
-
* @internal
|
|
286
|
-
*/
|
|
287
|
-
constructor(opts) {
|
|
288
|
-
super({
|
|
289
|
-
name: "InternalServerException",
|
|
290
|
-
$fault: "server",
|
|
291
|
-
...opts
|
|
292
|
-
});
|
|
293
|
-
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
294
|
-
}
|
|
295
|
-
};
|
|
296
|
-
var NotFoundException = class _NotFoundException extends S3VectorsServiceException {
|
|
297
|
-
static {
|
|
298
|
-
__name(this, "NotFoundException");
|
|
299
|
-
}
|
|
300
|
-
name = "NotFoundException";
|
|
301
|
-
$fault = "client";
|
|
302
|
-
/**
|
|
303
|
-
* @internal
|
|
304
|
-
*/
|
|
305
|
-
constructor(opts) {
|
|
306
|
-
super({
|
|
307
|
-
name: "NotFoundException",
|
|
308
|
-
$fault: "client",
|
|
309
|
-
...opts
|
|
310
|
-
});
|
|
311
|
-
Object.setPrototypeOf(this, _NotFoundException.prototype);
|
|
312
|
-
}
|
|
313
|
-
};
|
|
314
|
-
var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends S3VectorsServiceException {
|
|
315
|
-
static {
|
|
316
|
-
__name(this, "ServiceQuotaExceededException");
|
|
317
|
-
}
|
|
318
|
-
name = "ServiceQuotaExceededException";
|
|
319
|
-
$fault = "client";
|
|
320
|
-
/**
|
|
321
|
-
* @internal
|
|
322
|
-
*/
|
|
323
|
-
constructor(opts) {
|
|
324
|
-
super({
|
|
325
|
-
name: "ServiceQuotaExceededException",
|
|
326
|
-
$fault: "client",
|
|
327
|
-
...opts
|
|
328
|
-
});
|
|
329
|
-
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
330
|
-
}
|
|
331
|
-
};
|
|
332
|
-
var ServiceUnavailableException = class _ServiceUnavailableException extends S3VectorsServiceException {
|
|
333
|
-
static {
|
|
334
|
-
__name(this, "ServiceUnavailableException");
|
|
335
|
-
}
|
|
336
|
-
name = "ServiceUnavailableException";
|
|
337
|
-
$fault = "server";
|
|
338
|
-
$retryable = {};
|
|
339
|
-
/**
|
|
340
|
-
* @internal
|
|
341
|
-
*/
|
|
342
|
-
constructor(opts) {
|
|
343
|
-
super({
|
|
344
|
-
name: "ServiceUnavailableException",
|
|
345
|
-
$fault: "server",
|
|
346
|
-
...opts
|
|
347
|
-
});
|
|
348
|
-
Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
|
-
var TooManyRequestsException = class _TooManyRequestsException extends S3VectorsServiceException {
|
|
352
|
-
static {
|
|
353
|
-
__name(this, "TooManyRequestsException");
|
|
354
|
-
}
|
|
355
|
-
name = "TooManyRequestsException";
|
|
356
|
-
$fault = "client";
|
|
357
|
-
$retryable = {
|
|
358
|
-
throttling: true
|
|
359
|
-
};
|
|
360
|
-
/**
|
|
361
|
-
* @internal
|
|
362
|
-
*/
|
|
363
|
-
constructor(opts) {
|
|
364
|
-
super({
|
|
365
|
-
name: "TooManyRequestsException",
|
|
366
|
-
$fault: "client",
|
|
367
|
-
...opts
|
|
368
|
-
});
|
|
369
|
-
Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
|
|
370
|
-
}
|
|
371
|
-
};
|
|
372
|
-
var ValidationException = class _ValidationException extends S3VectorsServiceException {
|
|
373
|
-
static {
|
|
374
|
-
__name(this, "ValidationException");
|
|
375
|
-
}
|
|
376
|
-
name = "ValidationException";
|
|
377
|
-
$fault = "client";
|
|
378
|
-
/**
|
|
379
|
-
* <p>A list of specific validation failures that are encountered during input processing. Each entry in the list contains a path to the field that failed validation and a detailed message that explains why the validation failed. To satisfy multiple constraints, a field can appear multiple times in this list if it failed. You can use the information to identify and fix the specific validation issues in your request.</p>
|
|
380
|
-
* @public
|
|
381
|
-
*/
|
|
382
|
-
fieldList;
|
|
383
|
-
/**
|
|
384
|
-
* @internal
|
|
385
|
-
*/
|
|
386
|
-
constructor(opts) {
|
|
387
|
-
super({
|
|
388
|
-
name: "ValidationException",
|
|
389
|
-
$fault: "client",
|
|
390
|
-
...opts
|
|
391
|
-
});
|
|
392
|
-
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
393
|
-
this.fieldList = opts.fieldList;
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
var SseType = {
|
|
397
|
-
AES256: "AES256",
|
|
398
|
-
AWS_KMS: "aws:kms"
|
|
399
|
-
};
|
|
400
|
-
var KmsDisabledException = class _KmsDisabledException extends S3VectorsServiceException {
|
|
401
|
-
static {
|
|
402
|
-
__name(this, "KmsDisabledException");
|
|
403
|
-
}
|
|
404
|
-
name = "KmsDisabledException";
|
|
405
|
-
$fault = "client";
|
|
406
|
-
/**
|
|
407
|
-
* @internal
|
|
408
|
-
*/
|
|
409
|
-
constructor(opts) {
|
|
410
|
-
super({
|
|
411
|
-
name: "KmsDisabledException",
|
|
412
|
-
$fault: "client",
|
|
413
|
-
...opts
|
|
414
|
-
});
|
|
415
|
-
Object.setPrototypeOf(this, _KmsDisabledException.prototype);
|
|
416
|
-
}
|
|
417
|
-
};
|
|
418
|
-
var KmsInvalidKeyUsageException = class _KmsInvalidKeyUsageException extends S3VectorsServiceException {
|
|
419
|
-
static {
|
|
420
|
-
__name(this, "KmsInvalidKeyUsageException");
|
|
421
|
-
}
|
|
422
|
-
name = "KmsInvalidKeyUsageException";
|
|
423
|
-
$fault = "client";
|
|
424
|
-
/**
|
|
425
|
-
* @internal
|
|
426
|
-
*/
|
|
427
|
-
constructor(opts) {
|
|
428
|
-
super({
|
|
429
|
-
name: "KmsInvalidKeyUsageException",
|
|
430
|
-
$fault: "client",
|
|
431
|
-
...opts
|
|
432
|
-
});
|
|
433
|
-
Object.setPrototypeOf(this, _KmsInvalidKeyUsageException.prototype);
|
|
434
|
-
}
|
|
435
|
-
};
|
|
436
|
-
var KmsInvalidStateException = class _KmsInvalidStateException extends S3VectorsServiceException {
|
|
437
|
-
static {
|
|
438
|
-
__name(this, "KmsInvalidStateException");
|
|
439
|
-
}
|
|
440
|
-
name = "KmsInvalidStateException";
|
|
441
|
-
$fault = "client";
|
|
442
|
-
/**
|
|
443
|
-
* @internal
|
|
444
|
-
*/
|
|
445
|
-
constructor(opts) {
|
|
446
|
-
super({
|
|
447
|
-
name: "KmsInvalidStateException",
|
|
448
|
-
$fault: "client",
|
|
449
|
-
...opts
|
|
450
|
-
});
|
|
451
|
-
Object.setPrototypeOf(this, _KmsInvalidStateException.prototype);
|
|
452
|
-
}
|
|
453
|
-
};
|
|
454
|
-
var KmsNotFoundException = class _KmsNotFoundException extends S3VectorsServiceException {
|
|
455
|
-
static {
|
|
456
|
-
__name(this, "KmsNotFoundException");
|
|
457
|
-
}
|
|
458
|
-
name = "KmsNotFoundException";
|
|
459
|
-
$fault = "client";
|
|
460
|
-
/**
|
|
461
|
-
* @internal
|
|
462
|
-
*/
|
|
463
|
-
constructor(opts) {
|
|
464
|
-
super({
|
|
465
|
-
name: "KmsNotFoundException",
|
|
466
|
-
$fault: "client",
|
|
467
|
-
...opts
|
|
468
|
-
});
|
|
469
|
-
Object.setPrototypeOf(this, _KmsNotFoundException.prototype);
|
|
470
|
-
}
|
|
471
|
-
};
|
|
472
|
-
var VectorData;
|
|
473
|
-
((VectorData2) => {
|
|
474
|
-
VectorData2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
475
|
-
if (value.float32 !== void 0) return visitor.float32(value.float32);
|
|
476
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
477
|
-
}, "visit");
|
|
478
|
-
})(VectorData || (VectorData = {}));
|
|
479
|
-
|
|
480
|
-
// src/protocols/Aws_restJson1.ts
|
|
481
|
-
var se_CreateIndexCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
482
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
483
|
-
const headers = {
|
|
484
|
-
"content-type": "application/json"
|
|
485
|
-
};
|
|
486
|
-
b.bp("/CreateIndex");
|
|
487
|
-
let body;
|
|
488
|
-
body = JSON.stringify(
|
|
489
|
-
(0, import_smithy_client.take)(input, {
|
|
490
|
-
dataType: [],
|
|
491
|
-
dimension: [],
|
|
492
|
-
distanceMetric: [],
|
|
493
|
-
indexName: [],
|
|
494
|
-
metadataConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "metadataConfiguration"),
|
|
495
|
-
vectorBucketArn: [],
|
|
496
|
-
vectorBucketName: []
|
|
497
|
-
})
|
|
498
|
-
);
|
|
499
|
-
b.m("POST").h(headers).b(body);
|
|
500
|
-
return b.build();
|
|
501
|
-
}, "se_CreateIndexCommand");
|
|
502
|
-
var se_CreateVectorBucketCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
503
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
504
|
-
const headers = {
|
|
505
|
-
"content-type": "application/json"
|
|
506
|
-
};
|
|
507
|
-
b.bp("/CreateVectorBucket");
|
|
508
|
-
let body;
|
|
509
|
-
body = JSON.stringify(
|
|
510
|
-
(0, import_smithy_client.take)(input, {
|
|
511
|
-
encryptionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "encryptionConfiguration"),
|
|
512
|
-
vectorBucketName: []
|
|
513
|
-
})
|
|
514
|
-
);
|
|
515
|
-
b.m("POST").h(headers).b(body);
|
|
516
|
-
return b.build();
|
|
517
|
-
}, "se_CreateVectorBucketCommand");
|
|
518
|
-
var se_DeleteIndexCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
519
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
520
|
-
const headers = {
|
|
521
|
-
"content-type": "application/json"
|
|
522
|
-
};
|
|
523
|
-
b.bp("/DeleteIndex");
|
|
524
|
-
let body;
|
|
525
|
-
body = JSON.stringify(
|
|
526
|
-
(0, import_smithy_client.take)(input, {
|
|
527
|
-
indexArn: [],
|
|
528
|
-
indexName: [],
|
|
529
|
-
vectorBucketName: []
|
|
530
|
-
})
|
|
531
|
-
);
|
|
532
|
-
b.m("POST").h(headers).b(body);
|
|
533
|
-
return b.build();
|
|
534
|
-
}, "se_DeleteIndexCommand");
|
|
535
|
-
var se_DeleteVectorBucketCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
536
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
537
|
-
const headers = {
|
|
538
|
-
"content-type": "application/json"
|
|
539
|
-
};
|
|
540
|
-
b.bp("/DeleteVectorBucket");
|
|
541
|
-
let body;
|
|
542
|
-
body = JSON.stringify(
|
|
543
|
-
(0, import_smithy_client.take)(input, {
|
|
544
|
-
vectorBucketArn: [],
|
|
545
|
-
vectorBucketName: []
|
|
546
|
-
})
|
|
547
|
-
);
|
|
548
|
-
b.m("POST").h(headers).b(body);
|
|
549
|
-
return b.build();
|
|
550
|
-
}, "se_DeleteVectorBucketCommand");
|
|
551
|
-
var se_DeleteVectorBucketPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
552
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
553
|
-
const headers = {
|
|
554
|
-
"content-type": "application/json"
|
|
555
|
-
};
|
|
556
|
-
b.bp("/DeleteVectorBucketPolicy");
|
|
557
|
-
let body;
|
|
558
|
-
body = JSON.stringify(
|
|
559
|
-
(0, import_smithy_client.take)(input, {
|
|
560
|
-
vectorBucketArn: [],
|
|
561
|
-
vectorBucketName: []
|
|
562
|
-
})
|
|
563
|
-
);
|
|
564
|
-
b.m("POST").h(headers).b(body);
|
|
565
|
-
return b.build();
|
|
566
|
-
}, "se_DeleteVectorBucketPolicyCommand");
|
|
567
|
-
var se_DeleteVectorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
568
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
569
|
-
const headers = {
|
|
570
|
-
"content-type": "application/json"
|
|
571
|
-
};
|
|
572
|
-
b.bp("/DeleteVectors");
|
|
573
|
-
let body;
|
|
574
|
-
body = JSON.stringify(
|
|
575
|
-
(0, import_smithy_client.take)(input, {
|
|
576
|
-
indexArn: [],
|
|
577
|
-
indexName: [],
|
|
578
|
-
keys: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "keys"),
|
|
579
|
-
vectorBucketName: []
|
|
580
|
-
})
|
|
581
|
-
);
|
|
582
|
-
b.m("POST").h(headers).b(body);
|
|
583
|
-
return b.build();
|
|
584
|
-
}, "se_DeleteVectorsCommand");
|
|
585
|
-
var se_GetIndexCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
586
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
587
|
-
const headers = {
|
|
588
|
-
"content-type": "application/json"
|
|
589
|
-
};
|
|
590
|
-
b.bp("/GetIndex");
|
|
591
|
-
let body;
|
|
592
|
-
body = JSON.stringify(
|
|
593
|
-
(0, import_smithy_client.take)(input, {
|
|
594
|
-
indexArn: [],
|
|
595
|
-
indexName: [],
|
|
596
|
-
vectorBucketName: []
|
|
597
|
-
})
|
|
598
|
-
);
|
|
599
|
-
b.m("POST").h(headers).b(body);
|
|
600
|
-
return b.build();
|
|
601
|
-
}, "se_GetIndexCommand");
|
|
602
|
-
var se_GetVectorBucketCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
603
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
604
|
-
const headers = {
|
|
605
|
-
"content-type": "application/json"
|
|
606
|
-
};
|
|
607
|
-
b.bp("/GetVectorBucket");
|
|
608
|
-
let body;
|
|
609
|
-
body = JSON.stringify(
|
|
610
|
-
(0, import_smithy_client.take)(input, {
|
|
611
|
-
vectorBucketArn: [],
|
|
612
|
-
vectorBucketName: []
|
|
613
|
-
})
|
|
614
|
-
);
|
|
615
|
-
b.m("POST").h(headers).b(body);
|
|
616
|
-
return b.build();
|
|
617
|
-
}, "se_GetVectorBucketCommand");
|
|
618
|
-
var se_GetVectorBucketPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
619
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
620
|
-
const headers = {
|
|
621
|
-
"content-type": "application/json"
|
|
622
|
-
};
|
|
623
|
-
b.bp("/GetVectorBucketPolicy");
|
|
624
|
-
let body;
|
|
625
|
-
body = JSON.stringify(
|
|
626
|
-
(0, import_smithy_client.take)(input, {
|
|
627
|
-
vectorBucketArn: [],
|
|
628
|
-
vectorBucketName: []
|
|
629
|
-
})
|
|
630
|
-
);
|
|
631
|
-
b.m("POST").h(headers).b(body);
|
|
632
|
-
return b.build();
|
|
633
|
-
}, "se_GetVectorBucketPolicyCommand");
|
|
634
|
-
var se_GetVectorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
635
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
636
|
-
const headers = {
|
|
637
|
-
"content-type": "application/json"
|
|
638
|
-
};
|
|
639
|
-
b.bp("/GetVectors");
|
|
640
|
-
let body;
|
|
641
|
-
body = JSON.stringify(
|
|
642
|
-
(0, import_smithy_client.take)(input, {
|
|
643
|
-
indexArn: [],
|
|
644
|
-
indexName: [],
|
|
645
|
-
keys: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "keys"),
|
|
646
|
-
returnData: [],
|
|
647
|
-
returnMetadata: [],
|
|
648
|
-
vectorBucketName: []
|
|
649
|
-
})
|
|
650
|
-
);
|
|
651
|
-
b.m("POST").h(headers).b(body);
|
|
652
|
-
return b.build();
|
|
653
|
-
}, "se_GetVectorsCommand");
|
|
654
|
-
var se_ListIndexesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
655
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
656
|
-
const headers = {
|
|
657
|
-
"content-type": "application/json"
|
|
658
|
-
};
|
|
659
|
-
b.bp("/ListIndexes");
|
|
660
|
-
let body;
|
|
661
|
-
body = JSON.stringify(
|
|
662
|
-
(0, import_smithy_client.take)(input, {
|
|
663
|
-
maxResults: [],
|
|
664
|
-
nextToken: [],
|
|
665
|
-
prefix: [],
|
|
666
|
-
vectorBucketArn: [],
|
|
667
|
-
vectorBucketName: []
|
|
668
|
-
})
|
|
669
|
-
);
|
|
670
|
-
b.m("POST").h(headers).b(body);
|
|
671
|
-
return b.build();
|
|
672
|
-
}, "se_ListIndexesCommand");
|
|
673
|
-
var se_ListVectorBucketsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
674
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
675
|
-
const headers = {
|
|
676
|
-
"content-type": "application/json"
|
|
677
|
-
};
|
|
678
|
-
b.bp("/ListVectorBuckets");
|
|
679
|
-
let body;
|
|
680
|
-
body = JSON.stringify(
|
|
681
|
-
(0, import_smithy_client.take)(input, {
|
|
682
|
-
maxResults: [],
|
|
683
|
-
nextToken: [],
|
|
684
|
-
prefix: []
|
|
685
|
-
})
|
|
686
|
-
);
|
|
687
|
-
b.m("POST").h(headers).b(body);
|
|
688
|
-
return b.build();
|
|
689
|
-
}, "se_ListVectorBucketsCommand");
|
|
690
|
-
var se_ListVectorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
691
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
692
|
-
const headers = {
|
|
693
|
-
"content-type": "application/json"
|
|
694
|
-
};
|
|
695
|
-
b.bp("/ListVectors");
|
|
696
|
-
let body;
|
|
697
|
-
body = JSON.stringify(
|
|
698
|
-
(0, import_smithy_client.take)(input, {
|
|
699
|
-
indexArn: [],
|
|
700
|
-
indexName: [],
|
|
701
|
-
maxResults: [],
|
|
702
|
-
nextToken: [],
|
|
703
|
-
returnData: [],
|
|
704
|
-
returnMetadata: [],
|
|
705
|
-
segmentCount: [],
|
|
706
|
-
segmentIndex: [],
|
|
707
|
-
vectorBucketName: []
|
|
708
|
-
})
|
|
709
|
-
);
|
|
710
|
-
b.m("POST").h(headers).b(body);
|
|
711
|
-
return b.build();
|
|
712
|
-
}, "se_ListVectorsCommand");
|
|
713
|
-
var se_PutVectorBucketPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
714
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
715
|
-
const headers = {
|
|
716
|
-
"content-type": "application/json"
|
|
717
|
-
};
|
|
718
|
-
b.bp("/PutVectorBucketPolicy");
|
|
719
|
-
let body;
|
|
720
|
-
body = JSON.stringify(
|
|
721
|
-
(0, import_smithy_client.take)(input, {
|
|
722
|
-
policy: [],
|
|
723
|
-
vectorBucketArn: [],
|
|
724
|
-
vectorBucketName: []
|
|
725
|
-
})
|
|
726
|
-
);
|
|
727
|
-
b.m("POST").h(headers).b(body);
|
|
728
|
-
return b.build();
|
|
729
|
-
}, "se_PutVectorBucketPolicyCommand");
|
|
730
|
-
var se_PutVectorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
731
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
732
|
-
const headers = {
|
|
733
|
-
"content-type": "application/json"
|
|
734
|
-
};
|
|
735
|
-
b.bp("/PutVectors");
|
|
736
|
-
let body;
|
|
737
|
-
body = JSON.stringify(
|
|
738
|
-
(0, import_smithy_client.take)(input, {
|
|
739
|
-
indexArn: [],
|
|
740
|
-
indexName: [],
|
|
741
|
-
vectorBucketName: [],
|
|
742
|
-
vectors: /* @__PURE__ */ __name((_) => se_PutVectorsInputList(_, context), "vectors")
|
|
743
|
-
})
|
|
744
|
-
);
|
|
745
|
-
b.m("POST").h(headers).b(body);
|
|
746
|
-
return b.build();
|
|
747
|
-
}, "se_PutVectorsCommand");
|
|
748
|
-
var se_QueryVectorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
749
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
750
|
-
const headers = {
|
|
751
|
-
"content-type": "application/json"
|
|
752
|
-
};
|
|
753
|
-
b.bp("/QueryVectors");
|
|
754
|
-
let body;
|
|
755
|
-
body = JSON.stringify(
|
|
756
|
-
(0, import_smithy_client.take)(input, {
|
|
757
|
-
filter: /* @__PURE__ */ __name((_) => se_Document(_, context), "filter"),
|
|
758
|
-
indexArn: [],
|
|
759
|
-
indexName: [],
|
|
760
|
-
queryVector: /* @__PURE__ */ __name((_) => se_VectorData(_, context), "queryVector"),
|
|
761
|
-
returnDistance: [],
|
|
762
|
-
returnMetadata: [],
|
|
763
|
-
topK: [],
|
|
764
|
-
vectorBucketName: []
|
|
765
|
-
})
|
|
766
|
-
);
|
|
767
|
-
b.m("POST").h(headers).b(body);
|
|
768
|
-
return b.build();
|
|
769
|
-
}, "se_QueryVectorsCommand");
|
|
770
|
-
var de_CreateIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
771
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
772
|
-
return de_CommandError(output, context);
|
|
773
|
-
}
|
|
774
|
-
const contents = (0, import_smithy_client.map)({
|
|
775
|
-
$metadata: deserializeMetadata(output)
|
|
776
|
-
});
|
|
777
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
778
|
-
return contents;
|
|
779
|
-
}, "de_CreateIndexCommand");
|
|
780
|
-
var de_CreateVectorBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
781
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
782
|
-
return de_CommandError(output, context);
|
|
783
|
-
}
|
|
784
|
-
const contents = (0, import_smithy_client.map)({
|
|
785
|
-
$metadata: deserializeMetadata(output)
|
|
786
|
-
});
|
|
787
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
788
|
-
return contents;
|
|
789
|
-
}, "de_CreateVectorBucketCommand");
|
|
790
|
-
var de_DeleteIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
791
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
792
|
-
return de_CommandError(output, context);
|
|
793
|
-
}
|
|
794
|
-
const contents = (0, import_smithy_client.map)({
|
|
795
|
-
$metadata: deserializeMetadata(output)
|
|
796
|
-
});
|
|
797
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
798
|
-
return contents;
|
|
799
|
-
}, "de_DeleteIndexCommand");
|
|
800
|
-
var de_DeleteVectorBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
801
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
802
|
-
return de_CommandError(output, context);
|
|
803
|
-
}
|
|
804
|
-
const contents = (0, import_smithy_client.map)({
|
|
805
|
-
$metadata: deserializeMetadata(output)
|
|
806
|
-
});
|
|
807
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
808
|
-
return contents;
|
|
809
|
-
}, "de_DeleteVectorBucketCommand");
|
|
810
|
-
var de_DeleteVectorBucketPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
811
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
812
|
-
return de_CommandError(output, context);
|
|
813
|
-
}
|
|
814
|
-
const contents = (0, import_smithy_client.map)({
|
|
815
|
-
$metadata: deserializeMetadata(output)
|
|
816
|
-
});
|
|
817
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
818
|
-
return contents;
|
|
819
|
-
}, "de_DeleteVectorBucketPolicyCommand");
|
|
820
|
-
var de_DeleteVectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
821
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
822
|
-
return de_CommandError(output, context);
|
|
823
|
-
}
|
|
824
|
-
const contents = (0, import_smithy_client.map)({
|
|
825
|
-
$metadata: deserializeMetadata(output)
|
|
826
|
-
});
|
|
827
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
828
|
-
return contents;
|
|
829
|
-
}, "de_DeleteVectorsCommand");
|
|
830
|
-
var de_GetIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
831
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
832
|
-
return de_CommandError(output, context);
|
|
833
|
-
}
|
|
834
|
-
const contents = (0, import_smithy_client.map)({
|
|
835
|
-
$metadata: deserializeMetadata(output)
|
|
836
|
-
});
|
|
837
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
838
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
839
|
-
index: /* @__PURE__ */ __name((_) => de_Index(_, context), "index")
|
|
840
|
-
});
|
|
841
|
-
Object.assign(contents, doc);
|
|
842
|
-
return contents;
|
|
843
|
-
}, "de_GetIndexCommand");
|
|
844
|
-
var de_GetVectorBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
845
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
846
|
-
return de_CommandError(output, context);
|
|
847
|
-
}
|
|
848
|
-
const contents = (0, import_smithy_client.map)({
|
|
849
|
-
$metadata: deserializeMetadata(output)
|
|
850
|
-
});
|
|
851
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
852
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
853
|
-
vectorBucket: /* @__PURE__ */ __name((_) => de_VectorBucket(_, context), "vectorBucket")
|
|
854
|
-
});
|
|
855
|
-
Object.assign(contents, doc);
|
|
856
|
-
return contents;
|
|
857
|
-
}, "de_GetVectorBucketCommand");
|
|
858
|
-
var de_GetVectorBucketPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
859
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
860
|
-
return de_CommandError(output, context);
|
|
861
|
-
}
|
|
862
|
-
const contents = (0, import_smithy_client.map)({
|
|
863
|
-
$metadata: deserializeMetadata(output)
|
|
864
|
-
});
|
|
865
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
866
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
867
|
-
policy: import_smithy_client.expectString
|
|
868
|
-
});
|
|
869
|
-
Object.assign(contents, doc);
|
|
870
|
-
return contents;
|
|
871
|
-
}, "de_GetVectorBucketPolicyCommand");
|
|
872
|
-
var de_GetVectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
873
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
874
|
-
return de_CommandError(output, context);
|
|
875
|
-
}
|
|
876
|
-
const contents = (0, import_smithy_client.map)({
|
|
877
|
-
$metadata: deserializeMetadata(output)
|
|
878
|
-
});
|
|
879
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
880
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
881
|
-
vectors: /* @__PURE__ */ __name((_) => de_GetVectorsOutputList(_, context), "vectors")
|
|
882
|
-
});
|
|
883
|
-
Object.assign(contents, doc);
|
|
884
|
-
return contents;
|
|
885
|
-
}, "de_GetVectorsCommand");
|
|
886
|
-
var de_ListIndexesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
887
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
888
|
-
return de_CommandError(output, context);
|
|
889
|
-
}
|
|
890
|
-
const contents = (0, import_smithy_client.map)({
|
|
891
|
-
$metadata: deserializeMetadata(output)
|
|
892
|
-
});
|
|
893
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
894
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
895
|
-
indexes: /* @__PURE__ */ __name((_) => de_ListIndexesOutputList(_, context), "indexes"),
|
|
896
|
-
nextToken: import_smithy_client.expectString
|
|
897
|
-
});
|
|
898
|
-
Object.assign(contents, doc);
|
|
899
|
-
return contents;
|
|
900
|
-
}, "de_ListIndexesCommand");
|
|
901
|
-
var de_ListVectorBucketsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
902
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
903
|
-
return de_CommandError(output, context);
|
|
904
|
-
}
|
|
905
|
-
const contents = (0, import_smithy_client.map)({
|
|
906
|
-
$metadata: deserializeMetadata(output)
|
|
907
|
-
});
|
|
908
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
909
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
910
|
-
nextToken: import_smithy_client.expectString,
|
|
911
|
-
vectorBuckets: /* @__PURE__ */ __name((_) => de_ListVectorBucketsOutputList(_, context), "vectorBuckets")
|
|
912
|
-
});
|
|
913
|
-
Object.assign(contents, doc);
|
|
914
|
-
return contents;
|
|
915
|
-
}, "de_ListVectorBucketsCommand");
|
|
916
|
-
var de_ListVectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
917
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
918
|
-
return de_CommandError(output, context);
|
|
919
|
-
}
|
|
920
|
-
const contents = (0, import_smithy_client.map)({
|
|
921
|
-
$metadata: deserializeMetadata(output)
|
|
922
|
-
});
|
|
923
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
924
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
925
|
-
nextToken: import_smithy_client.expectString,
|
|
926
|
-
vectors: /* @__PURE__ */ __name((_) => de_ListVectorsOutputList(_, context), "vectors")
|
|
927
|
-
});
|
|
928
|
-
Object.assign(contents, doc);
|
|
929
|
-
return contents;
|
|
930
|
-
}, "de_ListVectorsCommand");
|
|
931
|
-
var de_PutVectorBucketPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
932
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
933
|
-
return de_CommandError(output, context);
|
|
934
|
-
}
|
|
935
|
-
const contents = (0, import_smithy_client.map)({
|
|
936
|
-
$metadata: deserializeMetadata(output)
|
|
937
|
-
});
|
|
938
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
939
|
-
return contents;
|
|
940
|
-
}, "de_PutVectorBucketPolicyCommand");
|
|
941
|
-
var de_PutVectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
942
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
943
|
-
return de_CommandError(output, context);
|
|
944
|
-
}
|
|
945
|
-
const contents = (0, import_smithy_client.map)({
|
|
946
|
-
$metadata: deserializeMetadata(output)
|
|
947
|
-
});
|
|
948
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
949
|
-
return contents;
|
|
950
|
-
}, "de_PutVectorsCommand");
|
|
951
|
-
var de_QueryVectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
952
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
953
|
-
return de_CommandError(output, context);
|
|
954
|
-
}
|
|
955
|
-
const contents = (0, import_smithy_client.map)({
|
|
956
|
-
$metadata: deserializeMetadata(output)
|
|
957
|
-
});
|
|
958
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
959
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
960
|
-
vectors: /* @__PURE__ */ __name((_) => de_QueryVectorsOutputList(_, context), "vectors")
|
|
961
|
-
});
|
|
962
|
-
Object.assign(contents, doc);
|
|
963
|
-
return contents;
|
|
964
|
-
}, "de_QueryVectorsCommand");
|
|
965
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
966
|
-
const parsedOutput = {
|
|
967
|
-
...output,
|
|
968
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
969
|
-
};
|
|
970
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
971
|
-
switch (errorCode) {
|
|
972
|
-
case "AccessDeniedException":
|
|
973
|
-
case "com.amazonaws.s3vectors#AccessDeniedException":
|
|
974
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ConflictException":
|
|
976
|
-
case "com.amazonaws.s3vectors#ConflictException":
|
|
977
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
978
|
-
case "InternalServerException":
|
|
979
|
-
case "com.amazonaws.s3vectors#InternalServerException":
|
|
980
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
981
|
-
case "NotFoundException":
|
|
982
|
-
case "com.amazonaws.s3vectors#NotFoundException":
|
|
983
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
984
|
-
case "ServiceQuotaExceededException":
|
|
985
|
-
case "com.amazonaws.s3vectors#ServiceQuotaExceededException":
|
|
986
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
987
|
-
case "ServiceUnavailableException":
|
|
988
|
-
case "com.amazonaws.s3vectors#ServiceUnavailableException":
|
|
989
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
990
|
-
case "TooManyRequestsException":
|
|
991
|
-
case "com.amazonaws.s3vectors#TooManyRequestsException":
|
|
992
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
993
|
-
case "ValidationException":
|
|
994
|
-
case "com.amazonaws.s3vectors#ValidationException":
|
|
995
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
996
|
-
case "KmsDisabledException":
|
|
997
|
-
case "com.amazonaws.s3vectors#KmsDisabledException":
|
|
998
|
-
throw await de_KmsDisabledExceptionRes(parsedOutput, context);
|
|
999
|
-
case "KmsInvalidKeyUsageException":
|
|
1000
|
-
case "com.amazonaws.s3vectors#KmsInvalidKeyUsageException":
|
|
1001
|
-
throw await de_KmsInvalidKeyUsageExceptionRes(parsedOutput, context);
|
|
1002
|
-
case "KmsInvalidStateException":
|
|
1003
|
-
case "com.amazonaws.s3vectors#KmsInvalidStateException":
|
|
1004
|
-
throw await de_KmsInvalidStateExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "KmsNotFoundException":
|
|
1006
|
-
case "com.amazonaws.s3vectors#KmsNotFoundException":
|
|
1007
|
-
throw await de_KmsNotFoundExceptionRes(parsedOutput, context);
|
|
1008
|
-
default:
|
|
1009
|
-
const parsedBody = parsedOutput.body;
|
|
1010
|
-
return throwDefaultError({
|
|
1011
|
-
output,
|
|
1012
|
-
parsedBody,
|
|
1013
|
-
errorCode
|
|
1014
|
-
});
|
|
1015
|
-
}
|
|
1016
|
-
}, "de_CommandError");
|
|
1017
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(S3VectorsServiceException);
|
|
1018
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1019
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1020
|
-
const data = parsedOutput.body;
|
|
1021
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1022
|
-
message: import_smithy_client.expectString
|
|
1023
|
-
});
|
|
1024
|
-
Object.assign(contents, doc);
|
|
1025
|
-
const exception = new AccessDeniedException({
|
|
1026
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1027
|
-
...contents
|
|
1028
|
-
});
|
|
1029
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1030
|
-
}, "de_AccessDeniedExceptionRes");
|
|
1031
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1032
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1033
|
-
const data = parsedOutput.body;
|
|
1034
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1035
|
-
message: import_smithy_client.expectString
|
|
1036
|
-
});
|
|
1037
|
-
Object.assign(contents, doc);
|
|
1038
|
-
const exception = new ConflictException({
|
|
1039
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1040
|
-
...contents
|
|
1041
|
-
});
|
|
1042
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1043
|
-
}, "de_ConflictExceptionRes");
|
|
1044
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1045
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1046
|
-
const data = parsedOutput.body;
|
|
1047
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1048
|
-
message: import_smithy_client.expectString
|
|
1049
|
-
});
|
|
1050
|
-
Object.assign(contents, doc);
|
|
1051
|
-
const exception = new InternalServerException({
|
|
1052
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1053
|
-
...contents
|
|
1054
|
-
});
|
|
1055
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1056
|
-
}, "de_InternalServerExceptionRes");
|
|
1057
|
-
var de_KmsDisabledExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1058
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1059
|
-
const data = parsedOutput.body;
|
|
1060
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1061
|
-
message: import_smithy_client.expectString
|
|
1062
|
-
});
|
|
1063
|
-
Object.assign(contents, doc);
|
|
1064
|
-
const exception = new KmsDisabledException({
|
|
1065
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1066
|
-
...contents
|
|
1067
|
-
});
|
|
1068
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1069
|
-
}, "de_KmsDisabledExceptionRes");
|
|
1070
|
-
var de_KmsInvalidKeyUsageExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1071
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1072
|
-
const data = parsedOutput.body;
|
|
1073
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1074
|
-
message: import_smithy_client.expectString
|
|
1075
|
-
});
|
|
1076
|
-
Object.assign(contents, doc);
|
|
1077
|
-
const exception = new KmsInvalidKeyUsageException({
|
|
1078
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1079
|
-
...contents
|
|
1080
|
-
});
|
|
1081
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1082
|
-
}, "de_KmsInvalidKeyUsageExceptionRes");
|
|
1083
|
-
var de_KmsInvalidStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1084
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1085
|
-
const data = parsedOutput.body;
|
|
1086
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1087
|
-
message: import_smithy_client.expectString
|
|
1088
|
-
});
|
|
1089
|
-
Object.assign(contents, doc);
|
|
1090
|
-
const exception = new KmsInvalidStateException({
|
|
1091
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1092
|
-
...contents
|
|
1093
|
-
});
|
|
1094
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1095
|
-
}, "de_KmsInvalidStateExceptionRes");
|
|
1096
|
-
var de_KmsNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1097
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1098
|
-
const data = parsedOutput.body;
|
|
1099
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1100
|
-
message: import_smithy_client.expectString
|
|
1101
|
-
});
|
|
1102
|
-
Object.assign(contents, doc);
|
|
1103
|
-
const exception = new KmsNotFoundException({
|
|
1104
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1105
|
-
...contents
|
|
1106
|
-
});
|
|
1107
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1108
|
-
}, "de_KmsNotFoundExceptionRes");
|
|
1109
|
-
var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1110
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1111
|
-
const data = parsedOutput.body;
|
|
1112
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1113
|
-
message: import_smithy_client.expectString
|
|
1114
|
-
});
|
|
1115
|
-
Object.assign(contents, doc);
|
|
1116
|
-
const exception = new NotFoundException({
|
|
1117
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1118
|
-
...contents
|
|
1119
|
-
});
|
|
1120
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1121
|
-
}, "de_NotFoundExceptionRes");
|
|
1122
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1123
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1124
|
-
const data = parsedOutput.body;
|
|
1125
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1126
|
-
message: import_smithy_client.expectString
|
|
1127
|
-
});
|
|
1128
|
-
Object.assign(contents, doc);
|
|
1129
|
-
const exception = new ServiceQuotaExceededException({
|
|
1130
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1131
|
-
...contents
|
|
1132
|
-
});
|
|
1133
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1134
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1135
|
-
var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1136
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1137
|
-
const data = parsedOutput.body;
|
|
1138
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1139
|
-
message: import_smithy_client.expectString
|
|
1140
|
-
});
|
|
1141
|
-
Object.assign(contents, doc);
|
|
1142
|
-
const exception = new ServiceUnavailableException({
|
|
1143
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1144
|
-
...contents
|
|
1145
|
-
});
|
|
1146
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1147
|
-
}, "de_ServiceUnavailableExceptionRes");
|
|
1148
|
-
var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1149
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1150
|
-
const data = parsedOutput.body;
|
|
1151
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1152
|
-
message: import_smithy_client.expectString
|
|
1153
|
-
});
|
|
1154
|
-
Object.assign(contents, doc);
|
|
1155
|
-
const exception = new TooManyRequestsException({
|
|
1156
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1157
|
-
...contents
|
|
1158
|
-
});
|
|
1159
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1160
|
-
}, "de_TooManyRequestsExceptionRes");
|
|
1161
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1162
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1163
|
-
const data = parsedOutput.body;
|
|
1164
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1165
|
-
fieldList: import_smithy_client._json,
|
|
1166
|
-
message: import_smithy_client.expectString
|
|
1167
|
-
});
|
|
1168
|
-
Object.assign(contents, doc);
|
|
1169
|
-
const exception = new ValidationException({
|
|
1170
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1171
|
-
...contents
|
|
1172
|
-
});
|
|
1173
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1174
|
-
}, "de_ValidationExceptionRes");
|
|
1175
|
-
var se_Float32VectorData = /* @__PURE__ */ __name((input, context) => {
|
|
1176
|
-
return input.filter((e) => e != null).map((entry) => {
|
|
1177
|
-
return (0, import_smithy_client.serializeFloat)(entry);
|
|
1178
|
-
});
|
|
1179
|
-
}, "se_Float32VectorData");
|
|
1180
|
-
var se_PutInputVector = /* @__PURE__ */ __name((input, context) => {
|
|
1181
|
-
return (0, import_smithy_client.take)(input, {
|
|
1182
|
-
data: /* @__PURE__ */ __name((_) => se_VectorData(_, context), "data"),
|
|
1183
|
-
key: [],
|
|
1184
|
-
metadata: /* @__PURE__ */ __name((_) => se_VectorMetadata(_, context), "metadata")
|
|
1185
|
-
});
|
|
1186
|
-
}, "se_PutInputVector");
|
|
1187
|
-
var se_PutVectorsInputList = /* @__PURE__ */ __name((input, context) => {
|
|
1188
|
-
return input.filter((e) => e != null).map((entry) => {
|
|
1189
|
-
return se_PutInputVector(entry, context);
|
|
1190
|
-
});
|
|
1191
|
-
}, "se_PutVectorsInputList");
|
|
1192
|
-
var se_VectorData = /* @__PURE__ */ __name((input, context) => {
|
|
1193
|
-
return VectorData.visit(input, {
|
|
1194
|
-
float32: /* @__PURE__ */ __name((value) => ({ float32: se_Float32VectorData(value, context) }), "float32"),
|
|
1195
|
-
_: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
|
|
1196
|
-
});
|
|
1197
|
-
}, "se_VectorData");
|
|
1198
|
-
var se_VectorMetadata = /* @__PURE__ */ __name((input, context) => {
|
|
1199
|
-
return input;
|
|
1200
|
-
}, "se_VectorMetadata");
|
|
1201
|
-
var se_Document = /* @__PURE__ */ __name((input, context) => {
|
|
1202
|
-
return input;
|
|
1203
|
-
}, "se_Document");
|
|
1204
|
-
var de_Float32VectorData = /* @__PURE__ */ __name((output, context) => {
|
|
1205
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1206
|
-
return (0, import_smithy_client.limitedParseFloat32)(entry);
|
|
1207
|
-
});
|
|
1208
|
-
return retVal;
|
|
1209
|
-
}, "de_Float32VectorData");
|
|
1210
|
-
var de_GetOutputVector = /* @__PURE__ */ __name((output, context) => {
|
|
1211
|
-
return (0, import_smithy_client.take)(output, {
|
|
1212
|
-
data: /* @__PURE__ */ __name((_) => de_VectorData((0, import_core2.awsExpectUnion)(_), context), "data"),
|
|
1213
|
-
key: import_smithy_client.expectString,
|
|
1214
|
-
metadata: /* @__PURE__ */ __name((_) => de_VectorMetadata(_, context), "metadata")
|
|
1215
|
-
});
|
|
1216
|
-
}, "de_GetOutputVector");
|
|
1217
|
-
var de_GetVectorsOutputList = /* @__PURE__ */ __name((output, context) => {
|
|
1218
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1219
|
-
return de_GetOutputVector(entry, context);
|
|
1220
|
-
});
|
|
1221
|
-
return retVal;
|
|
1222
|
-
}, "de_GetVectorsOutputList");
|
|
1223
|
-
var de_Index = /* @__PURE__ */ __name((output, context) => {
|
|
1224
|
-
return (0, import_smithy_client.take)(output, {
|
|
1225
|
-
creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
|
|
1226
|
-
dataType: import_smithy_client.expectString,
|
|
1227
|
-
dimension: import_smithy_client.expectInt32,
|
|
1228
|
-
distanceMetric: import_smithy_client.expectString,
|
|
1229
|
-
indexArn: import_smithy_client.expectString,
|
|
1230
|
-
indexName: import_smithy_client.expectString,
|
|
1231
|
-
metadataConfiguration: import_smithy_client._json,
|
|
1232
|
-
vectorBucketName: import_smithy_client.expectString
|
|
1233
|
-
});
|
|
1234
|
-
}, "de_Index");
|
|
1235
|
-
var de_IndexSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1236
|
-
return (0, import_smithy_client.take)(output, {
|
|
1237
|
-
creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
|
|
1238
|
-
indexArn: import_smithy_client.expectString,
|
|
1239
|
-
indexName: import_smithy_client.expectString,
|
|
1240
|
-
vectorBucketName: import_smithy_client.expectString
|
|
1241
|
-
});
|
|
1242
|
-
}, "de_IndexSummary");
|
|
1243
|
-
var de_ListIndexesOutputList = /* @__PURE__ */ __name((output, context) => {
|
|
1244
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1245
|
-
return de_IndexSummary(entry, context);
|
|
1246
|
-
});
|
|
1247
|
-
return retVal;
|
|
1248
|
-
}, "de_ListIndexesOutputList");
|
|
1249
|
-
var de_ListOutputVector = /* @__PURE__ */ __name((output, context) => {
|
|
1250
|
-
return (0, import_smithy_client.take)(output, {
|
|
1251
|
-
data: /* @__PURE__ */ __name((_) => de_VectorData((0, import_core2.awsExpectUnion)(_), context), "data"),
|
|
1252
|
-
key: import_smithy_client.expectString,
|
|
1253
|
-
metadata: /* @__PURE__ */ __name((_) => de_VectorMetadata(_, context), "metadata")
|
|
1254
|
-
});
|
|
1255
|
-
}, "de_ListOutputVector");
|
|
1256
|
-
var de_ListVectorBucketsOutputList = /* @__PURE__ */ __name((output, context) => {
|
|
1257
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1258
|
-
return de_VectorBucketSummary(entry, context);
|
|
1259
|
-
});
|
|
1260
|
-
return retVal;
|
|
1261
|
-
}, "de_ListVectorBucketsOutputList");
|
|
1262
|
-
var de_ListVectorsOutputList = /* @__PURE__ */ __name((output, context) => {
|
|
1263
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1264
|
-
return de_ListOutputVector(entry, context);
|
|
1265
|
-
});
|
|
1266
|
-
return retVal;
|
|
1267
|
-
}, "de_ListVectorsOutputList");
|
|
1268
|
-
var de_QueryOutputVector = /* @__PURE__ */ __name((output, context) => {
|
|
1269
|
-
return (0, import_smithy_client.take)(output, {
|
|
1270
|
-
data: /* @__PURE__ */ __name((_) => de_VectorData((0, import_core2.awsExpectUnion)(_), context), "data"),
|
|
1271
|
-
distance: import_smithy_client.limitedParseFloat32,
|
|
1272
|
-
key: import_smithy_client.expectString,
|
|
1273
|
-
metadata: /* @__PURE__ */ __name((_) => de_VectorMetadata(_, context), "metadata")
|
|
1274
|
-
});
|
|
1275
|
-
}, "de_QueryOutputVector");
|
|
1276
|
-
var de_QueryVectorsOutputList = /* @__PURE__ */ __name((output, context) => {
|
|
1277
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1278
|
-
return de_QueryOutputVector(entry, context);
|
|
1279
|
-
});
|
|
1280
|
-
return retVal;
|
|
1281
|
-
}, "de_QueryVectorsOutputList");
|
|
1282
|
-
var de_VectorBucket = /* @__PURE__ */ __name((output, context) => {
|
|
1283
|
-
return (0, import_smithy_client.take)(output, {
|
|
1284
|
-
creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
|
|
1285
|
-
encryptionConfiguration: import_smithy_client._json,
|
|
1286
|
-
vectorBucketArn: import_smithy_client.expectString,
|
|
1287
|
-
vectorBucketName: import_smithy_client.expectString
|
|
1288
|
-
});
|
|
1289
|
-
}, "de_VectorBucket");
|
|
1290
|
-
var de_VectorBucketSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1291
|
-
return (0, import_smithy_client.take)(output, {
|
|
1292
|
-
creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
|
|
1293
|
-
vectorBucketArn: import_smithy_client.expectString,
|
|
1294
|
-
vectorBucketName: import_smithy_client.expectString
|
|
1295
|
-
});
|
|
1296
|
-
}, "de_VectorBucketSummary");
|
|
1297
|
-
var de_VectorData = /* @__PURE__ */ __name((output, context) => {
|
|
1298
|
-
if (output.float32 != null) {
|
|
63
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
1299
64
|
return {
|
|
1300
|
-
|
|
65
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
66
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
67
|
+
credentials: config.credentials(),
|
|
1301
68
|
};
|
|
1302
|
-
}
|
|
1303
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1304
|
-
}, "de_VectorData");
|
|
1305
|
-
var de_VectorMetadata = /* @__PURE__ */ __name((output, context) => {
|
|
1306
|
-
return output;
|
|
1307
|
-
}, "de_VectorMetadata");
|
|
1308
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1309
|
-
httpStatusCode: output.statusCode,
|
|
1310
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1311
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1312
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1313
|
-
}), "deserializeMetadata");
|
|
1314
|
-
|
|
1315
|
-
// src/commands/CreateIndexCommand.ts
|
|
1316
|
-
var CreateIndexCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1317
|
-
return [
|
|
1318
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1319
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1320
|
-
];
|
|
1321
|
-
}).s("S3Vectors", "CreateIndex", {}).n("S3VectorsClient", "CreateIndexCommand").f(void 0, void 0).ser(se_CreateIndexCommand).de(de_CreateIndexCommand).build() {
|
|
1322
|
-
static {
|
|
1323
|
-
__name(this, "CreateIndexCommand");
|
|
1324
|
-
}
|
|
1325
69
|
};
|
|
1326
70
|
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
var CreateVectorBucketCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1332
|
-
return [
|
|
1333
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1334
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1335
|
-
];
|
|
1336
|
-
}).s("S3Vectors", "CreateVectorBucket", {}).n("S3VectorsClient", "CreateVectorBucketCommand").f(void 0, void 0).ser(se_CreateVectorBucketCommand).de(de_CreateVectorBucketCommand).build() {
|
|
1337
|
-
static {
|
|
1338
|
-
__name(this, "CreateVectorBucketCommand");
|
|
1339
|
-
}
|
|
71
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
72
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
73
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
74
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
1340
75
|
};
|
|
1341
76
|
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
77
|
+
class S3VectorsClient extends smithyClient.Client {
|
|
78
|
+
config;
|
|
79
|
+
constructor(...[configuration]) {
|
|
80
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
81
|
+
super(_config_0);
|
|
82
|
+
this.initConfig = _config_0;
|
|
83
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
84
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
85
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
86
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
87
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
88
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
89
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
90
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
91
|
+
this.config = _config_8;
|
|
92
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
93
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
94
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
99
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultS3VectorsHttpAuthSchemeParametersProvider,
|
|
100
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
101
|
+
"aws.auth#sigv4": config.credentials,
|
|
102
|
+
}),
|
|
103
|
+
}));
|
|
104
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
105
|
+
}
|
|
106
|
+
destroy() {
|
|
107
|
+
super.destroy();
|
|
108
|
+
}
|
|
109
|
+
}
|
|
1345
110
|
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
111
|
+
class S3VectorsServiceException extends smithyClient.ServiceException {
|
|
112
|
+
constructor(options) {
|
|
113
|
+
super(options);
|
|
114
|
+
Object.setPrototypeOf(this, S3VectorsServiceException.prototype);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
class AccessDeniedException extends S3VectorsServiceException {
|
|
119
|
+
name = "AccessDeniedException";
|
|
120
|
+
$fault = "client";
|
|
121
|
+
constructor(opts) {
|
|
122
|
+
super({
|
|
123
|
+
name: "AccessDeniedException",
|
|
124
|
+
$fault: "client",
|
|
125
|
+
...opts,
|
|
126
|
+
});
|
|
127
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
class ConflictException extends S3VectorsServiceException {
|
|
131
|
+
name = "ConflictException";
|
|
132
|
+
$fault = "client";
|
|
133
|
+
constructor(opts) {
|
|
134
|
+
super({
|
|
135
|
+
name: "ConflictException",
|
|
136
|
+
$fault: "client",
|
|
137
|
+
...opts,
|
|
138
|
+
});
|
|
139
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
const DataType = {
|
|
143
|
+
FLOAT32: "float32",
|
|
1355
144
|
};
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
var DeleteVectorBucketCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1362
|
-
return [
|
|
1363
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1364
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1365
|
-
];
|
|
1366
|
-
}).s("S3Vectors", "DeleteVectorBucket", {}).n("S3VectorsClient", "DeleteVectorBucketCommand").f(void 0, void 0).ser(se_DeleteVectorBucketCommand).de(de_DeleteVectorBucketCommand).build() {
|
|
1367
|
-
static {
|
|
1368
|
-
__name(this, "DeleteVectorBucketCommand");
|
|
1369
|
-
}
|
|
145
|
+
const DistanceMetric = {
|
|
146
|
+
COSINE: "cosine",
|
|
147
|
+
EUCLIDEAN: "euclidean",
|
|
1370
148
|
};
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
149
|
+
class InternalServerException extends S3VectorsServiceException {
|
|
150
|
+
name = "InternalServerException";
|
|
151
|
+
$fault = "server";
|
|
152
|
+
$retryable = {};
|
|
153
|
+
constructor(opts) {
|
|
154
|
+
super({
|
|
155
|
+
name: "InternalServerException",
|
|
156
|
+
$fault: "server",
|
|
157
|
+
...opts,
|
|
158
|
+
});
|
|
159
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
class NotFoundException extends S3VectorsServiceException {
|
|
163
|
+
name = "NotFoundException";
|
|
164
|
+
$fault = "client";
|
|
165
|
+
constructor(opts) {
|
|
166
|
+
super({
|
|
167
|
+
name: "NotFoundException",
|
|
168
|
+
$fault: "client",
|
|
169
|
+
...opts,
|
|
170
|
+
});
|
|
171
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
class ServiceQuotaExceededException extends S3VectorsServiceException {
|
|
175
|
+
name = "ServiceQuotaExceededException";
|
|
176
|
+
$fault = "client";
|
|
177
|
+
constructor(opts) {
|
|
178
|
+
super({
|
|
179
|
+
name: "ServiceQuotaExceededException",
|
|
180
|
+
$fault: "client",
|
|
181
|
+
...opts,
|
|
182
|
+
});
|
|
183
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
class ServiceUnavailableException extends S3VectorsServiceException {
|
|
187
|
+
name = "ServiceUnavailableException";
|
|
188
|
+
$fault = "server";
|
|
189
|
+
$retryable = {};
|
|
190
|
+
constructor(opts) {
|
|
191
|
+
super({
|
|
192
|
+
name: "ServiceUnavailableException",
|
|
193
|
+
$fault: "server",
|
|
194
|
+
...opts,
|
|
195
|
+
});
|
|
196
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
class TooManyRequestsException extends S3VectorsServiceException {
|
|
200
|
+
name = "TooManyRequestsException";
|
|
201
|
+
$fault = "client";
|
|
202
|
+
$retryable = {
|
|
203
|
+
throttling: true,
|
|
204
|
+
};
|
|
205
|
+
constructor(opts) {
|
|
206
|
+
super({
|
|
207
|
+
name: "TooManyRequestsException",
|
|
208
|
+
$fault: "client",
|
|
209
|
+
...opts,
|
|
210
|
+
});
|
|
211
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
class ValidationException extends S3VectorsServiceException {
|
|
215
|
+
name = "ValidationException";
|
|
216
|
+
$fault = "client";
|
|
217
|
+
fieldList;
|
|
218
|
+
constructor(opts) {
|
|
219
|
+
super({
|
|
220
|
+
name: "ValidationException",
|
|
221
|
+
$fault: "client",
|
|
222
|
+
...opts,
|
|
223
|
+
});
|
|
224
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
225
|
+
this.fieldList = opts.fieldList;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
const SseType = {
|
|
229
|
+
AES256: "AES256",
|
|
230
|
+
AWS_KMS: "aws:kms",
|
|
1385
231
|
};
|
|
232
|
+
class KmsDisabledException extends S3VectorsServiceException {
|
|
233
|
+
name = "KmsDisabledException";
|
|
234
|
+
$fault = "client";
|
|
235
|
+
constructor(opts) {
|
|
236
|
+
super({
|
|
237
|
+
name: "KmsDisabledException",
|
|
238
|
+
$fault: "client",
|
|
239
|
+
...opts,
|
|
240
|
+
});
|
|
241
|
+
Object.setPrototypeOf(this, KmsDisabledException.prototype);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
class KmsInvalidKeyUsageException extends S3VectorsServiceException {
|
|
245
|
+
name = "KmsInvalidKeyUsageException";
|
|
246
|
+
$fault = "client";
|
|
247
|
+
constructor(opts) {
|
|
248
|
+
super({
|
|
249
|
+
name: "KmsInvalidKeyUsageException",
|
|
250
|
+
$fault: "client",
|
|
251
|
+
...opts,
|
|
252
|
+
});
|
|
253
|
+
Object.setPrototypeOf(this, KmsInvalidKeyUsageException.prototype);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
class KmsInvalidStateException extends S3VectorsServiceException {
|
|
257
|
+
name = "KmsInvalidStateException";
|
|
258
|
+
$fault = "client";
|
|
259
|
+
constructor(opts) {
|
|
260
|
+
super({
|
|
261
|
+
name: "KmsInvalidStateException",
|
|
262
|
+
$fault: "client",
|
|
263
|
+
...opts,
|
|
264
|
+
});
|
|
265
|
+
Object.setPrototypeOf(this, KmsInvalidStateException.prototype);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
class KmsNotFoundException extends S3VectorsServiceException {
|
|
269
|
+
name = "KmsNotFoundException";
|
|
270
|
+
$fault = "client";
|
|
271
|
+
constructor(opts) {
|
|
272
|
+
super({
|
|
273
|
+
name: "KmsNotFoundException",
|
|
274
|
+
$fault: "client",
|
|
275
|
+
...opts,
|
|
276
|
+
});
|
|
277
|
+
Object.setPrototypeOf(this, KmsNotFoundException.prototype);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
exports.VectorData = void 0;
|
|
281
|
+
(function (VectorData) {
|
|
282
|
+
VectorData.visit = (value, visitor) => {
|
|
283
|
+
if (value.float32 !== undefined)
|
|
284
|
+
return visitor.float32(value.float32);
|
|
285
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
286
|
+
};
|
|
287
|
+
})(exports.VectorData || (exports.VectorData = {}));
|
|
1386
288
|
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
289
|
+
const se_CreateIndexCommand = async (input, context) => {
|
|
290
|
+
const b = core.requestBuilder(input, context);
|
|
291
|
+
const headers = {
|
|
292
|
+
"content-type": "application/json",
|
|
293
|
+
};
|
|
294
|
+
b.bp("/CreateIndex");
|
|
295
|
+
let body;
|
|
296
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
297
|
+
dataType: [],
|
|
298
|
+
dimension: [],
|
|
299
|
+
distanceMetric: [],
|
|
300
|
+
indexName: [],
|
|
301
|
+
metadataConfiguration: (_) => smithyClient._json(_),
|
|
302
|
+
vectorBucketArn: [],
|
|
303
|
+
vectorBucketName: [],
|
|
304
|
+
}));
|
|
305
|
+
b.m("POST").h(headers).b(body);
|
|
306
|
+
return b.build();
|
|
1400
307
|
};
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
})
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
}
|
|
308
|
+
const se_CreateVectorBucketCommand = async (input, context) => {
|
|
309
|
+
const b = core.requestBuilder(input, context);
|
|
310
|
+
const headers = {
|
|
311
|
+
"content-type": "application/json",
|
|
312
|
+
};
|
|
313
|
+
b.bp("/CreateVectorBucket");
|
|
314
|
+
let body;
|
|
315
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
316
|
+
encryptionConfiguration: (_) => smithyClient._json(_),
|
|
317
|
+
vectorBucketName: [],
|
|
318
|
+
}));
|
|
319
|
+
b.m("POST").h(headers).b(body);
|
|
320
|
+
return b.build();
|
|
1415
321
|
};
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
322
|
+
const se_DeleteIndexCommand = async (input, context) => {
|
|
323
|
+
const b = core.requestBuilder(input, context);
|
|
324
|
+
const headers = {
|
|
325
|
+
"content-type": "application/json",
|
|
326
|
+
};
|
|
327
|
+
b.bp("/DeleteIndex");
|
|
328
|
+
let body;
|
|
329
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
330
|
+
indexArn: [],
|
|
331
|
+
indexName: [],
|
|
332
|
+
vectorBucketName: [],
|
|
333
|
+
}));
|
|
334
|
+
b.m("POST").h(headers).b(body);
|
|
335
|
+
return b.build();
|
|
1430
336
|
};
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
})
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
}
|
|
337
|
+
const se_DeleteVectorBucketCommand = async (input, context) => {
|
|
338
|
+
const b = core.requestBuilder(input, context);
|
|
339
|
+
const headers = {
|
|
340
|
+
"content-type": "application/json",
|
|
341
|
+
};
|
|
342
|
+
b.bp("/DeleteVectorBucket");
|
|
343
|
+
let body;
|
|
344
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
345
|
+
vectorBucketArn: [],
|
|
346
|
+
vectorBucketName: [],
|
|
347
|
+
}));
|
|
348
|
+
b.m("POST").h(headers).b(body);
|
|
349
|
+
return b.build();
|
|
1445
350
|
};
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
})
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
}
|
|
351
|
+
const se_DeleteVectorBucketPolicyCommand = async (input, context) => {
|
|
352
|
+
const b = core.requestBuilder(input, context);
|
|
353
|
+
const headers = {
|
|
354
|
+
"content-type": "application/json",
|
|
355
|
+
};
|
|
356
|
+
b.bp("/DeleteVectorBucketPolicy");
|
|
357
|
+
let body;
|
|
358
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
359
|
+
vectorBucketArn: [],
|
|
360
|
+
vectorBucketName: [],
|
|
361
|
+
}));
|
|
362
|
+
b.m("POST").h(headers).b(body);
|
|
363
|
+
return b.build();
|
|
1460
364
|
};
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
365
|
+
const se_DeleteVectorsCommand = async (input, context) => {
|
|
366
|
+
const b = core.requestBuilder(input, context);
|
|
367
|
+
const headers = {
|
|
368
|
+
"content-type": "application/json",
|
|
369
|
+
};
|
|
370
|
+
b.bp("/DeleteVectors");
|
|
371
|
+
let body;
|
|
372
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
373
|
+
indexArn: [],
|
|
374
|
+
indexName: [],
|
|
375
|
+
keys: (_) => smithyClient._json(_),
|
|
376
|
+
vectorBucketName: [],
|
|
377
|
+
}));
|
|
378
|
+
b.m("POST").h(headers).b(body);
|
|
379
|
+
return b.build();
|
|
1475
380
|
};
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
381
|
+
const se_GetIndexCommand = async (input, context) => {
|
|
382
|
+
const b = core.requestBuilder(input, context);
|
|
383
|
+
const headers = {
|
|
384
|
+
"content-type": "application/json",
|
|
385
|
+
};
|
|
386
|
+
b.bp("/GetIndex");
|
|
387
|
+
let body;
|
|
388
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
389
|
+
indexArn: [],
|
|
390
|
+
indexName: [],
|
|
391
|
+
vectorBucketName: [],
|
|
392
|
+
}));
|
|
393
|
+
b.m("POST").h(headers).b(body);
|
|
394
|
+
return b.build();
|
|
1490
395
|
};
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
})
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
}
|
|
396
|
+
const se_GetVectorBucketCommand = async (input, context) => {
|
|
397
|
+
const b = core.requestBuilder(input, context);
|
|
398
|
+
const headers = {
|
|
399
|
+
"content-type": "application/json",
|
|
400
|
+
};
|
|
401
|
+
b.bp("/GetVectorBucket");
|
|
402
|
+
let body;
|
|
403
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
404
|
+
vectorBucketArn: [],
|
|
405
|
+
vectorBucketName: [],
|
|
406
|
+
}));
|
|
407
|
+
b.m("POST").h(headers).b(body);
|
|
408
|
+
return b.build();
|
|
1505
409
|
};
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
})
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
}
|
|
410
|
+
const se_GetVectorBucketPolicyCommand = async (input, context) => {
|
|
411
|
+
const b = core.requestBuilder(input, context);
|
|
412
|
+
const headers = {
|
|
413
|
+
"content-type": "application/json",
|
|
414
|
+
};
|
|
415
|
+
b.bp("/GetVectorBucketPolicy");
|
|
416
|
+
let body;
|
|
417
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
418
|
+
vectorBucketArn: [],
|
|
419
|
+
vectorBucketName: [],
|
|
420
|
+
}));
|
|
421
|
+
b.m("POST").h(headers).b(body);
|
|
422
|
+
return b.build();
|
|
1520
423
|
};
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
424
|
+
const se_GetVectorsCommand = async (input, context) => {
|
|
425
|
+
const b = core.requestBuilder(input, context);
|
|
426
|
+
const headers = {
|
|
427
|
+
"content-type": "application/json",
|
|
428
|
+
};
|
|
429
|
+
b.bp("/GetVectors");
|
|
430
|
+
let body;
|
|
431
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
432
|
+
indexArn: [],
|
|
433
|
+
indexName: [],
|
|
434
|
+
keys: (_) => smithyClient._json(_),
|
|
435
|
+
returnData: [],
|
|
436
|
+
returnMetadata: [],
|
|
437
|
+
vectorBucketName: [],
|
|
438
|
+
}));
|
|
439
|
+
b.m("POST").h(headers).b(body);
|
|
440
|
+
return b.build();
|
|
1535
441
|
};
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
442
|
+
const se_ListIndexesCommand = async (input, context) => {
|
|
443
|
+
const b = core.requestBuilder(input, context);
|
|
444
|
+
const headers = {
|
|
445
|
+
"content-type": "application/json",
|
|
446
|
+
};
|
|
447
|
+
b.bp("/ListIndexes");
|
|
448
|
+
let body;
|
|
449
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
450
|
+
maxResults: [],
|
|
451
|
+
nextToken: [],
|
|
452
|
+
prefix: [],
|
|
453
|
+
vectorBucketArn: [],
|
|
454
|
+
vectorBucketName: [],
|
|
455
|
+
}));
|
|
456
|
+
b.m("POST").h(headers).b(body);
|
|
457
|
+
return b.build();
|
|
1550
458
|
};
|
|
459
|
+
const se_ListVectorBucketsCommand = async (input, context) => {
|
|
460
|
+
const b = core.requestBuilder(input, context);
|
|
461
|
+
const headers = {
|
|
462
|
+
"content-type": "application/json",
|
|
463
|
+
};
|
|
464
|
+
b.bp("/ListVectorBuckets");
|
|
465
|
+
let body;
|
|
466
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
467
|
+
maxResults: [],
|
|
468
|
+
nextToken: [],
|
|
469
|
+
prefix: [],
|
|
470
|
+
}));
|
|
471
|
+
b.m("POST").h(headers).b(body);
|
|
472
|
+
return b.build();
|
|
473
|
+
};
|
|
474
|
+
const se_ListVectorsCommand = async (input, context) => {
|
|
475
|
+
const b = core.requestBuilder(input, context);
|
|
476
|
+
const headers = {
|
|
477
|
+
"content-type": "application/json",
|
|
478
|
+
};
|
|
479
|
+
b.bp("/ListVectors");
|
|
480
|
+
let body;
|
|
481
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
482
|
+
indexArn: [],
|
|
483
|
+
indexName: [],
|
|
484
|
+
maxResults: [],
|
|
485
|
+
nextToken: [],
|
|
486
|
+
returnData: [],
|
|
487
|
+
returnMetadata: [],
|
|
488
|
+
segmentCount: [],
|
|
489
|
+
segmentIndex: [],
|
|
490
|
+
vectorBucketName: [],
|
|
491
|
+
}));
|
|
492
|
+
b.m("POST").h(headers).b(body);
|
|
493
|
+
return b.build();
|
|
494
|
+
};
|
|
495
|
+
const se_PutVectorBucketPolicyCommand = async (input, context) => {
|
|
496
|
+
const b = core.requestBuilder(input, context);
|
|
497
|
+
const headers = {
|
|
498
|
+
"content-type": "application/json",
|
|
499
|
+
};
|
|
500
|
+
b.bp("/PutVectorBucketPolicy");
|
|
501
|
+
let body;
|
|
502
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
503
|
+
policy: [],
|
|
504
|
+
vectorBucketArn: [],
|
|
505
|
+
vectorBucketName: [],
|
|
506
|
+
}));
|
|
507
|
+
b.m("POST").h(headers).b(body);
|
|
508
|
+
return b.build();
|
|
509
|
+
};
|
|
510
|
+
const se_PutVectorsCommand = async (input, context) => {
|
|
511
|
+
const b = core.requestBuilder(input, context);
|
|
512
|
+
const headers = {
|
|
513
|
+
"content-type": "application/json",
|
|
514
|
+
};
|
|
515
|
+
b.bp("/PutVectors");
|
|
516
|
+
let body;
|
|
517
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
518
|
+
indexArn: [],
|
|
519
|
+
indexName: [],
|
|
520
|
+
vectorBucketName: [],
|
|
521
|
+
vectors: (_) => se_PutVectorsInputList(_),
|
|
522
|
+
}));
|
|
523
|
+
b.m("POST").h(headers).b(body);
|
|
524
|
+
return b.build();
|
|
525
|
+
};
|
|
526
|
+
const se_QueryVectorsCommand = async (input, context) => {
|
|
527
|
+
const b = core.requestBuilder(input, context);
|
|
528
|
+
const headers = {
|
|
529
|
+
"content-type": "application/json",
|
|
530
|
+
};
|
|
531
|
+
b.bp("/QueryVectors");
|
|
532
|
+
let body;
|
|
533
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
534
|
+
filter: (_) => se_Document(_),
|
|
535
|
+
indexArn: [],
|
|
536
|
+
indexName: [],
|
|
537
|
+
queryVector: (_) => se_VectorData(_),
|
|
538
|
+
returnDistance: [],
|
|
539
|
+
returnMetadata: [],
|
|
540
|
+
topK: [],
|
|
541
|
+
vectorBucketName: [],
|
|
542
|
+
}));
|
|
543
|
+
b.m("POST").h(headers).b(body);
|
|
544
|
+
return b.build();
|
|
545
|
+
};
|
|
546
|
+
const de_CreateIndexCommand = async (output, context) => {
|
|
547
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
548
|
+
return de_CommandError(output, context);
|
|
549
|
+
}
|
|
550
|
+
const contents = smithyClient.map({
|
|
551
|
+
$metadata: deserializeMetadata(output),
|
|
552
|
+
});
|
|
553
|
+
await smithyClient.collectBody(output.body, context);
|
|
554
|
+
return contents;
|
|
555
|
+
};
|
|
556
|
+
const de_CreateVectorBucketCommand = async (output, context) => {
|
|
557
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
558
|
+
return de_CommandError(output, context);
|
|
559
|
+
}
|
|
560
|
+
const contents = smithyClient.map({
|
|
561
|
+
$metadata: deserializeMetadata(output),
|
|
562
|
+
});
|
|
563
|
+
await smithyClient.collectBody(output.body, context);
|
|
564
|
+
return contents;
|
|
565
|
+
};
|
|
566
|
+
const de_DeleteIndexCommand = async (output, context) => {
|
|
567
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
568
|
+
return de_CommandError(output, context);
|
|
569
|
+
}
|
|
570
|
+
const contents = smithyClient.map({
|
|
571
|
+
$metadata: deserializeMetadata(output),
|
|
572
|
+
});
|
|
573
|
+
await smithyClient.collectBody(output.body, context);
|
|
574
|
+
return contents;
|
|
575
|
+
};
|
|
576
|
+
const de_DeleteVectorBucketCommand = async (output, context) => {
|
|
577
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
578
|
+
return de_CommandError(output, context);
|
|
579
|
+
}
|
|
580
|
+
const contents = smithyClient.map({
|
|
581
|
+
$metadata: deserializeMetadata(output),
|
|
582
|
+
});
|
|
583
|
+
await smithyClient.collectBody(output.body, context);
|
|
584
|
+
return contents;
|
|
585
|
+
};
|
|
586
|
+
const de_DeleteVectorBucketPolicyCommand = async (output, context) => {
|
|
587
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
588
|
+
return de_CommandError(output, context);
|
|
589
|
+
}
|
|
590
|
+
const contents = smithyClient.map({
|
|
591
|
+
$metadata: deserializeMetadata(output),
|
|
592
|
+
});
|
|
593
|
+
await smithyClient.collectBody(output.body, context);
|
|
594
|
+
return contents;
|
|
595
|
+
};
|
|
596
|
+
const de_DeleteVectorsCommand = async (output, context) => {
|
|
597
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
598
|
+
return de_CommandError(output, context);
|
|
599
|
+
}
|
|
600
|
+
const contents = smithyClient.map({
|
|
601
|
+
$metadata: deserializeMetadata(output),
|
|
602
|
+
});
|
|
603
|
+
await smithyClient.collectBody(output.body, context);
|
|
604
|
+
return contents;
|
|
605
|
+
};
|
|
606
|
+
const de_GetIndexCommand = async (output, context) => {
|
|
607
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
608
|
+
return de_CommandError(output, context);
|
|
609
|
+
}
|
|
610
|
+
const contents = smithyClient.map({
|
|
611
|
+
$metadata: deserializeMetadata(output),
|
|
612
|
+
});
|
|
613
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
614
|
+
const doc = smithyClient.take(data, {
|
|
615
|
+
index: (_) => de_Index(_),
|
|
616
|
+
});
|
|
617
|
+
Object.assign(contents, doc);
|
|
618
|
+
return contents;
|
|
619
|
+
};
|
|
620
|
+
const de_GetVectorBucketCommand = async (output, context) => {
|
|
621
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
622
|
+
return de_CommandError(output, context);
|
|
623
|
+
}
|
|
624
|
+
const contents = smithyClient.map({
|
|
625
|
+
$metadata: deserializeMetadata(output),
|
|
626
|
+
});
|
|
627
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
628
|
+
const doc = smithyClient.take(data, {
|
|
629
|
+
vectorBucket: (_) => de_VectorBucket(_),
|
|
630
|
+
});
|
|
631
|
+
Object.assign(contents, doc);
|
|
632
|
+
return contents;
|
|
633
|
+
};
|
|
634
|
+
const de_GetVectorBucketPolicyCommand = async (output, context) => {
|
|
635
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
636
|
+
return de_CommandError(output, context);
|
|
637
|
+
}
|
|
638
|
+
const contents = smithyClient.map({
|
|
639
|
+
$metadata: deserializeMetadata(output),
|
|
640
|
+
});
|
|
641
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
642
|
+
const doc = smithyClient.take(data, {
|
|
643
|
+
policy: smithyClient.expectString,
|
|
644
|
+
});
|
|
645
|
+
Object.assign(contents, doc);
|
|
646
|
+
return contents;
|
|
647
|
+
};
|
|
648
|
+
const de_GetVectorsCommand = async (output, context) => {
|
|
649
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
650
|
+
return de_CommandError(output, context);
|
|
651
|
+
}
|
|
652
|
+
const contents = smithyClient.map({
|
|
653
|
+
$metadata: deserializeMetadata(output),
|
|
654
|
+
});
|
|
655
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
656
|
+
const doc = smithyClient.take(data, {
|
|
657
|
+
vectors: (_) => de_GetVectorsOutputList(_),
|
|
658
|
+
});
|
|
659
|
+
Object.assign(contents, doc);
|
|
660
|
+
return contents;
|
|
661
|
+
};
|
|
662
|
+
const de_ListIndexesCommand = async (output, context) => {
|
|
663
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
664
|
+
return de_CommandError(output, context);
|
|
665
|
+
}
|
|
666
|
+
const contents = smithyClient.map({
|
|
667
|
+
$metadata: deserializeMetadata(output),
|
|
668
|
+
});
|
|
669
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
670
|
+
const doc = smithyClient.take(data, {
|
|
671
|
+
indexes: (_) => de_ListIndexesOutputList(_),
|
|
672
|
+
nextToken: smithyClient.expectString,
|
|
673
|
+
});
|
|
674
|
+
Object.assign(contents, doc);
|
|
675
|
+
return contents;
|
|
676
|
+
};
|
|
677
|
+
const de_ListVectorBucketsCommand = async (output, context) => {
|
|
678
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
679
|
+
return de_CommandError(output, context);
|
|
680
|
+
}
|
|
681
|
+
const contents = smithyClient.map({
|
|
682
|
+
$metadata: deserializeMetadata(output),
|
|
683
|
+
});
|
|
684
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
685
|
+
const doc = smithyClient.take(data, {
|
|
686
|
+
nextToken: smithyClient.expectString,
|
|
687
|
+
vectorBuckets: (_) => de_ListVectorBucketsOutputList(_),
|
|
688
|
+
});
|
|
689
|
+
Object.assign(contents, doc);
|
|
690
|
+
return contents;
|
|
691
|
+
};
|
|
692
|
+
const de_ListVectorsCommand = async (output, context) => {
|
|
693
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
694
|
+
return de_CommandError(output, context);
|
|
695
|
+
}
|
|
696
|
+
const contents = smithyClient.map({
|
|
697
|
+
$metadata: deserializeMetadata(output),
|
|
698
|
+
});
|
|
699
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
700
|
+
const doc = smithyClient.take(data, {
|
|
701
|
+
nextToken: smithyClient.expectString,
|
|
702
|
+
vectors: (_) => de_ListVectorsOutputList(_),
|
|
703
|
+
});
|
|
704
|
+
Object.assign(contents, doc);
|
|
705
|
+
return contents;
|
|
706
|
+
};
|
|
707
|
+
const de_PutVectorBucketPolicyCommand = async (output, context) => {
|
|
708
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
709
|
+
return de_CommandError(output, context);
|
|
710
|
+
}
|
|
711
|
+
const contents = smithyClient.map({
|
|
712
|
+
$metadata: deserializeMetadata(output),
|
|
713
|
+
});
|
|
714
|
+
await smithyClient.collectBody(output.body, context);
|
|
715
|
+
return contents;
|
|
716
|
+
};
|
|
717
|
+
const de_PutVectorsCommand = async (output, context) => {
|
|
718
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
719
|
+
return de_CommandError(output, context);
|
|
720
|
+
}
|
|
721
|
+
const contents = smithyClient.map({
|
|
722
|
+
$metadata: deserializeMetadata(output),
|
|
723
|
+
});
|
|
724
|
+
await smithyClient.collectBody(output.body, context);
|
|
725
|
+
return contents;
|
|
726
|
+
};
|
|
727
|
+
const de_QueryVectorsCommand = async (output, context) => {
|
|
728
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
729
|
+
return de_CommandError(output, context);
|
|
730
|
+
}
|
|
731
|
+
const contents = smithyClient.map({
|
|
732
|
+
$metadata: deserializeMetadata(output),
|
|
733
|
+
});
|
|
734
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
735
|
+
const doc = smithyClient.take(data, {
|
|
736
|
+
vectors: (_) => de_QueryVectorsOutputList(_),
|
|
737
|
+
});
|
|
738
|
+
Object.assign(contents, doc);
|
|
739
|
+
return contents;
|
|
740
|
+
};
|
|
741
|
+
const de_CommandError = async (output, context) => {
|
|
742
|
+
const parsedOutput = {
|
|
743
|
+
...output,
|
|
744
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
745
|
+
};
|
|
746
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
747
|
+
switch (errorCode) {
|
|
748
|
+
case "AccessDeniedException":
|
|
749
|
+
case "com.amazonaws.s3vectors#AccessDeniedException":
|
|
750
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
751
|
+
case "ConflictException":
|
|
752
|
+
case "com.amazonaws.s3vectors#ConflictException":
|
|
753
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
754
|
+
case "InternalServerException":
|
|
755
|
+
case "com.amazonaws.s3vectors#InternalServerException":
|
|
756
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
757
|
+
case "NotFoundException":
|
|
758
|
+
case "com.amazonaws.s3vectors#NotFoundException":
|
|
759
|
+
throw await de_NotFoundExceptionRes(parsedOutput);
|
|
760
|
+
case "ServiceQuotaExceededException":
|
|
761
|
+
case "com.amazonaws.s3vectors#ServiceQuotaExceededException":
|
|
762
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
763
|
+
case "ServiceUnavailableException":
|
|
764
|
+
case "com.amazonaws.s3vectors#ServiceUnavailableException":
|
|
765
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput);
|
|
766
|
+
case "TooManyRequestsException":
|
|
767
|
+
case "com.amazonaws.s3vectors#TooManyRequestsException":
|
|
768
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput);
|
|
769
|
+
case "ValidationException":
|
|
770
|
+
case "com.amazonaws.s3vectors#ValidationException":
|
|
771
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
772
|
+
case "KmsDisabledException":
|
|
773
|
+
case "com.amazonaws.s3vectors#KmsDisabledException":
|
|
774
|
+
throw await de_KmsDisabledExceptionRes(parsedOutput);
|
|
775
|
+
case "KmsInvalidKeyUsageException":
|
|
776
|
+
case "com.amazonaws.s3vectors#KmsInvalidKeyUsageException":
|
|
777
|
+
throw await de_KmsInvalidKeyUsageExceptionRes(parsedOutput);
|
|
778
|
+
case "KmsInvalidStateException":
|
|
779
|
+
case "com.amazonaws.s3vectors#KmsInvalidStateException":
|
|
780
|
+
throw await de_KmsInvalidStateExceptionRes(parsedOutput);
|
|
781
|
+
case "KmsNotFoundException":
|
|
782
|
+
case "com.amazonaws.s3vectors#KmsNotFoundException":
|
|
783
|
+
throw await de_KmsNotFoundExceptionRes(parsedOutput);
|
|
784
|
+
default:
|
|
785
|
+
const parsedBody = parsedOutput.body;
|
|
786
|
+
return throwDefaultError({
|
|
787
|
+
output,
|
|
788
|
+
parsedBody,
|
|
789
|
+
errorCode,
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
};
|
|
793
|
+
const throwDefaultError = smithyClient.withBaseException(S3VectorsServiceException);
|
|
794
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
795
|
+
const contents = smithyClient.map({});
|
|
796
|
+
const data = parsedOutput.body;
|
|
797
|
+
const doc = smithyClient.take(data, {
|
|
798
|
+
message: smithyClient.expectString,
|
|
799
|
+
});
|
|
800
|
+
Object.assign(contents, doc);
|
|
801
|
+
const exception = new AccessDeniedException({
|
|
802
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
803
|
+
...contents,
|
|
804
|
+
});
|
|
805
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
806
|
+
};
|
|
807
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
808
|
+
const contents = smithyClient.map({});
|
|
809
|
+
const data = parsedOutput.body;
|
|
810
|
+
const doc = smithyClient.take(data, {
|
|
811
|
+
message: smithyClient.expectString,
|
|
812
|
+
});
|
|
813
|
+
Object.assign(contents, doc);
|
|
814
|
+
const exception = new ConflictException({
|
|
815
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
816
|
+
...contents,
|
|
817
|
+
});
|
|
818
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
819
|
+
};
|
|
820
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
821
|
+
const contents = smithyClient.map({});
|
|
822
|
+
const data = parsedOutput.body;
|
|
823
|
+
const doc = smithyClient.take(data, {
|
|
824
|
+
message: smithyClient.expectString,
|
|
825
|
+
});
|
|
826
|
+
Object.assign(contents, doc);
|
|
827
|
+
const exception = new InternalServerException({
|
|
828
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
829
|
+
...contents,
|
|
830
|
+
});
|
|
831
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
832
|
+
};
|
|
833
|
+
const de_KmsDisabledExceptionRes = async (parsedOutput, context) => {
|
|
834
|
+
const contents = smithyClient.map({});
|
|
835
|
+
const data = parsedOutput.body;
|
|
836
|
+
const doc = smithyClient.take(data, {
|
|
837
|
+
message: smithyClient.expectString,
|
|
838
|
+
});
|
|
839
|
+
Object.assign(contents, doc);
|
|
840
|
+
const exception = new KmsDisabledException({
|
|
841
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
842
|
+
...contents,
|
|
843
|
+
});
|
|
844
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
845
|
+
};
|
|
846
|
+
const de_KmsInvalidKeyUsageExceptionRes = async (parsedOutput, context) => {
|
|
847
|
+
const contents = smithyClient.map({});
|
|
848
|
+
const data = parsedOutput.body;
|
|
849
|
+
const doc = smithyClient.take(data, {
|
|
850
|
+
message: smithyClient.expectString,
|
|
851
|
+
});
|
|
852
|
+
Object.assign(contents, doc);
|
|
853
|
+
const exception = new KmsInvalidKeyUsageException({
|
|
854
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
855
|
+
...contents,
|
|
856
|
+
});
|
|
857
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
858
|
+
};
|
|
859
|
+
const de_KmsInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
860
|
+
const contents = smithyClient.map({});
|
|
861
|
+
const data = parsedOutput.body;
|
|
862
|
+
const doc = smithyClient.take(data, {
|
|
863
|
+
message: smithyClient.expectString,
|
|
864
|
+
});
|
|
865
|
+
Object.assign(contents, doc);
|
|
866
|
+
const exception = new KmsInvalidStateException({
|
|
867
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
868
|
+
...contents,
|
|
869
|
+
});
|
|
870
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
871
|
+
};
|
|
872
|
+
const de_KmsNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
873
|
+
const contents = smithyClient.map({});
|
|
874
|
+
const data = parsedOutput.body;
|
|
875
|
+
const doc = smithyClient.take(data, {
|
|
876
|
+
message: smithyClient.expectString,
|
|
877
|
+
});
|
|
878
|
+
Object.assign(contents, doc);
|
|
879
|
+
const exception = new KmsNotFoundException({
|
|
880
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
881
|
+
...contents,
|
|
882
|
+
});
|
|
883
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
884
|
+
};
|
|
885
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
886
|
+
const contents = smithyClient.map({});
|
|
887
|
+
const data = parsedOutput.body;
|
|
888
|
+
const doc = smithyClient.take(data, {
|
|
889
|
+
message: smithyClient.expectString,
|
|
890
|
+
});
|
|
891
|
+
Object.assign(contents, doc);
|
|
892
|
+
const exception = new NotFoundException({
|
|
893
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
894
|
+
...contents,
|
|
895
|
+
});
|
|
896
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
897
|
+
};
|
|
898
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
899
|
+
const contents = smithyClient.map({});
|
|
900
|
+
const data = parsedOutput.body;
|
|
901
|
+
const doc = smithyClient.take(data, {
|
|
902
|
+
message: smithyClient.expectString,
|
|
903
|
+
});
|
|
904
|
+
Object.assign(contents, doc);
|
|
905
|
+
const exception = new ServiceQuotaExceededException({
|
|
906
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
907
|
+
...contents,
|
|
908
|
+
});
|
|
909
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
910
|
+
};
|
|
911
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
912
|
+
const contents = smithyClient.map({});
|
|
913
|
+
const data = parsedOutput.body;
|
|
914
|
+
const doc = smithyClient.take(data, {
|
|
915
|
+
message: smithyClient.expectString,
|
|
916
|
+
});
|
|
917
|
+
Object.assign(contents, doc);
|
|
918
|
+
const exception = new ServiceUnavailableException({
|
|
919
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
920
|
+
...contents,
|
|
921
|
+
});
|
|
922
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
923
|
+
};
|
|
924
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
925
|
+
const contents = smithyClient.map({});
|
|
926
|
+
const data = parsedOutput.body;
|
|
927
|
+
const doc = smithyClient.take(data, {
|
|
928
|
+
message: smithyClient.expectString,
|
|
929
|
+
});
|
|
930
|
+
Object.assign(contents, doc);
|
|
931
|
+
const exception = new TooManyRequestsException({
|
|
932
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
933
|
+
...contents,
|
|
934
|
+
});
|
|
935
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
936
|
+
};
|
|
937
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
938
|
+
const contents = smithyClient.map({});
|
|
939
|
+
const data = parsedOutput.body;
|
|
940
|
+
const doc = smithyClient.take(data, {
|
|
941
|
+
fieldList: smithyClient._json,
|
|
942
|
+
message: smithyClient.expectString,
|
|
943
|
+
});
|
|
944
|
+
Object.assign(contents, doc);
|
|
945
|
+
const exception = new ValidationException({
|
|
946
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
947
|
+
...contents,
|
|
948
|
+
});
|
|
949
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
950
|
+
};
|
|
951
|
+
const se_Float32VectorData = (input, context) => {
|
|
952
|
+
return input
|
|
953
|
+
.filter((e) => e != null)
|
|
954
|
+
.map((entry) => {
|
|
955
|
+
return smithyClient.serializeFloat(entry);
|
|
956
|
+
});
|
|
957
|
+
};
|
|
958
|
+
const se_PutInputVector = (input, context) => {
|
|
959
|
+
return smithyClient.take(input, {
|
|
960
|
+
data: (_) => se_VectorData(_),
|
|
961
|
+
key: [],
|
|
962
|
+
metadata: (_) => se_VectorMetadata(_),
|
|
963
|
+
});
|
|
964
|
+
};
|
|
965
|
+
const se_PutVectorsInputList = (input, context) => {
|
|
966
|
+
return input
|
|
967
|
+
.filter((e) => e != null)
|
|
968
|
+
.map((entry) => {
|
|
969
|
+
return se_PutInputVector(entry);
|
|
970
|
+
});
|
|
971
|
+
};
|
|
972
|
+
const se_VectorData = (input, context) => {
|
|
973
|
+
return exports.VectorData.visit(input, {
|
|
974
|
+
float32: (value) => ({ float32: se_Float32VectorData(value) }),
|
|
975
|
+
_: (name, value) => ({ [name]: value }),
|
|
976
|
+
});
|
|
977
|
+
};
|
|
978
|
+
const se_VectorMetadata = (input, context) => {
|
|
979
|
+
return input;
|
|
980
|
+
};
|
|
981
|
+
const se_Document = (input, context) => {
|
|
982
|
+
return input;
|
|
983
|
+
};
|
|
984
|
+
const de_Float32VectorData = (output, context) => {
|
|
985
|
+
const retVal = (output || [])
|
|
986
|
+
.filter((e) => e != null)
|
|
987
|
+
.map((entry) => {
|
|
988
|
+
return smithyClient.limitedParseFloat32(entry);
|
|
989
|
+
});
|
|
990
|
+
return retVal;
|
|
991
|
+
};
|
|
992
|
+
const de_GetOutputVector = (output, context) => {
|
|
993
|
+
return smithyClient.take(output, {
|
|
994
|
+
data: (_) => de_VectorData(core$1.awsExpectUnion(_)),
|
|
995
|
+
key: smithyClient.expectString,
|
|
996
|
+
metadata: (_) => de_VectorMetadata(_),
|
|
997
|
+
});
|
|
998
|
+
};
|
|
999
|
+
const de_GetVectorsOutputList = (output, context) => {
|
|
1000
|
+
const retVal = (output || [])
|
|
1001
|
+
.filter((e) => e != null)
|
|
1002
|
+
.map((entry) => {
|
|
1003
|
+
return de_GetOutputVector(entry);
|
|
1004
|
+
});
|
|
1005
|
+
return retVal;
|
|
1006
|
+
};
|
|
1007
|
+
const de_Index = (output, context) => {
|
|
1008
|
+
return smithyClient.take(output, {
|
|
1009
|
+
creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1010
|
+
dataType: smithyClient.expectString,
|
|
1011
|
+
dimension: smithyClient.expectInt32,
|
|
1012
|
+
distanceMetric: smithyClient.expectString,
|
|
1013
|
+
indexArn: smithyClient.expectString,
|
|
1014
|
+
indexName: smithyClient.expectString,
|
|
1015
|
+
metadataConfiguration: smithyClient._json,
|
|
1016
|
+
vectorBucketName: smithyClient.expectString,
|
|
1017
|
+
});
|
|
1018
|
+
};
|
|
1019
|
+
const de_IndexSummary = (output, context) => {
|
|
1020
|
+
return smithyClient.take(output, {
|
|
1021
|
+
creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1022
|
+
indexArn: smithyClient.expectString,
|
|
1023
|
+
indexName: smithyClient.expectString,
|
|
1024
|
+
vectorBucketName: smithyClient.expectString,
|
|
1025
|
+
});
|
|
1026
|
+
};
|
|
1027
|
+
const de_ListIndexesOutputList = (output, context) => {
|
|
1028
|
+
const retVal = (output || [])
|
|
1029
|
+
.filter((e) => e != null)
|
|
1030
|
+
.map((entry) => {
|
|
1031
|
+
return de_IndexSummary(entry);
|
|
1032
|
+
});
|
|
1033
|
+
return retVal;
|
|
1034
|
+
};
|
|
1035
|
+
const de_ListOutputVector = (output, context) => {
|
|
1036
|
+
return smithyClient.take(output, {
|
|
1037
|
+
data: (_) => de_VectorData(core$1.awsExpectUnion(_)),
|
|
1038
|
+
key: smithyClient.expectString,
|
|
1039
|
+
metadata: (_) => de_VectorMetadata(_),
|
|
1040
|
+
});
|
|
1041
|
+
};
|
|
1042
|
+
const de_ListVectorBucketsOutputList = (output, context) => {
|
|
1043
|
+
const retVal = (output || [])
|
|
1044
|
+
.filter((e) => e != null)
|
|
1045
|
+
.map((entry) => {
|
|
1046
|
+
return de_VectorBucketSummary(entry);
|
|
1047
|
+
});
|
|
1048
|
+
return retVal;
|
|
1049
|
+
};
|
|
1050
|
+
const de_ListVectorsOutputList = (output, context) => {
|
|
1051
|
+
const retVal = (output || [])
|
|
1052
|
+
.filter((e) => e != null)
|
|
1053
|
+
.map((entry) => {
|
|
1054
|
+
return de_ListOutputVector(entry);
|
|
1055
|
+
});
|
|
1056
|
+
return retVal;
|
|
1057
|
+
};
|
|
1058
|
+
const de_QueryOutputVector = (output, context) => {
|
|
1059
|
+
return smithyClient.take(output, {
|
|
1060
|
+
data: (_) => de_VectorData(core$1.awsExpectUnion(_)),
|
|
1061
|
+
distance: smithyClient.limitedParseFloat32,
|
|
1062
|
+
key: smithyClient.expectString,
|
|
1063
|
+
metadata: (_) => de_VectorMetadata(_),
|
|
1064
|
+
});
|
|
1065
|
+
};
|
|
1066
|
+
const de_QueryVectorsOutputList = (output, context) => {
|
|
1067
|
+
const retVal = (output || [])
|
|
1068
|
+
.filter((e) => e != null)
|
|
1069
|
+
.map((entry) => {
|
|
1070
|
+
return de_QueryOutputVector(entry);
|
|
1071
|
+
});
|
|
1072
|
+
return retVal;
|
|
1073
|
+
};
|
|
1074
|
+
const de_VectorBucket = (output, context) => {
|
|
1075
|
+
return smithyClient.take(output, {
|
|
1076
|
+
creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1077
|
+
encryptionConfiguration: smithyClient._json,
|
|
1078
|
+
vectorBucketArn: smithyClient.expectString,
|
|
1079
|
+
vectorBucketName: smithyClient.expectString,
|
|
1080
|
+
});
|
|
1081
|
+
};
|
|
1082
|
+
const de_VectorBucketSummary = (output, context) => {
|
|
1083
|
+
return smithyClient.take(output, {
|
|
1084
|
+
creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1085
|
+
vectorBucketArn: smithyClient.expectString,
|
|
1086
|
+
vectorBucketName: smithyClient.expectString,
|
|
1087
|
+
});
|
|
1088
|
+
};
|
|
1089
|
+
const de_VectorData = (output, context) => {
|
|
1090
|
+
if (output.float32 != null) {
|
|
1091
|
+
return {
|
|
1092
|
+
float32: de_Float32VectorData(output.float32),
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1096
|
+
};
|
|
1097
|
+
const de_VectorMetadata = (output, context) => {
|
|
1098
|
+
return output;
|
|
1099
|
+
};
|
|
1100
|
+
const deserializeMetadata = (output) => ({
|
|
1101
|
+
httpStatusCode: output.statusCode,
|
|
1102
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1103
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1104
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1105
|
+
});
|
|
1551
1106
|
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1107
|
+
class CreateIndexCommand extends smithyClient.Command
|
|
1108
|
+
.classBuilder()
|
|
1109
|
+
.ep(commonParams)
|
|
1110
|
+
.m(function (Command, cs, config, o) {
|
|
1111
|
+
return [
|
|
1112
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1113
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1114
|
+
];
|
|
1115
|
+
})
|
|
1116
|
+
.s("S3Vectors", "CreateIndex", {})
|
|
1117
|
+
.n("S3VectorsClient", "CreateIndexCommand")
|
|
1118
|
+
.f(void 0, void 0)
|
|
1119
|
+
.ser(se_CreateIndexCommand)
|
|
1120
|
+
.de(de_CreateIndexCommand)
|
|
1121
|
+
.build() {
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
class CreateVectorBucketCommand extends smithyClient.Command
|
|
1125
|
+
.classBuilder()
|
|
1126
|
+
.ep(commonParams)
|
|
1127
|
+
.m(function (Command, cs, config, o) {
|
|
1128
|
+
return [
|
|
1129
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1130
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1131
|
+
];
|
|
1132
|
+
})
|
|
1133
|
+
.s("S3Vectors", "CreateVectorBucket", {})
|
|
1134
|
+
.n("S3VectorsClient", "CreateVectorBucketCommand")
|
|
1135
|
+
.f(void 0, void 0)
|
|
1136
|
+
.ser(se_CreateVectorBucketCommand)
|
|
1137
|
+
.de(de_CreateVectorBucketCommand)
|
|
1138
|
+
.build() {
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
class DeleteIndexCommand extends smithyClient.Command
|
|
1142
|
+
.classBuilder()
|
|
1143
|
+
.ep(commonParams)
|
|
1144
|
+
.m(function (Command, cs, config, o) {
|
|
1145
|
+
return [
|
|
1146
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1147
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1148
|
+
];
|
|
1149
|
+
})
|
|
1150
|
+
.s("S3Vectors", "DeleteIndex", {})
|
|
1151
|
+
.n("S3VectorsClient", "DeleteIndexCommand")
|
|
1152
|
+
.f(void 0, void 0)
|
|
1153
|
+
.ser(se_DeleteIndexCommand)
|
|
1154
|
+
.de(de_DeleteIndexCommand)
|
|
1155
|
+
.build() {
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
class DeleteVectorBucketCommand extends smithyClient.Command
|
|
1159
|
+
.classBuilder()
|
|
1160
|
+
.ep(commonParams)
|
|
1161
|
+
.m(function (Command, cs, config, o) {
|
|
1162
|
+
return [
|
|
1163
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1164
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1165
|
+
];
|
|
1166
|
+
})
|
|
1167
|
+
.s("S3Vectors", "DeleteVectorBucket", {})
|
|
1168
|
+
.n("S3VectorsClient", "DeleteVectorBucketCommand")
|
|
1169
|
+
.f(void 0, void 0)
|
|
1170
|
+
.ser(se_DeleteVectorBucketCommand)
|
|
1171
|
+
.de(de_DeleteVectorBucketCommand)
|
|
1172
|
+
.build() {
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
class DeleteVectorBucketPolicyCommand extends smithyClient.Command
|
|
1176
|
+
.classBuilder()
|
|
1177
|
+
.ep(commonParams)
|
|
1178
|
+
.m(function (Command, cs, config, o) {
|
|
1179
|
+
return [
|
|
1180
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1181
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1182
|
+
];
|
|
1183
|
+
})
|
|
1184
|
+
.s("S3Vectors", "DeleteVectorBucketPolicy", {})
|
|
1185
|
+
.n("S3VectorsClient", "DeleteVectorBucketPolicyCommand")
|
|
1186
|
+
.f(void 0, void 0)
|
|
1187
|
+
.ser(se_DeleteVectorBucketPolicyCommand)
|
|
1188
|
+
.de(de_DeleteVectorBucketPolicyCommand)
|
|
1189
|
+
.build() {
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
class DeleteVectorsCommand extends smithyClient.Command
|
|
1193
|
+
.classBuilder()
|
|
1194
|
+
.ep(commonParams)
|
|
1195
|
+
.m(function (Command, cs, config, o) {
|
|
1196
|
+
return [
|
|
1197
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1198
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1199
|
+
];
|
|
1200
|
+
})
|
|
1201
|
+
.s("S3Vectors", "DeleteVectors", {})
|
|
1202
|
+
.n("S3VectorsClient", "DeleteVectorsCommand")
|
|
1203
|
+
.f(void 0, void 0)
|
|
1204
|
+
.ser(se_DeleteVectorsCommand)
|
|
1205
|
+
.de(de_DeleteVectorsCommand)
|
|
1206
|
+
.build() {
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
class GetIndexCommand extends smithyClient.Command
|
|
1210
|
+
.classBuilder()
|
|
1211
|
+
.ep(commonParams)
|
|
1212
|
+
.m(function (Command, cs, config, o) {
|
|
1213
|
+
return [
|
|
1214
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1215
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1216
|
+
];
|
|
1217
|
+
})
|
|
1218
|
+
.s("S3Vectors", "GetIndex", {})
|
|
1219
|
+
.n("S3VectorsClient", "GetIndexCommand")
|
|
1220
|
+
.f(void 0, void 0)
|
|
1221
|
+
.ser(se_GetIndexCommand)
|
|
1222
|
+
.de(de_GetIndexCommand)
|
|
1223
|
+
.build() {
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
class GetVectorBucketCommand extends smithyClient.Command
|
|
1227
|
+
.classBuilder()
|
|
1228
|
+
.ep(commonParams)
|
|
1229
|
+
.m(function (Command, cs, config, o) {
|
|
1230
|
+
return [
|
|
1231
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1232
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1233
|
+
];
|
|
1234
|
+
})
|
|
1235
|
+
.s("S3Vectors", "GetVectorBucket", {})
|
|
1236
|
+
.n("S3VectorsClient", "GetVectorBucketCommand")
|
|
1237
|
+
.f(void 0, void 0)
|
|
1238
|
+
.ser(se_GetVectorBucketCommand)
|
|
1239
|
+
.de(de_GetVectorBucketCommand)
|
|
1240
|
+
.build() {
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
class GetVectorBucketPolicyCommand extends smithyClient.Command
|
|
1244
|
+
.classBuilder()
|
|
1245
|
+
.ep(commonParams)
|
|
1246
|
+
.m(function (Command, cs, config, o) {
|
|
1247
|
+
return [
|
|
1248
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1249
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1250
|
+
];
|
|
1251
|
+
})
|
|
1252
|
+
.s("S3Vectors", "GetVectorBucketPolicy", {})
|
|
1253
|
+
.n("S3VectorsClient", "GetVectorBucketPolicyCommand")
|
|
1254
|
+
.f(void 0, void 0)
|
|
1255
|
+
.ser(se_GetVectorBucketPolicyCommand)
|
|
1256
|
+
.de(de_GetVectorBucketPolicyCommand)
|
|
1257
|
+
.build() {
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
class GetVectorsCommand extends smithyClient.Command
|
|
1261
|
+
.classBuilder()
|
|
1262
|
+
.ep(commonParams)
|
|
1263
|
+
.m(function (Command, cs, config, o) {
|
|
1264
|
+
return [
|
|
1265
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1266
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1267
|
+
];
|
|
1268
|
+
})
|
|
1269
|
+
.s("S3Vectors", "GetVectors", {})
|
|
1270
|
+
.n("S3VectorsClient", "GetVectorsCommand")
|
|
1271
|
+
.f(void 0, void 0)
|
|
1272
|
+
.ser(se_GetVectorsCommand)
|
|
1273
|
+
.de(de_GetVectorsCommand)
|
|
1274
|
+
.build() {
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
class ListIndexesCommand extends smithyClient.Command
|
|
1278
|
+
.classBuilder()
|
|
1279
|
+
.ep(commonParams)
|
|
1280
|
+
.m(function (Command, cs, config, o) {
|
|
1281
|
+
return [
|
|
1282
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1283
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1284
|
+
];
|
|
1285
|
+
})
|
|
1286
|
+
.s("S3Vectors", "ListIndexes", {})
|
|
1287
|
+
.n("S3VectorsClient", "ListIndexesCommand")
|
|
1288
|
+
.f(void 0, void 0)
|
|
1289
|
+
.ser(se_ListIndexesCommand)
|
|
1290
|
+
.de(de_ListIndexesCommand)
|
|
1291
|
+
.build() {
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
class ListVectorBucketsCommand extends smithyClient.Command
|
|
1295
|
+
.classBuilder()
|
|
1296
|
+
.ep(commonParams)
|
|
1297
|
+
.m(function (Command, cs, config, o) {
|
|
1298
|
+
return [
|
|
1299
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1300
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1301
|
+
];
|
|
1302
|
+
})
|
|
1303
|
+
.s("S3Vectors", "ListVectorBuckets", {})
|
|
1304
|
+
.n("S3VectorsClient", "ListVectorBucketsCommand")
|
|
1305
|
+
.f(void 0, void 0)
|
|
1306
|
+
.ser(se_ListVectorBucketsCommand)
|
|
1307
|
+
.de(de_ListVectorBucketsCommand)
|
|
1308
|
+
.build() {
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
class ListVectorsCommand extends smithyClient.Command
|
|
1312
|
+
.classBuilder()
|
|
1313
|
+
.ep(commonParams)
|
|
1314
|
+
.m(function (Command, cs, config, o) {
|
|
1315
|
+
return [
|
|
1316
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1317
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1318
|
+
];
|
|
1319
|
+
})
|
|
1320
|
+
.s("S3Vectors", "ListVectors", {})
|
|
1321
|
+
.n("S3VectorsClient", "ListVectorsCommand")
|
|
1322
|
+
.f(void 0, void 0)
|
|
1323
|
+
.ser(se_ListVectorsCommand)
|
|
1324
|
+
.de(de_ListVectorsCommand)
|
|
1325
|
+
.build() {
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
class PutVectorBucketPolicyCommand extends smithyClient.Command
|
|
1329
|
+
.classBuilder()
|
|
1330
|
+
.ep(commonParams)
|
|
1331
|
+
.m(function (Command, cs, config, o) {
|
|
1332
|
+
return [
|
|
1333
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1334
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1335
|
+
];
|
|
1336
|
+
})
|
|
1337
|
+
.s("S3Vectors", "PutVectorBucketPolicy", {})
|
|
1338
|
+
.n("S3VectorsClient", "PutVectorBucketPolicyCommand")
|
|
1339
|
+
.f(void 0, void 0)
|
|
1340
|
+
.ser(se_PutVectorBucketPolicyCommand)
|
|
1341
|
+
.de(de_PutVectorBucketPolicyCommand)
|
|
1342
|
+
.build() {
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
class PutVectorsCommand extends smithyClient.Command
|
|
1346
|
+
.classBuilder()
|
|
1347
|
+
.ep(commonParams)
|
|
1348
|
+
.m(function (Command, cs, config, o) {
|
|
1349
|
+
return [
|
|
1350
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1351
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1352
|
+
];
|
|
1353
|
+
})
|
|
1354
|
+
.s("S3Vectors", "PutVectors", {})
|
|
1355
|
+
.n("S3VectorsClient", "PutVectorsCommand")
|
|
1356
|
+
.f(void 0, void 0)
|
|
1357
|
+
.ser(se_PutVectorsCommand)
|
|
1358
|
+
.de(de_PutVectorsCommand)
|
|
1359
|
+
.build() {
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
class QueryVectorsCommand extends smithyClient.Command
|
|
1363
|
+
.classBuilder()
|
|
1364
|
+
.ep(commonParams)
|
|
1365
|
+
.m(function (Command, cs, config, o) {
|
|
1366
|
+
return [
|
|
1367
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1368
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1369
|
+
];
|
|
1370
|
+
})
|
|
1371
|
+
.s("S3Vectors", "QueryVectors", {})
|
|
1372
|
+
.n("S3VectorsClient", "QueryVectorsCommand")
|
|
1373
|
+
.f(void 0, void 0)
|
|
1374
|
+
.ser(se_QueryVectorsCommand)
|
|
1375
|
+
.de(de_QueryVectorsCommand)
|
|
1376
|
+
.build() {
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
const commands = {
|
|
1380
|
+
CreateIndexCommand,
|
|
1381
|
+
CreateVectorBucketCommand,
|
|
1382
|
+
DeleteIndexCommand,
|
|
1383
|
+
DeleteVectorBucketCommand,
|
|
1384
|
+
DeleteVectorBucketPolicyCommand,
|
|
1385
|
+
DeleteVectorsCommand,
|
|
1386
|
+
GetIndexCommand,
|
|
1387
|
+
GetVectorBucketCommand,
|
|
1388
|
+
GetVectorBucketPolicyCommand,
|
|
1389
|
+
GetVectorsCommand,
|
|
1390
|
+
ListIndexesCommand,
|
|
1391
|
+
ListVectorBucketsCommand,
|
|
1392
|
+
ListVectorsCommand,
|
|
1393
|
+
PutVectorBucketPolicyCommand,
|
|
1394
|
+
PutVectorsCommand,
|
|
1395
|
+
QueryVectorsCommand,
|
|
1396
|
+
};
|
|
1397
|
+
class S3Vectors extends S3VectorsClient {
|
|
1398
|
+
}
|
|
1399
|
+
smithyClient.createAggregatedClient(commands, S3Vectors);
|
|
1583
1400
|
|
|
1584
|
-
|
|
1401
|
+
const paginateListIndexes = core.createPaginator(S3VectorsClient, ListIndexesCommand, "nextToken", "nextToken", "maxResults");
|
|
1585
1402
|
|
|
1586
|
-
|
|
1403
|
+
const paginateListVectorBuckets = core.createPaginator(S3VectorsClient, ListVectorBucketsCommand, "nextToken", "nextToken", "maxResults");
|
|
1587
1404
|
|
|
1588
|
-
|
|
1589
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1405
|
+
const paginateListVectors = core.createPaginator(S3VectorsClient, ListVectorsCommand, "nextToken", "nextToken", "maxResults");
|
|
1590
1406
|
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
S3VectorsClient,
|
|
1595
|
-
S3Vectors,
|
|
1596
|
-
$Command,
|
|
1597
|
-
CreateIndexCommand,
|
|
1598
|
-
CreateVectorBucketCommand,
|
|
1599
|
-
DeleteIndexCommand,
|
|
1600
|
-
DeleteVectorBucketCommand,
|
|
1601
|
-
DeleteVectorBucketPolicyCommand,
|
|
1602
|
-
DeleteVectorsCommand,
|
|
1603
|
-
GetIndexCommand,
|
|
1604
|
-
GetVectorBucketCommand,
|
|
1605
|
-
GetVectorBucketPolicyCommand,
|
|
1606
|
-
GetVectorsCommand,
|
|
1607
|
-
ListIndexesCommand,
|
|
1608
|
-
ListVectorBucketsCommand,
|
|
1609
|
-
ListVectorsCommand,
|
|
1610
|
-
PutVectorBucketPolicyCommand,
|
|
1611
|
-
PutVectorsCommand,
|
|
1612
|
-
QueryVectorsCommand,
|
|
1613
|
-
paginateListIndexes,
|
|
1614
|
-
paginateListVectorBuckets,
|
|
1615
|
-
paginateListVectors,
|
|
1616
|
-
AccessDeniedException,
|
|
1617
|
-
ConflictException,
|
|
1618
|
-
DataType,
|
|
1619
|
-
DistanceMetric,
|
|
1620
|
-
InternalServerException,
|
|
1621
|
-
NotFoundException,
|
|
1622
|
-
ServiceQuotaExceededException,
|
|
1623
|
-
ServiceUnavailableException,
|
|
1624
|
-
TooManyRequestsException,
|
|
1625
|
-
ValidationException,
|
|
1626
|
-
SseType,
|
|
1627
|
-
KmsDisabledException,
|
|
1628
|
-
KmsInvalidKeyUsageException,
|
|
1629
|
-
KmsInvalidStateException,
|
|
1630
|
-
KmsNotFoundException,
|
|
1631
|
-
VectorData
|
|
1407
|
+
Object.defineProperty(exports, "$Command", {
|
|
1408
|
+
enumerable: true,
|
|
1409
|
+
get: function () { return smithyClient.Command; }
|
|
1632
1410
|
});
|
|
1633
|
-
|
|
1411
|
+
Object.defineProperty(exports, "__Client", {
|
|
1412
|
+
enumerable: true,
|
|
1413
|
+
get: function () { return smithyClient.Client; }
|
|
1414
|
+
});
|
|
1415
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1416
|
+
exports.ConflictException = ConflictException;
|
|
1417
|
+
exports.CreateIndexCommand = CreateIndexCommand;
|
|
1418
|
+
exports.CreateVectorBucketCommand = CreateVectorBucketCommand;
|
|
1419
|
+
exports.DataType = DataType;
|
|
1420
|
+
exports.DeleteIndexCommand = DeleteIndexCommand;
|
|
1421
|
+
exports.DeleteVectorBucketCommand = DeleteVectorBucketCommand;
|
|
1422
|
+
exports.DeleteVectorBucketPolicyCommand = DeleteVectorBucketPolicyCommand;
|
|
1423
|
+
exports.DeleteVectorsCommand = DeleteVectorsCommand;
|
|
1424
|
+
exports.DistanceMetric = DistanceMetric;
|
|
1425
|
+
exports.GetIndexCommand = GetIndexCommand;
|
|
1426
|
+
exports.GetVectorBucketCommand = GetVectorBucketCommand;
|
|
1427
|
+
exports.GetVectorBucketPolicyCommand = GetVectorBucketPolicyCommand;
|
|
1428
|
+
exports.GetVectorsCommand = GetVectorsCommand;
|
|
1429
|
+
exports.InternalServerException = InternalServerException;
|
|
1430
|
+
exports.KmsDisabledException = KmsDisabledException;
|
|
1431
|
+
exports.KmsInvalidKeyUsageException = KmsInvalidKeyUsageException;
|
|
1432
|
+
exports.KmsInvalidStateException = KmsInvalidStateException;
|
|
1433
|
+
exports.KmsNotFoundException = KmsNotFoundException;
|
|
1434
|
+
exports.ListIndexesCommand = ListIndexesCommand;
|
|
1435
|
+
exports.ListVectorBucketsCommand = ListVectorBucketsCommand;
|
|
1436
|
+
exports.ListVectorsCommand = ListVectorsCommand;
|
|
1437
|
+
exports.NotFoundException = NotFoundException;
|
|
1438
|
+
exports.PutVectorBucketPolicyCommand = PutVectorBucketPolicyCommand;
|
|
1439
|
+
exports.PutVectorsCommand = PutVectorsCommand;
|
|
1440
|
+
exports.QueryVectorsCommand = QueryVectorsCommand;
|
|
1441
|
+
exports.S3Vectors = S3Vectors;
|
|
1442
|
+
exports.S3VectorsClient = S3VectorsClient;
|
|
1443
|
+
exports.S3VectorsServiceException = S3VectorsServiceException;
|
|
1444
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1445
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
1446
|
+
exports.SseType = SseType;
|
|
1447
|
+
exports.TooManyRequestsException = TooManyRequestsException;
|
|
1448
|
+
exports.ValidationException = ValidationException;
|
|
1449
|
+
exports.paginateListIndexes = paginateListIndexes;
|
|
1450
|
+
exports.paginateListVectorBuckets = paginateListVectorBuckets;
|
|
1451
|
+
exports.paginateListVectors = paginateListVectors;
|