@aws-sdk/client-s3vectors 3.928.0 → 3.930.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 (40) hide show
  1. package/dist-cjs/index.js +640 -1006
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/S3VectorsClient.js +2 -0
  4. package/dist-es/commands/CreateIndexCommand.js +3 -9
  5. package/dist-es/commands/CreateVectorBucketCommand.js +3 -9
  6. package/dist-es/commands/DeleteIndexCommand.js +3 -9
  7. package/dist-es/commands/DeleteVectorBucketCommand.js +3 -9
  8. package/dist-es/commands/DeleteVectorBucketPolicyCommand.js +3 -9
  9. package/dist-es/commands/DeleteVectorsCommand.js +3 -9
  10. package/dist-es/commands/GetIndexCommand.js +3 -9
  11. package/dist-es/commands/GetVectorBucketCommand.js +3 -9
  12. package/dist-es/commands/GetVectorBucketPolicyCommand.js +3 -9
  13. package/dist-es/commands/GetVectorsCommand.js +3 -9
  14. package/dist-es/commands/ListIndexesCommand.js +3 -9
  15. package/dist-es/commands/ListVectorBucketsCommand.js +3 -9
  16. package/dist-es/commands/ListVectorsCommand.js +3 -9
  17. package/dist-es/commands/PutVectorBucketPolicyCommand.js +3 -9
  18. package/dist-es/commands/PutVectorsCommand.js +3 -9
  19. package/dist-es/commands/QueryVectorsCommand.js +3 -9
  20. package/dist-es/models/models_0.js +0 -8
  21. package/dist-es/runtimeConfig.shared.js +2 -0
  22. package/dist-es/schemas/schemas_0.js +572 -0
  23. package/dist-types/S3VectorsClient.d.ts +10 -1
  24. package/dist-types/models/models_0.d.ts +4 -1
  25. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  26. package/dist-types/runtimeConfig.d.ts +1 -0
  27. package/dist-types/runtimeConfig.native.d.ts +1 -0
  28. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  29. package/dist-types/schemas/schemas_0.d.ts +87 -0
  30. package/dist-types/ts3.4/S3VectorsClient.d.ts +4 -0
  31. package/dist-types/ts3.4/models/models_0.d.ts +0 -1
  32. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  33. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  34. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  35. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  36. package/dist-types/ts3.4/schemas/schemas_0.d.ts +92 -0
  37. package/package.json +36 -34
  38. package/dist-es/protocols/Aws_restJson1.js +0 -848
  39. package/dist-types/protocols/Aws_restJson1.d.ts +0 -146
  40. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -197
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -89,6 +88,7 @@ class S3VectorsClient extends smithyClient.Client {
89
88
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
90
89
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
91
90
  this.config = _config_8;
91
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
92
92
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
93
93
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
94
94
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -108,14 +108,14 @@ class S3VectorsClient extends smithyClient.Client {
108
108
  }
109
109
  }
110
110
 
111
- class S3VectorsServiceException extends smithyClient.ServiceException {
111
+ let S3VectorsServiceException$1 = class S3VectorsServiceException extends smithyClient.ServiceException {
112
112
  constructor(options) {
113
113
  super(options);
114
114
  Object.setPrototypeOf(this, S3VectorsServiceException.prototype);
115
115
  }
116
- }
116
+ };
117
117
 
118
- class AccessDeniedException extends S3VectorsServiceException {
118
+ let AccessDeniedException$1 = class AccessDeniedException extends S3VectorsServiceException$1 {
119
119
  name = "AccessDeniedException";
120
120
  $fault = "client";
121
121
  constructor(opts) {
@@ -126,8 +126,8 @@ class AccessDeniedException extends S3VectorsServiceException {
126
126
  });
127
127
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
128
128
  }
129
- }
130
- class ConflictException extends S3VectorsServiceException {
129
+ };
130
+ let ConflictException$1 = class ConflictException extends S3VectorsServiceException$1 {
131
131
  name = "ConflictException";
132
132
  $fault = "client";
133
133
  constructor(opts) {
@@ -138,7 +138,7 @@ class ConflictException extends S3VectorsServiceException {
138
138
  });
139
139
  Object.setPrototypeOf(this, ConflictException.prototype);
140
140
  }
141
- }
141
+ };
142
142
  const DataType = {
143
143
  FLOAT32: "float32",
144
144
  };
@@ -146,7 +146,7 @@ const DistanceMetric = {
146
146
  COSINE: "cosine",
147
147
  EUCLIDEAN: "euclidean",
148
148
  };
149
- class InternalServerException extends S3VectorsServiceException {
149
+ let InternalServerException$1 = class InternalServerException extends S3VectorsServiceException$1 {
150
150
  name = "InternalServerException";
151
151
  $fault = "server";
152
152
  $retryable = {};
@@ -158,8 +158,8 @@ class InternalServerException extends S3VectorsServiceException {
158
158
  });
159
159
  Object.setPrototypeOf(this, InternalServerException.prototype);
160
160
  }
161
- }
162
- class NotFoundException extends S3VectorsServiceException {
161
+ };
162
+ let NotFoundException$1 = class NotFoundException extends S3VectorsServiceException$1 {
163
163
  name = "NotFoundException";
164
164
  $fault = "client";
165
165
  constructor(opts) {
@@ -170,8 +170,8 @@ class NotFoundException extends S3VectorsServiceException {
170
170
  });
171
171
  Object.setPrototypeOf(this, NotFoundException.prototype);
172
172
  }
173
- }
174
- class RequestTimeoutException extends S3VectorsServiceException {
173
+ };
174
+ let RequestTimeoutException$1 = class RequestTimeoutException extends S3VectorsServiceException$1 {
175
175
  name = "RequestTimeoutException";
176
176
  $fault = "client";
177
177
  $retryable = {};
@@ -183,8 +183,8 @@ class RequestTimeoutException extends S3VectorsServiceException {
183
183
  });
184
184
  Object.setPrototypeOf(this, RequestTimeoutException.prototype);
185
185
  }
186
- }
187
- class ServiceQuotaExceededException extends S3VectorsServiceException {
186
+ };
187
+ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends S3VectorsServiceException$1 {
188
188
  name = "ServiceQuotaExceededException";
189
189
  $fault = "client";
190
190
  constructor(opts) {
@@ -195,8 +195,8 @@ class ServiceQuotaExceededException extends S3VectorsServiceException {
195
195
  });
196
196
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
197
197
  }
198
- }
199
- class ServiceUnavailableException extends S3VectorsServiceException {
198
+ };
199
+ let ServiceUnavailableException$1 = class ServiceUnavailableException extends S3VectorsServiceException$1 {
200
200
  name = "ServiceUnavailableException";
201
201
  $fault = "server";
202
202
  $retryable = {};
@@ -208,8 +208,8 @@ class ServiceUnavailableException extends S3VectorsServiceException {
208
208
  });
209
209
  Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
210
210
  }
211
- }
212
- class TooManyRequestsException extends S3VectorsServiceException {
211
+ };
212
+ let TooManyRequestsException$1 = class TooManyRequestsException extends S3VectorsServiceException$1 {
213
213
  name = "TooManyRequestsException";
214
214
  $fault = "client";
215
215
  $retryable = {
@@ -223,8 +223,8 @@ class TooManyRequestsException extends S3VectorsServiceException {
223
223
  });
224
224
  Object.setPrototypeOf(this, TooManyRequestsException.prototype);
225
225
  }
226
- }
227
- class ValidationException extends S3VectorsServiceException {
226
+ };
227
+ let ValidationException$1 = class ValidationException extends S3VectorsServiceException$1 {
228
228
  name = "ValidationException";
229
229
  $fault = "client";
230
230
  fieldList;
@@ -237,12 +237,12 @@ class ValidationException extends S3VectorsServiceException {
237
237
  Object.setPrototypeOf(this, ValidationException.prototype);
238
238
  this.fieldList = opts.fieldList;
239
239
  }
240
- }
240
+ };
241
241
  const SseType = {
242
242
  AES256: "AES256",
243
243
  AWS_KMS: "aws:kms",
244
244
  };
245
- class KmsDisabledException extends S3VectorsServiceException {
245
+ let KmsDisabledException$1 = class KmsDisabledException extends S3VectorsServiceException$1 {
246
246
  name = "KmsDisabledException";
247
247
  $fault = "client";
248
248
  constructor(opts) {
@@ -253,8 +253,8 @@ class KmsDisabledException extends S3VectorsServiceException {
253
253
  });
254
254
  Object.setPrototypeOf(this, KmsDisabledException.prototype);
255
255
  }
256
- }
257
- class KmsInvalidKeyUsageException extends S3VectorsServiceException {
256
+ };
257
+ let KmsInvalidKeyUsageException$1 = class KmsInvalidKeyUsageException extends S3VectorsServiceException$1 {
258
258
  name = "KmsInvalidKeyUsageException";
259
259
  $fault = "client";
260
260
  constructor(opts) {
@@ -265,8 +265,8 @@ class KmsInvalidKeyUsageException extends S3VectorsServiceException {
265
265
  });
266
266
  Object.setPrototypeOf(this, KmsInvalidKeyUsageException.prototype);
267
267
  }
268
- }
269
- class KmsInvalidStateException extends S3VectorsServiceException {
268
+ };
269
+ let KmsInvalidStateException$1 = class KmsInvalidStateException extends S3VectorsServiceException$1 {
270
270
  name = "KmsInvalidStateException";
271
271
  $fault = "client";
272
272
  constructor(opts) {
@@ -277,8 +277,8 @@ class KmsInvalidStateException extends S3VectorsServiceException {
277
277
  });
278
278
  Object.setPrototypeOf(this, KmsInvalidStateException.prototype);
279
279
  }
280
- }
281
- class KmsNotFoundException extends S3VectorsServiceException {
280
+ };
281
+ let KmsNotFoundException$1 = class KmsNotFoundException extends S3VectorsServiceException$1 {
282
282
  name = "KmsNotFoundException";
283
283
  $fault = "client";
284
284
  constructor(opts) {
@@ -289,873 +289,582 @@ class KmsNotFoundException extends S3VectorsServiceException {
289
289
  });
290
290
  Object.setPrototypeOf(this, KmsNotFoundException.prototype);
291
291
  }
292
- }
293
- exports.VectorData = void 0;
294
- (function (VectorData) {
295
- VectorData.visit = (value, visitor) => {
296
- if (value.float32 !== undefined)
297
- return visitor.float32(value.float32);
298
- return visitor._(value.$unknown[0], value.$unknown[1]);
299
- };
300
- })(exports.VectorData || (exports.VectorData = {}));
301
-
302
- const se_CreateIndexCommand = async (input, context) => {
303
- const b = core.requestBuilder(input, context);
304
- const headers = {
305
- "content-type": "application/json",
306
- };
307
- b.bp("/CreateIndex");
308
- let body;
309
- body = JSON.stringify(smithyClient.take(input, {
310
- dataType: [],
311
- dimension: [],
312
- distanceMetric: [],
313
- indexName: [],
314
- metadataConfiguration: (_) => smithyClient._json(_),
315
- vectorBucketArn: [],
316
- vectorBucketName: [],
317
- }));
318
- b.m("POST").h(headers).b(body);
319
- return b.build();
320
292
  };
321
- const se_CreateVectorBucketCommand = async (input, context) => {
322
- const b = core.requestBuilder(input, context);
323
- const headers = {
324
- "content-type": "application/json",
325
- };
326
- b.bp("/CreateVectorBucket");
327
- let body;
328
- body = JSON.stringify(smithyClient.take(input, {
329
- encryptionConfiguration: (_) => smithyClient._json(_),
330
- vectorBucketName: [],
331
- }));
332
- b.m("POST").h(headers).b(body);
333
- return b.build();
334
- };
335
- const se_DeleteIndexCommand = async (input, context) => {
336
- const b = core.requestBuilder(input, context);
337
- const headers = {
338
- "content-type": "application/json",
339
- };
340
- b.bp("/DeleteIndex");
341
- let body;
342
- body = JSON.stringify(smithyClient.take(input, {
343
- indexArn: [],
344
- indexName: [],
345
- vectorBucketName: [],
346
- }));
347
- b.m("POST").h(headers).b(body);
348
- return b.build();
349
- };
350
- const se_DeleteVectorBucketCommand = async (input, context) => {
351
- const b = core.requestBuilder(input, context);
352
- const headers = {
353
- "content-type": "application/json",
354
- };
355
- b.bp("/DeleteVectorBucket");
356
- let body;
357
- body = JSON.stringify(smithyClient.take(input, {
358
- vectorBucketArn: [],
359
- vectorBucketName: [],
360
- }));
361
- b.m("POST").h(headers).b(body);
362
- return b.build();
363
- };
364
- const se_DeleteVectorBucketPolicyCommand = async (input, context) => {
365
- const b = core.requestBuilder(input, context);
366
- const headers = {
367
- "content-type": "application/json",
368
- };
369
- b.bp("/DeleteVectorBucketPolicy");
370
- let body;
371
- body = JSON.stringify(smithyClient.take(input, {
372
- vectorBucketArn: [],
373
- vectorBucketName: [],
374
- }));
375
- b.m("POST").h(headers).b(body);
376
- return b.build();
377
- };
378
- const se_DeleteVectorsCommand = async (input, context) => {
379
- const b = core.requestBuilder(input, context);
380
- const headers = {
381
- "content-type": "application/json",
382
- };
383
- b.bp("/DeleteVectors");
384
- let body;
385
- body = JSON.stringify(smithyClient.take(input, {
386
- indexArn: [],
387
- indexName: [],
388
- keys: (_) => smithyClient._json(_),
389
- vectorBucketName: [],
390
- }));
391
- b.m("POST").h(headers).b(body);
392
- return b.build();
393
- };
394
- const se_GetIndexCommand = async (input, context) => {
395
- const b = core.requestBuilder(input, context);
396
- const headers = {
397
- "content-type": "application/json",
398
- };
399
- b.bp("/GetIndex");
400
- let body;
401
- body = JSON.stringify(smithyClient.take(input, {
402
- indexArn: [],
403
- indexName: [],
404
- vectorBucketName: [],
405
- }));
406
- b.m("POST").h(headers).b(body);
407
- return b.build();
408
- };
409
- const se_GetVectorBucketCommand = async (input, context) => {
410
- const b = core.requestBuilder(input, context);
411
- const headers = {
412
- "content-type": "application/json",
413
- };
414
- b.bp("/GetVectorBucket");
415
- let body;
416
- body = JSON.stringify(smithyClient.take(input, {
417
- vectorBucketArn: [],
418
- vectorBucketName: [],
419
- }));
420
- b.m("POST").h(headers).b(body);
421
- return b.build();
422
- };
423
- const se_GetVectorBucketPolicyCommand = async (input, context) => {
424
- const b = core.requestBuilder(input, context);
425
- const headers = {
426
- "content-type": "application/json",
427
- };
428
- b.bp("/GetVectorBucketPolicy");
429
- let body;
430
- body = JSON.stringify(smithyClient.take(input, {
431
- vectorBucketArn: [],
432
- vectorBucketName: [],
433
- }));
434
- b.m("POST").h(headers).b(body);
435
- return b.build();
436
- };
437
- const se_GetVectorsCommand = async (input, context) => {
438
- const b = core.requestBuilder(input, context);
439
- const headers = {
440
- "content-type": "application/json",
441
- };
442
- b.bp("/GetVectors");
443
- let body;
444
- body = JSON.stringify(smithyClient.take(input, {
445
- indexArn: [],
446
- indexName: [],
447
- keys: (_) => smithyClient._json(_),
448
- returnData: [],
449
- returnMetadata: [],
450
- vectorBucketName: [],
451
- }));
452
- b.m("POST").h(headers).b(body);
453
- return b.build();
454
- };
455
- const se_ListIndexesCommand = async (input, context) => {
456
- const b = core.requestBuilder(input, context);
457
- const headers = {
458
- "content-type": "application/json",
459
- };
460
- b.bp("/ListIndexes");
461
- let body;
462
- body = JSON.stringify(smithyClient.take(input, {
463
- maxResults: [],
464
- nextToken: [],
465
- prefix: [],
466
- vectorBucketArn: [],
467
- vectorBucketName: [],
468
- }));
469
- b.m("POST").h(headers).b(body);
470
- return b.build();
471
- };
472
- const se_ListVectorBucketsCommand = async (input, context) => {
473
- const b = core.requestBuilder(input, context);
474
- const headers = {
475
- "content-type": "application/json",
476
- };
477
- b.bp("/ListVectorBuckets");
478
- let body;
479
- body = JSON.stringify(smithyClient.take(input, {
480
- maxResults: [],
481
- nextToken: [],
482
- prefix: [],
483
- }));
484
- b.m("POST").h(headers).b(body);
485
- return b.build();
486
- };
487
- const se_ListVectorsCommand = async (input, context) => {
488
- const b = core.requestBuilder(input, context);
489
- const headers = {
490
- "content-type": "application/json",
491
- };
492
- b.bp("/ListVectors");
493
- let body;
494
- body = JSON.stringify(smithyClient.take(input, {
495
- indexArn: [],
496
- indexName: [],
497
- maxResults: [],
498
- nextToken: [],
499
- returnData: [],
500
- returnMetadata: [],
501
- segmentCount: [],
502
- segmentIndex: [],
503
- vectorBucketName: [],
504
- }));
505
- b.m("POST").h(headers).b(body);
506
- return b.build();
507
- };
508
- const se_PutVectorBucketPolicyCommand = async (input, context) => {
509
- const b = core.requestBuilder(input, context);
510
- const headers = {
511
- "content-type": "application/json",
512
- };
513
- b.bp("/PutVectorBucketPolicy");
514
- let body;
515
- body = JSON.stringify(smithyClient.take(input, {
516
- policy: [],
517
- vectorBucketArn: [],
518
- vectorBucketName: [],
519
- }));
520
- b.m("POST").h(headers).b(body);
521
- return b.build();
522
- };
523
- const se_PutVectorsCommand = async (input, context) => {
524
- const b = core.requestBuilder(input, context);
525
- const headers = {
526
- "content-type": "application/json",
527
- };
528
- b.bp("/PutVectors");
529
- let body;
530
- body = JSON.stringify(smithyClient.take(input, {
531
- indexArn: [],
532
- indexName: [],
533
- vectorBucketName: [],
534
- vectors: (_) => se_PutVectorsInputList(_),
535
- }));
536
- b.m("POST").h(headers).b(body);
537
- return b.build();
538
- };
539
- const se_QueryVectorsCommand = async (input, context) => {
540
- const b = core.requestBuilder(input, context);
541
- const headers = {
542
- "content-type": "application/json",
543
- };
544
- b.bp("/QueryVectors");
545
- let body;
546
- body = JSON.stringify(smithyClient.take(input, {
547
- filter: (_) => se_Document(_),
548
- indexArn: [],
549
- indexName: [],
550
- queryVector: (_) => se_VectorData(_),
551
- returnDistance: [],
552
- returnMetadata: [],
553
- topK: [],
554
- vectorBucketName: [],
555
- }));
556
- b.m("POST").h(headers).b(body);
557
- return b.build();
558
- };
559
- const de_CreateIndexCommand = async (output, context) => {
560
- if (output.statusCode !== 200 && output.statusCode >= 300) {
561
- return de_CommandError(output, context);
562
- }
563
- const contents = smithyClient.map({
564
- $metadata: deserializeMetadata(output),
565
- });
566
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
567
- const doc = smithyClient.take(data, {
568
- indexArn: smithyClient.expectString,
569
- });
570
- Object.assign(contents, doc);
571
- return contents;
572
- };
573
- const de_CreateVectorBucketCommand = async (output, context) => {
574
- if (output.statusCode !== 200 && output.statusCode >= 300) {
575
- return de_CommandError(output, context);
576
- }
577
- const contents = smithyClient.map({
578
- $metadata: deserializeMetadata(output),
579
- });
580
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
581
- const doc = smithyClient.take(data, {
582
- vectorBucketArn: smithyClient.expectString,
583
- });
584
- Object.assign(contents, doc);
585
- return contents;
586
- };
587
- const de_DeleteIndexCommand = async (output, context) => {
588
- if (output.statusCode !== 200 && output.statusCode >= 300) {
589
- return de_CommandError(output, context);
590
- }
591
- const contents = smithyClient.map({
592
- $metadata: deserializeMetadata(output),
593
- });
594
- await smithyClient.collectBody(output.body, context);
595
- return contents;
596
- };
597
- const de_DeleteVectorBucketCommand = async (output, context) => {
598
- if (output.statusCode !== 200 && output.statusCode >= 300) {
599
- return de_CommandError(output, context);
600
- }
601
- const contents = smithyClient.map({
602
- $metadata: deserializeMetadata(output),
603
- });
604
- await smithyClient.collectBody(output.body, context);
605
- return contents;
606
- };
607
- const de_DeleteVectorBucketPolicyCommand = async (output, context) => {
608
- if (output.statusCode !== 200 && output.statusCode >= 300) {
609
- return de_CommandError(output, context);
610
- }
611
- const contents = smithyClient.map({
612
- $metadata: deserializeMetadata(output),
613
- });
614
- await smithyClient.collectBody(output.body, context);
615
- return contents;
616
- };
617
- const de_DeleteVectorsCommand = async (output, context) => {
618
- if (output.statusCode !== 200 && output.statusCode >= 300) {
619
- return de_CommandError(output, context);
620
- }
621
- const contents = smithyClient.map({
622
- $metadata: deserializeMetadata(output),
623
- });
624
- await smithyClient.collectBody(output.body, context);
625
- return contents;
626
- };
627
- const de_GetIndexCommand = async (output, context) => {
628
- if (output.statusCode !== 200 && output.statusCode >= 300) {
629
- return de_CommandError(output, context);
630
- }
631
- const contents = smithyClient.map({
632
- $metadata: deserializeMetadata(output),
633
- });
634
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
635
- const doc = smithyClient.take(data, {
636
- index: (_) => de_Index(_),
637
- });
638
- Object.assign(contents, doc);
639
- return contents;
640
- };
641
- const de_GetVectorBucketCommand = async (output, context) => {
642
- if (output.statusCode !== 200 && output.statusCode >= 300) {
643
- return de_CommandError(output, context);
644
- }
645
- const contents = smithyClient.map({
646
- $metadata: deserializeMetadata(output),
647
- });
648
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
649
- const doc = smithyClient.take(data, {
650
- vectorBucket: (_) => de_VectorBucket(_),
651
- });
652
- Object.assign(contents, doc);
653
- return contents;
654
- };
655
- const de_GetVectorBucketPolicyCommand = async (output, context) => {
656
- if (output.statusCode !== 200 && output.statusCode >= 300) {
657
- return de_CommandError(output, context);
658
- }
659
- const contents = smithyClient.map({
660
- $metadata: deserializeMetadata(output),
661
- });
662
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
663
- const doc = smithyClient.take(data, {
664
- policy: smithyClient.expectString,
665
- });
666
- Object.assign(contents, doc);
667
- return contents;
668
- };
669
- const de_GetVectorsCommand = async (output, context) => {
670
- if (output.statusCode !== 200 && output.statusCode >= 300) {
671
- return de_CommandError(output, context);
672
- }
673
- const contents = smithyClient.map({
674
- $metadata: deserializeMetadata(output),
675
- });
676
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
677
- const doc = smithyClient.take(data, {
678
- vectors: (_) => de_GetVectorsOutputList(_),
679
- });
680
- Object.assign(contents, doc);
681
- return contents;
682
- };
683
- const de_ListIndexesCommand = async (output, context) => {
684
- if (output.statusCode !== 200 && output.statusCode >= 300) {
685
- return de_CommandError(output, context);
686
- }
687
- const contents = smithyClient.map({
688
- $metadata: deserializeMetadata(output),
689
- });
690
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
691
- const doc = smithyClient.take(data, {
692
- indexes: (_) => de_ListIndexesOutputList(_),
693
- nextToken: smithyClient.expectString,
694
- });
695
- Object.assign(contents, doc);
696
- return contents;
697
- };
698
- const de_ListVectorBucketsCommand = async (output, context) => {
699
- if (output.statusCode !== 200 && output.statusCode >= 300) {
700
- return de_CommandError(output, context);
701
- }
702
- const contents = smithyClient.map({
703
- $metadata: deserializeMetadata(output),
704
- });
705
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
706
- const doc = smithyClient.take(data, {
707
- nextToken: smithyClient.expectString,
708
- vectorBuckets: (_) => de_ListVectorBucketsOutputList(_),
709
- });
710
- Object.assign(contents, doc);
711
- return contents;
712
- };
713
- const de_ListVectorsCommand = async (output, context) => {
714
- if (output.statusCode !== 200 && output.statusCode >= 300) {
715
- return de_CommandError(output, context);
716
- }
717
- const contents = smithyClient.map({
718
- $metadata: deserializeMetadata(output),
719
- });
720
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
721
- const doc = smithyClient.take(data, {
722
- nextToken: smithyClient.expectString,
723
- vectors: (_) => de_ListVectorsOutputList(_),
724
- });
725
- Object.assign(contents, doc);
726
- return contents;
727
- };
728
- const de_PutVectorBucketPolicyCommand = async (output, context) => {
729
- if (output.statusCode !== 200 && output.statusCode >= 300) {
730
- return de_CommandError(output, context);
731
- }
732
- const contents = smithyClient.map({
733
- $metadata: deserializeMetadata(output),
734
- });
735
- await smithyClient.collectBody(output.body, context);
736
- return contents;
737
- };
738
- const de_PutVectorsCommand = async (output, context) => {
739
- if (output.statusCode !== 200 && output.statusCode >= 300) {
740
- return de_CommandError(output, context);
741
- }
742
- const contents = smithyClient.map({
743
- $metadata: deserializeMetadata(output),
744
- });
745
- await smithyClient.collectBody(output.body, context);
746
- return contents;
747
- };
748
- const de_QueryVectorsCommand = async (output, context) => {
749
- if (output.statusCode !== 200 && output.statusCode >= 300) {
750
- return de_CommandError(output, context);
751
- }
752
- const contents = smithyClient.map({
753
- $metadata: deserializeMetadata(output),
754
- });
755
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
756
- const doc = smithyClient.take(data, {
757
- distanceMetric: smithyClient.expectString,
758
- vectors: (_) => de_QueryVectorsOutputList(_),
759
- });
760
- Object.assign(contents, doc);
761
- return contents;
762
- };
763
- const de_CommandError = async (output, context) => {
764
- const parsedOutput = {
765
- ...output,
766
- body: await core$1.parseJsonErrorBody(output.body, context),
767
- };
768
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
769
- switch (errorCode) {
770
- case "AccessDeniedException":
771
- case "com.amazonaws.s3vectors#AccessDeniedException":
772
- throw await de_AccessDeniedExceptionRes(parsedOutput);
773
- case "ConflictException":
774
- case "com.amazonaws.s3vectors#ConflictException":
775
- throw await de_ConflictExceptionRes(parsedOutput);
776
- case "InternalServerException":
777
- case "com.amazonaws.s3vectors#InternalServerException":
778
- throw await de_InternalServerExceptionRes(parsedOutput);
779
- case "NotFoundException":
780
- case "com.amazonaws.s3vectors#NotFoundException":
781
- throw await de_NotFoundExceptionRes(parsedOutput);
782
- case "RequestTimeoutException":
783
- case "com.amazonaws.s3vectors#RequestTimeoutException":
784
- throw await de_RequestTimeoutExceptionRes(parsedOutput);
785
- case "ServiceQuotaExceededException":
786
- case "com.amazonaws.s3vectors#ServiceQuotaExceededException":
787
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
788
- case "ServiceUnavailableException":
789
- case "com.amazonaws.s3vectors#ServiceUnavailableException":
790
- throw await de_ServiceUnavailableExceptionRes(parsedOutput);
791
- case "TooManyRequestsException":
792
- case "com.amazonaws.s3vectors#TooManyRequestsException":
793
- throw await de_TooManyRequestsExceptionRes(parsedOutput);
794
- case "ValidationException":
795
- case "com.amazonaws.s3vectors#ValidationException":
796
- throw await de_ValidationExceptionRes(parsedOutput);
797
- case "KmsDisabledException":
798
- case "com.amazonaws.s3vectors#KmsDisabledException":
799
- throw await de_KmsDisabledExceptionRes(parsedOutput);
800
- case "KmsInvalidKeyUsageException":
801
- case "com.amazonaws.s3vectors#KmsInvalidKeyUsageException":
802
- throw await de_KmsInvalidKeyUsageExceptionRes(parsedOutput);
803
- case "KmsInvalidStateException":
804
- case "com.amazonaws.s3vectors#KmsInvalidStateException":
805
- throw await de_KmsInvalidStateExceptionRes(parsedOutput);
806
- case "KmsNotFoundException":
807
- case "com.amazonaws.s3vectors#KmsNotFoundException":
808
- throw await de_KmsNotFoundExceptionRes(parsedOutput);
809
- default:
810
- const parsedBody = parsedOutput.body;
811
- return throwDefaultError({
812
- output,
813
- parsedBody,
814
- errorCode,
815
- });
816
- }
817
- };
818
- const throwDefaultError = smithyClient.withBaseException(S3VectorsServiceException);
819
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
820
- const contents = smithyClient.map({});
821
- const data = parsedOutput.body;
822
- const doc = smithyClient.take(data, {
823
- message: smithyClient.expectString,
824
- });
825
- Object.assign(contents, doc);
826
- const exception = new AccessDeniedException({
827
- $metadata: deserializeMetadata(parsedOutput),
828
- ...contents,
829
- });
830
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
831
- };
832
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
833
- const contents = smithyClient.map({});
834
- const data = parsedOutput.body;
835
- const doc = smithyClient.take(data, {
836
- message: smithyClient.expectString,
837
- });
838
- Object.assign(contents, doc);
839
- const exception = new ConflictException({
840
- $metadata: deserializeMetadata(parsedOutput),
841
- ...contents,
842
- });
843
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
844
- };
845
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
846
- const contents = smithyClient.map({});
847
- const data = parsedOutput.body;
848
- const doc = smithyClient.take(data, {
849
- message: smithyClient.expectString,
850
- });
851
- Object.assign(contents, doc);
852
- const exception = new InternalServerException({
853
- $metadata: deserializeMetadata(parsedOutput),
854
- ...contents,
855
- });
856
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
857
- };
858
- const de_KmsDisabledExceptionRes = async (parsedOutput, context) => {
859
- const contents = smithyClient.map({});
860
- const data = parsedOutput.body;
861
- const doc = smithyClient.take(data, {
862
- message: smithyClient.expectString,
863
- });
864
- Object.assign(contents, doc);
865
- const exception = new KmsDisabledException({
866
- $metadata: deserializeMetadata(parsedOutput),
867
- ...contents,
868
- });
869
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
870
- };
871
- const de_KmsInvalidKeyUsageExceptionRes = async (parsedOutput, context) => {
872
- const contents = smithyClient.map({});
873
- const data = parsedOutput.body;
874
- const doc = smithyClient.take(data, {
875
- message: smithyClient.expectString,
876
- });
877
- Object.assign(contents, doc);
878
- const exception = new KmsInvalidKeyUsageException({
879
- $metadata: deserializeMetadata(parsedOutput),
880
- ...contents,
881
- });
882
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
883
- };
884
- const de_KmsInvalidStateExceptionRes = async (parsedOutput, context) => {
885
- const contents = smithyClient.map({});
886
- const data = parsedOutput.body;
887
- const doc = smithyClient.take(data, {
888
- message: smithyClient.expectString,
889
- });
890
- Object.assign(contents, doc);
891
- const exception = new KmsInvalidStateException({
892
- $metadata: deserializeMetadata(parsedOutput),
893
- ...contents,
894
- });
895
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
896
- };
897
- const de_KmsNotFoundExceptionRes = async (parsedOutput, context) => {
898
- const contents = smithyClient.map({});
899
- const data = parsedOutput.body;
900
- const doc = smithyClient.take(data, {
901
- message: smithyClient.expectString,
902
- });
903
- Object.assign(contents, doc);
904
- const exception = new KmsNotFoundException({
905
- $metadata: deserializeMetadata(parsedOutput),
906
- ...contents,
907
- });
908
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
909
- };
910
- const de_NotFoundExceptionRes = async (parsedOutput, context) => {
911
- const contents = smithyClient.map({});
912
- const data = parsedOutput.body;
913
- const doc = smithyClient.take(data, {
914
- message: smithyClient.expectString,
915
- });
916
- Object.assign(contents, doc);
917
- const exception = new NotFoundException({
918
- $metadata: deserializeMetadata(parsedOutput),
919
- ...contents,
920
- });
921
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
922
- };
923
- const de_RequestTimeoutExceptionRes = async (parsedOutput, context) => {
924
- const contents = smithyClient.map({});
925
- const data = parsedOutput.body;
926
- const doc = smithyClient.take(data, {
927
- message: smithyClient.expectString,
928
- });
929
- Object.assign(contents, doc);
930
- const exception = new RequestTimeoutException({
931
- $metadata: deserializeMetadata(parsedOutput),
932
- ...contents,
933
- });
934
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
935
- };
936
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
937
- const contents = smithyClient.map({});
938
- const data = parsedOutput.body;
939
- const doc = smithyClient.take(data, {
940
- message: smithyClient.expectString,
941
- });
942
- Object.assign(contents, doc);
943
- const exception = new ServiceQuotaExceededException({
944
- $metadata: deserializeMetadata(parsedOutput),
945
- ...contents,
946
- });
947
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
948
- };
949
- const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
950
- const contents = smithyClient.map({});
951
- const data = parsedOutput.body;
952
- const doc = smithyClient.take(data, {
953
- message: smithyClient.expectString,
954
- });
955
- Object.assign(contents, doc);
956
- const exception = new ServiceUnavailableException({
957
- $metadata: deserializeMetadata(parsedOutput),
958
- ...contents,
959
- });
960
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
961
- };
962
- const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
963
- const contents = smithyClient.map({});
964
- const data = parsedOutput.body;
965
- const doc = smithyClient.take(data, {
966
- message: smithyClient.expectString,
967
- });
968
- Object.assign(contents, doc);
969
- const exception = new TooManyRequestsException({
970
- $metadata: deserializeMetadata(parsedOutput),
971
- ...contents,
972
- });
973
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
974
- };
975
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
976
- const contents = smithyClient.map({});
977
- const data = parsedOutput.body;
978
- const doc = smithyClient.take(data, {
979
- fieldList: smithyClient._json,
980
- message: smithyClient.expectString,
981
- });
982
- Object.assign(contents, doc);
983
- const exception = new ValidationException({
984
- $metadata: deserializeMetadata(parsedOutput),
985
- ...contents,
986
- });
987
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
988
- };
989
- const se_Float32VectorData = (input, context) => {
990
- return input
991
- .filter((e) => e != null)
992
- .map((entry) => {
993
- return smithyClient.serializeFloat(entry);
994
- });
995
- };
996
- const se_PutInputVector = (input, context) => {
997
- return smithyClient.take(input, {
998
- data: (_) => se_VectorData(_),
999
- key: [],
1000
- metadata: (_) => se_VectorMetadata(_),
1001
- });
1002
- };
1003
- const se_PutVectorsInputList = (input, context) => {
1004
- return input
1005
- .filter((e) => e != null)
1006
- .map((entry) => {
1007
- return se_PutInputVector(entry);
1008
- });
1009
- };
1010
- const se_VectorData = (input, context) => {
1011
- return exports.VectorData.visit(input, {
1012
- float32: (value) => ({ float32: se_Float32VectorData(value) }),
1013
- _: (name, value) => ({ [name]: value }),
1014
- });
1015
- };
1016
- const se_VectorMetadata = (input, context) => {
1017
- return input;
1018
- };
1019
- const se_Document = (input, context) => {
1020
- return input;
1021
- };
1022
- const de_Float32VectorData = (output, context) => {
1023
- const retVal = (output || [])
1024
- .filter((e) => e != null)
1025
- .map((entry) => {
1026
- return smithyClient.limitedParseFloat32(entry);
1027
- });
1028
- return retVal;
1029
- };
1030
- const de_GetOutputVector = (output, context) => {
1031
- return smithyClient.take(output, {
1032
- data: (_) => de_VectorData(core$1.awsExpectUnion(_)),
1033
- key: smithyClient.expectString,
1034
- metadata: (_) => de_VectorMetadata(_),
1035
- });
1036
- };
1037
- const de_GetVectorsOutputList = (output, context) => {
1038
- const retVal = (output || [])
1039
- .filter((e) => e != null)
1040
- .map((entry) => {
1041
- return de_GetOutputVector(entry);
1042
- });
1043
- return retVal;
1044
- };
1045
- const de_Index = (output, context) => {
1046
- return smithyClient.take(output, {
1047
- creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1048
- dataType: smithyClient.expectString,
1049
- dimension: smithyClient.expectInt32,
1050
- distanceMetric: smithyClient.expectString,
1051
- indexArn: smithyClient.expectString,
1052
- indexName: smithyClient.expectString,
1053
- metadataConfiguration: smithyClient._json,
1054
- vectorBucketName: smithyClient.expectString,
1055
- });
1056
- };
1057
- const de_IndexSummary = (output, context) => {
1058
- return smithyClient.take(output, {
1059
- creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1060
- indexArn: smithyClient.expectString,
1061
- indexName: smithyClient.expectString,
1062
- vectorBucketName: smithyClient.expectString,
1063
- });
1064
- };
1065
- const de_ListIndexesOutputList = (output, context) => {
1066
- const retVal = (output || [])
1067
- .filter((e) => e != null)
1068
- .map((entry) => {
1069
- return de_IndexSummary(entry);
1070
- });
1071
- return retVal;
1072
- };
1073
- const de_ListOutputVector = (output, context) => {
1074
- return smithyClient.take(output, {
1075
- data: (_) => de_VectorData(core$1.awsExpectUnion(_)),
1076
- key: smithyClient.expectString,
1077
- metadata: (_) => de_VectorMetadata(_),
1078
- });
1079
- };
1080
- const de_ListVectorBucketsOutputList = (output, context) => {
1081
- const retVal = (output || [])
1082
- .filter((e) => e != null)
1083
- .map((entry) => {
1084
- return de_VectorBucketSummary(entry);
1085
- });
1086
- return retVal;
1087
- };
1088
- const de_ListVectorsOutputList = (output, context) => {
1089
- const retVal = (output || [])
1090
- .filter((e) => e != null)
1091
- .map((entry) => {
1092
- return de_ListOutputVector(entry);
1093
- });
1094
- return retVal;
1095
- };
1096
- const de_QueryOutputVector = (output, context) => {
1097
- return smithyClient.take(output, {
1098
- data: (_) => de_VectorData(core$1.awsExpectUnion(_)),
1099
- distance: smithyClient.limitedParseFloat32,
1100
- key: smithyClient.expectString,
1101
- metadata: (_) => de_VectorMetadata(_),
1102
- });
1103
- };
1104
- const de_QueryVectorsOutputList = (output, context) => {
1105
- const retVal = (output || [])
1106
- .filter((e) => e != null)
1107
- .map((entry) => {
1108
- return de_QueryOutputVector(entry);
1109
- });
1110
- return retVal;
1111
- };
1112
- const de_VectorBucket = (output, context) => {
1113
- return smithyClient.take(output, {
1114
- creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1115
- encryptionConfiguration: smithyClient._json,
1116
- vectorBucketArn: smithyClient.expectString,
1117
- vectorBucketName: smithyClient.expectString,
1118
- });
1119
- };
1120
- const de_VectorBucketSummary = (output, context) => {
1121
- return smithyClient.take(output, {
1122
- creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1123
- vectorBucketArn: smithyClient.expectString,
1124
- vectorBucketName: smithyClient.expectString,
1125
- });
1126
- };
1127
- const de_VectorData = (output, context) => {
1128
- if (output.float32 != null) {
1129
- return {
1130
- float32: de_Float32VectorData(output.float32),
1131
- };
1132
- }
1133
- return { $unknown: Object.entries(output)[0] };
1134
- };
1135
- const de_VectorMetadata = (output, context) => {
1136
- return output;
1137
- };
1138
- const deserializeMetadata = (output) => ({
1139
- httpStatusCode: output.statusCode,
1140
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1141
- extendedRequestId: output.headers["x-amz-id-2"],
1142
- cfId: output.headers["x-amz-cf-id"],
1143
- });
293
+
294
+ const _ADE = "AccessDeniedException";
295
+ const _CE = "ConflictException";
296
+ const _CI = "CreateIndex";
297
+ const _CII = "CreateIndexInput";
298
+ const _CIO = "CreateIndexOutput";
299
+ const _CVB = "CreateVectorBucket";
300
+ const _CVBI = "CreateVectorBucketInput";
301
+ const _CVBO = "CreateVectorBucketOutput";
302
+ const _DI = "DeleteIndex";
303
+ const _DII = "DeleteIndexInput";
304
+ const _DIO = "DeleteIndexOutput";
305
+ const _DV = "DeleteVectors";
306
+ const _DVB = "DeleteVectorBucket";
307
+ const _DVBI = "DeleteVectorBucketInput";
308
+ const _DVBO = "DeleteVectorBucketOutput";
309
+ const _DVBP = "DeleteVectorBucketPolicy";
310
+ const _DVBPI = "DeleteVectorBucketPolicyInput";
311
+ const _DVBPO = "DeleteVectorBucketPolicyOutput";
312
+ const _DVI = "DeleteVectorsInput";
313
+ const _DVO = "DeleteVectorsOutput";
314
+ const _EC = "EncryptionConfiguration";
315
+ const _GI = "GetIndex";
316
+ const _GII = "GetIndexInput";
317
+ const _GIO = "GetIndexOutput";
318
+ const _GOV = "GetOutputVector";
319
+ const _GV = "GetVectors";
320
+ const _GVB = "GetVectorBucket";
321
+ const _GVBI = "GetVectorBucketInput";
322
+ const _GVBO = "GetVectorBucketOutput";
323
+ const _GVBP = "GetVectorBucketPolicy";
324
+ const _GVBPI = "GetVectorBucketPolicyInput";
325
+ const _GVBPO = "GetVectorBucketPolicyOutput";
326
+ const _GVI = "GetVectorsInput";
327
+ const _GVO = "GetVectorsOutput";
328
+ const _GVOL = "GetVectorsOutputList";
329
+ const _I = "Index";
330
+ const _IS = "IndexSummary";
331
+ const _ISE = "InternalServerException";
332
+ const _KDE = "KmsDisabledException";
333
+ const _KIKUE = "KmsInvalidKeyUsageException";
334
+ const _KISE = "KmsInvalidStateException";
335
+ const _KNFE = "KmsNotFoundException";
336
+ const _LI = "ListIndexes";
337
+ const _LII = "ListIndexesInput";
338
+ const _LIO = "ListIndexesOutput";
339
+ const _LIOL = "ListIndexesOutputList";
340
+ const _LOV = "ListOutputVector";
341
+ const _LV = "ListVectors";
342
+ const _LVB = "ListVectorBuckets";
343
+ const _LVBI = "ListVectorBucketsInput";
344
+ const _LVBO = "ListVectorBucketsOutput";
345
+ const _LVBOL = "ListVectorBucketsOutputList";
346
+ const _LVI = "ListVectorsInput";
347
+ const _LVO = "ListVectorsOutput";
348
+ const _LVOL = "ListVectorsOutputList";
349
+ const _MC = "MetadataConfiguration";
350
+ const _NFE = "NotFoundException";
351
+ const _PIV = "PutInputVector";
352
+ const _PV = "PutVectors";
353
+ const _PVBP = "PutVectorBucketPolicy";
354
+ const _PVBPI = "PutVectorBucketPolicyInput";
355
+ const _PVBPO = "PutVectorBucketPolicyOutput";
356
+ const _PVI = "PutVectorsInput";
357
+ const _PVIL = "PutVectorsInputList";
358
+ const _PVO = "PutVectorsOutput";
359
+ const _QOV = "QueryOutputVector";
360
+ const _QV = "QueryVectors";
361
+ const _QVI = "QueryVectorsInput";
362
+ const _QVO = "QueryVectorsOutput";
363
+ const _QVOL = "QueryVectorsOutputList";
364
+ const _RTE = "RequestTimeoutException";
365
+ const _SQEE = "ServiceQuotaExceededException";
366
+ const _SUE = "ServiceUnavailableException";
367
+ const _TMRE = "TooManyRequestsException";
368
+ const _VB = "VectorBucket";
369
+ const _VBS = "VectorBucketSummary";
370
+ const _VD = "VectorData";
371
+ const _VE = "ValidationException";
372
+ const _VEF = "ValidationExceptionField";
373
+ const _VEFL = "ValidationExceptionFieldList";
374
+ const _c = "client";
375
+ const _cT = "creationTime";
376
+ const _d = "dimension";
377
+ const _dM = "distanceMetric";
378
+ const _dT = "dataType";
379
+ const _da = "data";
380
+ const _di = "distance";
381
+ const _e = "error";
382
+ const _eC = "encryptionConfiguration";
383
+ const _f = "filter";
384
+ const _fL = "fieldList";
385
+ const _fl = "float32";
386
+ const _h = "http";
387
+ const _hE = "httpError";
388
+ const _i = "index";
389
+ const _iA = "indexArn";
390
+ const _iN = "indexName";
391
+ const _in = "indexes";
392
+ const _k = "keys";
393
+ const _kKA = "kmsKeyArn";
394
+ const _ke = "key";
395
+ const _m = "message";
396
+ const _mC = "metadataConfiguration";
397
+ const _mR = "maxResults";
398
+ const _me = "metadata";
399
+ const _nFMK = "nonFilterableMetadataKeys";
400
+ const _nT = "nextToken";
401
+ const _p = "policy";
402
+ const _pa = "path";
403
+ const _pr = "prefix";
404
+ const _qV = "queryVector";
405
+ const _rD = "returnData";
406
+ const _rDe = "returnDistance";
407
+ const _rM = "returnMetadata";
408
+ const _s = "server";
409
+ const _sC = "segmentCount";
410
+ const _sI = "segmentIndex";
411
+ const _sT = "sseType";
412
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.s3vectors";
413
+ const _tK = "topK";
414
+ const _v = "vectors";
415
+ const _vB = "vectorBucket";
416
+ const _vBA = "vectorBucketArn";
417
+ const _vBN = "vectorBucketName";
418
+ const _vBe = "vectorBuckets";
419
+ const n0 = "com.amazonaws.s3vectors";
420
+ var AccessDeniedException = [
421
+ -3,
422
+ n0,
423
+ _ADE,
424
+ {
425
+ [_e]: _c,
426
+ [_hE]: 403,
427
+ },
428
+ [_m],
429
+ [0],
430
+ ];
431
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
432
+ var ConflictException = [
433
+ -3,
434
+ n0,
435
+ _CE,
436
+ {
437
+ [_e]: _c,
438
+ [_hE]: 409,
439
+ },
440
+ [_m],
441
+ [0],
442
+ ];
443
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
444
+ var CreateIndexInput = [
445
+ 3,
446
+ n0,
447
+ _CII,
448
+ 0,
449
+ [_vBN, _vBA, _iN, _dT, _d, _dM, _mC],
450
+ [0, 0, 0, 0, 1, 0, () => MetadataConfiguration],
451
+ ];
452
+ var CreateIndexOutput = [3, n0, _CIO, 0, [_iA], [0]];
453
+ var CreateVectorBucketInput = [
454
+ 3,
455
+ n0,
456
+ _CVBI,
457
+ 0,
458
+ [_vBN, _eC],
459
+ [0, () => EncryptionConfiguration],
460
+ ];
461
+ var CreateVectorBucketOutput = [3, n0, _CVBO, 0, [_vBA], [0]];
462
+ var DeleteIndexInput = [3, n0, _DII, 0, [_vBN, _iN, _iA], [0, 0, 0]];
463
+ var DeleteIndexOutput = [3, n0, _DIO, 0, [], []];
464
+ var DeleteVectorBucketInput = [3, n0, _DVBI, 0, [_vBN, _vBA], [0, 0]];
465
+ var DeleteVectorBucketOutput = [3, n0, _DVBO, 0, [], []];
466
+ var DeleteVectorBucketPolicyInput = [3, n0, _DVBPI, 0, [_vBN, _vBA], [0, 0]];
467
+ var DeleteVectorBucketPolicyOutput = [3, n0, _DVBPO, 0, [], []];
468
+ var DeleteVectorsInput = [3, n0, _DVI, 0, [_vBN, _iN, _iA, _k], [0, 0, 0, 64 | 0]];
469
+ var DeleteVectorsOutput = [3, n0, _DVO, 0, [], []];
470
+ var EncryptionConfiguration = [3, n0, _EC, 0, [_sT, _kKA], [0, 0]];
471
+ var GetIndexInput = [3, n0, _GII, 0, [_vBN, _iN, _iA], [0, 0, 0]];
472
+ var GetIndexOutput = [3, n0, _GIO, 0, [_i], [() => Index]];
473
+ var GetOutputVector = [3, n0, _GOV, 0, [_ke, _da, _me], [0, () => VectorData, 15]];
474
+ var GetVectorBucketInput = [3, n0, _GVBI, 0, [_vBN, _vBA], [0, 0]];
475
+ var GetVectorBucketOutput = [3, n0, _GVBO, 0, [_vB], [() => VectorBucket]];
476
+ var GetVectorBucketPolicyInput = [3, n0, _GVBPI, 0, [_vBN, _vBA], [0, 0]];
477
+ var GetVectorBucketPolicyOutput = [3, n0, _GVBPO, 0, [_p], [0]];
478
+ var GetVectorsInput = [
479
+ 3,
480
+ n0,
481
+ _GVI,
482
+ 0,
483
+ [_vBN, _iN, _iA, _k, _rD, _rM],
484
+ [0, 0, 0, 64 | 0, 2, 2],
485
+ ];
486
+ var GetVectorsOutput = [3, n0, _GVO, 0, [_v], [() => GetVectorsOutputList]];
487
+ var Index = [
488
+ 3,
489
+ n0,
490
+ _I,
491
+ 0,
492
+ [_vBN, _iN, _iA, _cT, _dT, _d, _dM, _mC],
493
+ [0, 0, 0, 4, 0, 1, 0, () => MetadataConfiguration],
494
+ ];
495
+ var IndexSummary = [3, n0, _IS, 0, [_vBN, _iN, _iA, _cT], [0, 0, 0, 4]];
496
+ var InternalServerException = [
497
+ -3,
498
+ n0,
499
+ _ISE,
500
+ {
501
+ [_e]: _s,
502
+ [_hE]: 500,
503
+ },
504
+ [_m],
505
+ [0],
506
+ ];
507
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
508
+ var KmsDisabledException = [
509
+ -3,
510
+ n0,
511
+ _KDE,
512
+ {
513
+ [_e]: _c,
514
+ [_hE]: 400,
515
+ },
516
+ [_m],
517
+ [0],
518
+ ];
519
+ schema.TypeRegistry.for(n0).registerError(KmsDisabledException, KmsDisabledException$1);
520
+ var KmsInvalidKeyUsageException = [
521
+ -3,
522
+ n0,
523
+ _KIKUE,
524
+ {
525
+ [_e]: _c,
526
+ [_hE]: 400,
527
+ },
528
+ [_m],
529
+ [0],
530
+ ];
531
+ schema.TypeRegistry.for(n0).registerError(KmsInvalidKeyUsageException, KmsInvalidKeyUsageException$1);
532
+ var KmsInvalidStateException = [
533
+ -3,
534
+ n0,
535
+ _KISE,
536
+ {
537
+ [_e]: _c,
538
+ [_hE]: 400,
539
+ },
540
+ [_m],
541
+ [0],
542
+ ];
543
+ schema.TypeRegistry.for(n0).registerError(KmsInvalidStateException, KmsInvalidStateException$1);
544
+ var KmsNotFoundException = [
545
+ -3,
546
+ n0,
547
+ _KNFE,
548
+ {
549
+ [_e]: _c,
550
+ [_hE]: 400,
551
+ },
552
+ [_m],
553
+ [0],
554
+ ];
555
+ schema.TypeRegistry.for(n0).registerError(KmsNotFoundException, KmsNotFoundException$1);
556
+ var ListIndexesInput = [3, n0, _LII, 0, [_vBN, _vBA, _mR, _nT, _pr], [0, 0, 1, 0, 0]];
557
+ var ListIndexesOutput = [3, n0, _LIO, 0, [_nT, _in], [0, () => ListIndexesOutputList]];
558
+ var ListOutputVector = [3, n0, _LOV, 0, [_ke, _da, _me], [0, () => VectorData, 15]];
559
+ var ListVectorBucketsInput = [3, n0, _LVBI, 0, [_mR, _nT, _pr], [1, 0, 0]];
560
+ var ListVectorBucketsOutput = [
561
+ 3,
562
+ n0,
563
+ _LVBO,
564
+ 0,
565
+ [_nT, _vBe],
566
+ [0, () => ListVectorBucketsOutputList],
567
+ ];
568
+ var ListVectorsInput = [
569
+ 3,
570
+ n0,
571
+ _LVI,
572
+ 0,
573
+ [_vBN, _iN, _iA, _mR, _nT, _sC, _sI, _rD, _rM],
574
+ [0, 0, 0, 1, 0, 1, 1, 2, 2],
575
+ ];
576
+ var ListVectorsOutput = [3, n0, _LVO, 0, [_nT, _v], [0, () => ListVectorsOutputList]];
577
+ var MetadataConfiguration = [3, n0, _MC, 0, [_nFMK], [64 | 0]];
578
+ var NotFoundException = [
579
+ -3,
580
+ n0,
581
+ _NFE,
582
+ {
583
+ [_e]: _c,
584
+ [_hE]: 404,
585
+ },
586
+ [_m],
587
+ [0],
588
+ ];
589
+ schema.TypeRegistry.for(n0).registerError(NotFoundException, NotFoundException$1);
590
+ var PutInputVector = [3, n0, _PIV, 0, [_ke, _da, _me], [0, () => VectorData, 15]];
591
+ var PutVectorBucketPolicyInput = [3, n0, _PVBPI, 0, [_vBN, _vBA, _p], [0, 0, 0]];
592
+ var PutVectorBucketPolicyOutput = [3, n0, _PVBPO, 0, [], []];
593
+ var PutVectorsInput = [
594
+ 3,
595
+ n0,
596
+ _PVI,
597
+ 0,
598
+ [_vBN, _iN, _iA, _v],
599
+ [0, 0, 0, () => PutVectorsInputList],
600
+ ];
601
+ var PutVectorsOutput = [3, n0, _PVO, 0, [], []];
602
+ var QueryOutputVector = [
603
+ 3,
604
+ n0,
605
+ _QOV,
606
+ 0,
607
+ [_ke, _da, _me, _di],
608
+ [0, () => VectorData, 15, 1],
609
+ ];
610
+ var QueryVectorsInput = [
611
+ 3,
612
+ n0,
613
+ _QVI,
614
+ 0,
615
+ [_vBN, _iN, _iA, _tK, _qV, _f, _rM, _rDe],
616
+ [0, 0, 0, 1, () => VectorData, 15, 2, 2],
617
+ ];
618
+ var QueryVectorsOutput = [3, n0, _QVO, 0, [_v, _dM], [() => QueryVectorsOutputList, 0]];
619
+ var RequestTimeoutException = [
620
+ -3,
621
+ n0,
622
+ _RTE,
623
+ {
624
+ [_e]: _c,
625
+ [_hE]: 408,
626
+ },
627
+ [_m],
628
+ [0],
629
+ ];
630
+ schema.TypeRegistry.for(n0).registerError(RequestTimeoutException, RequestTimeoutException$1);
631
+ var ServiceQuotaExceededException = [
632
+ -3,
633
+ n0,
634
+ _SQEE,
635
+ {
636
+ [_e]: _c,
637
+ [_hE]: 402,
638
+ },
639
+ [_m],
640
+ [0],
641
+ ];
642
+ schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
643
+ var ServiceUnavailableException = [
644
+ -3,
645
+ n0,
646
+ _SUE,
647
+ {
648
+ [_e]: _s,
649
+ [_hE]: 503,
650
+ },
651
+ [_m],
652
+ [0],
653
+ ];
654
+ schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException, ServiceUnavailableException$1);
655
+ var TooManyRequestsException = [
656
+ -3,
657
+ n0,
658
+ _TMRE,
659
+ {
660
+ [_e]: _c,
661
+ [_hE]: 429,
662
+ },
663
+ [_m],
664
+ [0],
665
+ ];
666
+ schema.TypeRegistry.for(n0).registerError(TooManyRequestsException, TooManyRequestsException$1);
667
+ var ValidationException = [
668
+ -3,
669
+ n0,
670
+ _VE,
671
+ {
672
+ [_e]: _c,
673
+ },
674
+ [_m, _fL],
675
+ [0, () => ValidationExceptionFieldList],
676
+ ];
677
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
678
+ var ValidationExceptionField = [3, n0, _VEF, 0, [_pa, _m], [0, 0]];
679
+ var VectorBucket = [
680
+ 3,
681
+ n0,
682
+ _VB,
683
+ 0,
684
+ [_vBN, _vBA, _cT, _eC],
685
+ [0, 0, 4, () => EncryptionConfiguration],
686
+ ];
687
+ var VectorBucketSummary = [3, n0, _VBS, 0, [_vBN, _vBA, _cT], [0, 0, 4]];
688
+ var S3VectorsServiceException = [-3, _sm, "S3VectorsServiceException", 0, [], []];
689
+ schema.TypeRegistry.for(_sm).registerError(S3VectorsServiceException, S3VectorsServiceException$1);
690
+ var GetVectorsOutputList = [1, n0, _GVOL, 0, () => GetOutputVector];
691
+ var ListIndexesOutputList = [1, n0, _LIOL, 0, () => IndexSummary];
692
+ var ListVectorBucketsOutputList = [1, n0, _LVBOL, 0, () => VectorBucketSummary];
693
+ var ListVectorsOutputList = [1, n0, _LVOL, 0, () => ListOutputVector];
694
+ var PutVectorsInputList = [1, n0, _PVIL, 0, () => PutInputVector];
695
+ var QueryVectorsOutputList = [1, n0, _QVOL, 0, () => QueryOutputVector];
696
+ var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField];
697
+ var VectorData = [3, n0, _VD, 0, [_fl], [64 | 1]];
698
+ var CreateIndex = [
699
+ 9,
700
+ n0,
701
+ _CI,
702
+ {
703
+ [_h]: ["POST", "/CreateIndex", 200],
704
+ },
705
+ () => CreateIndexInput,
706
+ () => CreateIndexOutput,
707
+ ];
708
+ var CreateVectorBucket = [
709
+ 9,
710
+ n0,
711
+ _CVB,
712
+ {
713
+ [_h]: ["POST", "/CreateVectorBucket", 200],
714
+ },
715
+ () => CreateVectorBucketInput,
716
+ () => CreateVectorBucketOutput,
717
+ ];
718
+ var DeleteIndex = [
719
+ 9,
720
+ n0,
721
+ _DI,
722
+ {
723
+ [_h]: ["POST", "/DeleteIndex", 200],
724
+ },
725
+ () => DeleteIndexInput,
726
+ () => DeleteIndexOutput,
727
+ ];
728
+ var DeleteVectorBucket = [
729
+ 9,
730
+ n0,
731
+ _DVB,
732
+ {
733
+ [_h]: ["POST", "/DeleteVectorBucket", 200],
734
+ },
735
+ () => DeleteVectorBucketInput,
736
+ () => DeleteVectorBucketOutput,
737
+ ];
738
+ var DeleteVectorBucketPolicy = [
739
+ 9,
740
+ n0,
741
+ _DVBP,
742
+ {
743
+ [_h]: ["POST", "/DeleteVectorBucketPolicy", 200],
744
+ },
745
+ () => DeleteVectorBucketPolicyInput,
746
+ () => DeleteVectorBucketPolicyOutput,
747
+ ];
748
+ var DeleteVectors = [
749
+ 9,
750
+ n0,
751
+ _DV,
752
+ {
753
+ [_h]: ["POST", "/DeleteVectors", 200],
754
+ },
755
+ () => DeleteVectorsInput,
756
+ () => DeleteVectorsOutput,
757
+ ];
758
+ var GetIndex = [
759
+ 9,
760
+ n0,
761
+ _GI,
762
+ {
763
+ [_h]: ["POST", "/GetIndex", 200],
764
+ },
765
+ () => GetIndexInput,
766
+ () => GetIndexOutput,
767
+ ];
768
+ var GetVectorBucket = [
769
+ 9,
770
+ n0,
771
+ _GVB,
772
+ {
773
+ [_h]: ["POST", "/GetVectorBucket", 200],
774
+ },
775
+ () => GetVectorBucketInput,
776
+ () => GetVectorBucketOutput,
777
+ ];
778
+ var GetVectorBucketPolicy = [
779
+ 9,
780
+ n0,
781
+ _GVBP,
782
+ {
783
+ [_h]: ["POST", "/GetVectorBucketPolicy", 200],
784
+ },
785
+ () => GetVectorBucketPolicyInput,
786
+ () => GetVectorBucketPolicyOutput,
787
+ ];
788
+ var GetVectors = [
789
+ 9,
790
+ n0,
791
+ _GV,
792
+ {
793
+ [_h]: ["POST", "/GetVectors", 200],
794
+ },
795
+ () => GetVectorsInput,
796
+ () => GetVectorsOutput,
797
+ ];
798
+ var ListIndexes = [
799
+ 9,
800
+ n0,
801
+ _LI,
802
+ {
803
+ [_h]: ["POST", "/ListIndexes", 200],
804
+ },
805
+ () => ListIndexesInput,
806
+ () => ListIndexesOutput,
807
+ ];
808
+ var ListVectorBuckets = [
809
+ 9,
810
+ n0,
811
+ _LVB,
812
+ {
813
+ [_h]: ["POST", "/ListVectorBuckets", 200],
814
+ },
815
+ () => ListVectorBucketsInput,
816
+ () => ListVectorBucketsOutput,
817
+ ];
818
+ var ListVectors = [
819
+ 9,
820
+ n0,
821
+ _LV,
822
+ {
823
+ [_h]: ["POST", "/ListVectors", 200],
824
+ },
825
+ () => ListVectorsInput,
826
+ () => ListVectorsOutput,
827
+ ];
828
+ var PutVectorBucketPolicy = [
829
+ 9,
830
+ n0,
831
+ _PVBP,
832
+ {
833
+ [_h]: ["POST", "/PutVectorBucketPolicy", 200],
834
+ },
835
+ () => PutVectorBucketPolicyInput,
836
+ () => PutVectorBucketPolicyOutput,
837
+ ];
838
+ var PutVectors = [
839
+ 9,
840
+ n0,
841
+ _PV,
842
+ {
843
+ [_h]: ["POST", "/PutVectors", 200],
844
+ },
845
+ () => PutVectorsInput,
846
+ () => PutVectorsOutput,
847
+ ];
848
+ var QueryVectors = [
849
+ 9,
850
+ n0,
851
+ _QV,
852
+ {
853
+ [_h]: ["POST", "/QueryVectors", 200],
854
+ },
855
+ () => QueryVectorsInput,
856
+ () => QueryVectorsOutput,
857
+ ];
1144
858
 
1145
859
  class CreateIndexCommand extends smithyClient.Command
1146
860
  .classBuilder()
1147
861
  .ep(commonParams)
1148
862
  .m(function (Command, cs, config, o) {
1149
- return [
1150
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1151
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1152
- ];
863
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1153
864
  })
1154
865
  .s("S3Vectors", "CreateIndex", {})
1155
866
  .n("S3VectorsClient", "CreateIndexCommand")
1156
- .f(void 0, void 0)
1157
- .ser(se_CreateIndexCommand)
1158
- .de(de_CreateIndexCommand)
867
+ .sc(CreateIndex)
1159
868
  .build() {
1160
869
  }
1161
870
 
@@ -1163,16 +872,11 @@ class CreateVectorBucketCommand extends smithyClient.Command
1163
872
  .classBuilder()
1164
873
  .ep(commonParams)
1165
874
  .m(function (Command, cs, config, o) {
1166
- return [
1167
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1168
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1169
- ];
875
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1170
876
  })
1171
877
  .s("S3Vectors", "CreateVectorBucket", {})
1172
878
  .n("S3VectorsClient", "CreateVectorBucketCommand")
1173
- .f(void 0, void 0)
1174
- .ser(se_CreateVectorBucketCommand)
1175
- .de(de_CreateVectorBucketCommand)
879
+ .sc(CreateVectorBucket)
1176
880
  .build() {
1177
881
  }
1178
882
 
@@ -1180,16 +884,11 @@ class DeleteIndexCommand extends smithyClient.Command
1180
884
  .classBuilder()
1181
885
  .ep(commonParams)
1182
886
  .m(function (Command, cs, config, o) {
1183
- return [
1184
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1185
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1186
- ];
887
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1187
888
  })
1188
889
  .s("S3Vectors", "DeleteIndex", {})
1189
890
  .n("S3VectorsClient", "DeleteIndexCommand")
1190
- .f(void 0, void 0)
1191
- .ser(se_DeleteIndexCommand)
1192
- .de(de_DeleteIndexCommand)
891
+ .sc(DeleteIndex)
1193
892
  .build() {
1194
893
  }
1195
894
 
@@ -1197,16 +896,11 @@ class DeleteVectorBucketCommand extends smithyClient.Command
1197
896
  .classBuilder()
1198
897
  .ep(commonParams)
1199
898
  .m(function (Command, cs, config, o) {
1200
- return [
1201
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1202
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1203
- ];
899
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1204
900
  })
1205
901
  .s("S3Vectors", "DeleteVectorBucket", {})
1206
902
  .n("S3VectorsClient", "DeleteVectorBucketCommand")
1207
- .f(void 0, void 0)
1208
- .ser(se_DeleteVectorBucketCommand)
1209
- .de(de_DeleteVectorBucketCommand)
903
+ .sc(DeleteVectorBucket)
1210
904
  .build() {
1211
905
  }
1212
906
 
@@ -1214,16 +908,11 @@ class DeleteVectorBucketPolicyCommand extends smithyClient.Command
1214
908
  .classBuilder()
1215
909
  .ep(commonParams)
1216
910
  .m(function (Command, cs, config, o) {
1217
- return [
1218
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1219
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1220
- ];
911
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1221
912
  })
1222
913
  .s("S3Vectors", "DeleteVectorBucketPolicy", {})
1223
914
  .n("S3VectorsClient", "DeleteVectorBucketPolicyCommand")
1224
- .f(void 0, void 0)
1225
- .ser(se_DeleteVectorBucketPolicyCommand)
1226
- .de(de_DeleteVectorBucketPolicyCommand)
915
+ .sc(DeleteVectorBucketPolicy)
1227
916
  .build() {
1228
917
  }
1229
918
 
@@ -1231,16 +920,11 @@ class DeleteVectorsCommand extends smithyClient.Command
1231
920
  .classBuilder()
1232
921
  .ep(commonParams)
1233
922
  .m(function (Command, cs, config, o) {
1234
- return [
1235
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1236
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1237
- ];
923
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1238
924
  })
1239
925
  .s("S3Vectors", "DeleteVectors", {})
1240
926
  .n("S3VectorsClient", "DeleteVectorsCommand")
1241
- .f(void 0, void 0)
1242
- .ser(se_DeleteVectorsCommand)
1243
- .de(de_DeleteVectorsCommand)
927
+ .sc(DeleteVectors)
1244
928
  .build() {
1245
929
  }
1246
930
 
@@ -1248,16 +932,11 @@ class GetIndexCommand extends smithyClient.Command
1248
932
  .classBuilder()
1249
933
  .ep(commonParams)
1250
934
  .m(function (Command, cs, config, o) {
1251
- return [
1252
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1253
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1254
- ];
935
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1255
936
  })
1256
937
  .s("S3Vectors", "GetIndex", {})
1257
938
  .n("S3VectorsClient", "GetIndexCommand")
1258
- .f(void 0, void 0)
1259
- .ser(se_GetIndexCommand)
1260
- .de(de_GetIndexCommand)
939
+ .sc(GetIndex)
1261
940
  .build() {
1262
941
  }
1263
942
 
@@ -1265,16 +944,11 @@ class GetVectorBucketCommand extends smithyClient.Command
1265
944
  .classBuilder()
1266
945
  .ep(commonParams)
1267
946
  .m(function (Command, cs, config, o) {
1268
- return [
1269
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1270
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1271
- ];
947
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1272
948
  })
1273
949
  .s("S3Vectors", "GetVectorBucket", {})
1274
950
  .n("S3VectorsClient", "GetVectorBucketCommand")
1275
- .f(void 0, void 0)
1276
- .ser(se_GetVectorBucketCommand)
1277
- .de(de_GetVectorBucketCommand)
951
+ .sc(GetVectorBucket)
1278
952
  .build() {
1279
953
  }
1280
954
 
@@ -1282,16 +956,11 @@ class GetVectorBucketPolicyCommand extends smithyClient.Command
1282
956
  .classBuilder()
1283
957
  .ep(commonParams)
1284
958
  .m(function (Command, cs, config, o) {
1285
- return [
1286
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1287
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1288
- ];
959
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1289
960
  })
1290
961
  .s("S3Vectors", "GetVectorBucketPolicy", {})
1291
962
  .n("S3VectorsClient", "GetVectorBucketPolicyCommand")
1292
- .f(void 0, void 0)
1293
- .ser(se_GetVectorBucketPolicyCommand)
1294
- .de(de_GetVectorBucketPolicyCommand)
963
+ .sc(GetVectorBucketPolicy)
1295
964
  .build() {
1296
965
  }
1297
966
 
@@ -1299,16 +968,11 @@ class GetVectorsCommand extends smithyClient.Command
1299
968
  .classBuilder()
1300
969
  .ep(commonParams)
1301
970
  .m(function (Command, cs, config, o) {
1302
- return [
1303
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1304
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1305
- ];
971
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1306
972
  })
1307
973
  .s("S3Vectors", "GetVectors", {})
1308
974
  .n("S3VectorsClient", "GetVectorsCommand")
1309
- .f(void 0, void 0)
1310
- .ser(se_GetVectorsCommand)
1311
- .de(de_GetVectorsCommand)
975
+ .sc(GetVectors)
1312
976
  .build() {
1313
977
  }
1314
978
 
@@ -1316,16 +980,11 @@ class ListIndexesCommand extends smithyClient.Command
1316
980
  .classBuilder()
1317
981
  .ep(commonParams)
1318
982
  .m(function (Command, cs, config, o) {
1319
- return [
1320
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1321
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1322
- ];
983
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1323
984
  })
1324
985
  .s("S3Vectors", "ListIndexes", {})
1325
986
  .n("S3VectorsClient", "ListIndexesCommand")
1326
- .f(void 0, void 0)
1327
- .ser(se_ListIndexesCommand)
1328
- .de(de_ListIndexesCommand)
987
+ .sc(ListIndexes)
1329
988
  .build() {
1330
989
  }
1331
990
 
@@ -1333,16 +992,11 @@ class ListVectorBucketsCommand extends smithyClient.Command
1333
992
  .classBuilder()
1334
993
  .ep(commonParams)
1335
994
  .m(function (Command, cs, config, o) {
1336
- return [
1337
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1338
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1339
- ];
995
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1340
996
  })
1341
997
  .s("S3Vectors", "ListVectorBuckets", {})
1342
998
  .n("S3VectorsClient", "ListVectorBucketsCommand")
1343
- .f(void 0, void 0)
1344
- .ser(se_ListVectorBucketsCommand)
1345
- .de(de_ListVectorBucketsCommand)
999
+ .sc(ListVectorBuckets)
1346
1000
  .build() {
1347
1001
  }
1348
1002
 
@@ -1350,16 +1004,11 @@ class ListVectorsCommand extends smithyClient.Command
1350
1004
  .classBuilder()
1351
1005
  .ep(commonParams)
1352
1006
  .m(function (Command, cs, config, o) {
1353
- return [
1354
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1355
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1356
- ];
1007
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1357
1008
  })
1358
1009
  .s("S3Vectors", "ListVectors", {})
1359
1010
  .n("S3VectorsClient", "ListVectorsCommand")
1360
- .f(void 0, void 0)
1361
- .ser(se_ListVectorsCommand)
1362
- .de(de_ListVectorsCommand)
1011
+ .sc(ListVectors)
1363
1012
  .build() {
1364
1013
  }
1365
1014
 
@@ -1367,16 +1016,11 @@ class PutVectorBucketPolicyCommand extends smithyClient.Command
1367
1016
  .classBuilder()
1368
1017
  .ep(commonParams)
1369
1018
  .m(function (Command, cs, config, o) {
1370
- return [
1371
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1372
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1373
- ];
1019
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1374
1020
  })
1375
1021
  .s("S3Vectors", "PutVectorBucketPolicy", {})
1376
1022
  .n("S3VectorsClient", "PutVectorBucketPolicyCommand")
1377
- .f(void 0, void 0)
1378
- .ser(se_PutVectorBucketPolicyCommand)
1379
- .de(de_PutVectorBucketPolicyCommand)
1023
+ .sc(PutVectorBucketPolicy)
1380
1024
  .build() {
1381
1025
  }
1382
1026
 
@@ -1384,16 +1028,11 @@ class PutVectorsCommand extends smithyClient.Command
1384
1028
  .classBuilder()
1385
1029
  .ep(commonParams)
1386
1030
  .m(function (Command, cs, config, o) {
1387
- return [
1388
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1389
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1390
- ];
1031
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1391
1032
  })
1392
1033
  .s("S3Vectors", "PutVectors", {})
1393
1034
  .n("S3VectorsClient", "PutVectorsCommand")
1394
- .f(void 0, void 0)
1395
- .ser(se_PutVectorsCommand)
1396
- .de(de_PutVectorsCommand)
1035
+ .sc(PutVectors)
1397
1036
  .build() {
1398
1037
  }
1399
1038
 
@@ -1401,16 +1040,11 @@ class QueryVectorsCommand extends smithyClient.Command
1401
1040
  .classBuilder()
1402
1041
  .ep(commonParams)
1403
1042
  .m(function (Command, cs, config, o) {
1404
- return [
1405
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1406
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1407
- ];
1043
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1408
1044
  })
1409
1045
  .s("S3Vectors", "QueryVectors", {})
1410
1046
  .n("S3VectorsClient", "QueryVectorsCommand")
1411
- .f(void 0, void 0)
1412
- .ser(se_QueryVectorsCommand)
1413
- .de(de_QueryVectorsCommand)
1047
+ .sc(QueryVectors)
1414
1048
  .build() {
1415
1049
  }
1416
1050
 
@@ -1450,8 +1084,8 @@ Object.defineProperty(exports, "__Client", {
1450
1084
  enumerable: true,
1451
1085
  get: function () { return smithyClient.Client; }
1452
1086
  });
1453
- exports.AccessDeniedException = AccessDeniedException;
1454
- exports.ConflictException = ConflictException;
1087
+ exports.AccessDeniedException = AccessDeniedException$1;
1088
+ exports.ConflictException = ConflictException$1;
1455
1089
  exports.CreateIndexCommand = CreateIndexCommand;
1456
1090
  exports.CreateVectorBucketCommand = CreateVectorBucketCommand;
1457
1091
  exports.DataType = DataType;
@@ -1464,27 +1098,27 @@ exports.GetIndexCommand = GetIndexCommand;
1464
1098
  exports.GetVectorBucketCommand = GetVectorBucketCommand;
1465
1099
  exports.GetVectorBucketPolicyCommand = GetVectorBucketPolicyCommand;
1466
1100
  exports.GetVectorsCommand = GetVectorsCommand;
1467
- exports.InternalServerException = InternalServerException;
1468
- exports.KmsDisabledException = KmsDisabledException;
1469
- exports.KmsInvalidKeyUsageException = KmsInvalidKeyUsageException;
1470
- exports.KmsInvalidStateException = KmsInvalidStateException;
1471
- exports.KmsNotFoundException = KmsNotFoundException;
1101
+ exports.InternalServerException = InternalServerException$1;
1102
+ exports.KmsDisabledException = KmsDisabledException$1;
1103
+ exports.KmsInvalidKeyUsageException = KmsInvalidKeyUsageException$1;
1104
+ exports.KmsInvalidStateException = KmsInvalidStateException$1;
1105
+ exports.KmsNotFoundException = KmsNotFoundException$1;
1472
1106
  exports.ListIndexesCommand = ListIndexesCommand;
1473
1107
  exports.ListVectorBucketsCommand = ListVectorBucketsCommand;
1474
1108
  exports.ListVectorsCommand = ListVectorsCommand;
1475
- exports.NotFoundException = NotFoundException;
1109
+ exports.NotFoundException = NotFoundException$1;
1476
1110
  exports.PutVectorBucketPolicyCommand = PutVectorBucketPolicyCommand;
1477
1111
  exports.PutVectorsCommand = PutVectorsCommand;
1478
1112
  exports.QueryVectorsCommand = QueryVectorsCommand;
1479
- exports.RequestTimeoutException = RequestTimeoutException;
1113
+ exports.RequestTimeoutException = RequestTimeoutException$1;
1480
1114
  exports.S3Vectors = S3Vectors;
1481
1115
  exports.S3VectorsClient = S3VectorsClient;
1482
- exports.S3VectorsServiceException = S3VectorsServiceException;
1483
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1484
- exports.ServiceUnavailableException = ServiceUnavailableException;
1116
+ exports.S3VectorsServiceException = S3VectorsServiceException$1;
1117
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
1118
+ exports.ServiceUnavailableException = ServiceUnavailableException$1;
1485
1119
  exports.SseType = SseType;
1486
- exports.TooManyRequestsException = TooManyRequestsException;
1487
- exports.ValidationException = ValidationException;
1120
+ exports.TooManyRequestsException = TooManyRequestsException$1;
1121
+ exports.ValidationException = ValidationException$1;
1488
1122
  exports.paginateListIndexes = paginateListIndexes;
1489
1123
  exports.paginateListVectorBuckets = paginateListVectorBuckets;
1490
1124
  exports.paginateListVectors = paginateListVectors;