@aws-sdk/client-s3vectors 3.891.0 → 3.894.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist-cjs/index.js +1632 -10
  2. package/package.json +19 -19
  3. package/dist-cjs/S3Vectors.js +0 -43
  4. package/dist-cjs/S3VectorsClient.js +0 -52
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
  6. package/dist-cjs/commands/CreateIndexCommand.js +0 -26
  7. package/dist-cjs/commands/CreateVectorBucketCommand.js +0 -26
  8. package/dist-cjs/commands/DeleteIndexCommand.js +0 -26
  9. package/dist-cjs/commands/DeleteVectorBucketCommand.js +0 -26
  10. package/dist-cjs/commands/DeleteVectorBucketPolicyCommand.js +0 -26
  11. package/dist-cjs/commands/DeleteVectorsCommand.js +0 -26
  12. package/dist-cjs/commands/GetIndexCommand.js +0 -26
  13. package/dist-cjs/commands/GetVectorBucketCommand.js +0 -26
  14. package/dist-cjs/commands/GetVectorBucketPolicyCommand.js +0 -26
  15. package/dist-cjs/commands/GetVectorsCommand.js +0 -26
  16. package/dist-cjs/commands/ListIndexesCommand.js +0 -26
  17. package/dist-cjs/commands/ListVectorBucketsCommand.js +0 -26
  18. package/dist-cjs/commands/ListVectorsCommand.js +0 -26
  19. package/dist-cjs/commands/PutVectorBucketPolicyCommand.js +0 -26
  20. package/dist-cjs/commands/PutVectorsCommand.js +0 -26
  21. package/dist-cjs/commands/QueryVectorsCommand.js +0 -26
  22. package/dist-cjs/commands/index.js +0 -19
  23. package/dist-cjs/endpoint/EndpointParameters.js +0 -15
  24. package/dist-cjs/extensionConfiguration.js +0 -2
  25. package/dist-cjs/models/S3VectorsServiceException.js +0 -12
  26. package/dist-cjs/models/index.js +0 -4
  27. package/dist-cjs/models/models_0.js +0 -186
  28. package/dist-cjs/pagination/Interfaces.js +0 -2
  29. package/dist-cjs/pagination/ListIndexesPaginator.js +0 -7
  30. package/dist-cjs/pagination/ListVectorBucketsPaginator.js +0 -7
  31. package/dist-cjs/pagination/ListVectorsPaginator.js +0 -7
  32. package/dist-cjs/pagination/index.js +0 -7
  33. package/dist-cjs/protocols/Aws_restJson1.js +0 -858
  34. package/dist-cjs/runtimeExtensions.js +0 -13
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,1633 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.S3VectorsServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./S3VectorsClient"), exports);
6
- tslib_1.__exportStar(require("./S3Vectors"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- var S3VectorsServiceException_1 = require("./models/S3VectorsServiceException");
11
- Object.defineProperty(exports, "S3VectorsServiceException", { enumerable: true, get: function () { return S3VectorsServiceException_1.S3VectorsServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
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" }
90
+ };
91
+
92
+ // src/S3VectorsClient.ts
93
+ var import_runtimeConfig = require("././runtimeConfig");
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
+ }
203
+ };
204
+
205
+ // src/S3Vectors.ts
206
+
207
+
208
+ // src/commands/CreateIndexCommand.ts
209
+
210
+ var import_middleware_serde = require("@smithy/middleware-serde");
211
+
212
+
213
+ // src/protocols/Aws_restJson1.ts
214
+ var import_core2 = require("@aws-sdk/core");
215
+
216
+
217
+
218
+ // src/models/S3VectorsServiceException.ts
219
+
220
+ var S3VectorsServiceException = class _S3VectorsServiceException extends import_smithy_client.ServiceException {
221
+ static {
222
+ __name(this, "S3VectorsServiceException");
223
+ }
224
+ /**
225
+ * @internal
226
+ */
227
+ constructor(options) {
228
+ super(options);
229
+ Object.setPrototypeOf(this, _S3VectorsServiceException.prototype);
230
+ }
231
+ };
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) {
1299
+ return {
1300
+ float32: de_Float32VectorData(output.float32, context)
1301
+ };
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
+ };
1326
+
1327
+ // src/commands/CreateVectorBucketCommand.ts
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
+ }
1340
+ };
1341
+
1342
+ // src/commands/DeleteIndexCommand.ts
1343
+
1344
+
1345
+
1346
+ var DeleteIndexCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1347
+ return [
1348
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1349
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1350
+ ];
1351
+ }).s("S3Vectors", "DeleteIndex", {}).n("S3VectorsClient", "DeleteIndexCommand").f(void 0, void 0).ser(se_DeleteIndexCommand).de(de_DeleteIndexCommand).build() {
1352
+ static {
1353
+ __name(this, "DeleteIndexCommand");
1354
+ }
1355
+ };
1356
+
1357
+ // src/commands/DeleteVectorBucketCommand.ts
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
+ }
1370
+ };
1371
+
1372
+ // src/commands/DeleteVectorBucketPolicyCommand.ts
1373
+
1374
+
1375
+
1376
+ var DeleteVectorBucketPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1377
+ return [
1378
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1379
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1380
+ ];
1381
+ }).s("S3Vectors", "DeleteVectorBucketPolicy", {}).n("S3VectorsClient", "DeleteVectorBucketPolicyCommand").f(void 0, void 0).ser(se_DeleteVectorBucketPolicyCommand).de(de_DeleteVectorBucketPolicyCommand).build() {
1382
+ static {
1383
+ __name(this, "DeleteVectorBucketPolicyCommand");
1384
+ }
1385
+ };
1386
+
1387
+ // src/commands/DeleteVectorsCommand.ts
1388
+
1389
+
1390
+
1391
+ var DeleteVectorsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1392
+ return [
1393
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1394
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1395
+ ];
1396
+ }).s("S3Vectors", "DeleteVectors", {}).n("S3VectorsClient", "DeleteVectorsCommand").f(void 0, void 0).ser(se_DeleteVectorsCommand).de(de_DeleteVectorsCommand).build() {
1397
+ static {
1398
+ __name(this, "DeleteVectorsCommand");
1399
+ }
1400
+ };
1401
+
1402
+ // src/commands/GetIndexCommand.ts
1403
+
1404
+
1405
+
1406
+ var GetIndexCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1407
+ return [
1408
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1409
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1410
+ ];
1411
+ }).s("S3Vectors", "GetIndex", {}).n("S3VectorsClient", "GetIndexCommand").f(void 0, void 0).ser(se_GetIndexCommand).de(de_GetIndexCommand).build() {
1412
+ static {
1413
+ __name(this, "GetIndexCommand");
1414
+ }
1415
+ };
1416
+
1417
+ // src/commands/GetVectorBucketCommand.ts
1418
+
1419
+
1420
+
1421
+ var GetVectorBucketCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1422
+ return [
1423
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1424
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1425
+ ];
1426
+ }).s("S3Vectors", "GetVectorBucket", {}).n("S3VectorsClient", "GetVectorBucketCommand").f(void 0, void 0).ser(se_GetVectorBucketCommand).de(de_GetVectorBucketCommand).build() {
1427
+ static {
1428
+ __name(this, "GetVectorBucketCommand");
1429
+ }
1430
+ };
1431
+
1432
+ // src/commands/GetVectorBucketPolicyCommand.ts
1433
+
1434
+
1435
+
1436
+ var GetVectorBucketPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1437
+ return [
1438
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1439
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1440
+ ];
1441
+ }).s("S3Vectors", "GetVectorBucketPolicy", {}).n("S3VectorsClient", "GetVectorBucketPolicyCommand").f(void 0, void 0).ser(se_GetVectorBucketPolicyCommand).de(de_GetVectorBucketPolicyCommand).build() {
1442
+ static {
1443
+ __name(this, "GetVectorBucketPolicyCommand");
1444
+ }
1445
+ };
1446
+
1447
+ // src/commands/GetVectorsCommand.ts
1448
+
1449
+
1450
+
1451
+ var GetVectorsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1452
+ return [
1453
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1454
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1455
+ ];
1456
+ }).s("S3Vectors", "GetVectors", {}).n("S3VectorsClient", "GetVectorsCommand").f(void 0, void 0).ser(se_GetVectorsCommand).de(de_GetVectorsCommand).build() {
1457
+ static {
1458
+ __name(this, "GetVectorsCommand");
1459
+ }
1460
+ };
1461
+
1462
+ // src/commands/ListIndexesCommand.ts
1463
+
1464
+
1465
+
1466
+ var ListIndexesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1467
+ return [
1468
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1469
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1470
+ ];
1471
+ }).s("S3Vectors", "ListIndexes", {}).n("S3VectorsClient", "ListIndexesCommand").f(void 0, void 0).ser(se_ListIndexesCommand).de(de_ListIndexesCommand).build() {
1472
+ static {
1473
+ __name(this, "ListIndexesCommand");
1474
+ }
1475
+ };
1476
+
1477
+ // src/commands/ListVectorBucketsCommand.ts
1478
+
1479
+
1480
+
1481
+ var ListVectorBucketsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1482
+ return [
1483
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1484
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1485
+ ];
1486
+ }).s("S3Vectors", "ListVectorBuckets", {}).n("S3VectorsClient", "ListVectorBucketsCommand").f(void 0, void 0).ser(se_ListVectorBucketsCommand).de(de_ListVectorBucketsCommand).build() {
1487
+ static {
1488
+ __name(this, "ListVectorBucketsCommand");
1489
+ }
1490
+ };
1491
+
1492
+ // src/commands/ListVectorsCommand.ts
1493
+
1494
+
1495
+
1496
+ var ListVectorsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1497
+ return [
1498
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1499
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1500
+ ];
1501
+ }).s("S3Vectors", "ListVectors", {}).n("S3VectorsClient", "ListVectorsCommand").f(void 0, void 0).ser(se_ListVectorsCommand).de(de_ListVectorsCommand).build() {
1502
+ static {
1503
+ __name(this, "ListVectorsCommand");
1504
+ }
1505
+ };
1506
+
1507
+ // src/commands/PutVectorBucketPolicyCommand.ts
1508
+
1509
+
1510
+
1511
+ var PutVectorBucketPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1512
+ return [
1513
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1514
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1515
+ ];
1516
+ }).s("S3Vectors", "PutVectorBucketPolicy", {}).n("S3VectorsClient", "PutVectorBucketPolicyCommand").f(void 0, void 0).ser(se_PutVectorBucketPolicyCommand).de(de_PutVectorBucketPolicyCommand).build() {
1517
+ static {
1518
+ __name(this, "PutVectorBucketPolicyCommand");
1519
+ }
1520
+ };
1521
+
1522
+ // src/commands/PutVectorsCommand.ts
1523
+
1524
+
1525
+
1526
+ var PutVectorsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1527
+ return [
1528
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1529
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1530
+ ];
1531
+ }).s("S3Vectors", "PutVectors", {}).n("S3VectorsClient", "PutVectorsCommand").f(void 0, void 0).ser(se_PutVectorsCommand).de(de_PutVectorsCommand).build() {
1532
+ static {
1533
+ __name(this, "PutVectorsCommand");
1534
+ }
1535
+ };
1536
+
1537
+ // src/commands/QueryVectorsCommand.ts
1538
+
1539
+
1540
+
1541
+ var QueryVectorsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1542
+ return [
1543
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1544
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1545
+ ];
1546
+ }).s("S3Vectors", "QueryVectors", {}).n("S3VectorsClient", "QueryVectorsCommand").f(void 0, void 0).ser(se_QueryVectorsCommand).de(de_QueryVectorsCommand).build() {
1547
+ static {
1548
+ __name(this, "QueryVectorsCommand");
1549
+ }
1550
+ };
1551
+
1552
+ // src/S3Vectors.ts
1553
+ var commands = {
1554
+ CreateIndexCommand,
1555
+ CreateVectorBucketCommand,
1556
+ DeleteIndexCommand,
1557
+ DeleteVectorBucketCommand,
1558
+ DeleteVectorBucketPolicyCommand,
1559
+ DeleteVectorsCommand,
1560
+ GetIndexCommand,
1561
+ GetVectorBucketCommand,
1562
+ GetVectorBucketPolicyCommand,
1563
+ GetVectorsCommand,
1564
+ ListIndexesCommand,
1565
+ ListVectorBucketsCommand,
1566
+ ListVectorsCommand,
1567
+ PutVectorBucketPolicyCommand,
1568
+ PutVectorsCommand,
1569
+ QueryVectorsCommand
1570
+ };
1571
+ var S3Vectors = class extends S3VectorsClient {
1572
+ static {
1573
+ __name(this, "S3Vectors");
1574
+ }
1575
+ };
1576
+ (0, import_smithy_client.createAggregatedClient)(commands, S3Vectors);
1577
+
1578
+ // src/pagination/ListIndexesPaginator.ts
1579
+
1580
+ var paginateListIndexes = (0, import_core.createPaginator)(S3VectorsClient, ListIndexesCommand, "nextToken", "nextToken", "maxResults");
1581
+
1582
+ // src/pagination/ListVectorBucketsPaginator.ts
1583
+
1584
+ var paginateListVectorBuckets = (0, import_core.createPaginator)(S3VectorsClient, ListVectorBucketsCommand, "nextToken", "nextToken", "maxResults");
1585
+
1586
+ // src/pagination/ListVectorsPaginator.ts
1587
+
1588
+ var paginateListVectors = (0, import_core.createPaginator)(S3VectorsClient, ListVectorsCommand, "nextToken", "nextToken", "maxResults");
1589
+ // Annotate the CommonJS export names for ESM import in node:
1590
+
1591
+ 0 && (module.exports = {
1592
+ S3VectorsServiceException,
1593
+ __Client,
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
1632
+ });
1633
+