@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,286 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import {
3
+ CreateIndexCommandInput,
4
+ CreateIndexCommandOutput,
5
+ } from "./commands/CreateIndexCommand";
6
+ import {
7
+ CreateVectorBucketCommandInput,
8
+ CreateVectorBucketCommandOutput,
9
+ } from "./commands/CreateVectorBucketCommand";
10
+ import {
11
+ DeleteIndexCommandInput,
12
+ DeleteIndexCommandOutput,
13
+ } from "./commands/DeleteIndexCommand";
14
+ import {
15
+ DeleteVectorBucketCommandInput,
16
+ DeleteVectorBucketCommandOutput,
17
+ } from "./commands/DeleteVectorBucketCommand";
18
+ import {
19
+ DeleteVectorBucketPolicyCommandInput,
20
+ DeleteVectorBucketPolicyCommandOutput,
21
+ } from "./commands/DeleteVectorBucketPolicyCommand";
22
+ import {
23
+ DeleteVectorsCommandInput,
24
+ DeleteVectorsCommandOutput,
25
+ } from "./commands/DeleteVectorsCommand";
26
+ import {
27
+ GetIndexCommandInput,
28
+ GetIndexCommandOutput,
29
+ } from "./commands/GetIndexCommand";
30
+ import {
31
+ GetVectorBucketCommandInput,
32
+ GetVectorBucketCommandOutput,
33
+ } from "./commands/GetVectorBucketCommand";
34
+ import {
35
+ GetVectorBucketPolicyCommandInput,
36
+ GetVectorBucketPolicyCommandOutput,
37
+ } from "./commands/GetVectorBucketPolicyCommand";
38
+ import {
39
+ GetVectorsCommandInput,
40
+ GetVectorsCommandOutput,
41
+ } from "./commands/GetVectorsCommand";
42
+ import {
43
+ ListIndexesCommandInput,
44
+ ListIndexesCommandOutput,
45
+ } from "./commands/ListIndexesCommand";
46
+ import {
47
+ ListVectorBucketsCommandInput,
48
+ ListVectorBucketsCommandOutput,
49
+ } from "./commands/ListVectorBucketsCommand";
50
+ import {
51
+ ListVectorsCommandInput,
52
+ ListVectorsCommandOutput,
53
+ } from "./commands/ListVectorsCommand";
54
+ import {
55
+ PutVectorBucketPolicyCommandInput,
56
+ PutVectorBucketPolicyCommandOutput,
57
+ } from "./commands/PutVectorBucketPolicyCommand";
58
+ import {
59
+ PutVectorsCommandInput,
60
+ PutVectorsCommandOutput,
61
+ } from "./commands/PutVectorsCommand";
62
+ import {
63
+ QueryVectorsCommandInput,
64
+ QueryVectorsCommandOutput,
65
+ } from "./commands/QueryVectorsCommand";
66
+ import { S3VectorsClient } from "./S3VectorsClient";
67
+ export interface S3Vectors {
68
+ createIndex(
69
+ args: CreateIndexCommandInput,
70
+ options?: __HttpHandlerOptions
71
+ ): Promise<CreateIndexCommandOutput>;
72
+ createIndex(
73
+ args: CreateIndexCommandInput,
74
+ cb: (err: any, data?: CreateIndexCommandOutput) => void
75
+ ): void;
76
+ createIndex(
77
+ args: CreateIndexCommandInput,
78
+ options: __HttpHandlerOptions,
79
+ cb: (err: any, data?: CreateIndexCommandOutput) => void
80
+ ): void;
81
+ createVectorBucket(
82
+ args: CreateVectorBucketCommandInput,
83
+ options?: __HttpHandlerOptions
84
+ ): Promise<CreateVectorBucketCommandOutput>;
85
+ createVectorBucket(
86
+ args: CreateVectorBucketCommandInput,
87
+ cb: (err: any, data?: CreateVectorBucketCommandOutput) => void
88
+ ): void;
89
+ createVectorBucket(
90
+ args: CreateVectorBucketCommandInput,
91
+ options: __HttpHandlerOptions,
92
+ cb: (err: any, data?: CreateVectorBucketCommandOutput) => void
93
+ ): void;
94
+ deleteIndex(): Promise<DeleteIndexCommandOutput>;
95
+ deleteIndex(
96
+ args: DeleteIndexCommandInput,
97
+ options?: __HttpHandlerOptions
98
+ ): Promise<DeleteIndexCommandOutput>;
99
+ deleteIndex(
100
+ args: DeleteIndexCommandInput,
101
+ cb: (err: any, data?: DeleteIndexCommandOutput) => void
102
+ ): void;
103
+ deleteIndex(
104
+ args: DeleteIndexCommandInput,
105
+ options: __HttpHandlerOptions,
106
+ cb: (err: any, data?: DeleteIndexCommandOutput) => void
107
+ ): void;
108
+ deleteVectorBucket(): Promise<DeleteVectorBucketCommandOutput>;
109
+ deleteVectorBucket(
110
+ args: DeleteVectorBucketCommandInput,
111
+ options?: __HttpHandlerOptions
112
+ ): Promise<DeleteVectorBucketCommandOutput>;
113
+ deleteVectorBucket(
114
+ args: DeleteVectorBucketCommandInput,
115
+ cb: (err: any, data?: DeleteVectorBucketCommandOutput) => void
116
+ ): void;
117
+ deleteVectorBucket(
118
+ args: DeleteVectorBucketCommandInput,
119
+ options: __HttpHandlerOptions,
120
+ cb: (err: any, data?: DeleteVectorBucketCommandOutput) => void
121
+ ): void;
122
+ deleteVectorBucketPolicy(): Promise<DeleteVectorBucketPolicyCommandOutput>;
123
+ deleteVectorBucketPolicy(
124
+ args: DeleteVectorBucketPolicyCommandInput,
125
+ options?: __HttpHandlerOptions
126
+ ): Promise<DeleteVectorBucketPolicyCommandOutput>;
127
+ deleteVectorBucketPolicy(
128
+ args: DeleteVectorBucketPolicyCommandInput,
129
+ cb: (err: any, data?: DeleteVectorBucketPolicyCommandOutput) => void
130
+ ): void;
131
+ deleteVectorBucketPolicy(
132
+ args: DeleteVectorBucketPolicyCommandInput,
133
+ options: __HttpHandlerOptions,
134
+ cb: (err: any, data?: DeleteVectorBucketPolicyCommandOutput) => void
135
+ ): void;
136
+ deleteVectors(
137
+ args: DeleteVectorsCommandInput,
138
+ options?: __HttpHandlerOptions
139
+ ): Promise<DeleteVectorsCommandOutput>;
140
+ deleteVectors(
141
+ args: DeleteVectorsCommandInput,
142
+ cb: (err: any, data?: DeleteVectorsCommandOutput) => void
143
+ ): void;
144
+ deleteVectors(
145
+ args: DeleteVectorsCommandInput,
146
+ options: __HttpHandlerOptions,
147
+ cb: (err: any, data?: DeleteVectorsCommandOutput) => void
148
+ ): void;
149
+ getIndex(): Promise<GetIndexCommandOutput>;
150
+ getIndex(
151
+ args: GetIndexCommandInput,
152
+ options?: __HttpHandlerOptions
153
+ ): Promise<GetIndexCommandOutput>;
154
+ getIndex(
155
+ args: GetIndexCommandInput,
156
+ cb: (err: any, data?: GetIndexCommandOutput) => void
157
+ ): void;
158
+ getIndex(
159
+ args: GetIndexCommandInput,
160
+ options: __HttpHandlerOptions,
161
+ cb: (err: any, data?: GetIndexCommandOutput) => void
162
+ ): void;
163
+ getVectorBucket(): Promise<GetVectorBucketCommandOutput>;
164
+ getVectorBucket(
165
+ args: GetVectorBucketCommandInput,
166
+ options?: __HttpHandlerOptions
167
+ ): Promise<GetVectorBucketCommandOutput>;
168
+ getVectorBucket(
169
+ args: GetVectorBucketCommandInput,
170
+ cb: (err: any, data?: GetVectorBucketCommandOutput) => void
171
+ ): void;
172
+ getVectorBucket(
173
+ args: GetVectorBucketCommandInput,
174
+ options: __HttpHandlerOptions,
175
+ cb: (err: any, data?: GetVectorBucketCommandOutput) => void
176
+ ): void;
177
+ getVectorBucketPolicy(): Promise<GetVectorBucketPolicyCommandOutput>;
178
+ getVectorBucketPolicy(
179
+ args: GetVectorBucketPolicyCommandInput,
180
+ options?: __HttpHandlerOptions
181
+ ): Promise<GetVectorBucketPolicyCommandOutput>;
182
+ getVectorBucketPolicy(
183
+ args: GetVectorBucketPolicyCommandInput,
184
+ cb: (err: any, data?: GetVectorBucketPolicyCommandOutput) => void
185
+ ): void;
186
+ getVectorBucketPolicy(
187
+ args: GetVectorBucketPolicyCommandInput,
188
+ options: __HttpHandlerOptions,
189
+ cb: (err: any, data?: GetVectorBucketPolicyCommandOutput) => void
190
+ ): void;
191
+ getVectors(
192
+ args: GetVectorsCommandInput,
193
+ options?: __HttpHandlerOptions
194
+ ): Promise<GetVectorsCommandOutput>;
195
+ getVectors(
196
+ args: GetVectorsCommandInput,
197
+ cb: (err: any, data?: GetVectorsCommandOutput) => void
198
+ ): void;
199
+ getVectors(
200
+ args: GetVectorsCommandInput,
201
+ options: __HttpHandlerOptions,
202
+ cb: (err: any, data?: GetVectorsCommandOutput) => void
203
+ ): void;
204
+ listIndexes(): Promise<ListIndexesCommandOutput>;
205
+ listIndexes(
206
+ args: ListIndexesCommandInput,
207
+ options?: __HttpHandlerOptions
208
+ ): Promise<ListIndexesCommandOutput>;
209
+ listIndexes(
210
+ args: ListIndexesCommandInput,
211
+ cb: (err: any, data?: ListIndexesCommandOutput) => void
212
+ ): void;
213
+ listIndexes(
214
+ args: ListIndexesCommandInput,
215
+ options: __HttpHandlerOptions,
216
+ cb: (err: any, data?: ListIndexesCommandOutput) => void
217
+ ): void;
218
+ listVectorBuckets(): Promise<ListVectorBucketsCommandOutput>;
219
+ listVectorBuckets(
220
+ args: ListVectorBucketsCommandInput,
221
+ options?: __HttpHandlerOptions
222
+ ): Promise<ListVectorBucketsCommandOutput>;
223
+ listVectorBuckets(
224
+ args: ListVectorBucketsCommandInput,
225
+ cb: (err: any, data?: ListVectorBucketsCommandOutput) => void
226
+ ): void;
227
+ listVectorBuckets(
228
+ args: ListVectorBucketsCommandInput,
229
+ options: __HttpHandlerOptions,
230
+ cb: (err: any, data?: ListVectorBucketsCommandOutput) => void
231
+ ): void;
232
+ listVectors(): Promise<ListVectorsCommandOutput>;
233
+ listVectors(
234
+ args: ListVectorsCommandInput,
235
+ options?: __HttpHandlerOptions
236
+ ): Promise<ListVectorsCommandOutput>;
237
+ listVectors(
238
+ args: ListVectorsCommandInput,
239
+ cb: (err: any, data?: ListVectorsCommandOutput) => void
240
+ ): void;
241
+ listVectors(
242
+ args: ListVectorsCommandInput,
243
+ options: __HttpHandlerOptions,
244
+ cb: (err: any, data?: ListVectorsCommandOutput) => void
245
+ ): void;
246
+ putVectorBucketPolicy(
247
+ args: PutVectorBucketPolicyCommandInput,
248
+ options?: __HttpHandlerOptions
249
+ ): Promise<PutVectorBucketPolicyCommandOutput>;
250
+ putVectorBucketPolicy(
251
+ args: PutVectorBucketPolicyCommandInput,
252
+ cb: (err: any, data?: PutVectorBucketPolicyCommandOutput) => void
253
+ ): void;
254
+ putVectorBucketPolicy(
255
+ args: PutVectorBucketPolicyCommandInput,
256
+ options: __HttpHandlerOptions,
257
+ cb: (err: any, data?: PutVectorBucketPolicyCommandOutput) => void
258
+ ): void;
259
+ putVectors(
260
+ args: PutVectorsCommandInput,
261
+ options?: __HttpHandlerOptions
262
+ ): Promise<PutVectorsCommandOutput>;
263
+ putVectors(
264
+ args: PutVectorsCommandInput,
265
+ cb: (err: any, data?: PutVectorsCommandOutput) => void
266
+ ): void;
267
+ putVectors(
268
+ args: PutVectorsCommandInput,
269
+ options: __HttpHandlerOptions,
270
+ cb: (err: any, data?: PutVectorsCommandOutput) => void
271
+ ): void;
272
+ queryVectors(
273
+ args: QueryVectorsCommandInput,
274
+ options?: __HttpHandlerOptions
275
+ ): Promise<QueryVectorsCommandOutput>;
276
+ queryVectors(
277
+ args: QueryVectorsCommandInput,
278
+ cb: (err: any, data?: QueryVectorsCommandOutput) => void
279
+ ): void;
280
+ queryVectors(
281
+ args: QueryVectorsCommandInput,
282
+ options: __HttpHandlerOptions,
283
+ cb: (err: any, data?: QueryVectorsCommandOutput) => void
284
+ ): void;
285
+ }
286
+ export declare class S3Vectors extends S3VectorsClient implements S3Vectors {}
@@ -0,0 +1,215 @@
1
+ import {
2
+ HostHeaderInputConfig,
3
+ HostHeaderResolvedConfig,
4
+ } from "@aws-sdk/middleware-host-header";
5
+ import {
6
+ UserAgentInputConfig,
7
+ UserAgentResolvedConfig,
8
+ } from "@aws-sdk/middleware-user-agent";
9
+ import {
10
+ RegionInputConfig,
11
+ RegionResolvedConfig,
12
+ } from "@smithy/config-resolver";
13
+ import {
14
+ EndpointInputConfig,
15
+ EndpointResolvedConfig,
16
+ } from "@smithy/middleware-endpoint";
17
+ import {
18
+ RetryInputConfig,
19
+ RetryResolvedConfig,
20
+ } from "@smithy/middleware-retry";
21
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
22
+ import {
23
+ Client as __Client,
24
+ DefaultsMode as __DefaultsMode,
25
+ SmithyConfiguration as __SmithyConfiguration,
26
+ SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
27
+ } from "@smithy/smithy-client";
28
+ import {
29
+ AwsCredentialIdentityProvider,
30
+ BodyLengthCalculator as __BodyLengthCalculator,
31
+ CheckOptionalClientConfig as __CheckOptionalClientConfig,
32
+ ChecksumConstructor as __ChecksumConstructor,
33
+ Decoder as __Decoder,
34
+ Encoder as __Encoder,
35
+ HashConstructor as __HashConstructor,
36
+ HttpHandlerOptions as __HttpHandlerOptions,
37
+ Logger as __Logger,
38
+ Provider as __Provider,
39
+ Provider,
40
+ StreamCollector as __StreamCollector,
41
+ UrlParser as __UrlParser,
42
+ UserAgent as __UserAgent,
43
+ } from "@smithy/types";
44
+ import {
45
+ HttpAuthSchemeInputConfig,
46
+ HttpAuthSchemeResolvedConfig,
47
+ } from "./auth/httpAuthSchemeProvider";
48
+ import {
49
+ CreateIndexCommandInput,
50
+ CreateIndexCommandOutput,
51
+ } from "./commands/CreateIndexCommand";
52
+ import {
53
+ CreateVectorBucketCommandInput,
54
+ CreateVectorBucketCommandOutput,
55
+ } from "./commands/CreateVectorBucketCommand";
56
+ import {
57
+ DeleteIndexCommandInput,
58
+ DeleteIndexCommandOutput,
59
+ } from "./commands/DeleteIndexCommand";
60
+ import {
61
+ DeleteVectorBucketCommandInput,
62
+ DeleteVectorBucketCommandOutput,
63
+ } from "./commands/DeleteVectorBucketCommand";
64
+ import {
65
+ DeleteVectorBucketPolicyCommandInput,
66
+ DeleteVectorBucketPolicyCommandOutput,
67
+ } from "./commands/DeleteVectorBucketPolicyCommand";
68
+ import {
69
+ DeleteVectorsCommandInput,
70
+ DeleteVectorsCommandOutput,
71
+ } from "./commands/DeleteVectorsCommand";
72
+ import {
73
+ GetIndexCommandInput,
74
+ GetIndexCommandOutput,
75
+ } from "./commands/GetIndexCommand";
76
+ import {
77
+ GetVectorBucketCommandInput,
78
+ GetVectorBucketCommandOutput,
79
+ } from "./commands/GetVectorBucketCommand";
80
+ import {
81
+ GetVectorBucketPolicyCommandInput,
82
+ GetVectorBucketPolicyCommandOutput,
83
+ } from "./commands/GetVectorBucketPolicyCommand";
84
+ import {
85
+ GetVectorsCommandInput,
86
+ GetVectorsCommandOutput,
87
+ } from "./commands/GetVectorsCommand";
88
+ import {
89
+ ListIndexesCommandInput,
90
+ ListIndexesCommandOutput,
91
+ } from "./commands/ListIndexesCommand";
92
+ import {
93
+ ListVectorBucketsCommandInput,
94
+ ListVectorBucketsCommandOutput,
95
+ } from "./commands/ListVectorBucketsCommand";
96
+ import {
97
+ ListVectorsCommandInput,
98
+ ListVectorsCommandOutput,
99
+ } from "./commands/ListVectorsCommand";
100
+ import {
101
+ PutVectorBucketPolicyCommandInput,
102
+ PutVectorBucketPolicyCommandOutput,
103
+ } from "./commands/PutVectorBucketPolicyCommand";
104
+ import {
105
+ PutVectorsCommandInput,
106
+ PutVectorsCommandOutput,
107
+ } from "./commands/PutVectorsCommand";
108
+ import {
109
+ QueryVectorsCommandInput,
110
+ QueryVectorsCommandOutput,
111
+ } from "./commands/QueryVectorsCommand";
112
+ import {
113
+ ClientInputEndpointParameters,
114
+ ClientResolvedEndpointParameters,
115
+ EndpointParameters,
116
+ } from "./endpoint/EndpointParameters";
117
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
118
+ export { __Client };
119
+ export type ServiceInputTypes =
120
+ | CreateIndexCommandInput
121
+ | CreateVectorBucketCommandInput
122
+ | DeleteIndexCommandInput
123
+ | DeleteVectorBucketCommandInput
124
+ | DeleteVectorBucketPolicyCommandInput
125
+ | DeleteVectorsCommandInput
126
+ | GetIndexCommandInput
127
+ | GetVectorBucketCommandInput
128
+ | GetVectorBucketPolicyCommandInput
129
+ | GetVectorsCommandInput
130
+ | ListIndexesCommandInput
131
+ | ListVectorBucketsCommandInput
132
+ | ListVectorsCommandInput
133
+ | PutVectorBucketPolicyCommandInput
134
+ | PutVectorsCommandInput
135
+ | QueryVectorsCommandInput;
136
+ export type ServiceOutputTypes =
137
+ | CreateIndexCommandOutput
138
+ | CreateVectorBucketCommandOutput
139
+ | DeleteIndexCommandOutput
140
+ | DeleteVectorBucketCommandOutput
141
+ | DeleteVectorBucketPolicyCommandOutput
142
+ | DeleteVectorsCommandOutput
143
+ | GetIndexCommandOutput
144
+ | GetVectorBucketCommandOutput
145
+ | GetVectorBucketPolicyCommandOutput
146
+ | GetVectorsCommandOutput
147
+ | ListIndexesCommandOutput
148
+ | ListVectorBucketsCommandOutput
149
+ | ListVectorsCommandOutput
150
+ | PutVectorBucketPolicyCommandOutput
151
+ | PutVectorsCommandOutput
152
+ | QueryVectorsCommandOutput;
153
+ export interface ClientDefaults
154
+ extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
155
+ requestHandler?: __HttpHandlerUserInput;
156
+ sha256?: __ChecksumConstructor | __HashConstructor;
157
+ urlParser?: __UrlParser;
158
+ bodyLengthChecker?: __BodyLengthCalculator;
159
+ streamCollector?: __StreamCollector;
160
+ base64Decoder?: __Decoder;
161
+ base64Encoder?: __Encoder;
162
+ utf8Decoder?: __Decoder;
163
+ utf8Encoder?: __Encoder;
164
+ runtime?: string;
165
+ disableHostPrefix?: boolean;
166
+ serviceId?: string;
167
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
168
+ useFipsEndpoint?: boolean | __Provider<boolean>;
169
+ region?: string | __Provider<string>;
170
+ profile?: string;
171
+ defaultUserAgentProvider?: Provider<__UserAgent>;
172
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
173
+ maxAttempts?: number | __Provider<number>;
174
+ retryMode?: string | __Provider<string>;
175
+ logger?: __Logger;
176
+ extensions?: RuntimeExtension[];
177
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
178
+ }
179
+ export type S3VectorsClientConfigType = Partial<
180
+ __SmithyConfiguration<__HttpHandlerOptions>
181
+ > &
182
+ ClientDefaults &
183
+ UserAgentInputConfig &
184
+ RetryInputConfig &
185
+ RegionInputConfig &
186
+ HostHeaderInputConfig &
187
+ EndpointInputConfig<EndpointParameters> &
188
+ HttpAuthSchemeInputConfig &
189
+ ClientInputEndpointParameters;
190
+ export interface S3VectorsClientConfig extends S3VectorsClientConfigType {}
191
+ export type S3VectorsClientResolvedConfigType =
192
+ __SmithyResolvedConfiguration<__HttpHandlerOptions> &
193
+ Required<ClientDefaults> &
194
+ RuntimeExtensionsConfig &
195
+ UserAgentResolvedConfig &
196
+ RetryResolvedConfig &
197
+ RegionResolvedConfig &
198
+ HostHeaderResolvedConfig &
199
+ EndpointResolvedConfig<EndpointParameters> &
200
+ HttpAuthSchemeResolvedConfig &
201
+ ClientResolvedEndpointParameters;
202
+ export interface S3VectorsClientResolvedConfig
203
+ extends S3VectorsClientResolvedConfigType {}
204
+ export declare class S3VectorsClient extends __Client<
205
+ __HttpHandlerOptions,
206
+ ServiceInputTypes,
207
+ ServiceOutputTypes,
208
+ S3VectorsClientResolvedConfig
209
+ > {
210
+ readonly config: S3VectorsClientResolvedConfig;
211
+ constructor(
212
+ ...[configuration]: __CheckOptionalClientConfig<S3VectorsClientConfig>
213
+ );
214
+ destroy(): void;
215
+ }
@@ -0,0 +1,32 @@
1
+ import {
2
+ AwsCredentialIdentity,
3
+ AwsCredentialIdentityProvider,
4
+ HttpAuthScheme,
5
+ } from "@smithy/types";
6
+ import { S3VectorsHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
7
+ export interface HttpAuthExtensionConfiguration {
8
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
9
+ httpAuthSchemes(): HttpAuthScheme[];
10
+ setHttpAuthSchemeProvider(
11
+ httpAuthSchemeProvider: S3VectorsHttpAuthSchemeProvider
12
+ ): void;
13
+ httpAuthSchemeProvider(): S3VectorsHttpAuthSchemeProvider;
14
+ setCredentials(
15
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider
16
+ ): void;
17
+ credentials():
18
+ | AwsCredentialIdentity
19
+ | AwsCredentialIdentityProvider
20
+ | undefined;
21
+ }
22
+ export type HttpAuthRuntimeConfig = Partial<{
23
+ httpAuthSchemes: HttpAuthScheme[];
24
+ httpAuthSchemeProvider: S3VectorsHttpAuthSchemeProvider;
25
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
26
+ }>;
27
+ export declare const getHttpAuthExtensionConfiguration: (
28
+ runtimeConfig: HttpAuthRuntimeConfig
29
+ ) => HttpAuthExtensionConfiguration;
30
+ export declare const resolveHttpAuthRuntimeConfig: (
31
+ config: HttpAuthExtensionConfiguration
32
+ ) => HttpAuthRuntimeConfig;
@@ -0,0 +1,47 @@
1
+ import {
2
+ AwsSdkSigV4AuthInputConfig,
3
+ AwsSdkSigV4AuthResolvedConfig,
4
+ AwsSdkSigV4PreviouslyResolved,
5
+ } from "@aws-sdk/core";
6
+ import {
7
+ HandlerExecutionContext,
8
+ HttpAuthScheme,
9
+ HttpAuthSchemeParameters,
10
+ HttpAuthSchemeParametersProvider,
11
+ HttpAuthSchemeProvider,
12
+ Provider,
13
+ } from "@smithy/types";
14
+ import { S3VectorsClientResolvedConfig } from "../S3VectorsClient";
15
+ export interface S3VectorsHttpAuthSchemeParameters
16
+ extends HttpAuthSchemeParameters {
17
+ region?: string;
18
+ }
19
+ export interface S3VectorsHttpAuthSchemeParametersProvider
20
+ extends HttpAuthSchemeParametersProvider<
21
+ S3VectorsClientResolvedConfig,
22
+ HandlerExecutionContext,
23
+ S3VectorsHttpAuthSchemeParameters,
24
+ object
25
+ > {}
26
+ export declare const defaultS3VectorsHttpAuthSchemeParametersProvider: (
27
+ config: S3VectorsClientResolvedConfig,
28
+ context: HandlerExecutionContext,
29
+ input: object
30
+ ) => Promise<S3VectorsHttpAuthSchemeParameters>;
31
+ export interface S3VectorsHttpAuthSchemeProvider
32
+ extends HttpAuthSchemeProvider<S3VectorsHttpAuthSchemeParameters> {}
33
+ export declare const defaultS3VectorsHttpAuthSchemeProvider: S3VectorsHttpAuthSchemeProvider;
34
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
35
+ authSchemePreference?: string[] | Provider<string[]>;
36
+ httpAuthSchemes?: HttpAuthScheme[];
37
+ httpAuthSchemeProvider?: S3VectorsHttpAuthSchemeProvider;
38
+ }
39
+ export interface HttpAuthSchemeResolvedConfig
40
+ extends AwsSdkSigV4AuthResolvedConfig {
41
+ readonly authSchemePreference: Provider<string[]>;
42
+ readonly httpAuthSchemes: HttpAuthScheme[];
43
+ readonly httpAuthSchemeProvider: S3VectorsHttpAuthSchemeProvider;
44
+ }
45
+ export declare const resolveHttpAuthSchemeConfig: <T>(
46
+ config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
47
+ ) => T & HttpAuthSchemeResolvedConfig;
@@ -0,0 +1,47 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CreateIndexInput, CreateIndexOutput } from "../models/models_0";
4
+ import {
5
+ S3VectorsClientResolvedConfig,
6
+ ServiceInputTypes,
7
+ ServiceOutputTypes,
8
+ } from "../S3VectorsClient";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface CreateIndexCommandInput extends CreateIndexInput {}
12
+ export interface CreateIndexCommandOutput
13
+ extends CreateIndexOutput,
14
+ __MetadataBearer {}
15
+ declare const CreateIndexCommand_base: {
16
+ new (
17
+ input: CreateIndexCommandInput
18
+ ): import("@smithy/smithy-client").CommandImpl<
19
+ CreateIndexCommandInput,
20
+ CreateIndexCommandOutput,
21
+ S3VectorsClientResolvedConfig,
22
+ ServiceInputTypes,
23
+ ServiceOutputTypes
24
+ >;
25
+ new (
26
+ input: CreateIndexCommandInput
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ CreateIndexCommandInput,
29
+ CreateIndexCommandOutput,
30
+ S3VectorsClientResolvedConfig,
31
+ ServiceInputTypes,
32
+ ServiceOutputTypes
33
+ >;
34
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
35
+ };
36
+ export declare class CreateIndexCommand extends CreateIndexCommand_base {
37
+ protected static __types: {
38
+ api: {
39
+ input: CreateIndexInput;
40
+ output: {};
41
+ };
42
+ sdk: {
43
+ input: CreateIndexCommandInput;
44
+ output: CreateIndexCommandOutput;
45
+ };
46
+ };
47
+ }
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ CreateVectorBucketInput,
5
+ CreateVectorBucketOutput,
6
+ } from "../models/models_0";
7
+ import {
8
+ S3VectorsClientResolvedConfig,
9
+ ServiceInputTypes,
10
+ ServiceOutputTypes,
11
+ } from "../S3VectorsClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface CreateVectorBucketCommandInput
15
+ extends CreateVectorBucketInput {}
16
+ export interface CreateVectorBucketCommandOutput
17
+ extends CreateVectorBucketOutput,
18
+ __MetadataBearer {}
19
+ declare const CreateVectorBucketCommand_base: {
20
+ new (
21
+ input: CreateVectorBucketCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ CreateVectorBucketCommandInput,
24
+ CreateVectorBucketCommandOutput,
25
+ S3VectorsClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: CreateVectorBucketCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ CreateVectorBucketCommandInput,
33
+ CreateVectorBucketCommandOutput,
34
+ S3VectorsClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class CreateVectorBucketCommand extends CreateVectorBucketCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: CreateVectorBucketInput;
44
+ output: {};
45
+ };
46
+ sdk: {
47
+ input: CreateVectorBucketCommandInput;
48
+ output: CreateVectorBucketCommandOutput;
49
+ };
50
+ };
51
+ }