@zilliz/milvus2-sdk-node 2.4.9 → 2.5.1
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/README.md +8 -3
- package/dist/milvus/MilvusClient.js +3 -0
- package/dist/milvus/MilvusClient.js.map +1 -1
- 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 +8 -2
- package/dist/milvus/const/milvus.js +10 -1
- package/dist/milvus/const/milvus.js.map +1 -1
- package/dist/milvus/grpc/BaseClient.d.ts +2 -3
- package/dist/milvus/grpc/BaseClient.js +13 -7
- package/dist/milvus/grpc/BaseClient.js.map +1 -1
- package/dist/milvus/grpc/Collection.d.ts +2 -2
- package/dist/milvus/grpc/Collection.js +13 -7
- package/dist/milvus/grpc/Collection.js.map +1 -1
- package/dist/milvus/grpc/Data.js +54 -19
- package/dist/milvus/grpc/Data.js.map +1 -1
- package/dist/milvus/grpc/Database.js +4 -1
- package/dist/milvus/grpc/Database.js.map +1 -1
- package/dist/milvus/types/Client.d.ts +2 -0
- package/dist/milvus/types/Collection.d.ts +40 -28
- package/dist/milvus/types/Common.d.ts +4 -4
- package/dist/milvus/types/Data.d.ts +17 -5
- package/dist/milvus/types/Database.d.ts +1 -0
- package/dist/milvus/utils/Bytes.d.ts +3 -3
- package/dist/milvus/utils/Bytes.js +27 -20
- package/dist/milvus/utils/Bytes.js.map +1 -1
- package/dist/milvus/utils/Format.d.ts +14 -14
- package/dist/milvus/utils/Format.js +112 -57
- package/dist/milvus/utils/Format.js.map +1 -1
- package/dist/milvus/utils/Function.d.ts +2 -1
- package/dist/milvus/utils/Function.js +9 -1
- package/dist/milvus/utils/Function.js.map +1 -1
- package/dist/proto/proto/common.proto +29 -0
- package/dist/proto/proto/google/protobuf/descriptor.proto +45 -1
- package/dist/proto/proto/milvus.proto +136 -6
- package/dist/proto/proto/msg.proto +8 -0
- package/dist/proto/proto/rg.proto +7 -0
- package/dist/proto/proto/schema.proto +59 -0
- package/dist/sdk.json +1 -1
- package/package.json +3 -3
|
@@ -55,6 +55,13 @@ option optimize_for = SPEED;
|
|
|
55
55
|
// files it parses.
|
|
56
56
|
message FileDescriptorSet {
|
|
57
57
|
repeated FileDescriptorProto file = 1;
|
|
58
|
+
|
|
59
|
+
// Extensions for tooling.
|
|
60
|
+
extensions 536000000 [declaration = {
|
|
61
|
+
number: 536000000
|
|
62
|
+
type: ".buf.descriptor.v1.FileDescriptorSetExtension"
|
|
63
|
+
full_name: ".buf.descriptor.v1.buf_file_descriptor_set_extension"
|
|
64
|
+
}];
|
|
58
65
|
}
|
|
59
66
|
|
|
60
67
|
// The full set of known editions.
|
|
@@ -80,7 +87,7 @@ enum Edition {
|
|
|
80
87
|
EDITION_2024 = 1001;
|
|
81
88
|
|
|
82
89
|
// Placeholder editions for testing feature resolution. These should not be
|
|
83
|
-
// used or
|
|
90
|
+
// used or relied on outside of tests.
|
|
84
91
|
EDITION_1_TEST_ONLY = 1;
|
|
85
92
|
EDITION_2_TEST_ONLY = 2;
|
|
86
93
|
EDITION_99997_TEST_ONLY = 99997;
|
|
@@ -124,9 +131,15 @@ message FileDescriptorProto {
|
|
|
124
131
|
// The supported values are "proto2", "proto3", and "editions".
|
|
125
132
|
//
|
|
126
133
|
// If `edition` is present, this value must be "editions".
|
|
134
|
+
// WARNING: This field should only be used by protobuf plugins or special
|
|
135
|
+
// cases like the proto compiler. Other uses are discouraged and
|
|
136
|
+
// developers should rely on the protoreflect APIs for their client language.
|
|
127
137
|
optional string syntax = 12;
|
|
128
138
|
|
|
129
139
|
// The edition of the proto file.
|
|
140
|
+
// WARNING: This field should only be used by protobuf plugins or special
|
|
141
|
+
// cases like the proto compiler. Other uses are discouraged and
|
|
142
|
+
// developers should rely on the protoreflect APIs for their client language.
|
|
130
143
|
optional Edition edition = 14;
|
|
131
144
|
}
|
|
132
145
|
|
|
@@ -539,6 +552,9 @@ message FileOptions {
|
|
|
539
552
|
optional string ruby_package = 45;
|
|
540
553
|
|
|
541
554
|
// Any features defined in the specific edition.
|
|
555
|
+
// WARNING: This field should only be used by protobuf plugins or special
|
|
556
|
+
// cases like the proto compiler. Other uses are discouraged and
|
|
557
|
+
// developers should rely on the protoreflect APIs for their client language.
|
|
542
558
|
optional FeatureSet features = 50;
|
|
543
559
|
|
|
544
560
|
// The parser stores options it doesn't recognize here.
|
|
@@ -625,6 +641,9 @@ message MessageOptions {
|
|
|
625
641
|
optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];
|
|
626
642
|
|
|
627
643
|
// Any features defined in the specific edition.
|
|
644
|
+
// WARNING: This field should only be used by protobuf plugins or special
|
|
645
|
+
// cases like the proto compiler. Other uses are discouraged and
|
|
646
|
+
// developers should rely on the protoreflect APIs for their client language.
|
|
628
647
|
optional FeatureSet features = 12;
|
|
629
648
|
|
|
630
649
|
// The parser stores options it doesn't recognize here. See above.
|
|
@@ -765,6 +784,9 @@ message FieldOptions {
|
|
|
765
784
|
repeated EditionDefault edition_defaults = 20;
|
|
766
785
|
|
|
767
786
|
// Any features defined in the specific edition.
|
|
787
|
+
// WARNING: This field should only be used by protobuf plugins or special
|
|
788
|
+
// cases like the proto compiler. Other uses are discouraged and
|
|
789
|
+
// developers should rely on the protoreflect APIs for their client language.
|
|
768
790
|
optional FeatureSet features = 21;
|
|
769
791
|
|
|
770
792
|
// Information about the support window of a feature.
|
|
@@ -801,6 +823,9 @@ message FieldOptions {
|
|
|
801
823
|
|
|
802
824
|
message OneofOptions {
|
|
803
825
|
// Any features defined in the specific edition.
|
|
826
|
+
// WARNING: This field should only be used by protobuf plugins or special
|
|
827
|
+
// cases like the proto compiler. Other uses are discouraged and
|
|
828
|
+
// developers should rely on the protoreflect APIs for their client language.
|
|
804
829
|
optional FeatureSet features = 1;
|
|
805
830
|
|
|
806
831
|
// The parser stores options it doesn't recognize here. See above.
|
|
@@ -833,6 +858,9 @@ message EnumOptions {
|
|
|
833
858
|
optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];
|
|
834
859
|
|
|
835
860
|
// Any features defined in the specific edition.
|
|
861
|
+
// WARNING: This field should only be used by protobuf plugins or special
|
|
862
|
+
// cases like the proto compiler. Other uses are discouraged and
|
|
863
|
+
// developers should rely on the protoreflect APIs for their client language.
|
|
836
864
|
optional FeatureSet features = 7;
|
|
837
865
|
|
|
838
866
|
// The parser stores options it doesn't recognize here. See above.
|
|
@@ -850,6 +878,9 @@ message EnumValueOptions {
|
|
|
850
878
|
optional bool deprecated = 1 [default = false];
|
|
851
879
|
|
|
852
880
|
// Any features defined in the specific edition.
|
|
881
|
+
// WARNING: This field should only be used by protobuf plugins or special
|
|
882
|
+
// cases like the proto compiler. Other uses are discouraged and
|
|
883
|
+
// developers should rely on the protoreflect APIs for their client language.
|
|
853
884
|
optional FeatureSet features = 2;
|
|
854
885
|
|
|
855
886
|
// Indicate that fields annotated with this enum value should not be printed
|
|
@@ -870,6 +901,9 @@ message EnumValueOptions {
|
|
|
870
901
|
message ServiceOptions {
|
|
871
902
|
|
|
872
903
|
// Any features defined in the specific edition.
|
|
904
|
+
// WARNING: This field should only be used by protobuf plugins or special
|
|
905
|
+
// cases like the proto compiler. Other uses are discouraged and
|
|
906
|
+
// developers should rely on the protoreflect APIs for their client language.
|
|
873
907
|
optional FeatureSet features = 34;
|
|
874
908
|
|
|
875
909
|
// Note: Field numbers 1 through 32 are reserved for Google's internal RPC
|
|
@@ -915,6 +949,9 @@ message MethodOptions {
|
|
|
915
949
|
[default = IDEMPOTENCY_UNKNOWN];
|
|
916
950
|
|
|
917
951
|
// Any features defined in the specific edition.
|
|
952
|
+
// WARNING: This field should only be used by protobuf plugins or special
|
|
953
|
+
// cases like the proto compiler. Other uses are discouraged and
|
|
954
|
+
// developers should rely on the protoreflect APIs for their client language.
|
|
918
955
|
optional FeatureSet features = 35;
|
|
919
956
|
|
|
920
957
|
// The parser stores options it doesn't recognize here. See above.
|
|
@@ -1252,6 +1289,13 @@ message SourceCodeInfo {
|
|
|
1252
1289
|
optional string trailing_comments = 4;
|
|
1253
1290
|
repeated string leading_detached_comments = 6;
|
|
1254
1291
|
}
|
|
1292
|
+
|
|
1293
|
+
// Extensions for tooling.
|
|
1294
|
+
extensions 536000000 [declaration = {
|
|
1295
|
+
number: 536000000
|
|
1296
|
+
type: ".buf.descriptor.v1.SourceCodeInfoExtension"
|
|
1297
|
+
full_name: ".buf.descriptor.v1.buf_source_code_info_extension"
|
|
1298
|
+
}];
|
|
1255
1299
|
}
|
|
1256
1300
|
|
|
1257
1301
|
// Describes the relationship between generated code and its original source
|
|
@@ -27,6 +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
|
+
rpc AlterCollectionField(AlterCollectionFieldRequest) returns (common.Status) {}
|
|
30
31
|
|
|
31
32
|
rpc CreatePartition(CreatePartitionRequest) returns (common.Status) {}
|
|
32
33
|
rpc DropPartition(DropPartitionRequest) returns (common.Status) {}
|
|
@@ -107,6 +108,7 @@ service MilvusService {
|
|
|
107
108
|
rpc SelectRole(SelectRoleRequest) returns (SelectRoleResponse) {}
|
|
108
109
|
rpc SelectUser(SelectUserRequest) returns (SelectUserResponse) {}
|
|
109
110
|
rpc OperatePrivilege(OperatePrivilegeRequest) returns (common.Status) {}
|
|
111
|
+
rpc OperatePrivilegeV2(OperatePrivilegeV2Request) returns (common.Status) {}
|
|
110
112
|
rpc SelectGrant(SelectGrantRequest) returns (SelectGrantResponse) {}
|
|
111
113
|
|
|
112
114
|
rpc GetVersion(GetVersionRequest) returns (GetVersionResponse) {}
|
|
@@ -139,6 +141,11 @@ service MilvusService {
|
|
|
139
141
|
|
|
140
142
|
rpc BackupRBAC(BackupRBACMetaRequest) returns (BackupRBACMetaResponse){}
|
|
141
143
|
rpc RestoreRBAC(RestoreRBACMetaRequest) returns (common.Status){}
|
|
144
|
+
|
|
145
|
+
rpc CreatePrivilegeGroup(CreatePrivilegeGroupRequest) returns (common.Status) {}
|
|
146
|
+
rpc DropPrivilegeGroup(DropPrivilegeGroupRequest) returns (common.Status) {}
|
|
147
|
+
rpc ListPrivilegeGroups(ListPrivilegeGroupsRequest) returns (ListPrivilegeGroupsResponse) {}
|
|
148
|
+
rpc OperatePrivilegeGroup(OperatePrivilegeGroupRequest) returns (common.Status) {}
|
|
142
149
|
}
|
|
143
150
|
|
|
144
151
|
message CreateAliasRequest {
|
|
@@ -282,6 +289,22 @@ message AlterCollectionRequest {
|
|
|
282
289
|
string collection_name = 3;
|
|
283
290
|
int64 collectionID = 4;
|
|
284
291
|
repeated common.KeyValuePair properties = 5;
|
|
292
|
+
repeated string delete_keys = 6;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
message AlterCollectionFieldRequest {
|
|
296
|
+
option (common.privilege_ext_obj) = {
|
|
297
|
+
object_type: Global
|
|
298
|
+
object_privilege: PrivilegeCreateCollection
|
|
299
|
+
object_name_index: -1
|
|
300
|
+
};
|
|
301
|
+
// Not useful for now
|
|
302
|
+
common.MsgBase base = 1;
|
|
303
|
+
string db_name = 2;
|
|
304
|
+
// The unique collection name in milvus.(Required)
|
|
305
|
+
string collection_name = 3;
|
|
306
|
+
string field_name =4;
|
|
307
|
+
repeated common.KeyValuePair properties = 5;
|
|
285
308
|
}
|
|
286
309
|
|
|
287
310
|
/**
|
|
@@ -359,7 +382,7 @@ message DescribeCollectionResponse {
|
|
|
359
382
|
repeated common.KeyValuePair properties = 13;
|
|
360
383
|
string db_name = 14;
|
|
361
384
|
int64 num_partitions = 15;
|
|
362
|
-
int64 db_id =
|
|
385
|
+
int64 db_id =16;
|
|
363
386
|
}
|
|
364
387
|
|
|
365
388
|
/**
|
|
@@ -736,6 +759,7 @@ message AlterIndexRequest {
|
|
|
736
759
|
string collection_name = 3;
|
|
737
760
|
string index_name = 4;
|
|
738
761
|
repeated common.KeyValuePair extra_params = 5;
|
|
762
|
+
repeated string delete_keys = 6;
|
|
739
763
|
}
|
|
740
764
|
|
|
741
765
|
/*
|
|
@@ -905,6 +929,7 @@ message DeleteRequest {
|
|
|
905
929
|
string expr = 5;
|
|
906
930
|
repeated uint32 hash_keys = 6;
|
|
907
931
|
common.ConsistencyLevel consistency_level = 7;
|
|
932
|
+
map<string, schema.TemplateValue> expr_template_values = 8;
|
|
908
933
|
}
|
|
909
934
|
|
|
910
935
|
|
|
@@ -914,10 +939,10 @@ message SubSearchRequest {
|
|
|
914
939
|
bytes placeholder_group = 2; // must
|
|
915
940
|
common.DslType dsl_type = 3; // must
|
|
916
941
|
repeated common.KeyValuePair search_params = 4; // must
|
|
917
|
-
int64
|
|
942
|
+
int64 nq = 5;
|
|
943
|
+
map<string, schema.TemplateValue> expr_template_values = 6;
|
|
918
944
|
}
|
|
919
945
|
|
|
920
|
-
|
|
921
946
|
message SearchRequest {
|
|
922
947
|
option (common.privilege_ext_obj) = {
|
|
923
948
|
object_type: Collection
|
|
@@ -942,6 +967,7 @@ message SearchRequest {
|
|
|
942
967
|
bool use_default_consistency = 15;
|
|
943
968
|
bool search_by_primary_keys = 16;
|
|
944
969
|
repeated SubSearchRequest sub_reqs = 17;
|
|
970
|
+
map<string, schema.TemplateValue> expr_template_values = 18;
|
|
945
971
|
}
|
|
946
972
|
|
|
947
973
|
message Hits {
|
|
@@ -954,6 +980,7 @@ message SearchResults {
|
|
|
954
980
|
common.Status status = 1;
|
|
955
981
|
schema.SearchResultData results = 2;
|
|
956
982
|
string collection_name = 3;
|
|
983
|
+
uint64 session_ts = 4; // for session-like operation like iterator
|
|
957
984
|
}
|
|
958
985
|
|
|
959
986
|
message HybridSearchRequest {
|
|
@@ -1015,6 +1042,7 @@ message QueryRequest {
|
|
|
1015
1042
|
bool not_return_all_meta = 10;
|
|
1016
1043
|
common.ConsistencyLevel consistency_level = 11;
|
|
1017
1044
|
bool use_default_consistency = 12;
|
|
1045
|
+
map<string, schema.TemplateValue> expr_template_values = 13;
|
|
1018
1046
|
}
|
|
1019
1047
|
|
|
1020
1048
|
message QueryResults {
|
|
@@ -1022,6 +1050,7 @@ message QueryResults {
|
|
|
1022
1050
|
repeated schema.FieldData fields_data = 2;
|
|
1023
1051
|
string collection_name = 3;
|
|
1024
1052
|
repeated string output_fields = 4;
|
|
1053
|
+
uint64 session_ts = 5; // for session-like operation like iterator
|
|
1025
1054
|
}
|
|
1026
1055
|
|
|
1027
1056
|
message VectorIDs {
|
|
@@ -1076,6 +1105,7 @@ message PersistentSegmentInfo {
|
|
|
1076
1105
|
int64 num_rows = 4;
|
|
1077
1106
|
common.SegmentState state = 5;
|
|
1078
1107
|
common.SegmentLevel level = 6;
|
|
1108
|
+
bool is_sorted = 7;
|
|
1079
1109
|
}
|
|
1080
1110
|
|
|
1081
1111
|
message GetPersistentSegmentInfoRequest {
|
|
@@ -1102,6 +1132,7 @@ message QuerySegmentInfo {
|
|
|
1102
1132
|
common.SegmentState state = 9;
|
|
1103
1133
|
repeated int64 nodeIds = 10;
|
|
1104
1134
|
common.SegmentLevel level = 11;
|
|
1135
|
+
bool is_sorted = 12;
|
|
1105
1136
|
}
|
|
1106
1137
|
|
|
1107
1138
|
message GetQuerySegmentInfoRequest {
|
|
@@ -1179,11 +1210,13 @@ message ManualCompactionRequest {
|
|
|
1179
1210
|
option (common.privilege_ext_obj) = {
|
|
1180
1211
|
object_type: Collection
|
|
1181
1212
|
object_privilege: PrivilegeCompaction
|
|
1182
|
-
object_name_index:
|
|
1213
|
+
object_name_index: 4
|
|
1183
1214
|
};
|
|
1184
1215
|
int64 collectionID = 1;
|
|
1185
1216
|
uint64 timetravel = 2;
|
|
1186
1217
|
bool majorCompaction = 3;
|
|
1218
|
+
string collection_name = 4;
|
|
1219
|
+
string db_name = 5;
|
|
1187
1220
|
}
|
|
1188
1221
|
|
|
1189
1222
|
message ManualCompactionResponse {
|
|
@@ -1437,6 +1470,66 @@ message DropRoleRequest {
|
|
|
1437
1470
|
bool force_drop = 3;
|
|
1438
1471
|
}
|
|
1439
1472
|
|
|
1473
|
+
message CreatePrivilegeGroupRequest {
|
|
1474
|
+
option (common.privilege_ext_obj) = {
|
|
1475
|
+
object_type: Global
|
|
1476
|
+
object_privilege: PrivilegeCreatePrivilegeGroup
|
|
1477
|
+
object_name_index: -1
|
|
1478
|
+
};
|
|
1479
|
+
// Not useful for now
|
|
1480
|
+
common.MsgBase base = 1;
|
|
1481
|
+
// group name
|
|
1482
|
+
string group_name = 2;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
message DropPrivilegeGroupRequest {
|
|
1486
|
+
option (common.privilege_ext_obj) = {
|
|
1487
|
+
object_type: Global
|
|
1488
|
+
object_privilege: PrivilegeDropPrivilegeGroup
|
|
1489
|
+
object_name_index: -1
|
|
1490
|
+
};
|
|
1491
|
+
// Not useful for now
|
|
1492
|
+
common.MsgBase base = 1;
|
|
1493
|
+
// group name
|
|
1494
|
+
string group_name = 2;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
message ListPrivilegeGroupsRequest {
|
|
1498
|
+
option (common.privilege_ext_obj) = {
|
|
1499
|
+
object_type: Global
|
|
1500
|
+
object_privilege: PrivilegeListPrivilegeGroups
|
|
1501
|
+
object_name_index: -1
|
|
1502
|
+
};
|
|
1503
|
+
// Not useful for now
|
|
1504
|
+
common.MsgBase base = 1;
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
message ListPrivilegeGroupsResponse {
|
|
1508
|
+
common.Status status = 1;
|
|
1509
|
+
repeated PrivilegeGroupInfo privilege_groups = 2;
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
message OperatePrivilegeGroupRequest {
|
|
1513
|
+
option (common.privilege_ext_obj) = {
|
|
1514
|
+
object_type: Global
|
|
1515
|
+
object_privilege: PrivilegeOperatePrivilegeGroup
|
|
1516
|
+
object_name_index: -1
|
|
1517
|
+
};
|
|
1518
|
+
// Not useful for now
|
|
1519
|
+
common.MsgBase base = 1;
|
|
1520
|
+
// group name
|
|
1521
|
+
string group_name = 2;
|
|
1522
|
+
// privileges
|
|
1523
|
+
repeated PrivilegeEntity privileges = 3;
|
|
1524
|
+
// operation type
|
|
1525
|
+
OperatePrivilegeGroupType type = 4;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
enum OperatePrivilegeGroupType {
|
|
1529
|
+
AddPrivilegesToGroup = 0;
|
|
1530
|
+
RemovePrivilegesFromGroup = 1;
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1440
1533
|
enum OperateUserRoleType {
|
|
1441
1534
|
AddUserToRole = 0;
|
|
1442
1535
|
RemoveUserFromRole = 1;
|
|
@@ -1458,6 +1551,11 @@ message OperateUserRoleRequest {
|
|
|
1458
1551
|
OperateUserRoleType type = 4;
|
|
1459
1552
|
}
|
|
1460
1553
|
|
|
1554
|
+
message PrivilegeGroupInfo {
|
|
1555
|
+
string group_name = 1;
|
|
1556
|
+
repeated PrivilegeEntity privileges = 2;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1461
1559
|
message SelectRoleRequest {
|
|
1462
1560
|
option (common.privilege_ext_obj) = {
|
|
1463
1561
|
object_type: Global
|
|
@@ -1540,6 +1638,12 @@ message GrantEntity {
|
|
|
1540
1638
|
string db_name = 5;
|
|
1541
1639
|
}
|
|
1542
1640
|
|
|
1641
|
+
enum PrivilegeLevel {
|
|
1642
|
+
Cluster = 0;
|
|
1643
|
+
Database = 1;
|
|
1644
|
+
Collection = 2;
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1543
1647
|
message SelectGrantRequest {
|
|
1544
1648
|
option (common.privilege_ext_obj) = {
|
|
1545
1649
|
object_type: Global
|
|
@@ -1576,6 +1680,29 @@ message OperatePrivilegeRequest {
|
|
|
1576
1680
|
GrantEntity entity = 2;
|
|
1577
1681
|
// operation type
|
|
1578
1682
|
OperatePrivilegeType type = 3;
|
|
1683
|
+
// version
|
|
1684
|
+
string version = 4;
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
|
|
1688
|
+
message OperatePrivilegeV2Request {
|
|
1689
|
+
option (common.privilege_ext_obj) = {
|
|
1690
|
+
object_type: Global
|
|
1691
|
+
object_privilege: PrivilegeManageOwnership
|
|
1692
|
+
object_name_index: -1
|
|
1693
|
+
};
|
|
1694
|
+
// Not useful for now
|
|
1695
|
+
common.MsgBase base = 1;
|
|
1696
|
+
// role
|
|
1697
|
+
RoleEntity role = 2;
|
|
1698
|
+
// privilege
|
|
1699
|
+
GrantorEntity grantor = 3;
|
|
1700
|
+
// operation type
|
|
1701
|
+
OperatePrivilegeType type = 4;
|
|
1702
|
+
// db name
|
|
1703
|
+
string db_name = 5;
|
|
1704
|
+
// collection name
|
|
1705
|
+
string collection_name = 6;
|
|
1579
1706
|
}
|
|
1580
1707
|
|
|
1581
1708
|
message UserInfo {
|
|
@@ -1591,6 +1718,8 @@ message RBACMeta {
|
|
|
1591
1718
|
repeated milvus.RoleEntity roles = 2;
|
|
1592
1719
|
// (role, object, previledge)
|
|
1593
1720
|
repeated milvus.GrantEntity grants = 3;
|
|
1721
|
+
// privilege group info
|
|
1722
|
+
repeated milvus.PrivilegeGroupInfo privilege_groups = 4;
|
|
1594
1723
|
}
|
|
1595
1724
|
|
|
1596
1725
|
message BackupRBACMetaRequest {
|
|
@@ -1880,6 +2009,7 @@ message ListDatabasesResponse {
|
|
|
1880
2009
|
common.Status status = 1;
|
|
1881
2010
|
repeated string db_names = 2;
|
|
1882
2011
|
repeated uint64 created_timestamp = 3;
|
|
2012
|
+
repeated int64 db_ids = 4;
|
|
1883
2013
|
}
|
|
1884
2014
|
|
|
1885
2015
|
message AlterDatabaseRequest {
|
|
@@ -1931,7 +2061,7 @@ message ImportAuthPlaceholder {
|
|
|
1931
2061
|
option (common.privilege_ext_obj) = {
|
|
1932
2062
|
object_type: Collection
|
|
1933
2063
|
object_privilege: PrivilegeImport
|
|
1934
|
-
object_name_index:
|
|
2064
|
+
object_name_index: 2
|
|
1935
2065
|
};
|
|
1936
2066
|
string db_name = 1;
|
|
1937
2067
|
string collection_name = 2;
|
|
@@ -1942,7 +2072,7 @@ message GetImportProgressAuthPlaceholder {
|
|
|
1942
2072
|
option (common.privilege_ext_obj) = {
|
|
1943
2073
|
object_type: Collection
|
|
1944
2074
|
object_privilege: PrivilegeImport
|
|
1945
|
-
object_name_index: 1
|
|
2075
|
+
object_name_index: -1
|
|
1946
2076
|
};
|
|
1947
2077
|
string db_name = 1;
|
|
1948
2078
|
}
|
|
@@ -43,6 +43,7 @@ message DeleteRequest {
|
|
|
43
43
|
repeated uint64 timestamps = 10;
|
|
44
44
|
int64 num_rows = 11;
|
|
45
45
|
schema.IDs primary_keys = 12;
|
|
46
|
+
int64 segment_id = 13;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
message MsgPosition {
|
|
@@ -106,3 +107,10 @@ message DataNodeTtMsg {
|
|
|
106
107
|
repeated common.SegmentStats segments_stats = 4;
|
|
107
108
|
}
|
|
108
109
|
|
|
110
|
+
message ReplicateMsg {
|
|
111
|
+
common.MsgBase base = 1;
|
|
112
|
+
bool is_end = 2;
|
|
113
|
+
bool is_cluster = 3;
|
|
114
|
+
string database = 4;
|
|
115
|
+
string collection = 5;
|
|
116
|
+
}
|
|
@@ -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
|
}
|
|
@@ -31,6 +31,7 @@ enum DataType {
|
|
|
31
31
|
VarChar = 21; // variable-length strings with a specified maximum length
|
|
32
32
|
Array = 22;
|
|
33
33
|
JSON = 23;
|
|
34
|
+
Geometry = 24;
|
|
34
35
|
|
|
35
36
|
BinaryVector = 100;
|
|
36
37
|
FloatVector = 101;
|
|
@@ -39,6 +40,12 @@ enum DataType {
|
|
|
39
40
|
SparseFloatVector = 104;
|
|
40
41
|
}
|
|
41
42
|
|
|
43
|
+
enum FunctionType{
|
|
44
|
+
Unknown =0;
|
|
45
|
+
BM25 =1;
|
|
46
|
+
TextEmbedding =2;
|
|
47
|
+
}
|
|
48
|
+
|
|
42
49
|
enum FieldState {
|
|
43
50
|
FieldCreated = 0;
|
|
44
51
|
FieldCreating = 1;
|
|
@@ -65,6 +72,20 @@ message FieldSchema {
|
|
|
65
72
|
bool is_dynamic = 12; // mark whether this field is the dynamic field
|
|
66
73
|
bool is_partition_key = 13; // enable logic partitions
|
|
67
74
|
bool is_clustering_key = 14;
|
|
75
|
+
bool nullable = 15; // enable set null as field value
|
|
76
|
+
bool is_function_output =16;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
message FunctionSchema {
|
|
80
|
+
string name = 1;
|
|
81
|
+
int64 id =2;
|
|
82
|
+
string description = 3;
|
|
83
|
+
FunctionType type = 4;
|
|
84
|
+
repeated string input_field_names = 5;
|
|
85
|
+
repeated int64 input_field_ids = 6;
|
|
86
|
+
repeated string output_field_names = 7;
|
|
87
|
+
repeated int64 output_field_ids = 8;
|
|
88
|
+
repeated common.KeyValuePair params = 9;
|
|
68
89
|
}
|
|
69
90
|
|
|
70
91
|
/**
|
|
@@ -77,6 +98,8 @@ message CollectionSchema {
|
|
|
77
98
|
repeated FieldSchema fields = 4;
|
|
78
99
|
bool enable_dynamic_field = 5; // mark whether this table has the dynamic field function enabled.
|
|
79
100
|
repeated common.KeyValuePair properties = 6;
|
|
101
|
+
repeated FunctionSchema functions = 7;
|
|
102
|
+
string dbName = 8;
|
|
80
103
|
}
|
|
81
104
|
|
|
82
105
|
message BoolArray { repeated bool data = 1; }
|
|
@@ -101,6 +124,8 @@ message ArrayArray {
|
|
|
101
124
|
|
|
102
125
|
message JSONArray { repeated bytes data = 1; }
|
|
103
126
|
|
|
127
|
+
message GeometryArray { repeated bytes data = 1; }
|
|
128
|
+
|
|
104
129
|
message ValueField {
|
|
105
130
|
oneof data {
|
|
106
131
|
bool bool_data = 1;
|
|
@@ -124,6 +149,7 @@ message ScalarField {
|
|
|
124
149
|
BytesArray bytes_data = 7;
|
|
125
150
|
ArrayArray array_data = 8;
|
|
126
151
|
JSONArray json_data = 9;
|
|
152
|
+
GeometryArray geometry_data = 10;
|
|
127
153
|
}
|
|
128
154
|
}
|
|
129
155
|
|
|
@@ -155,6 +181,7 @@ message FieldData {
|
|
|
155
181
|
}
|
|
156
182
|
int64 field_id = 5;
|
|
157
183
|
bool is_dynamic = 6;
|
|
184
|
+
repeated bool valid_data = 7;
|
|
158
185
|
}
|
|
159
186
|
|
|
160
187
|
message IDs {
|
|
@@ -164,6 +191,11 @@ message IDs {
|
|
|
164
191
|
}
|
|
165
192
|
}
|
|
166
193
|
|
|
194
|
+
message SearchIteratorV2Results {
|
|
195
|
+
string token = 1;
|
|
196
|
+
float last_bound = 2;
|
|
197
|
+
}
|
|
198
|
+
|
|
167
199
|
message SearchResultData {
|
|
168
200
|
int64 num_queries = 1;
|
|
169
201
|
int64 top_k = 2;
|
|
@@ -175,6 +207,8 @@ message SearchResultData {
|
|
|
175
207
|
FieldData group_by_field_value = 8;
|
|
176
208
|
int64 all_search_count = 9;
|
|
177
209
|
repeated float distances = 10;
|
|
210
|
+
optional SearchIteratorV2Results search_iterator_v2_results = 11;
|
|
211
|
+
repeated float recalls = 12;
|
|
178
212
|
}
|
|
179
213
|
|
|
180
214
|
// vector field clustering info
|
|
@@ -195,3 +229,28 @@ message ClusteringInfo {
|
|
|
195
229
|
repeated VectorClusteringInfo vector_clustering_infos = 1;
|
|
196
230
|
repeated ScalarClusteringInfo scalar_clustering_infos = 2;
|
|
197
231
|
}
|
|
232
|
+
|
|
233
|
+
message TemplateValue {
|
|
234
|
+
oneof val {
|
|
235
|
+
bool bool_val = 1;
|
|
236
|
+
int64 int64_val = 2;
|
|
237
|
+
double float_val = 3;
|
|
238
|
+
string string_val = 4;
|
|
239
|
+
TemplateArrayValue array_val = 5;
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
message TemplateArrayValue {
|
|
244
|
+
oneof data {
|
|
245
|
+
BoolArray bool_data = 1;
|
|
246
|
+
LongArray long_data = 2;
|
|
247
|
+
DoubleArray double_data = 3;
|
|
248
|
+
StringArray string_data = 4;
|
|
249
|
+
TemplateArrayValueArray array_data = 5;
|
|
250
|
+
JSONArray json_data = 6;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
message TemplateArrayValueArray {
|
|
255
|
+
repeated TemplateArrayValue data = 1;
|
|
256
|
+
}
|
package/dist/sdk.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"2.
|
|
1
|
+
{"version":"2.5.1","milvusVersion":"v2.5.0-beta"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zilliz/milvus2-sdk-node",
|
|
3
3
|
"author": "ued@zilliz.com",
|
|
4
|
-
"
|
|
5
|
-
"
|
|
4
|
+
"milvusVersion": "v2.5.0-beta",
|
|
5
|
+
"version": "2.5.1",
|
|
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",
|