@zilliz/milvus2-sdk-node 2.4.9 → 2.4.10
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/milvus/const/client.d.ts +2 -1
- package/dist/milvus/const/client.js +1 -0
- package/dist/milvus/const/client.js.map +1 -1
- package/dist/milvus/const/limits.d.ts +1 -0
- package/dist/milvus/const/limits.js +2 -1
- package/dist/milvus/const/limits.js.map +1 -1
- package/dist/milvus/const/milvus.d.ts +4 -0
- package/dist/milvus/const/milvus.js +6 -1
- package/dist/milvus/const/milvus.js.map +1 -1
- package/dist/milvus/grpc/BaseClient.js +12 -4
- package/dist/milvus/grpc/BaseClient.js.map +1 -1
- package/dist/milvus/grpc/Collection.d.ts +77 -2
- package/dist/milvus/grpc/Collection.js +106 -1
- package/dist/milvus/grpc/Collection.js.map +1 -1
- package/dist/milvus/grpc/Data.js +28 -7
- package/dist/milvus/grpc/Data.js.map +1 -1
- package/dist/milvus/grpc/Database.d.ts +24 -1
- package/dist/milvus/grpc/Database.js +35 -1
- package/dist/milvus/grpc/Database.js.map +1 -1
- package/dist/milvus/grpc/MilvusIndex.d.ts +29 -2
- package/dist/milvus/grpc/MilvusIndex.js +44 -1
- package/dist/milvus/grpc/MilvusIndex.js.map +1 -1
- package/dist/milvus/grpc/User.d.ts +165 -1
- package/dist/milvus/grpc/User.js +229 -0
- package/dist/milvus/grpc/User.js.map +1 -1
- package/dist/milvus/types/Client.d.ts +1 -0
- package/dist/milvus/types/Collection.d.ts +30 -19
- package/dist/milvus/types/Common.d.ts +5 -5
- package/dist/milvus/types/Data.d.ts +23 -6
- package/dist/milvus/types/Database.d.ts +6 -0
- package/dist/milvus/types/MilvusIndex.d.ts +4 -0
- package/dist/milvus/types/User.d.ts +56 -1
- package/dist/milvus/utils/Format.d.ts +56 -31
- package/dist/milvus/utils/Format.js +114 -17
- package/dist/milvus/utils/Format.js.map +1 -1
- package/dist/proto/proto/common.proto +30 -0
- package/dist/proto/proto/google/protobuf/descriptor.proto +45 -1
- package/dist/proto/proto/milvus.proto +131 -6
- package/dist/proto/proto/msg.proto +7 -0
- package/dist/proto/proto/rg.proto +7 -0
- package/dist/proto/proto/schema.proto +27 -0
- package/dist/sdk.json +1 -1
- package/package.json +3 -3
|
@@ -27,7 +27,7 @@ service MilvusService {
|
|
|
27
27
|
rpc GetCollectionStatistics(GetCollectionStatisticsRequest) returns (GetCollectionStatisticsResponse) {}
|
|
28
28
|
rpc ShowCollections(ShowCollectionsRequest) returns (ShowCollectionsResponse) {}
|
|
29
29
|
rpc AlterCollection(AlterCollectionRequest) returns (common.Status) {}
|
|
30
|
-
|
|
30
|
+
rpc AlterCollectionField(AlterCollectionFieldRequest) returns (common.Status) {}
|
|
31
31
|
rpc CreatePartition(CreatePartitionRequest) returns (common.Status) {}
|
|
32
32
|
rpc DropPartition(DropPartitionRequest) returns (common.Status) {}
|
|
33
33
|
rpc HasPartition(HasPartitionRequest) returns (BoolResponse) {}
|
|
@@ -107,6 +107,7 @@ service MilvusService {
|
|
|
107
107
|
rpc SelectRole(SelectRoleRequest) returns (SelectRoleResponse) {}
|
|
108
108
|
rpc SelectUser(SelectUserRequest) returns (SelectUserResponse) {}
|
|
109
109
|
rpc OperatePrivilege(OperatePrivilegeRequest) returns (common.Status) {}
|
|
110
|
+
rpc OperatePrivilegeV2(OperatePrivilegeV2Request) returns (common.Status) {}
|
|
110
111
|
rpc SelectGrant(SelectGrantRequest) returns (SelectGrantResponse) {}
|
|
111
112
|
|
|
112
113
|
rpc GetVersion(GetVersionRequest) returns (GetVersionResponse) {}
|
|
@@ -139,6 +140,11 @@ service MilvusService {
|
|
|
139
140
|
|
|
140
141
|
rpc BackupRBAC(BackupRBACMetaRequest) returns (BackupRBACMetaResponse){}
|
|
141
142
|
rpc RestoreRBAC(RestoreRBACMetaRequest) returns (common.Status){}
|
|
143
|
+
|
|
144
|
+
rpc CreatePrivilegeGroup(CreatePrivilegeGroupRequest) returns (common.Status) {}
|
|
145
|
+
rpc DropPrivilegeGroup(DropPrivilegeGroupRequest) returns (common.Status) {}
|
|
146
|
+
rpc ListPrivilegeGroups(ListPrivilegeGroupsRequest) returns (ListPrivilegeGroupsResponse) {}
|
|
147
|
+
rpc OperatePrivilegeGroup(OperatePrivilegeGroupRequest) returns (common.Status) {}
|
|
142
148
|
}
|
|
143
149
|
|
|
144
150
|
message CreateAliasRequest {
|
|
@@ -282,6 +288,22 @@ message AlterCollectionRequest {
|
|
|
282
288
|
string collection_name = 3;
|
|
283
289
|
int64 collectionID = 4;
|
|
284
290
|
repeated common.KeyValuePair properties = 5;
|
|
291
|
+
repeated string delete_keys = 6;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
message AlterCollectionFieldRequest {
|
|
295
|
+
option (common.privilege_ext_obj) = {
|
|
296
|
+
object_type: Global
|
|
297
|
+
object_privilege: PrivilegeCreateCollection
|
|
298
|
+
object_name_index: -1
|
|
299
|
+
};
|
|
300
|
+
// Not useful for now
|
|
301
|
+
common.MsgBase base = 1;
|
|
302
|
+
string db_name = 2;
|
|
303
|
+
// The unique collection name in milvus.(Required)
|
|
304
|
+
string collection_name = 3;
|
|
305
|
+
string field_name =4;
|
|
306
|
+
repeated common.KeyValuePair properties = 5;
|
|
285
307
|
}
|
|
286
308
|
|
|
287
309
|
/**
|
|
@@ -736,6 +758,7 @@ message AlterIndexRequest {
|
|
|
736
758
|
string collection_name = 3;
|
|
737
759
|
string index_name = 4;
|
|
738
760
|
repeated common.KeyValuePair extra_params = 5;
|
|
761
|
+
repeated string delete_keys = 6;
|
|
739
762
|
}
|
|
740
763
|
|
|
741
764
|
/*
|
|
@@ -905,6 +928,7 @@ message DeleteRequest {
|
|
|
905
928
|
string expr = 5;
|
|
906
929
|
repeated uint32 hash_keys = 6;
|
|
907
930
|
common.ConsistencyLevel consistency_level = 7;
|
|
931
|
+
map<string, schema.TemplateValue> expr_template_values = 8;
|
|
908
932
|
}
|
|
909
933
|
|
|
910
934
|
|
|
@@ -914,10 +938,10 @@ message SubSearchRequest {
|
|
|
914
938
|
bytes placeholder_group = 2; // must
|
|
915
939
|
common.DslType dsl_type = 3; // must
|
|
916
940
|
repeated common.KeyValuePair search_params = 4; // must
|
|
917
|
-
int64
|
|
941
|
+
int64 nq = 5;
|
|
942
|
+
map<string, schema.TemplateValue> expr_template_values = 6;
|
|
918
943
|
}
|
|
919
944
|
|
|
920
|
-
|
|
921
945
|
message SearchRequest {
|
|
922
946
|
option (common.privilege_ext_obj) = {
|
|
923
947
|
object_type: Collection
|
|
@@ -942,6 +966,7 @@ message SearchRequest {
|
|
|
942
966
|
bool use_default_consistency = 15;
|
|
943
967
|
bool search_by_primary_keys = 16;
|
|
944
968
|
repeated SubSearchRequest sub_reqs = 17;
|
|
969
|
+
map<string, schema.TemplateValue> expr_template_values = 18;
|
|
945
970
|
}
|
|
946
971
|
|
|
947
972
|
message Hits {
|
|
@@ -1015,6 +1040,7 @@ message QueryRequest {
|
|
|
1015
1040
|
bool not_return_all_meta = 10;
|
|
1016
1041
|
common.ConsistencyLevel consistency_level = 11;
|
|
1017
1042
|
bool use_default_consistency = 12;
|
|
1043
|
+
map<string, schema.TemplateValue> expr_template_values = 13;
|
|
1018
1044
|
}
|
|
1019
1045
|
|
|
1020
1046
|
message QueryResults {
|
|
@@ -1179,11 +1205,13 @@ message ManualCompactionRequest {
|
|
|
1179
1205
|
option (common.privilege_ext_obj) = {
|
|
1180
1206
|
object_type: Collection
|
|
1181
1207
|
object_privilege: PrivilegeCompaction
|
|
1182
|
-
object_name_index:
|
|
1208
|
+
object_name_index: 4
|
|
1183
1209
|
};
|
|
1184
1210
|
int64 collectionID = 1;
|
|
1185
1211
|
uint64 timetravel = 2;
|
|
1186
1212
|
bool majorCompaction = 3;
|
|
1213
|
+
string collection_name = 4;
|
|
1214
|
+
string db_name = 5;
|
|
1187
1215
|
}
|
|
1188
1216
|
|
|
1189
1217
|
message ManualCompactionResponse {
|
|
@@ -1437,6 +1465,66 @@ message DropRoleRequest {
|
|
|
1437
1465
|
bool force_drop = 3;
|
|
1438
1466
|
}
|
|
1439
1467
|
|
|
1468
|
+
message CreatePrivilegeGroupRequest {
|
|
1469
|
+
option (common.privilege_ext_obj) = {
|
|
1470
|
+
object_type: Global
|
|
1471
|
+
object_privilege: PrivilegeCreatePrivilegeGroup
|
|
1472
|
+
object_name_index: -1
|
|
1473
|
+
};
|
|
1474
|
+
// Not useful for now
|
|
1475
|
+
common.MsgBase base = 1;
|
|
1476
|
+
// group name
|
|
1477
|
+
string group_name = 2;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
message DropPrivilegeGroupRequest {
|
|
1481
|
+
option (common.privilege_ext_obj) = {
|
|
1482
|
+
object_type: Global
|
|
1483
|
+
object_privilege: PrivilegeDropPrivilegeGroup
|
|
1484
|
+
object_name_index: -1
|
|
1485
|
+
};
|
|
1486
|
+
// Not useful for now
|
|
1487
|
+
common.MsgBase base = 1;
|
|
1488
|
+
// group name
|
|
1489
|
+
string group_name = 2;
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
message ListPrivilegeGroupsRequest {
|
|
1493
|
+
option (common.privilege_ext_obj) = {
|
|
1494
|
+
object_type: Global
|
|
1495
|
+
object_privilege: PrivilegeListPrivilegeGroups
|
|
1496
|
+
object_name_index: -1
|
|
1497
|
+
};
|
|
1498
|
+
// Not useful for now
|
|
1499
|
+
common.MsgBase base = 1;
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
message ListPrivilegeGroupsResponse {
|
|
1503
|
+
common.Status status = 1;
|
|
1504
|
+
repeated PrivilegeGroupInfo privilege_groups = 2;
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
message OperatePrivilegeGroupRequest {
|
|
1508
|
+
option (common.privilege_ext_obj) = {
|
|
1509
|
+
object_type: Global
|
|
1510
|
+
object_privilege: PrivilegeOperatePrivilegeGroup
|
|
1511
|
+
object_name_index: -1
|
|
1512
|
+
};
|
|
1513
|
+
// Not useful for now
|
|
1514
|
+
common.MsgBase base = 1;
|
|
1515
|
+
// group name
|
|
1516
|
+
string group_name = 2;
|
|
1517
|
+
// privileges
|
|
1518
|
+
repeated PrivilegeEntity privileges = 3;
|
|
1519
|
+
// operation type
|
|
1520
|
+
OperatePrivilegeGroupType type = 4;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
enum OperatePrivilegeGroupType {
|
|
1524
|
+
AddPrivilegesToGroup = 0;
|
|
1525
|
+
RemovePrivilegesFromGroup = 1;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1440
1528
|
enum OperateUserRoleType {
|
|
1441
1529
|
AddUserToRole = 0;
|
|
1442
1530
|
RemoveUserFromRole = 1;
|
|
@@ -1458,6 +1546,11 @@ message OperateUserRoleRequest {
|
|
|
1458
1546
|
OperateUserRoleType type = 4;
|
|
1459
1547
|
}
|
|
1460
1548
|
|
|
1549
|
+
message PrivilegeGroupInfo {
|
|
1550
|
+
string group_name = 1;
|
|
1551
|
+
repeated PrivilegeEntity privileges = 2;
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1461
1554
|
message SelectRoleRequest {
|
|
1462
1555
|
option (common.privilege_ext_obj) = {
|
|
1463
1556
|
object_type: Global
|
|
@@ -1540,6 +1633,12 @@ message GrantEntity {
|
|
|
1540
1633
|
string db_name = 5;
|
|
1541
1634
|
}
|
|
1542
1635
|
|
|
1636
|
+
enum PrivilegeLevel {
|
|
1637
|
+
Cluster = 0;
|
|
1638
|
+
Database = 1;
|
|
1639
|
+
Collection = 2;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1543
1642
|
message SelectGrantRequest {
|
|
1544
1643
|
option (common.privilege_ext_obj) = {
|
|
1545
1644
|
object_type: Global
|
|
@@ -1576,6 +1675,29 @@ message OperatePrivilegeRequest {
|
|
|
1576
1675
|
GrantEntity entity = 2;
|
|
1577
1676
|
// operation type
|
|
1578
1677
|
OperatePrivilegeType type = 3;
|
|
1678
|
+
// version
|
|
1679
|
+
string version = 4;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
|
|
1683
|
+
message OperatePrivilegeV2Request {
|
|
1684
|
+
option (common.privilege_ext_obj) = {
|
|
1685
|
+
object_type: Global
|
|
1686
|
+
object_privilege: PrivilegeManageOwnership
|
|
1687
|
+
object_name_index: -1
|
|
1688
|
+
};
|
|
1689
|
+
// Not useful for now
|
|
1690
|
+
common.MsgBase base = 1;
|
|
1691
|
+
// role
|
|
1692
|
+
RoleEntity role = 2;
|
|
1693
|
+
// privilege
|
|
1694
|
+
GrantorEntity grantor = 3;
|
|
1695
|
+
// operation type
|
|
1696
|
+
OperatePrivilegeType type = 4;
|
|
1697
|
+
// db name
|
|
1698
|
+
string db_name = 5;
|
|
1699
|
+
// collection name
|
|
1700
|
+
string collection_name = 6;
|
|
1579
1701
|
}
|
|
1580
1702
|
|
|
1581
1703
|
message UserInfo {
|
|
@@ -1591,6 +1713,8 @@ message RBACMeta {
|
|
|
1591
1713
|
repeated milvus.RoleEntity roles = 2;
|
|
1592
1714
|
// (role, object, previledge)
|
|
1593
1715
|
repeated milvus.GrantEntity grants = 3;
|
|
1716
|
+
// privilege group info
|
|
1717
|
+
repeated milvus.PrivilegeGroupInfo privilege_groups = 4;
|
|
1594
1718
|
}
|
|
1595
1719
|
|
|
1596
1720
|
message BackupRBACMetaRequest {
|
|
@@ -1892,6 +2016,7 @@ message AlterDatabaseRequest {
|
|
|
1892
2016
|
string db_name = 2;
|
|
1893
2017
|
string db_id = 3;
|
|
1894
2018
|
repeated common.KeyValuePair properties = 4;
|
|
2019
|
+
repeated string delete_keys = 5;
|
|
1895
2020
|
}
|
|
1896
2021
|
|
|
1897
2022
|
message DescribeDatabaseRequest {
|
|
@@ -1931,7 +2056,7 @@ message ImportAuthPlaceholder {
|
|
|
1931
2056
|
option (common.privilege_ext_obj) = {
|
|
1932
2057
|
object_type: Collection
|
|
1933
2058
|
object_privilege: PrivilegeImport
|
|
1934
|
-
object_name_index:
|
|
2059
|
+
object_name_index: 2
|
|
1935
2060
|
};
|
|
1936
2061
|
string db_name = 1;
|
|
1937
2062
|
string collection_name = 2;
|
|
@@ -1942,7 +2067,7 @@ message GetImportProgressAuthPlaceholder {
|
|
|
1942
2067
|
option (common.privilege_ext_obj) = {
|
|
1943
2068
|
object_type: Collection
|
|
1944
2069
|
object_privilege: PrivilegeImport
|
|
1945
|
-
object_name_index: 1
|
|
2070
|
+
object_name_index: -1
|
|
1946
2071
|
};
|
|
1947
2072
|
string db_name = 1;
|
|
1948
2073
|
}
|
|
@@ -10,6 +10,8 @@ option java_generate_equals_and_hash = true;
|
|
|
10
10
|
|
|
11
11
|
option csharp_namespace = "Milvus.Client.Grpc";
|
|
12
12
|
|
|
13
|
+
import "common.proto";
|
|
14
|
+
|
|
13
15
|
message ResourceGroupLimit {
|
|
14
16
|
int32 node_num = 1;
|
|
15
17
|
// preserve for other limit.
|
|
@@ -19,10 +21,15 @@ message ResourceGroupTransfer {
|
|
|
19
21
|
string resource_group = 1; // resource groups can be transfered with current resource group.
|
|
20
22
|
// preserve for other option, such as weight, priority or affinity setup.
|
|
21
23
|
}
|
|
24
|
+
|
|
25
|
+
message ResourceGroupNodeFilter {
|
|
26
|
+
repeated common.KeyValuePair node_labels = 1; // node in resource group must match node labels requirements
|
|
27
|
+
}
|
|
22
28
|
|
|
23
29
|
message ResourceGroupConfig {
|
|
24
30
|
ResourceGroupLimit requests = 1; // requests node num in resource group, if node num is less than requests.nodeNum, it will be transfer from other resource group.
|
|
25
31
|
ResourceGroupLimit limits = 2; // limited node num in resource group, if node num is more than limits.nodeNum, it will be transfer to other resource group.
|
|
26
32
|
repeated ResourceGroupTransfer transfer_from = 3; // missing node should be transfer from given resource group at high priority in repeated list.
|
|
27
33
|
repeated ResourceGroupTransfer transfer_to = 4; // redundant node should be transfer to given resource group at high priority in repeated list.
|
|
34
|
+
ResourceGroupNodeFilter node_filter = 5; // node in resource group must match node filters
|
|
28
35
|
}
|
|
@@ -77,6 +77,7 @@ message CollectionSchema {
|
|
|
77
77
|
repeated FieldSchema fields = 4;
|
|
78
78
|
bool enable_dynamic_field = 5; // mark whether this table has the dynamic field function enabled.
|
|
79
79
|
repeated common.KeyValuePair properties = 6;
|
|
80
|
+
string dbName = 8;
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
message BoolArray { repeated bool data = 1; }
|
|
@@ -175,6 +176,7 @@ message SearchResultData {
|
|
|
175
176
|
FieldData group_by_field_value = 8;
|
|
176
177
|
int64 all_search_count = 9;
|
|
177
178
|
repeated float distances = 10;
|
|
179
|
+
repeated float recalls = 12;
|
|
178
180
|
}
|
|
179
181
|
|
|
180
182
|
// vector field clustering info
|
|
@@ -195,3 +197,28 @@ message ClusteringInfo {
|
|
|
195
197
|
repeated VectorClusteringInfo vector_clustering_infos = 1;
|
|
196
198
|
repeated ScalarClusteringInfo scalar_clustering_infos = 2;
|
|
197
199
|
}
|
|
200
|
+
|
|
201
|
+
message TemplateValue {
|
|
202
|
+
oneof val {
|
|
203
|
+
bool bool_val = 1;
|
|
204
|
+
int64 int64_val = 2;
|
|
205
|
+
double float_val = 3;
|
|
206
|
+
string string_val = 4;
|
|
207
|
+
TemplateArrayValue array_val = 5;
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
message TemplateArrayValue {
|
|
212
|
+
oneof data {
|
|
213
|
+
BoolArray bool_data = 1;
|
|
214
|
+
LongArray long_data = 2;
|
|
215
|
+
DoubleArray double_data = 3;
|
|
216
|
+
StringArray string_data = 4;
|
|
217
|
+
TemplateArrayValueArray array_data = 5;
|
|
218
|
+
JSONArray json_data = 6;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
message TemplateArrayValueArray {
|
|
223
|
+
repeated TemplateArrayValue data = 1;
|
|
224
|
+
}
|
package/dist/sdk.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"2.4.
|
|
1
|
+
{"version":"2.4.10","milvusVersion":"v2.4.19"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zilliz/milvus2-sdk-node",
|
|
3
3
|
"author": "ued@zilliz.com",
|
|
4
|
-
"version": "2.4.
|
|
5
|
-
"milvusVersion": "v2.4.
|
|
4
|
+
"version": "2.4.10",
|
|
5
|
+
"milvusVersion": "v2.4.19",
|
|
6
6
|
"main": "dist/milvus",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"doc-json": "npx typedoc milvus --json"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@grpc/grpc-js": "^1.
|
|
23
|
+
"@grpc/grpc-js": "^1.12.1",
|
|
24
24
|
"@grpc/proto-loader": "^0.7.10",
|
|
25
25
|
"@petamoriken/float16": "^3.8.6",
|
|
26
26
|
"dayjs": "^1.11.7",
|