@zilliz/milvus2-sdk-node 2.1.2 → 2.1.3

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.
@@ -19,6 +19,7 @@ service MilvusService {
19
19
  rpc LoadCollection(LoadCollectionRequest) returns (common.Status) {}
20
20
  rpc ReleaseCollection(ReleaseCollectionRequest) returns (common.Status) {}
21
21
  rpc DescribeCollection(DescribeCollectionRequest) returns (DescribeCollectionResponse) {}
22
+ rpc DescribePartition(DescribePartitionRequest) returns (DescribePartitionResponse) {}
22
23
  rpc GetCollectionStatistics(GetCollectionStatisticsRequest) returns (GetCollectionStatisticsResponse) {}
23
24
  rpc ShowCollections(ShowCollectionsRequest) returns (ShowCollectionsResponse) {}
24
25
 
@@ -81,7 +82,6 @@ service MilvusService {
81
82
  rpc OperateUserRole(OperateUserRoleRequest) returns (common.Status) {}
82
83
  rpc SelectRole(SelectRoleRequest) returns (SelectRoleResponse) {}
83
84
  rpc SelectUser(SelectUserRequest) returns (SelectUserResponse) {}
84
- rpc SelectResource(SelectResourceRequest) returns (SelectResourceResponse) {}
85
85
  rpc OperatePrivilege(OperatePrivilegeRequest) returns (common.Status) {}
86
86
  rpc SelectGrant(SelectGrantRequest) returns (SelectGrantResponse) {}
87
87
  }
@@ -111,9 +111,9 @@ message AlterAliasRequest{
111
111
  */
112
112
  message CreateCollectionRequest {
113
113
  option (common.privilege_ext_obj) = {
114
- resource_type: Collection
115
- resource_privilege: PrivilegeCreate
116
- resource_name_index: 3
114
+ object_type: Global
115
+ object_privilege: PrivilegeCreateCollection
116
+ object_name_index: -1
117
117
  };
118
118
  // Not useful for now
119
119
  common.MsgBase base = 1;
@@ -135,9 +135,9 @@ message CreateCollectionRequest {
135
135
  */
136
136
  message DropCollectionRequest {
137
137
  option (common.privilege_ext_obj) = {
138
- resource_type: Collection
139
- resource_privilege: PrivilegeDrop
140
- resource_name_index: 3
138
+ object_type: Global
139
+ object_privilege: PrivilegeDropCollection
140
+ object_name_index: -1
141
141
  };
142
142
  // Not useful for now
143
143
  common.MsgBase base = 1;
@@ -151,11 +151,6 @@ message DropCollectionRequest {
151
151
  * Check collection exist in milvus or not.
152
152
  */
153
153
  message HasCollectionRequest {
154
- option (common.privilege_ext_obj) = {
155
- resource_type: Collection
156
- resource_privilege: PrivilegeRead
157
- resource_name_index: 3
158
- };
159
154
  // Not useful for now
160
155
  common.MsgBase base = 1;
161
156
  // Not useful for now
@@ -182,9 +177,9 @@ message StringResponse {
182
177
  */
183
178
  message DescribeCollectionRequest {
184
179
  option (common.privilege_ext_obj) = {
185
- resource_type: Collection
186
- resource_privilege: PrivilegeRead
187
- resource_name_index: 3
180
+ object_type: Global
181
+ object_privilege: PrivilegeDescribeCollection
182
+ object_name_index: -1
188
183
  };
189
184
  // Not useful for now
190
185
  common.MsgBase base = 1;
@@ -226,6 +221,42 @@ message DescribeCollectionResponse {
226
221
  common.ConsistencyLevel consistency_level = 11;
227
222
  // The collection name
228
223
  string collection_name = 12;
224
+ bool loaded = 13;
225
+ repeated string loaded_partitions = 14;
226
+ }
227
+
228
+ /**
229
+ * Get Partition meta info like: collectionID, partitionID, if loaded in memory, ...
230
+ */
231
+ message DescribePartitionRequest {
232
+ option (common.privilege_ext_obj) = {
233
+ object_type: Collection
234
+ object_privilege: PrivilegeDescribePartition
235
+ object_name_index: 3
236
+ };
237
+ // Not useful for now
238
+ common.MsgBase base = 1;
239
+ // Not useful for now
240
+ string db_name = 2;
241
+ string collection_name = 3;
242
+ string partition_name = 4;
243
+ }
244
+
245
+ /**
246
+ * DescribeCollection Response
247
+ */
248
+ message DescribePartitionResponse {
249
+ // Contain error_code and reason
250
+ common.Status status = 1;
251
+ string collection_name = 2;
252
+ string partition_name = 3;
253
+ int64 collectionID = 4;
254
+ int64 partitionID = 5;
255
+ // Hybrid timestamp in milvus
256
+ uint64 created_timestamp = 6;
257
+ // The utc timestamp calculated by created_timestamp
258
+ uint64 created_utc_timestamp = 7;
259
+ bool loaded = 8;
229
260
  }
230
261
 
231
262
  /**
@@ -233,9 +264,9 @@ message DescribeCollectionResponse {
233
264
  */
234
265
  message LoadCollectionRequest {
235
266
  option (common.privilege_ext_obj) = {
236
- resource_type: Collection
237
- resource_privilege: PrivilegeLoad
238
- resource_name_index: 3
267
+ object_type: Collection
268
+ object_privilege: PrivilegeLoad
269
+ object_name_index: 3
239
270
  };
240
271
  // Not useful for now
241
272
  common.MsgBase base = 1;
@@ -252,9 +283,9 @@ message LoadCollectionRequest {
252
283
  */
253
284
  message ReleaseCollectionRequest {
254
285
  option (common.privilege_ext_obj) = {
255
- resource_type: Collection
256
- resource_privilege: PrivilegeRelease
257
- resource_name_index: 3
286
+ object_type: Collection
287
+ object_privilege: PrivilegeRelease
288
+ object_name_index: 3
258
289
  };
259
290
  // Not useful for now
260
291
  common.MsgBase base = 1;
@@ -264,14 +295,47 @@ message ReleaseCollectionRequest {
264
295
  string collection_name = 3;
265
296
  }
266
297
 
298
+ /**
299
+ * Get statistics like row_count.
300
+ * WARNING: This API is experimental and not useful for now.
301
+ */
302
+ message GetStatisticsRequest {
303
+ option (common.privilege_ext_obj) = {
304
+ object_type: Collection
305
+ object_privilege: PrivilegeGetStatistics
306
+ object_name_index: 3
307
+ };
308
+ // Not useful for now
309
+ common.MsgBase base = 1;
310
+ // Not useful for now
311
+ string db_name = 2;
312
+ // The collection name you want get statistics
313
+ string collection_name = 3;
314
+ // The partition names you want get statistics, empty for all partitions
315
+ repeated string partition_names = 4;
316
+ // Not useful for now, reserved for future
317
+ uint64 guarantee_timestamp = 5;
318
+ }
319
+
320
+ /**
321
+ * Will return statistics in stats field like [{key:"row_count",value:"1"}]
322
+ * WARNING: This API is experimental and not useful for now.
323
+ */
324
+ message GetStatisticsResponse {
325
+ // Contain error_code and reason
326
+ common.Status status = 1;
327
+ // Collection statistics data
328
+ repeated common.KeyValuePair stats = 2;
329
+ }
330
+
267
331
  /**
268
332
  * Get collection statistics like row_count.
269
333
  */
270
334
  message GetCollectionStatisticsRequest {
271
335
  option (common.privilege_ext_obj) = {
272
- resource_type: Collection
273
- resource_privilege: PrivilegeRead
274
- resource_name_index: 3
336
+ object_type: Collection
337
+ object_privilege: PrivilegeGetStatistics
338
+ object_name_index: 3
275
339
  };
276
340
  // Not useful for now
277
341
  common.MsgBase base = 1;
@@ -295,7 +359,7 @@ message GetCollectionStatisticsResponse {
295
359
  * This is for ShowCollectionsRequest type field.
296
360
  */
297
361
  enum ShowType {
298
- // Will return all colloections
362
+ // Will return all collections
299
363
  All = 0;
300
364
  // Will return loaded collections with their inMemory_percentages
301
365
  InMemory = 1;
@@ -306,8 +370,9 @@ enum ShowType {
306
370
  */
307
371
  message ShowCollectionsRequest {
308
372
  option (common.privilege_ext_obj) = {
309
- resource_type: Collection
310
- resource_privilege: PrivilegeRead
373
+ object_type: Global
374
+ object_privilege: PrivilegeShowCollections
375
+ object_name_index: -1
311
376
  };
312
377
  // Not useful for now
313
378
  common.MsgBase base = 1;
@@ -500,6 +565,11 @@ message ShowSegmentsResponse {
500
565
  * Create index for vector datas
501
566
  */
502
567
  message CreateIndexRequest {
568
+ option (common.privilege_ext_obj) = {
569
+ object_type: Collection
570
+ object_privilege: PrivilegeCreateIndex
571
+ object_name_index: 3
572
+ };
503
573
  // Not useful for now
504
574
  common.MsgBase base = 1;
505
575
  // Not useful for now
@@ -519,6 +589,11 @@ message CreateIndexRequest {
519
589
  * Current release of Milvus only supports showing latest built index.
520
590
  */
521
591
  message DescribeIndexRequest {
592
+ option (common.privilege_ext_obj) = {
593
+ object_type: Collection
594
+ object_privilege: PrivilegeIndexDetail
595
+ object_name_index: 3
596
+ };
522
597
  // Not useful for now
523
598
  common.MsgBase base = 1;
524
599
  // Not useful for now
@@ -559,6 +634,11 @@ message DescribeIndexResponse {
559
634
  * Get index building progress
560
635
  */
561
636
  message GetIndexBuildProgressRequest {
637
+ option (common.privilege_ext_obj) = {
638
+ object_type: Collection
639
+ object_privilege: PrivilegeIndexDetail
640
+ object_name_index: 3
641
+ };
562
642
  // Not useful for now
563
643
  common.MsgBase base = 1;
564
644
  // Not useful for now
@@ -578,6 +658,11 @@ message GetIndexBuildProgressResponse {
578
658
  }
579
659
 
580
660
  message GetIndexStateRequest {
661
+ option (common.privilege_ext_obj) = {
662
+ object_type: Collection
663
+ object_privilege: PrivilegeIndexDetail
664
+ object_name_index: 3
665
+ };
581
666
  common.MsgBase base = 1; // must
582
667
  string db_name = 2 ;
583
668
  string collection_name = 3; // must
@@ -592,6 +677,11 @@ message GetIndexStateResponse {
592
677
  }
593
678
 
594
679
  message DropIndexRequest {
680
+ option (common.privilege_ext_obj) = {
681
+ object_type: Collection
682
+ object_privilege: PrivilegeDropIndex
683
+ object_name_index: 3
684
+ };
595
685
  common.MsgBase base = 1; // must
596
686
  string db_name = 2;
597
687
  string collection_name = 3; // must
@@ -600,6 +690,11 @@ message DropIndexRequest {
600
690
  }
601
691
 
602
692
  message InsertRequest {
693
+ option (common.privilege_ext_obj) = {
694
+ object_type: Collection
695
+ object_privilege: PrivilegeInsert
696
+ object_name_index: 3
697
+ };
603
698
  common.MsgBase base = 1;
604
699
  string db_name = 2;
605
700
  string collection_name = 3;
@@ -622,6 +717,11 @@ message MutationResult {
622
717
  }
623
718
 
624
719
  message DeleteRequest {
720
+ option (common.privilege_ext_obj) = {
721
+ object_type: Collection
722
+ object_privilege: PrivilegeDelete
723
+ object_name_index: 3
724
+ };
625
725
  common.MsgBase base = 1;
626
726
  string db_name = 2;
627
727
  string collection_name = 3;
@@ -632,6 +732,11 @@ message DeleteRequest {
632
732
 
633
733
 
634
734
  message SearchRequest {
735
+ option (common.privilege_ext_obj) = {
736
+ object_type: Collection
737
+ object_privilege: PrivilegeSearch
738
+ object_name_index: 3
739
+ };
635
740
  common.MsgBase base = 1; // must
636
741
  string db_name = 2;
637
742
  string collection_name = 3; // must
@@ -645,6 +750,8 @@ message SearchRequest {
645
750
  uint64 travel_timestamp = 10;
646
751
  uint64 guarantee_timestamp = 11; // guarantee_timestamp
647
752
  int64 nq = 12;
753
+ common.ConsistencyLevel consistency_level = 13;
754
+ bool use_default_consistency = 14;
648
755
  }
649
756
 
650
757
  message Hits {
@@ -660,6 +767,11 @@ message SearchResults {
660
767
  }
661
768
 
662
769
  message FlushRequest {
770
+ option (common.privilege_ext_obj) = {
771
+ object_type: Collection
772
+ object_privilege: PrivilegeFlush
773
+ object_name_indexs: 3
774
+ };
663
775
  common.MsgBase base = 1;
664
776
  string db_name = 2;
665
777
  repeated string collection_names = 3;
@@ -672,6 +784,11 @@ message FlushResponse{
672
784
  }
673
785
 
674
786
  message QueryRequest {
787
+ option (common.privilege_ext_obj) = {
788
+ object_type: Collection
789
+ object_privilege: PrivilegeQuery
790
+ object_name_index: 3
791
+ };
675
792
  common.MsgBase base = 1;
676
793
  string db_name = 2;
677
794
  string collection_name = 3;
@@ -680,6 +797,9 @@ message QueryRequest {
680
797
  repeated string partition_names = 6;
681
798
  uint64 travel_timestamp = 7;
682
799
  uint64 guarantee_timestamp = 8; // guarantee_timestamp
800
+ repeated common.KeyValuePair query_params = 9; // optional
801
+ common.ConsistencyLevel consistency_level = 10;
802
+ bool use_default_consistency = 11;
683
803
  }
684
804
 
685
805
  message QueryResults {
@@ -793,6 +913,11 @@ message GetMetricsResponse {
793
913
  * Do load balancing operation from src_nodeID to dst_nodeID.
794
914
  */
795
915
  message LoadBalanceRequest {
916
+ option (common.privilege_ext_obj) = {
917
+ object_type: Collection
918
+ object_privilege: PrivilegeLoadBalance
919
+ object_name_index: 5
920
+ };
796
921
  common.MsgBase base = 1;
797
922
  int64 src_nodeID = 2;
798
923
  repeated int64 dst_nodeIDs = 3;
@@ -801,6 +926,11 @@ message LoadBalanceRequest {
801
926
  }
802
927
 
803
928
  message ManualCompactionRequest {
929
+ option (common.privilege_ext_obj) = {
930
+ object_type: Collection
931
+ object_privilege: PrivilegeCompaction
932
+ object_name_index: 1
933
+ };
804
934
  int64 collectionID = 1;
805
935
  uint64 timetravel = 2;
806
936
  }
@@ -847,6 +977,11 @@ message GetFlushStateResponse {
847
977
  }
848
978
 
849
979
  message ImportRequest {
980
+ option (common.privilege_ext_obj) = {
981
+ object_type: Collection
982
+ object_privilege: PrivilegeImport
983
+ object_name_index: 1
984
+ };
850
985
  string collection_name = 1; // target collection
851
986
  string partition_name = 2; // target partition
852
987
  repeated string channel_names = 3; // channel names for the collection
@@ -918,6 +1053,11 @@ service ProxyService {
918
1053
  // https://wiki.lfaidata.foundation/display/MIL/MEP+27+--+Support+Basic+Authentication
919
1054
 
920
1055
  message CreateCredentialRequest {
1056
+ option (common.privilege_ext_obj) = {
1057
+ object_type: Global
1058
+ object_privilege: PrivilegeCreateOwnership
1059
+ object_name_index: -1
1060
+ };
921
1061
  // Not useful for now
922
1062
  common.MsgBase base = 1;
923
1063
  // username
@@ -931,6 +1071,11 @@ message CreateCredentialRequest {
931
1071
  }
932
1072
 
933
1073
  message UpdateCredentialRequest {
1074
+ option (common.privilege_ext_obj) = {
1075
+ object_type: User
1076
+ object_privilege: PrivilegeUpdateUser
1077
+ object_name_index: 2
1078
+ };
934
1079
  // Not useful for now
935
1080
  common.MsgBase base = 1;
936
1081
  // username
@@ -946,6 +1091,11 @@ message UpdateCredentialRequest {
946
1091
  }
947
1092
 
948
1093
  message DeleteCredentialRequest {
1094
+ option (common.privilege_ext_obj) = {
1095
+ object_type: Global
1096
+ object_privilege: PrivilegeDropOwnership
1097
+ object_name_index: -1
1098
+ };
949
1099
  // Not useful for now
950
1100
  common.MsgBase base = 1;
951
1101
  // Not useful for now
@@ -960,6 +1110,11 @@ message ListCredUsersResponse {
960
1110
  }
961
1111
 
962
1112
  message ListCredUsersRequest {
1113
+ option (common.privilege_ext_obj) = {
1114
+ object_type: Global
1115
+ object_privilege: PrivilegeSelectOwnership
1116
+ object_name_index: -1
1117
+ };
963
1118
  // Not useful for now
964
1119
  common.MsgBase base = 1;
965
1120
  }
@@ -974,6 +1129,11 @@ message UserEntity {
974
1129
  }
975
1130
 
976
1131
  message CreateRoleRequest {
1132
+ option (common.privilege_ext_obj) = {
1133
+ object_type: Global
1134
+ object_privilege: PrivilegeCreateOwnership
1135
+ object_name_index: -1
1136
+ };
977
1137
  // Not useful for now
978
1138
  common.MsgBase base = 1;
979
1139
  // role
@@ -981,6 +1141,11 @@ message CreateRoleRequest {
981
1141
  }
982
1142
 
983
1143
  message DropRoleRequest {
1144
+ option (common.privilege_ext_obj) = {
1145
+ object_type: Global
1146
+ object_privilege: PrivilegeDropOwnership
1147
+ object_name_index: -1
1148
+ };
984
1149
  // Not useful for now
985
1150
  common.MsgBase base = 1;
986
1151
  // role name
@@ -993,6 +1158,11 @@ enum OperateUserRoleType {
993
1158
  }
994
1159
 
995
1160
  message OperateUserRoleRequest {
1161
+ option (common.privilege_ext_obj) = {
1162
+ object_type: Global
1163
+ object_privilege: PrivilegeManageOwnership
1164
+ object_name_index: -1
1165
+ };
996
1166
  // Not useful for now
997
1167
  common.MsgBase base = 1;
998
1168
  // username
@@ -1004,6 +1174,11 @@ message OperateUserRoleRequest {
1004
1174
  }
1005
1175
 
1006
1176
  message SelectRoleRequest {
1177
+ option (common.privilege_ext_obj) = {
1178
+ object_type: Global
1179
+ object_privilege: PrivilegeSelectOwnership
1180
+ object_name_index: -1
1181
+ };
1007
1182
  // Not useful for now
1008
1183
  common.MsgBase base = 1;
1009
1184
  // role
@@ -1025,6 +1200,11 @@ message SelectRoleResponse {
1025
1200
  }
1026
1201
 
1027
1202
  message SelectUserRequest {
1203
+ option (common.privilege_ext_obj) = {
1204
+ object_type: User
1205
+ object_privilege: PrivilegeSelectUser
1206
+ object_name_index: 2
1207
+ };
1028
1208
  // Not useful for now
1029
1209
  common.MsgBase base = 1;
1030
1210
  // user
@@ -1042,65 +1222,43 @@ message SelectUserResponse {
1042
1222
  // Not useful for now
1043
1223
  common.Status status = 1;
1044
1224
  // user result array
1045
- repeated UserResult result = 2;
1225
+ repeated UserResult results = 2;
1046
1226
  }
1047
1227
 
1048
- message ResourceEntity {
1049
- string type = 1;
1228
+ message ObjectEntity {
1229
+ string name = 1;
1050
1230
  }
1051
1231
 
1052
1232
  message PrivilegeEntity {
1053
1233
  string name = 1;
1054
1234
  }
1055
1235
 
1056
- message SelectResourceRequest {
1057
- // Not useful for now
1058
- common.MsgBase base = 1;
1059
- // resource
1060
- ResourceEntity entity = 2;
1061
- // include privilege info
1062
- bool include_privilege_info = 3;
1063
- }
1064
-
1065
- message ResourceResult {
1066
- ResourceEntity resource = 1;
1067
- repeated PrivilegeEntity privileges = 2;
1068
- }
1069
-
1070
- message SelectResourceResponse {
1071
- // Not useful for now
1072
- common.Status status = 1;
1073
- // resource result array
1074
- repeated ResourceResult results = 2;
1075
- }
1076
-
1077
- message PrincipalEntity {
1078
- // principal type, including user, role
1079
- string principal_type = 1;
1080
- // principal, including user entity or role entity
1081
- oneof principal {
1082
- UserEntity user = 2;
1083
- RoleEntity role = 3;
1084
- }
1085
- }
1086
-
1087
1236
  message GrantorEntity {
1088
1237
  UserEntity user = 1;
1089
1238
  PrivilegeEntity privilege = 2;
1090
1239
  }
1091
1240
 
1241
+ message GrantPrivilegeEntity {
1242
+ repeated GrantorEntity entities = 1;
1243
+ }
1244
+
1092
1245
  message GrantEntity {
1093
- // principal
1094
- PrincipalEntity principal = 1;
1095
- // resource
1096
- ResourceEntity resource = 2;
1097
- // resource name
1098
- string resource_name = 3;
1246
+ // role
1247
+ RoleEntity role = 1;
1248
+ // object
1249
+ ObjectEntity object = 2;
1250
+ // object name
1251
+ string object_name = 3;
1099
1252
  // privilege
1100
1253
  GrantorEntity grantor = 4;
1101
1254
  }
1102
1255
 
1103
1256
  message SelectGrantRequest {
1257
+ option (common.privilege_ext_obj) = {
1258
+ object_type: Global
1259
+ object_privilege: PrivilegeSelectOwnership
1260
+ object_name_index: -1
1261
+ };
1104
1262
  // Not useful for now
1105
1263
  common.MsgBase base = 1;
1106
1264
  // grant
@@ -1120,6 +1278,11 @@ enum OperatePrivilegeType {
1120
1278
  }
1121
1279
 
1122
1280
  message OperatePrivilegeRequest {
1281
+ option (common.privilege_ext_obj) = {
1282
+ object_type: Global
1283
+ object_privilege: PrivilegeManageOwnership
1284
+ object_name_index: -1
1285
+ };
1123
1286
  // Not useful for now
1124
1287
  common.MsgBase base = 1;
1125
1288
  // grant
@@ -1138,4 +1301,4 @@ extend google.protobuf.FileOptions {
1138
1301
 
1139
1302
  option (milvus_ext_obj) = {
1140
1303
  version: "2.1.0"
1141
- };
1304
+ };
package/dist/sdk.json CHANGED
@@ -1 +1 @@
1
- {"version":"2.1.2","milvusVersion":"v2.1.0"}
1
+ {"version":"2.1.3","milvusVersion":"v2.1.0"}
@@ -1,4 +1,4 @@
1
- export declare function promisify(obj: any, target: string, params: any): Promise<any>;
1
+ export declare function promisify(obj: any, target: string, params: any, timeout?: number): Promise<any>;
2
2
  export declare function generateInsertData(fields: {
3
3
  isVector: boolean;
4
4
  dim?: number;
@@ -6,10 +6,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
6
6
  };
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.generateInsertData = exports.promisify = void 0;
9
- function promisify(obj, target, params) {
9
+ function promisify(obj, target, params, timeout) {
10
+ var deadline = timeout ? new Date(Date.now() + timeout) : timeout;
10
11
  var res = new Promise(function (resolve, reject) {
11
12
  try {
12
- obj[target](params, function (err, result) {
13
+ obj[target](params, { deadline: deadline }, function (err, result) {
13
14
  if (err) {
14
15
  reject(err);
15
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,SAAgB,SAAS,CAAC,GAAQ,EAAE,MAAc,EAAE,MAAW;IAC7D,IAAM,GAAG,GAAG,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;QACtC,IAAI;YACF,GAAG,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,UAAC,GAAQ,EAAE,MAAW;gBACxC,IAAI,GAAG,EAAE;oBACP,MAAM,CAAC,GAA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,EAAE,EAAlB,CAAkB,CAAC;gBAC/C,CAAC,CAAC,MAAM;oBACR,CAAC,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC;oBACjB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACpB,KAAK,EAAE,CAAC;;IAZV,OAAO,KAAK,GAAG,CAAC;;KAaf;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AApBD,gDAoBC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zilliz/milvus2-sdk-node",
3
3
  "author": "ued@zilliz.com",
4
- "version": "2.1.2",
4
+ "version": "2.1.3",
5
5
  "milvusVersion": "v2.1.0",
6
6
  "main": "dist/milvus",
7
7
  "files": [
@@ -40,4 +40,4 @@
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  }
43
- }
43
+ }