@aws-sdk/lib-dynamodb 3.1102.0 → 3.1104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +46 -1
- package/dist-es/DynamoDBDocument.js +16 -0
- package/dist-es/commands/SearchVectorsCommand.js +33 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-types/DynamoDBDocument.d.ts +11 -0
- package/dist-types/DynamoDBDocumentClient.d.ts +3 -2
- package/dist-types/commands/SearchVectorsCommand.d.ts +56 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/DynamoDBDocument.d.ts +17 -0
- package/dist-types/ts3.4/DynamoDBDocumentClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/SearchVectorsCommand.d.ts +68 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -5,7 +5,7 @@ const { setFeature } = require("@aws-sdk/core/client");
|
|
|
5
5
|
const { marshall, unmarshall } = require("@aws-sdk/util-dynamodb");
|
|
6
6
|
const { NumberValueImpl: NumberValue } = require("@aws-sdk/util-dynamodb");
|
|
7
7
|
exports.NumberValue = NumberValue;
|
|
8
|
-
const { BatchExecuteStatementCommand: BatchExecuteStatementCommand$1, BatchGetItemCommand, BatchWriteItemCommand, DeleteItemCommand, ExecuteStatementCommand: ExecuteStatementCommand$1, ExecuteTransactionCommand: ExecuteTransactionCommand$1, GetItemCommand, PutItemCommand, QueryCommand: QueryCommand$1, ScanCommand: ScanCommand$1, TransactGetItemsCommand, TransactWriteItemsCommand, UpdateItemCommand } = require("@aws-sdk/client-dynamodb");
|
|
8
|
+
const { BatchExecuteStatementCommand: BatchExecuteStatementCommand$1, BatchGetItemCommand, BatchWriteItemCommand, DeleteItemCommand, ExecuteStatementCommand: ExecuteStatementCommand$1, ExecuteTransactionCommand: ExecuteTransactionCommand$1, GetItemCommand, PutItemCommand, QueryCommand: QueryCommand$1, ScanCommand: ScanCommand$1, SearchVectorsCommand: SearchVectorsCommand$1, TransactGetItemsCommand, TransactWriteItemsCommand, UpdateItemCommand } = require("@aws-sdk/client-dynamodb");
|
|
9
9
|
const { createPaginator } = require("@smithy/core");
|
|
10
10
|
|
|
11
11
|
const SELF = null;
|
|
@@ -469,6 +469,35 @@ class ScanCommand extends DynamoDBDocumentClientCommand {
|
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
|
|
472
|
+
class SearchVectorsCommand extends DynamoDBDocumentClientCommand {
|
|
473
|
+
input;
|
|
474
|
+
inputKeyNodes = {
|
|
475
|
+
ExpressionAttributeValues: ALL_VALUES,
|
|
476
|
+
SearchVector: ALL_MEMBERS,
|
|
477
|
+
};
|
|
478
|
+
outputKeyNodes = {
|
|
479
|
+
SearchResults: {
|
|
480
|
+
"*": {
|
|
481
|
+
Item: ALL_VALUES,
|
|
482
|
+
},
|
|
483
|
+
},
|
|
484
|
+
};
|
|
485
|
+
clientCommand;
|
|
486
|
+
middlewareStack;
|
|
487
|
+
constructor(input) {
|
|
488
|
+
super();
|
|
489
|
+
this.input = input;
|
|
490
|
+
this.clientCommand = new SearchVectorsCommand$1(this.input);
|
|
491
|
+
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
492
|
+
}
|
|
493
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
494
|
+
this.addMarshallingMiddleware(configuration);
|
|
495
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
496
|
+
const handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
|
|
497
|
+
return async () => handler(this.clientCommand);
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
|
|
472
501
|
class TransactGetCommand extends DynamoDBDocumentClientCommand {
|
|
473
502
|
input;
|
|
474
503
|
inputKeyNodes = {
|
|
@@ -768,6 +797,21 @@ class DynamoDBDocument extends DynamoDBDocumentClient {
|
|
|
768
797
|
return this.send(command, optionsOrCb);
|
|
769
798
|
}
|
|
770
799
|
}
|
|
800
|
+
searchVectors(args, optionsOrCb, cb) {
|
|
801
|
+
const command = new SearchVectorsCommand(args);
|
|
802
|
+
if (typeof optionsOrCb === "function") {
|
|
803
|
+
this.send(command, optionsOrCb);
|
|
804
|
+
}
|
|
805
|
+
else if (typeof cb === "function") {
|
|
806
|
+
if (typeof optionsOrCb !== "object") {
|
|
807
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
808
|
+
}
|
|
809
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
810
|
+
}
|
|
811
|
+
else {
|
|
812
|
+
return this.send(command, optionsOrCb);
|
|
813
|
+
}
|
|
814
|
+
}
|
|
771
815
|
transactGet(args, optionsOrCb, cb) {
|
|
772
816
|
const command = new TransactGetCommand(args);
|
|
773
817
|
if (typeof optionsOrCb === "function") {
|
|
@@ -828,6 +872,7 @@ exports.GetCommand = GetCommand;
|
|
|
828
872
|
exports.PutCommand = PutCommand;
|
|
829
873
|
exports.QueryCommand = QueryCommand;
|
|
830
874
|
exports.ScanCommand = ScanCommand;
|
|
875
|
+
exports.SearchVectorsCommand = SearchVectorsCommand;
|
|
831
876
|
exports.TransactGetCommand = TransactGetCommand;
|
|
832
877
|
exports.TransactWriteCommand = TransactWriteCommand;
|
|
833
878
|
exports.UpdateCommand = UpdateCommand;
|
|
@@ -8,6 +8,7 @@ import { GetCommand } from "./commands/GetCommand";
|
|
|
8
8
|
import { PutCommand } from "./commands/PutCommand";
|
|
9
9
|
import { QueryCommand } from "./commands/QueryCommand";
|
|
10
10
|
import { ScanCommand } from "./commands/ScanCommand";
|
|
11
|
+
import { SearchVectorsCommand, } from "./commands/SearchVectorsCommand";
|
|
11
12
|
import { TransactGetCommand, } from "./commands/TransactGetCommand";
|
|
12
13
|
import { TransactWriteCommand, } from "./commands/TransactWriteCommand";
|
|
13
14
|
import { UpdateCommand } from "./commands/UpdateCommand";
|
|
@@ -166,6 +167,21 @@ export class DynamoDBDocument extends DynamoDBDocumentClient {
|
|
|
166
167
|
return this.send(command, optionsOrCb);
|
|
167
168
|
}
|
|
168
169
|
}
|
|
170
|
+
searchVectors(args, optionsOrCb, cb) {
|
|
171
|
+
const command = new SearchVectorsCommand(args);
|
|
172
|
+
if (typeof optionsOrCb === "function") {
|
|
173
|
+
this.send(command, optionsOrCb);
|
|
174
|
+
}
|
|
175
|
+
else if (typeof cb === "function") {
|
|
176
|
+
if (typeof optionsOrCb !== "object") {
|
|
177
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
178
|
+
}
|
|
179
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
return this.send(command, optionsOrCb);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
169
185
|
transactGet(args, optionsOrCb, cb) {
|
|
170
186
|
const command = new TransactGetCommand(args);
|
|
171
187
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
|
|
3
|
+
import { ALL_MEMBERS, ALL_VALUES } from "../commands/utils";
|
|
4
|
+
import { SearchVectorsCommand as __SearchVectorsCommand } from "@aws-sdk/client-dynamodb";
|
|
5
|
+
export { DynamoDBDocumentClientCommand, $Command };
|
|
6
|
+
export class SearchVectorsCommand extends DynamoDBDocumentClientCommand {
|
|
7
|
+
input;
|
|
8
|
+
inputKeyNodes = {
|
|
9
|
+
ExpressionAttributeValues: ALL_VALUES,
|
|
10
|
+
SearchVector: ALL_MEMBERS,
|
|
11
|
+
};
|
|
12
|
+
outputKeyNodes = {
|
|
13
|
+
SearchResults: {
|
|
14
|
+
"*": {
|
|
15
|
+
Item: ALL_VALUES,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
clientCommand;
|
|
20
|
+
middlewareStack;
|
|
21
|
+
constructor(input) {
|
|
22
|
+
super();
|
|
23
|
+
this.input = input;
|
|
24
|
+
this.clientCommand = new __SearchVectorsCommand(this.input);
|
|
25
|
+
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
26
|
+
}
|
|
27
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
28
|
+
this.addMarshallingMiddleware(configuration);
|
|
29
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
30
|
+
const handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
|
|
31
|
+
return async () => handler(this.clientCommand);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -8,6 +8,7 @@ export * from './GetCommand';
|
|
|
8
8
|
export * from './PutCommand';
|
|
9
9
|
export * from './QueryCommand';
|
|
10
10
|
export * from './ScanCommand';
|
|
11
|
+
export * from './SearchVectorsCommand';
|
|
11
12
|
export * from './TransactGetCommand';
|
|
12
13
|
export * from './TransactWriteCommand';
|
|
13
14
|
export * from './UpdateCommand';
|
|
@@ -9,6 +9,7 @@ import { type GetCommandInput, type GetCommandOutput } from "./commands/GetComma
|
|
|
9
9
|
import { type PutCommandInput, type PutCommandOutput } from "./commands/PutCommand";
|
|
10
10
|
import { type QueryCommandInput, type QueryCommandOutput } from "./commands/QueryCommand";
|
|
11
11
|
import { type ScanCommandInput, type ScanCommandOutput } from "./commands/ScanCommand";
|
|
12
|
+
import { type SearchVectorsCommandInput, type SearchVectorsCommandOutput } from "./commands/SearchVectorsCommand";
|
|
12
13
|
import { type TransactGetCommandInput, type TransactGetCommandOutput } from "./commands/TransactGetCommand";
|
|
13
14
|
import { type TransactWriteCommandInput, type TransactWriteCommandOutput } from "./commands/TransactWriteCommand";
|
|
14
15
|
import { type UpdateCommandInput, type UpdateCommandOutput } from "./commands/UpdateCommand";
|
|
@@ -162,6 +163,16 @@ export declare class DynamoDBDocument extends DynamoDBDocumentClient {
|
|
|
162
163
|
scan(args: ScanCommandInput, options?: __HttpHandlerOptions): Promise<ScanCommandOutput>;
|
|
163
164
|
scan(args: ScanCommandInput, cb: (err: any, data?: ScanCommandOutput) => void): void;
|
|
164
165
|
scan(args: ScanCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ScanCommandOutput) => void): void;
|
|
166
|
+
/**
|
|
167
|
+
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
168
|
+
* SearchVectorsCommand operation from {@link @aws-sdk/client-dynamodb#SearchVectorsCommand}.
|
|
169
|
+
*
|
|
170
|
+
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
171
|
+
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
172
|
+
*/
|
|
173
|
+
searchVectors(args: SearchVectorsCommandInput, options?: __HttpHandlerOptions): Promise<SearchVectorsCommandOutput>;
|
|
174
|
+
searchVectors(args: SearchVectorsCommandInput, cb: (err: any, data?: SearchVectorsCommandOutput) => void): void;
|
|
175
|
+
searchVectors(args: SearchVectorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchVectorsCommandOutput) => void): void;
|
|
165
176
|
/**
|
|
166
177
|
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
167
178
|
* TransactGetItemsCommand operation from {@link @aws-sdk/client-dynamodb#TransactGetItemsCommand}.
|
|
@@ -10,6 +10,7 @@ import type { GetCommandInput, GetCommandOutput } from "./commands/GetCommand";
|
|
|
10
10
|
import type { PutCommandInput, PutCommandOutput } from "./commands/PutCommand";
|
|
11
11
|
import type { QueryCommandInput, QueryCommandOutput } from "./commands/QueryCommand";
|
|
12
12
|
import type { ScanCommandInput, ScanCommandOutput } from "./commands/ScanCommand";
|
|
13
|
+
import type { SearchVectorsCommandInput, SearchVectorsCommandOutput } from "./commands/SearchVectorsCommand";
|
|
13
14
|
import type { TransactGetCommandInput, TransactGetCommandOutput } from "./commands/TransactGetCommand";
|
|
14
15
|
import type { TransactWriteCommandInput, TransactWriteCommandOutput } from "./commands/TransactWriteCommand";
|
|
15
16
|
import type { UpdateCommandInput, UpdateCommandOutput } from "./commands/UpdateCommand";
|
|
@@ -22,11 +23,11 @@ export { __Client };
|
|
|
22
23
|
/**
|
|
23
24
|
* @public
|
|
24
25
|
*/
|
|
25
|
-
export type ServiceInputTypes = __ServiceInputTypes | BatchExecuteStatementCommandInput | BatchGetCommandInput | BatchWriteCommandInput | DeleteCommandInput | ExecuteStatementCommandInput | ExecuteTransactionCommandInput | GetCommandInput | PutCommandInput | QueryCommandInput | ScanCommandInput | TransactGetCommandInput | TransactWriteCommandInput | UpdateCommandInput;
|
|
26
|
+
export type ServiceInputTypes = __ServiceInputTypes | BatchExecuteStatementCommandInput | BatchGetCommandInput | BatchWriteCommandInput | DeleteCommandInput | ExecuteStatementCommandInput | ExecuteTransactionCommandInput | GetCommandInput | PutCommandInput | QueryCommandInput | ScanCommandInput | SearchVectorsCommandInput | TransactGetCommandInput | TransactWriteCommandInput | UpdateCommandInput;
|
|
26
27
|
/**
|
|
27
28
|
* @public
|
|
28
29
|
*/
|
|
29
|
-
export type ServiceOutputTypes = __ServiceOutputTypes | BatchExecuteStatementCommandOutput | BatchGetCommandOutput | BatchWriteCommandOutput | DeleteCommandOutput | ExecuteStatementCommandOutput | ExecuteTransactionCommandOutput | GetCommandOutput | PutCommandOutput | QueryCommandOutput | ScanCommandOutput | TransactGetCommandOutput | TransactWriteCommandOutput | UpdateCommandOutput;
|
|
30
|
+
export type ServiceOutputTypes = __ServiceOutputTypes | BatchExecuteStatementCommandOutput | BatchGetCommandOutput | BatchWriteCommandOutput | DeleteCommandOutput | ExecuteStatementCommandOutput | ExecuteTransactionCommandOutput | GetCommandOutput | PutCommandOutput | QueryCommandOutput | ScanCommandOutput | SearchVectorsCommandOutput | TransactGetCommandOutput | TransactWriteCommandOutput | UpdateCommandOutput;
|
|
30
31
|
/**
|
|
31
32
|
* @public
|
|
32
33
|
*/
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@smithy/types";
|
|
3
|
+
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
|
|
4
|
+
import type { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
5
|
+
import { SearchVectorsCommand as __SearchVectorsCommand } from "@aws-sdk/client-dynamodb";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { DynamoDBDocumentClientCommand, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type SearchVectorsCommandInput = Omit<__SearchVectorsCommandInput, "ExpressionAttributeValues" | "SearchVector"> & {
|
|
14
|
+
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
15
|
+
SearchVector: NativeAttributeValue[] | undefined;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export type SearchVectorsCommandOutput = Omit<__SearchVectorsCommandOutput, "SearchResults"> & {
|
|
21
|
+
SearchResults?: (Omit<SearchResultItem, "Item"> & {
|
|
22
|
+
Item?: Record<string, NativeAttributeValue> | undefined;
|
|
23
|
+
})[] | undefined;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
27
|
+
* SearchVectorsCommand operation from {@link @aws-sdk/client-dynamodb#SearchVectorsCommand}.
|
|
28
|
+
*
|
|
29
|
+
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
30
|
+
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
31
|
+
*
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
export declare class SearchVectorsCommand extends DynamoDBDocumentClientCommand<SearchVectorsCommandInput, SearchVectorsCommandOutput, __SearchVectorsCommandInput, __SearchVectorsCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
35
|
+
readonly input: SearchVectorsCommandInput;
|
|
36
|
+
protected readonly inputKeyNodes: {
|
|
37
|
+
ExpressionAttributeValues: import("../commands/utils").KeyNodeChildren;
|
|
38
|
+
SearchVector: import("../commands/utils").KeyNodeChildren;
|
|
39
|
+
};
|
|
40
|
+
protected readonly outputKeyNodes: {
|
|
41
|
+
SearchResults: {
|
|
42
|
+
"*": {
|
|
43
|
+
Item: import("../commands/utils").KeyNodeChildren;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
protected readonly clientCommand: __SearchVectorsCommand;
|
|
48
|
+
readonly middlewareStack: MiddlewareStack<SearchVectorsCommandInput | __SearchVectorsCommandInput, SearchVectorsCommandOutput | __SearchVectorsCommandOutput>;
|
|
49
|
+
constructor(input: SearchVectorsCommandInput);
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SearchVectorsCommandInput, SearchVectorsCommandOutput>;
|
|
54
|
+
}
|
|
55
|
+
import type { SearchResultItem, SearchVectorsCommandInput as __SearchVectorsCommandInput, SearchVectorsCommandOutput as __SearchVectorsCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
56
|
+
import type { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
@@ -8,6 +8,7 @@ export * from './GetCommand';
|
|
|
8
8
|
export * from './PutCommand';
|
|
9
9
|
export * from './QueryCommand';
|
|
10
10
|
export * from './ScanCommand';
|
|
11
|
+
export * from './SearchVectorsCommand';
|
|
11
12
|
export * from './TransactGetCommand';
|
|
12
13
|
export * from './TransactWriteCommand';
|
|
13
14
|
export * from './UpdateCommand';
|
|
@@ -18,6 +18,10 @@ import { GetCommandInput, GetCommandOutput } from "./commands/GetCommand";
|
|
|
18
18
|
import { PutCommandInput, PutCommandOutput } from "./commands/PutCommand";
|
|
19
19
|
import { QueryCommandInput, QueryCommandOutput } from "./commands/QueryCommand";
|
|
20
20
|
import { ScanCommandInput, ScanCommandOutput } from "./commands/ScanCommand";
|
|
21
|
+
import {
|
|
22
|
+
SearchVectorsCommandInput,
|
|
23
|
+
SearchVectorsCommandOutput,
|
|
24
|
+
} from "./commands/SearchVectorsCommand";
|
|
21
25
|
import { TransactGetCommandInput, TransactGetCommandOutput } from "./commands/TransactGetCommand";
|
|
22
26
|
import {
|
|
23
27
|
TransactWriteCommandInput,
|
|
@@ -125,6 +129,19 @@ export declare class DynamoDBDocument extends DynamoDBDocumentClient {
|
|
|
125
129
|
options: __HttpHandlerOptions,
|
|
126
130
|
cb: (err: any, data?: ScanCommandOutput) => void,
|
|
127
131
|
): void;
|
|
132
|
+
searchVectors(
|
|
133
|
+
args: SearchVectorsCommandInput,
|
|
134
|
+
options?: __HttpHandlerOptions,
|
|
135
|
+
): Promise<SearchVectorsCommandOutput>;
|
|
136
|
+
searchVectors(
|
|
137
|
+
args: SearchVectorsCommandInput,
|
|
138
|
+
cb: (err: any, data?: SearchVectorsCommandOutput) => void,
|
|
139
|
+
): void;
|
|
140
|
+
searchVectors(
|
|
141
|
+
args: SearchVectorsCommandInput,
|
|
142
|
+
options: __HttpHandlerOptions,
|
|
143
|
+
cb: (err: any, data?: SearchVectorsCommandOutput) => void,
|
|
144
|
+
): void;
|
|
128
145
|
transactGet(
|
|
129
146
|
args: TransactGetCommandInput,
|
|
130
147
|
options?: __HttpHandlerOptions,
|
|
@@ -19,6 +19,10 @@ import { GetCommandInput, GetCommandOutput } from "./commands/GetCommand";
|
|
|
19
19
|
import { PutCommandInput, PutCommandOutput } from "./commands/PutCommand";
|
|
20
20
|
import { QueryCommandInput, QueryCommandOutput } from "./commands/QueryCommand";
|
|
21
21
|
import { ScanCommandInput, ScanCommandOutput } from "./commands/ScanCommand";
|
|
22
|
+
import {
|
|
23
|
+
SearchVectorsCommandInput,
|
|
24
|
+
SearchVectorsCommandOutput,
|
|
25
|
+
} from "./commands/SearchVectorsCommand";
|
|
22
26
|
import { TransactGetCommandInput, TransactGetCommandOutput } from "./commands/TransactGetCommand";
|
|
23
27
|
import {
|
|
24
28
|
TransactWriteCommandInput,
|
|
@@ -45,6 +49,7 @@ export type ServiceInputTypes =
|
|
|
45
49
|
| PutCommandInput
|
|
46
50
|
| QueryCommandInput
|
|
47
51
|
| ScanCommandInput
|
|
52
|
+
| SearchVectorsCommandInput
|
|
48
53
|
| TransactGetCommandInput
|
|
49
54
|
| TransactWriteCommandInput
|
|
50
55
|
| UpdateCommandInput;
|
|
@@ -60,6 +65,7 @@ export type ServiceOutputTypes =
|
|
|
60
65
|
| PutCommandOutput
|
|
61
66
|
| QueryCommandOutput
|
|
62
67
|
| ScanCommandOutput
|
|
68
|
+
| SearchVectorsCommandOutput
|
|
63
69
|
| TransactGetCommandOutput
|
|
64
70
|
| TransactWriteCommandOutput
|
|
65
71
|
| UpdateCommandOutput;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import {
|
|
3
|
+
Handler,
|
|
4
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
5
|
+
MiddlewareStack,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
|
|
8
|
+
import {
|
|
9
|
+
DynamoDBDocumentClientResolvedConfig,
|
|
10
|
+
ServiceInputTypes,
|
|
11
|
+
ServiceOutputTypes,
|
|
12
|
+
} from "../DynamoDBDocumentClient";
|
|
13
|
+
import { SearchVectorsCommand as __SearchVectorsCommand } from "@aws-sdk/client-dynamodb";
|
|
14
|
+
export { DynamoDBDocumentClientCommand, $Command };
|
|
15
|
+
export type SearchVectorsCommandInput = Pick<
|
|
16
|
+
__SearchVectorsCommandInput,
|
|
17
|
+
Exclude<keyof __SearchVectorsCommandInput, "ExpressionAttributeValues" | "SearchVector">
|
|
18
|
+
> & {
|
|
19
|
+
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
20
|
+
SearchVector: NativeAttributeValue[] | undefined;
|
|
21
|
+
};
|
|
22
|
+
export type SearchVectorsCommandOutput = Pick<
|
|
23
|
+
__SearchVectorsCommandOutput,
|
|
24
|
+
Exclude<keyof __SearchVectorsCommandOutput, "SearchResults">
|
|
25
|
+
> & {
|
|
26
|
+
SearchResults?:
|
|
27
|
+
| (Pick<SearchResultItem, Exclude<keyof SearchResultItem, "Item">> & {
|
|
28
|
+
Item?: Record<string, NativeAttributeValue> | undefined;
|
|
29
|
+
})[]
|
|
30
|
+
| undefined;
|
|
31
|
+
};
|
|
32
|
+
export declare class SearchVectorsCommand extends DynamoDBDocumentClientCommand<
|
|
33
|
+
SearchVectorsCommandInput,
|
|
34
|
+
SearchVectorsCommandOutput,
|
|
35
|
+
__SearchVectorsCommandInput,
|
|
36
|
+
__SearchVectorsCommandOutput,
|
|
37
|
+
DynamoDBDocumentClientResolvedConfig
|
|
38
|
+
> {
|
|
39
|
+
readonly input: SearchVectorsCommandInput;
|
|
40
|
+
protected readonly inputKeyNodes: {
|
|
41
|
+
ExpressionAttributeValues: import("../commands/utils").KeyNodeChildren;
|
|
42
|
+
SearchVector: import("../commands/utils").KeyNodeChildren;
|
|
43
|
+
};
|
|
44
|
+
protected readonly outputKeyNodes: {
|
|
45
|
+
SearchResults: {
|
|
46
|
+
"*": {
|
|
47
|
+
Item: import("../commands/utils").KeyNodeChildren;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
protected readonly clientCommand: __SearchVectorsCommand;
|
|
52
|
+
readonly middlewareStack: MiddlewareStack<
|
|
53
|
+
SearchVectorsCommandInput | __SearchVectorsCommandInput,
|
|
54
|
+
SearchVectorsCommandOutput | __SearchVectorsCommandOutput
|
|
55
|
+
>;
|
|
56
|
+
constructor(input: SearchVectorsCommandInput);
|
|
57
|
+
resolveMiddleware(
|
|
58
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
59
|
+
configuration: DynamoDBDocumentClientResolvedConfig,
|
|
60
|
+
options?: __HttpHandlerOptions,
|
|
61
|
+
): Handler<SearchVectorsCommandInput, SearchVectorsCommandOutput>;
|
|
62
|
+
}
|
|
63
|
+
import {
|
|
64
|
+
SearchResultItem,
|
|
65
|
+
SearchVectorsCommandInput as __SearchVectorsCommandInput,
|
|
66
|
+
SearchVectorsCommandOutput as __SearchVectorsCommandOutput,
|
|
67
|
+
} from "@aws-sdk/client-dynamodb";
|
|
68
|
+
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
@@ -8,6 +8,7 @@ export * from "./GetCommand";
|
|
|
8
8
|
export * from "./PutCommand";
|
|
9
9
|
export * from "./QueryCommand";
|
|
10
10
|
export * from "./ScanCommand";
|
|
11
|
+
export * from "./SearchVectorsCommand";
|
|
11
12
|
export * from "./TransactGetCommand";
|
|
12
13
|
export * from "./TransactWriteCommand";
|
|
13
14
|
export * from "./UpdateCommand";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/lib-dynamodb",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1104.0",
|
|
4
4
|
"description": "The document client simplifies working with items in Amazon DynamoDB by abstracting away the notion of attribute values.",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/lib/lib-dynamodb",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@aws-sdk/core": "^3.977.
|
|
46
|
+
"@aws-sdk/core": "^3.977.6",
|
|
47
47
|
"@aws-sdk/util-dynamodb": "^3.996.7",
|
|
48
48
|
"@smithy/core": "^3.31.1",
|
|
49
49
|
"@smithy/types": "^4.16.1",
|
|
50
50
|
"tslib": "^2.6.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
53
|
+
"@aws-sdk/client-dynamodb": "3.1104.0",
|
|
54
54
|
"@tsconfig/recommended": "1.0.1",
|
|
55
55
|
"@types/node": "^20.14.8",
|
|
56
56
|
"concurrently": "7.0.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"typescript": "~5.8.3"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
62
|
+
"@aws-sdk/client-dynamodb": "^3.1104.0"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=20.0.0"
|