@zilliz/milvus2-sdk-node 2.6.14 → 3.0.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.
Files changed (77) hide show
  1. package/README.md +36 -6
  2. package/dist/milvus/HttpClient.d.ts +2 -2
  3. package/dist/milvus/MilvusClient.d.ts +28 -1
  4. package/dist/milvus/MilvusClient.js +61 -1
  5. package/dist/milvus/MilvusClient.js.map +1 -1
  6. package/dist/milvus/bulkwriter/VolumeManager.d.ts +27 -0
  7. package/dist/milvus/bulkwriter/VolumeManager.js +151 -0
  8. package/dist/milvus/bulkwriter/VolumeManager.js.map +1 -0
  9. package/dist/milvus/bulkwriter/index.d.ts +1 -0
  10. package/dist/milvus/bulkwriter/index.js +3 -1
  11. package/dist/milvus/bulkwriter/index.js.map +1 -1
  12. package/dist/milvus/const/defaults.d.ts +1 -0
  13. package/dist/milvus/const/defaults.js +2 -1
  14. package/dist/milvus/const/defaults.js.map +1 -1
  15. package/dist/milvus/const/error.d.ts +2 -0
  16. package/dist/milvus/const/error.js +2 -0
  17. package/dist/milvus/const/error.js.map +1 -1
  18. package/dist/milvus/const/milvus.d.ts +13 -0
  19. package/dist/milvus/const/milvus.js +18 -1
  20. package/dist/milvus/const/milvus.js.map +1 -1
  21. package/dist/milvus/grpc/Collection.d.ts +142 -1
  22. package/dist/milvus/grpc/Collection.js +268 -7
  23. package/dist/milvus/grpc/Collection.js.map +1 -1
  24. package/dist/milvus/grpc/Data.d.ts +7 -1
  25. package/dist/milvus/grpc/Data.js +123 -45
  26. package/dist/milvus/grpc/Data.js.map +1 -1
  27. package/dist/milvus/grpc/Resource.d.ts +24 -1
  28. package/dist/milvus/grpc/Resource.js +45 -0
  29. package/dist/milvus/grpc/Resource.js.map +1 -1
  30. package/dist/milvus/http/Import.d.ts +3 -3
  31. package/dist/milvus/http/Import.js.map +1 -1
  32. package/dist/milvus/proto-json/milvus.base.d.ts +1595 -176
  33. package/dist/milvus/proto-json/milvus.base.js +1637 -183
  34. package/dist/milvus/proto-json/milvus.base.js.map +1 -1
  35. package/dist/milvus/proto-json/milvus.d.ts +1595 -176
  36. package/dist/milvus/proto-json/milvus.js +1637 -183
  37. package/dist/milvus/proto-json/milvus.js.map +1 -1
  38. package/dist/milvus/proto-json/schema.base.d.ts +441 -0
  39. package/dist/milvus/proto-json/schema.base.js +474 -7
  40. package/dist/milvus/proto-json/schema.base.js.map +1 -1
  41. package/dist/milvus/types/Collection.d.ts +121 -0
  42. package/dist/milvus/types/Collection.js +16 -0
  43. package/dist/milvus/types/Collection.js.map +1 -1
  44. package/dist/milvus/types/Common.d.ts +7 -0
  45. package/dist/milvus/types/Data.d.ts +12 -1
  46. package/dist/milvus/types/Http.d.ts +8 -2
  47. package/dist/milvus/types/Insert.d.ts +8 -1
  48. package/dist/milvus/types/Insert.js.map +1 -1
  49. package/dist/milvus/types/Resource.d.ts +27 -0
  50. package/dist/milvus/types/Search.d.ts +32 -22
  51. package/dist/milvus/types/Search.js.map +1 -1
  52. package/dist/milvus/types/Volume.d.ts +37 -0
  53. package/dist/milvus/types/Volume.js +9 -0
  54. package/dist/milvus/types/Volume.js.map +1 -0
  55. package/dist/milvus/types/index.d.ts +1 -0
  56. package/dist/milvus/types/index.js +1 -0
  57. package/dist/milvus/types/index.js.map +1 -1
  58. package/dist/milvus/types.d.ts +1 -0
  59. package/dist/milvus/types.js +1 -0
  60. package/dist/milvus/types.js.map +1 -1
  61. package/dist/milvus/utils/Bytes.d.ts +2 -2
  62. package/dist/milvus/utils/Bytes.js +9 -2
  63. package/dist/milvus/utils/Bytes.js.map +1 -1
  64. package/dist/milvus/utils/Data.js +43 -6
  65. package/dist/milvus/utils/Data.js.map +1 -1
  66. package/dist/milvus/utils/Format.d.ts +2 -1
  67. package/dist/milvus/utils/Format.js +28 -1
  68. package/dist/milvus/utils/Format.js.map +1 -1
  69. package/dist/milvus/utils/Schema.js +21 -6
  70. package/dist/milvus/utils/Schema.js.map +1 -1
  71. package/dist/milvus/utils/Search.js +94 -13
  72. package/dist/milvus/utils/Search.js.map +1 -1
  73. package/dist/milvus/utils/Validate.d.ts +3 -0
  74. package/dist/milvus/utils/Validate.js +9 -2
  75. package/dist/milvus/utils/Validate.js.map +1 -1
  76. package/dist/sdk.json +1 -1
  77. package/package.json +6 -4
@@ -8,7 +8,7 @@ exports.default = {
8
8
  "nested": {
9
9
  "schema": {
10
10
  "options": {
11
- "go_package": "github.com/milvus-io/milvus-proto/go-api/v2/schemapb",
11
+ "go_package": "github.com/milvus-io/milvus-proto/go-api/v3/schemapb",
12
12
  "java_multiple_files": true,
13
13
  "java_package": "io.milvus.grpc",
14
14
  "java_outer_classname": "SchemaProto",
@@ -33,6 +33,7 @@ exports.default = {
33
33
  "Geometry": 24,
34
34
  "Text": 25,
35
35
  "Timestamptz": 26,
36
+ "Mol": 27,
36
37
  "BinaryVector": 100,
37
38
  "FloatVector": 101,
38
39
  "Float16Vector": 102,
@@ -49,7 +50,9 @@ exports.default = {
49
50
  "Unknown": 0,
50
51
  "BM25": 1,
51
52
  "TextEmbedding": 2,
52
- "Rerank": 3
53
+ "Rerank": 3,
54
+ "MinHash": 4,
55
+ "MolFingerprint": 5
53
56
  }
54
57
  },
55
58
  "FieldState": {
@@ -127,6 +130,10 @@ exports.default = {
127
130
  "isFunctionOutput": {
128
131
  "type": "bool",
129
132
  "id": 16
133
+ },
134
+ "externalField": {
135
+ "type": "string",
136
+ "id": 17
130
137
  }
131
138
  }
132
139
  },
@@ -238,6 +245,23 @@ exports.default = {
238
245
  "type": "int32",
239
246
  "id": 10
240
247
  },
248
+ "externalSource": {
249
+ "type": "string",
250
+ "id": 11
251
+ },
252
+ "externalSpec": {
253
+ "type": "string",
254
+ "id": 12
255
+ },
256
+ "doPhysicalBackfill": {
257
+ "type": "bool",
258
+ "id": 13
259
+ },
260
+ "fileResourceIds": {
261
+ "rule": "repeated",
262
+ "type": "int64",
263
+ "id": 14
264
+ },
241
265
  "enableNamespace": {
242
266
  "type": "bool",
243
267
  "id": 15
@@ -267,6 +291,10 @@ exports.default = {
267
291
  "rule": "repeated",
268
292
  "type": "common.KeyValuePair",
269
293
  "id": 5
294
+ },
295
+ "nullable": {
296
+ "type": "bool",
297
+ "id": 6
270
298
  }
271
299
  }
272
300
  },
@@ -382,6 +410,24 @@ exports.default = {
382
410
  }
383
411
  }
384
412
  },
413
+ "MolArray": {
414
+ "fields": {
415
+ "data": {
416
+ "rule": "repeated",
417
+ "type": "bytes",
418
+ "id": 1
419
+ }
420
+ }
421
+ },
422
+ "MolSmilesArray": {
423
+ "fields": {
424
+ "data": {
425
+ "rule": "repeated",
426
+ "type": "string",
427
+ "id": 1
428
+ }
429
+ }
430
+ },
385
431
  "ValueField": {
386
432
  "oneofs": {
387
433
  "data": {
@@ -447,7 +493,9 @@ exports.default = {
447
493
  "jsonData",
448
494
  "geometryData",
449
495
  "timestamptzData",
450
- "geometryWktData"
496
+ "geometryWktData",
497
+ "molData",
498
+ "molSmilesData"
451
499
  ]
452
500
  }
453
501
  },
@@ -499,6 +547,14 @@ exports.default = {
499
547
  "geometryWktData": {
500
548
  "type": "GeometryWktArray",
501
549
  "id": 12
550
+ },
551
+ "molData": {
552
+ "type": "MolArray",
553
+ "id": 13
554
+ },
555
+ "molSmilesData": {
556
+ "type": "MolSmilesArray",
557
+ "id": 14
502
558
  }
503
559
  }
504
560
  },
@@ -763,6 +819,199 @@ exports.default = {
763
819
  "rule": "repeated",
764
820
  "type": "common.HighlightResult",
765
821
  "id": 14
822
+ },
823
+ "elementIndices": {
824
+ "type": "LongArray",
825
+ "id": 15
826
+ },
827
+ "groupByFieldValues": {
828
+ "rule": "repeated",
829
+ "type": "FieldData",
830
+ "id": 17
831
+ },
832
+ "aggBuckets": {
833
+ "rule": "repeated",
834
+ "type": "AggBucket",
835
+ "id": 18
836
+ },
837
+ "aggTopks": {
838
+ "rule": "repeated",
839
+ "type": "int64",
840
+ "id": 19
841
+ }
842
+ },
843
+ "reserved": [
844
+ [
845
+ 16,
846
+ 16
847
+ ]
848
+ ]
849
+ },
850
+ "AggBucket": {
851
+ "fields": {
852
+ "key": {
853
+ "rule": "repeated",
854
+ "type": "BucketKeyEntry",
855
+ "id": 1
856
+ },
857
+ "count": {
858
+ "type": "int64",
859
+ "id": 2
860
+ },
861
+ "metrics": {
862
+ "keyType": "string",
863
+ "type": "MetricValue",
864
+ "id": 3
865
+ },
866
+ "hits": {
867
+ "rule": "repeated",
868
+ "type": "AggHit",
869
+ "id": 4
870
+ },
871
+ "subGroups": {
872
+ "rule": "repeated",
873
+ "type": "AggBucket",
874
+ "id": 5
875
+ }
876
+ }
877
+ },
878
+ "MetricValue": {
879
+ "oneofs": {
880
+ "value": {
881
+ "oneof": [
882
+ "intVal",
883
+ "doubleVal",
884
+ "stringVal",
885
+ "boolVal"
886
+ ]
887
+ }
888
+ },
889
+ "fields": {
890
+ "intVal": {
891
+ "type": "int64",
892
+ "id": 1
893
+ },
894
+ "doubleVal": {
895
+ "type": "double",
896
+ "id": 2
897
+ },
898
+ "stringVal": {
899
+ "type": "string",
900
+ "id": 3
901
+ },
902
+ "boolVal": {
903
+ "type": "bool",
904
+ "id": 4
905
+ }
906
+ }
907
+ },
908
+ "BucketKeyEntry": {
909
+ "oneofs": {
910
+ "value": {
911
+ "oneof": [
912
+ "intVal",
913
+ "stringVal",
914
+ "boolVal"
915
+ ]
916
+ }
917
+ },
918
+ "fields": {
919
+ "fieldId": {
920
+ "type": "int64",
921
+ "id": 1
922
+ },
923
+ "fieldName": {
924
+ "type": "string",
925
+ "id": 2
926
+ },
927
+ "intVal": {
928
+ "type": "int64",
929
+ "id": 3
930
+ },
931
+ "stringVal": {
932
+ "type": "string",
933
+ "id": 4
934
+ },
935
+ "boolVal": {
936
+ "type": "bool",
937
+ "id": 5
938
+ }
939
+ }
940
+ },
941
+ "AggHit": {
942
+ "oneofs": {
943
+ "pk": {
944
+ "oneof": [
945
+ "intPk",
946
+ "strPk"
947
+ ]
948
+ }
949
+ },
950
+ "fields": {
951
+ "intPk": {
952
+ "type": "int64",
953
+ "id": 1
954
+ },
955
+ "strPk": {
956
+ "type": "string",
957
+ "id": 2
958
+ },
959
+ "score": {
960
+ "type": "float",
961
+ "id": 3
962
+ },
963
+ "fields": {
964
+ "rule": "repeated",
965
+ "type": "AggHitField",
966
+ "id": 4
967
+ }
968
+ }
969
+ },
970
+ "AggHitField": {
971
+ "oneofs": {
972
+ "value": {
973
+ "oneof": [
974
+ "intVal",
975
+ "boolVal",
976
+ "floatVal",
977
+ "doubleVal",
978
+ "stringVal",
979
+ "bytesVal"
980
+ ]
981
+ }
982
+ },
983
+ "fields": {
984
+ "fieldId": {
985
+ "type": "int64",
986
+ "id": 1
987
+ },
988
+ "fieldName": {
989
+ "type": "string",
990
+ "id": 2
991
+ },
992
+ "intVal": {
993
+ "type": "int64",
994
+ "id": 3
995
+ },
996
+ "boolVal": {
997
+ "type": "bool",
998
+ "id": 4
999
+ },
1000
+ "floatVal": {
1001
+ "type": "float",
1002
+ "id": 5
1003
+ },
1004
+ "doubleVal": {
1005
+ "type": "double",
1006
+ "id": 6
1007
+ },
1008
+ "stringVal": {
1009
+ "type": "string",
1010
+ "id": 7
1011
+ },
1012
+ "bytesVal": {
1013
+ "type": "bytes",
1014
+ "id": 8
766
1015
  }
767
1016
  }
768
1017
  },
@@ -888,7 +1137,7 @@ exports.default = {
888
1137
  },
889
1138
  "common": {
890
1139
  "options": {
891
- "go_package": "github.com/milvus-io/milvus-proto/go-api/v2/commonpb",
1140
+ "go_package": "github.com/milvus-io/milvus-proto/go-api/v3/commonpb",
892
1141
  "java_multiple_files": true,
893
1142
  "java_package": "io.milvus.grpc",
894
1143
  "java_outer_classname": "CommonProto",
@@ -1094,6 +1343,10 @@ exports.default = {
1094
1343
  "rule": "repeated",
1095
1344
  "type": "bytes",
1096
1345
  "id": 3
1346
+ },
1347
+ "elementLevel": {
1348
+ "type": "bool",
1349
+ "id": 4
1097
1350
  }
1098
1351
  }
1099
1352
  },
@@ -1119,6 +1372,11 @@ exports.default = {
1119
1372
  }
1120
1373
  },
1121
1374
  "MsgType": {
1375
+ "valuesOptions": {
1376
+ "Replicate": {
1377
+ "deprecated": true
1378
+ }
1379
+ },
1122
1380
  "values": {
1123
1381
  "Undefined": 0,
1124
1382
  "CreateCollection": 100,
@@ -1242,7 +1500,20 @@ exports.default = {
1242
1500
  "AlterDatabase": 1804,
1243
1501
  "DescribeDatabase": 1805,
1244
1502
  "AddCollectionField": 1900,
1245
- "AlterWAL": 2000
1503
+ "AlterWAL": 2000,
1504
+ "CreateSnapshot": 2100,
1505
+ "DropSnapshot": 2101,
1506
+ "ListSnapshots": 2102,
1507
+ "DescribeSnapshot": 2103,
1508
+ "RestoreSnapshot": 2104,
1509
+ "GetRestoreSnapshotState": 2105,
1510
+ "ListRestoreSnapshotJobs": 2106,
1511
+ "PinSnapshotData": 2107,
1512
+ "UnpinSnapshotData": 2108,
1513
+ "AlterCollectionSchema": 2200,
1514
+ "RefreshExternalCollection": 2300,
1515
+ "GetRefreshExternalCollectionProgress": 2301,
1516
+ "ListRefreshExternalCollectionJobs": 2302
1246
1517
  }
1247
1518
  },
1248
1519
  "MsgBase": {
@@ -1274,11 +1545,17 @@ exports.default = {
1274
1545
  },
1275
1546
  "replicateInfo": {
1276
1547
  "type": "ReplicateInfo",
1277
- "id": 7
1548
+ "id": 7,
1549
+ "options": {
1550
+ "deprecated": true
1551
+ }
1278
1552
  }
1279
1553
  }
1280
1554
  },
1281
1555
  "ReplicateInfo": {
1556
+ "options": {
1557
+ "deprecated": true
1558
+ },
1282
1559
  "fields": {
1283
1560
  "isReplicate": {
1284
1561
  "type": "bool",
@@ -1432,7 +1709,16 @@ exports.default = {
1432
1709
  "PrivilegeRemoveFileResource": 73,
1433
1710
  "PrivilegeListFileResources": 74,
1434
1711
  "PrivilegeUpdateReplicateConfiguration": 78,
1435
- "PrivilegeGetReplicateConfiguration": 85
1712
+ "PrivilegeCreateSnapshot": 79,
1713
+ "PrivilegeDropSnapshot": 80,
1714
+ "PrivilegeDescribeSnapshot": 81,
1715
+ "PrivilegeListSnapshots": 82,
1716
+ "PrivilegeRestoreSnapshot": 83,
1717
+ "PrivilegeAlterCollectionSchema": 84,
1718
+ "PrivilegeGetReplicateConfiguration": 85,
1719
+ "PrivilegeRefreshExternalCollection": 86,
1720
+ "PrivilegePinSnapshotData": 87,
1721
+ "PrivilegeUnpinSnapshotData": 88
1436
1722
  }
1437
1723
  },
1438
1724
  "PrivilegeExt": {
@@ -1518,6 +1804,99 @@ exports.default = {
1518
1804
  }
1519
1805
  }
1520
1806
  },
1807
+ "Metrics": {
1808
+ "fields": {
1809
+ "requestCount": {
1810
+ "type": "int64",
1811
+ "id": 1
1812
+ },
1813
+ "successCount": {
1814
+ "type": "int64",
1815
+ "id": 2
1816
+ },
1817
+ "errorCount": {
1818
+ "type": "int64",
1819
+ "id": 3
1820
+ },
1821
+ "avgLatencyMs": {
1822
+ "type": "double",
1823
+ "id": 4
1824
+ },
1825
+ "p99LatencyMs": {
1826
+ "type": "double",
1827
+ "id": 5
1828
+ },
1829
+ "maxLatencyMs": {
1830
+ "type": "double",
1831
+ "id": 6
1832
+ }
1833
+ }
1834
+ },
1835
+ "OperationMetrics": {
1836
+ "fields": {
1837
+ "operation": {
1838
+ "type": "string",
1839
+ "id": 1
1840
+ },
1841
+ "global": {
1842
+ "type": "Metrics",
1843
+ "id": 2
1844
+ },
1845
+ "collectionMetrics": {
1846
+ "keyType": "string",
1847
+ "type": "Metrics",
1848
+ "id": 3
1849
+ }
1850
+ }
1851
+ },
1852
+ "ClientCommand": {
1853
+ "fields": {
1854
+ "commandId": {
1855
+ "type": "string",
1856
+ "id": 1
1857
+ },
1858
+ "commandType": {
1859
+ "type": "string",
1860
+ "id": 2
1861
+ },
1862
+ "payload": {
1863
+ "type": "bytes",
1864
+ "id": 3
1865
+ },
1866
+ "createTime": {
1867
+ "type": "int64",
1868
+ "id": 4
1869
+ },
1870
+ "persistent": {
1871
+ "type": "bool",
1872
+ "id": 5
1873
+ },
1874
+ "targetScope": {
1875
+ "type": "string",
1876
+ "id": 6
1877
+ }
1878
+ }
1879
+ },
1880
+ "CommandReply": {
1881
+ "fields": {
1882
+ "commandId": {
1883
+ "type": "string",
1884
+ "id": 1
1885
+ },
1886
+ "success": {
1887
+ "type": "bool",
1888
+ "id": 2
1889
+ },
1890
+ "errorMessage": {
1891
+ "type": "string",
1892
+ "id": 3
1893
+ },
1894
+ "payload": {
1895
+ "type": "bytes",
1896
+ "id": 4
1897
+ }
1898
+ }
1899
+ },
1521
1900
  "ServerInfo": {
1522
1901
  "fields": {
1523
1902
  "buildTags": {
@@ -1728,6 +2107,94 @@ exports.default = {
1728
2107
  "id": 2
1729
2108
  }
1730
2109
  }
2110
+ },
2111
+ "MetricAggSpec": {
2112
+ "fields": {
2113
+ "op": {
2114
+ "type": "string",
2115
+ "id": 1
2116
+ },
2117
+ "fieldName": {
2118
+ "type": "string",
2119
+ "id": 2
2120
+ }
2121
+ }
2122
+ },
2123
+ "SortSpec": {
2124
+ "fields": {
2125
+ "fieldName": {
2126
+ "type": "string",
2127
+ "id": 1
2128
+ },
2129
+ "direction": {
2130
+ "type": "string",
2131
+ "id": 2
2132
+ },
2133
+ "nullFirst": {
2134
+ "type": "bool",
2135
+ "id": 3
2136
+ }
2137
+ }
2138
+ },
2139
+ "TopHitsSpec": {
2140
+ "fields": {
2141
+ "size": {
2142
+ "type": "int64",
2143
+ "id": 1
2144
+ },
2145
+ "sort": {
2146
+ "rule": "repeated",
2147
+ "type": "SortSpec",
2148
+ "id": 2
2149
+ }
2150
+ }
2151
+ },
2152
+ "OrderSpec": {
2153
+ "fields": {
2154
+ "key": {
2155
+ "type": "string",
2156
+ "id": 1
2157
+ },
2158
+ "direction": {
2159
+ "type": "string",
2160
+ "id": 2
2161
+ },
2162
+ "nullFirst": {
2163
+ "type": "bool",
2164
+ "id": 3
2165
+ }
2166
+ }
2167
+ },
2168
+ "SearchAggregationSpec": {
2169
+ "fields": {
2170
+ "fields": {
2171
+ "rule": "repeated",
2172
+ "type": "string",
2173
+ "id": 1
2174
+ },
2175
+ "size": {
2176
+ "type": "int64",
2177
+ "id": 2
2178
+ },
2179
+ "metrics": {
2180
+ "keyType": "string",
2181
+ "type": "MetricAggSpec",
2182
+ "id": 3
2183
+ },
2184
+ "order": {
2185
+ "rule": "repeated",
2186
+ "type": "OrderSpec",
2187
+ "id": 4
2188
+ },
2189
+ "topHits": {
2190
+ "type": "TopHitsSpec",
2191
+ "id": 5
2192
+ },
2193
+ "subAggregation": {
2194
+ "type": "SearchAggregationSpec",
2195
+ "id": 6
2196
+ }
2197
+ }
1731
2198
  }
1732
2199
  }
1733
2200
  }