Skip to content

Commit 5413e88

Browse files
authored
v1.2.0 API (#18)
* update api * comments and default values * version up + add lint-staged * revert lint-staged * update openapi
1 parent 5ca1cc2 commit 5413e88

File tree

6 files changed

+640
-43
lines changed

6 files changed

+640
-43
lines changed

packages/js-client-rest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@qdrant/js-client-rest",
3-
"version": "1.1.6",
3+
"version": "1.2.0",
44
"engines": {
55
"node": ">=18.0.0",
66
"pnpm": ">=8"

packages/js-client-rest/src/api/points-api.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,22 @@ export function createPointsApi(client: Client) {
3131
.method('post')
3232
.create({wait: true, ordering: true}),
3333

34+
/**
35+
* Update vectors
36+
*/
37+
updateVectors: client
38+
.path('/collections/{collection_name}/points/vectors')
39+
.method('put')
40+
.create({wait: true, ordering: true}),
41+
42+
/**
43+
* Delete vectors
44+
*/
45+
deleteVectors: client
46+
.path('/collections/{collection_name}/points/vectors/delete')
47+
.method('post')
48+
.create({wait: true, ordering: true}),
49+
3450
/**
3551
* Retrieve full information of single point by id
3652
*/
@@ -65,6 +81,14 @@ export function createPointsApi(client: Client) {
6581
.method('post')
6682
.create({consistency: true}),
6783

84+
/**
85+
* Search point groups
86+
*/
87+
searchPointGroups: client
88+
.path('/collections/{collection_name}/points/search/groups')
89+
.method('post')
90+
.create({consistency: true}),
91+
6892
/**
6993
* Scroll request - paginate over all points which matches given filtering condition
7094
*/
@@ -104,5 +128,13 @@ export function createPointsApi(client: Client) {
104128
.path('/collections/{collection_name}/points')
105129
.method('put')
106130
.create({wait: true, ordering: true}),
131+
132+
/**
133+
* Recommend point groups
134+
*/
135+
recommendPointGroups: client
136+
.path('/collections/{collection_name}/points/recommend/groups')
137+
.method('post')
138+
.create({consistency: true}),
107139
} as const;
108140
}

0 commit comments

Comments
 (0)