@aws-sdk/client-s3vectors 3.845.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +333 -0
  3. package/dist-cjs/S3Vectors.js +43 -0
  4. package/dist-cjs/S3VectorsClient.js +52 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/CreateIndexCommand.js +26 -0
  8. package/dist-cjs/commands/CreateVectorBucketCommand.js +26 -0
  9. package/dist-cjs/commands/DeleteIndexCommand.js +26 -0
  10. package/dist-cjs/commands/DeleteVectorBucketCommand.js +26 -0
  11. package/dist-cjs/commands/DeleteVectorBucketPolicyCommand.js +26 -0
  12. package/dist-cjs/commands/DeleteVectorsCommand.js +26 -0
  13. package/dist-cjs/commands/GetIndexCommand.js +26 -0
  14. package/dist-cjs/commands/GetVectorBucketCommand.js +26 -0
  15. package/dist-cjs/commands/GetVectorBucketPolicyCommand.js +26 -0
  16. package/dist-cjs/commands/GetVectorsCommand.js +26 -0
  17. package/dist-cjs/commands/ListIndexesCommand.js +26 -0
  18. package/dist-cjs/commands/ListVectorBucketsCommand.js +26 -0
  19. package/dist-cjs/commands/ListVectorsCommand.js +26 -0
  20. package/dist-cjs/commands/PutVectorBucketPolicyCommand.js +26 -0
  21. package/dist-cjs/commands/PutVectorsCommand.js +26 -0
  22. package/dist-cjs/commands/QueryVectorsCommand.js +26 -0
  23. package/dist-cjs/commands/index.js +19 -0
  24. package/dist-cjs/endpoint/EndpointParameters.js +15 -0
  25. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  26. package/dist-cjs/endpoint/ruleset.js +7 -0
  27. package/dist-cjs/extensionConfiguration.js +2 -0
  28. package/dist-cjs/index.js +11 -0
  29. package/dist-cjs/models/S3VectorsServiceException.js +12 -0
  30. package/dist-cjs/models/index.js +4 -0
  31. package/dist-cjs/models/models_0.js +186 -0
  32. package/dist-cjs/pagination/Interfaces.js +2 -0
  33. package/dist-cjs/pagination/ListIndexesPaginator.js +7 -0
  34. package/dist-cjs/pagination/ListVectorBucketsPaginator.js +7 -0
  35. package/dist-cjs/pagination/ListVectorsPaginator.js +7 -0
  36. package/dist-cjs/pagination/index.js +7 -0
  37. package/dist-cjs/protocols/Aws_restJson1.js +858 -0
  38. package/dist-cjs/runtimeConfig.browser.js +39 -0
  39. package/dist-cjs/runtimeConfig.js +56 -0
  40. package/dist-cjs/runtimeConfig.native.js +15 -0
  41. package/dist-cjs/runtimeConfig.shared.js +34 -0
  42. package/dist-cjs/runtimeExtensions.js +13 -0
  43. package/dist-es/S3Vectors.js +39 -0
  44. package/dist-es/S3VectorsClient.js +48 -0
  45. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  46. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  47. package/dist-es/commands/CreateIndexCommand.js +22 -0
  48. package/dist-es/commands/CreateVectorBucketCommand.js +22 -0
  49. package/dist-es/commands/DeleteIndexCommand.js +22 -0
  50. package/dist-es/commands/DeleteVectorBucketCommand.js +22 -0
  51. package/dist-es/commands/DeleteVectorBucketPolicyCommand.js +22 -0
  52. package/dist-es/commands/DeleteVectorsCommand.js +22 -0
  53. package/dist-es/commands/GetIndexCommand.js +22 -0
  54. package/dist-es/commands/GetVectorBucketCommand.js +22 -0
  55. package/dist-es/commands/GetVectorBucketPolicyCommand.js +22 -0
  56. package/dist-es/commands/GetVectorsCommand.js +22 -0
  57. package/dist-es/commands/ListIndexesCommand.js +22 -0
  58. package/dist-es/commands/ListVectorBucketsCommand.js +22 -0
  59. package/dist-es/commands/ListVectorsCommand.js +22 -0
  60. package/dist-es/commands/PutVectorBucketPolicyCommand.js +22 -0
  61. package/dist-es/commands/PutVectorsCommand.js +22 -0
  62. package/dist-es/commands/QueryVectorsCommand.js +22 -0
  63. package/dist-es/commands/index.js +16 -0
  64. package/dist-es/endpoint/EndpointParameters.js +11 -0
  65. package/dist-es/endpoint/endpointResolver.js +14 -0
  66. package/dist-es/endpoint/ruleset.js +4 -0
  67. package/dist-es/extensionConfiguration.js +1 -0
  68. package/dist-es/index.js +6 -0
  69. package/dist-es/models/S3VectorsServiceException.js +8 -0
  70. package/dist-es/models/index.js +1 -0
  71. package/dist-es/models/models_0.js +171 -0
  72. package/dist-es/pagination/Interfaces.js +1 -0
  73. package/dist-es/pagination/ListIndexesPaginator.js +4 -0
  74. package/dist-es/pagination/ListVectorBucketsPaginator.js +4 -0
  75. package/dist-es/pagination/ListVectorsPaginator.js +4 -0
  76. package/dist-es/pagination/index.js +4 -0
  77. package/dist-es/protocols/Aws_restJson1.js +823 -0
  78. package/dist-es/runtimeConfig.browser.js +34 -0
  79. package/dist-es/runtimeConfig.js +51 -0
  80. package/dist-es/runtimeConfig.native.js +11 -0
  81. package/dist-es/runtimeConfig.shared.js +30 -0
  82. package/dist-es/runtimeExtensions.js +9 -0
  83. package/dist-types/S3Vectors.d.ts +131 -0
  84. package/dist-types/S3VectorsClient.d.ts +203 -0
  85. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  86. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  87. package/dist-types/commands/CreateIndexCommand.d.ts +104 -0
  88. package/dist-types/commands/CreateVectorBucketCommand.d.ts +95 -0
  89. package/dist-types/commands/DeleteIndexCommand.d.ts +90 -0
  90. package/dist-types/commands/DeleteVectorBucketCommand.d.ts +92 -0
  91. package/dist-types/commands/DeleteVectorBucketPolicyCommand.d.ts +92 -0
  92. package/dist-types/commands/DeleteVectorsCommand.d.ts +108 -0
  93. package/dist-types/commands/GetIndexCommand.d.ts +108 -0
  94. package/dist-types/commands/GetVectorBucketCommand.d.ts +102 -0
  95. package/dist-types/commands/GetVectorBucketPolicyCommand.d.ts +94 -0
  96. package/dist-types/commands/GetVectorsCommand.d.ts +122 -0
  97. package/dist-types/commands/ListIndexesCommand.d.ts +105 -0
  98. package/dist-types/commands/ListVectorBucketsCommand.d.ts +99 -0
  99. package/dist-types/commands/ListVectorsCommand.d.ts +112 -0
  100. package/dist-types/commands/PutVectorBucketPolicyCommand.d.ts +93 -0
  101. package/dist-types/commands/PutVectorsCommand.d.ts +116 -0
  102. package/dist-types/commands/QueryVectorsCommand.d.ts +127 -0
  103. package/dist-types/commands/index.d.ts +16 -0
  104. package/dist-types/endpoint/EndpointParameters.d.ts +32 -0
  105. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  106. package/dist-types/endpoint/ruleset.d.ts +2 -0
  107. package/dist-types/extensionConfiguration.d.ts +9 -0
  108. package/dist-types/index.d.ts +14 -0
  109. package/dist-types/models/S3VectorsServiceException.d.ts +14 -0
  110. package/dist-types/models/index.d.ts +1 -0
  111. package/dist-types/models/models_0.d.ts +1013 -0
  112. package/dist-types/pagination/Interfaces.d.ts +8 -0
  113. package/dist-types/pagination/ListIndexesPaginator.d.ts +7 -0
  114. package/dist-types/pagination/ListVectorBucketsPaginator.d.ts +7 -0
  115. package/dist-types/pagination/ListVectorsPaginator.d.ts +7 -0
  116. package/dist-types/pagination/index.d.ts +4 -0
  117. package/dist-types/protocols/Aws_restJson1.d.ts +146 -0
  118. package/dist-types/runtimeConfig.browser.d.ts +50 -0
  119. package/dist-types/runtimeConfig.d.ts +50 -0
  120. package/dist-types/runtimeConfig.native.d.ts +49 -0
  121. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  122. package/dist-types/runtimeExtensions.d.ts +17 -0
  123. package/dist-types/ts3.4/S3Vectors.d.ts +286 -0
  124. package/dist-types/ts3.4/S3VectorsClient.d.ts +215 -0
  125. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  126. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  127. package/dist-types/ts3.4/commands/CreateIndexCommand.d.ts +47 -0
  128. package/dist-types/ts3.4/commands/CreateVectorBucketCommand.d.ts +51 -0
  129. package/dist-types/ts3.4/commands/DeleteIndexCommand.d.ts +47 -0
  130. package/dist-types/ts3.4/commands/DeleteVectorBucketCommand.d.ts +51 -0
  131. package/dist-types/ts3.4/commands/DeleteVectorBucketPolicyCommand.d.ts +51 -0
  132. package/dist-types/ts3.4/commands/DeleteVectorsCommand.d.ts +47 -0
  133. package/dist-types/ts3.4/commands/GetIndexCommand.d.ts +47 -0
  134. package/dist-types/ts3.4/commands/GetVectorBucketCommand.d.ts +50 -0
  135. package/dist-types/ts3.4/commands/GetVectorBucketPolicyCommand.d.ts +51 -0
  136. package/dist-types/ts3.4/commands/GetVectorsCommand.d.ts +47 -0
  137. package/dist-types/ts3.4/commands/ListIndexesCommand.d.ts +47 -0
  138. package/dist-types/ts3.4/commands/ListVectorBucketsCommand.d.ts +50 -0
  139. package/dist-types/ts3.4/commands/ListVectorsCommand.d.ts +47 -0
  140. package/dist-types/ts3.4/commands/PutVectorBucketPolicyCommand.d.ts +51 -0
  141. package/dist-types/ts3.4/commands/PutVectorsCommand.d.ts +47 -0
  142. package/dist-types/ts3.4/commands/QueryVectorsCommand.d.ts +47 -0
  143. package/dist-types/ts3.4/commands/index.d.ts +16 -0
  144. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  145. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  146. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  147. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  148. package/dist-types/ts3.4/index.d.ts +9 -0
  149. package/dist-types/ts3.4/models/S3VectorsServiceException.d.ts +9 -0
  150. package/dist-types/ts3.4/models/index.d.ts +1 -0
  151. package/dist-types/ts3.4/models/models_0.d.ts +311 -0
  152. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  153. package/dist-types/ts3.4/pagination/ListIndexesPaginator.d.ts +11 -0
  154. package/dist-types/ts3.4/pagination/ListVectorBucketsPaginator.d.ts +11 -0
  155. package/dist-types/ts3.4/pagination/ListVectorsPaginator.d.ts +11 -0
  156. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  157. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +197 -0
  158. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
  159. package/dist-types/ts3.4/runtimeConfig.d.ts +89 -0
  160. package/dist-types/ts3.4/runtimeConfig.native.d.ts +95 -0
  161. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  162. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  163. package/package.json +99 -0
@@ -0,0 +1,186 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VectorData = exports.KmsNotFoundException = exports.KmsInvalidStateException = exports.KmsInvalidKeyUsageException = exports.KmsDisabledException = exports.SseType = exports.ValidationException = exports.TooManyRequestsException = exports.ServiceUnavailableException = exports.ServiceQuotaExceededException = exports.NotFoundException = exports.InternalServerException = exports.DistanceMetric = exports.DataType = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const S3VectorsServiceException_1 = require("./S3VectorsServiceException");
5
+ class AccessDeniedException extends S3VectorsServiceException_1.S3VectorsServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ class ConflictException extends S3VectorsServiceException_1.S3VectorsServiceException {
19
+ name = "ConflictException";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "ConflictException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, ConflictException.prototype);
28
+ }
29
+ }
30
+ exports.ConflictException = ConflictException;
31
+ exports.DataType = {
32
+ FLOAT32: "float32",
33
+ };
34
+ exports.DistanceMetric = {
35
+ COSINE: "cosine",
36
+ EUCLIDEAN: "euclidean",
37
+ };
38
+ class InternalServerException extends S3VectorsServiceException_1.S3VectorsServiceException {
39
+ name = "InternalServerException";
40
+ $fault = "server";
41
+ $retryable = {};
42
+ constructor(opts) {
43
+ super({
44
+ name: "InternalServerException",
45
+ $fault: "server",
46
+ ...opts,
47
+ });
48
+ Object.setPrototypeOf(this, InternalServerException.prototype);
49
+ }
50
+ }
51
+ exports.InternalServerException = InternalServerException;
52
+ class NotFoundException extends S3VectorsServiceException_1.S3VectorsServiceException {
53
+ name = "NotFoundException";
54
+ $fault = "client";
55
+ constructor(opts) {
56
+ super({
57
+ name: "NotFoundException",
58
+ $fault: "client",
59
+ ...opts,
60
+ });
61
+ Object.setPrototypeOf(this, NotFoundException.prototype);
62
+ }
63
+ }
64
+ exports.NotFoundException = NotFoundException;
65
+ class ServiceQuotaExceededException extends S3VectorsServiceException_1.S3VectorsServiceException {
66
+ name = "ServiceQuotaExceededException";
67
+ $fault = "client";
68
+ constructor(opts) {
69
+ super({
70
+ name: "ServiceQuotaExceededException",
71
+ $fault: "client",
72
+ ...opts,
73
+ });
74
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
75
+ }
76
+ }
77
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
78
+ class ServiceUnavailableException extends S3VectorsServiceException_1.S3VectorsServiceException {
79
+ name = "ServiceUnavailableException";
80
+ $fault = "server";
81
+ $retryable = {};
82
+ constructor(opts) {
83
+ super({
84
+ name: "ServiceUnavailableException",
85
+ $fault: "server",
86
+ ...opts,
87
+ });
88
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
89
+ }
90
+ }
91
+ exports.ServiceUnavailableException = ServiceUnavailableException;
92
+ class TooManyRequestsException extends S3VectorsServiceException_1.S3VectorsServiceException {
93
+ name = "TooManyRequestsException";
94
+ $fault = "client";
95
+ $retryable = {
96
+ throttling: true,
97
+ };
98
+ constructor(opts) {
99
+ super({
100
+ name: "TooManyRequestsException",
101
+ $fault: "client",
102
+ ...opts,
103
+ });
104
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
105
+ }
106
+ }
107
+ exports.TooManyRequestsException = TooManyRequestsException;
108
+ class ValidationException extends S3VectorsServiceException_1.S3VectorsServiceException {
109
+ name = "ValidationException";
110
+ $fault = "client";
111
+ fieldList;
112
+ constructor(opts) {
113
+ super({
114
+ name: "ValidationException",
115
+ $fault: "client",
116
+ ...opts,
117
+ });
118
+ Object.setPrototypeOf(this, ValidationException.prototype);
119
+ this.fieldList = opts.fieldList;
120
+ }
121
+ }
122
+ exports.ValidationException = ValidationException;
123
+ exports.SseType = {
124
+ AES256: "AES256",
125
+ AWS_KMS: "aws:kms",
126
+ };
127
+ class KmsDisabledException extends S3VectorsServiceException_1.S3VectorsServiceException {
128
+ name = "KmsDisabledException";
129
+ $fault = "client";
130
+ constructor(opts) {
131
+ super({
132
+ name: "KmsDisabledException",
133
+ $fault: "client",
134
+ ...opts,
135
+ });
136
+ Object.setPrototypeOf(this, KmsDisabledException.prototype);
137
+ }
138
+ }
139
+ exports.KmsDisabledException = KmsDisabledException;
140
+ class KmsInvalidKeyUsageException extends S3VectorsServiceException_1.S3VectorsServiceException {
141
+ name = "KmsInvalidKeyUsageException";
142
+ $fault = "client";
143
+ constructor(opts) {
144
+ super({
145
+ name: "KmsInvalidKeyUsageException",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, KmsInvalidKeyUsageException.prototype);
150
+ }
151
+ }
152
+ exports.KmsInvalidKeyUsageException = KmsInvalidKeyUsageException;
153
+ class KmsInvalidStateException extends S3VectorsServiceException_1.S3VectorsServiceException {
154
+ name = "KmsInvalidStateException";
155
+ $fault = "client";
156
+ constructor(opts) {
157
+ super({
158
+ name: "KmsInvalidStateException",
159
+ $fault: "client",
160
+ ...opts,
161
+ });
162
+ Object.setPrototypeOf(this, KmsInvalidStateException.prototype);
163
+ }
164
+ }
165
+ exports.KmsInvalidStateException = KmsInvalidStateException;
166
+ class KmsNotFoundException extends S3VectorsServiceException_1.S3VectorsServiceException {
167
+ name = "KmsNotFoundException";
168
+ $fault = "client";
169
+ constructor(opts) {
170
+ super({
171
+ name: "KmsNotFoundException",
172
+ $fault: "client",
173
+ ...opts,
174
+ });
175
+ Object.setPrototypeOf(this, KmsNotFoundException.prototype);
176
+ }
177
+ }
178
+ exports.KmsNotFoundException = KmsNotFoundException;
179
+ var VectorData;
180
+ (function (VectorData) {
181
+ VectorData.visit = (value, visitor) => {
182
+ if (value.float32 !== undefined)
183
+ return visitor.float32(value.float32);
184
+ return visitor._(value.$unknown[0], value.$unknown[1]);
185
+ };
186
+ })(VectorData || (exports.VectorData = VectorData = {}));
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListIndexes = void 0;
4
+ const core_1 = require("@smithy/core");
5
+ const ListIndexesCommand_1 = require("../commands/ListIndexesCommand");
6
+ const S3VectorsClient_1 = require("../S3VectorsClient");
7
+ exports.paginateListIndexes = (0, core_1.createPaginator)(S3VectorsClient_1.S3VectorsClient, ListIndexesCommand_1.ListIndexesCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListVectorBuckets = void 0;
4
+ const core_1 = require("@smithy/core");
5
+ const ListVectorBucketsCommand_1 = require("../commands/ListVectorBucketsCommand");
6
+ const S3VectorsClient_1 = require("../S3VectorsClient");
7
+ exports.paginateListVectorBuckets = (0, core_1.createPaginator)(S3VectorsClient_1.S3VectorsClient, ListVectorBucketsCommand_1.ListVectorBucketsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListVectors = void 0;
4
+ const core_1 = require("@smithy/core");
5
+ const ListVectorsCommand_1 = require("../commands/ListVectorsCommand");
6
+ const S3VectorsClient_1 = require("../S3VectorsClient");
7
+ exports.paginateListVectors = (0, core_1.createPaginator)(S3VectorsClient_1.S3VectorsClient, ListVectorsCommand_1.ListVectorsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListIndexesPaginator"), exports);
6
+ tslib_1.__exportStar(require("./ListVectorBucketsPaginator"), exports);
7
+ tslib_1.__exportStar(require("./ListVectorsPaginator"), exports);