@zilliz/milvus2-sdk-node 2.6.1 → 2.6.2

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 (72) hide show
  1. package/dist/milvus/MilvusClient.js +7 -1
  2. package/dist/milvus/MilvusClient.js.map +1 -1
  3. package/dist/milvus/const/milvus.d.ts +28 -3
  4. package/dist/milvus/const/milvus.js +29 -1
  5. package/dist/milvus/const/milvus.js.map +1 -1
  6. package/dist/milvus/grpc/BaseClient.d.ts +1 -0
  7. package/dist/milvus/grpc/BaseClient.js +1 -0
  8. package/dist/milvus/grpc/BaseClient.js.map +1 -1
  9. package/dist/milvus/grpc/Collection.js +21 -2
  10. package/dist/milvus/grpc/Collection.js.map +1 -1
  11. package/dist/milvus/grpc/Data.d.ts +57 -20
  12. package/dist/milvus/grpc/Data.js +138 -51
  13. package/dist/milvus/grpc/Data.js.map +1 -1
  14. package/dist/milvus/proto-json/milvus.base.d.ts +164 -2
  15. package/dist/milvus/proto-json/milvus.base.js +165 -3
  16. package/dist/milvus/proto-json/milvus.base.js.map +1 -1
  17. package/dist/milvus/proto-json/milvus.d.ts +164 -2
  18. package/dist/milvus/proto-json/milvus.js +165 -3
  19. package/dist/milvus/proto-json/milvus.js.map +1 -1
  20. package/dist/milvus/proto-json/schema.base.d.ts +52 -0
  21. package/dist/milvus/proto-json/schema.base.js +53 -1
  22. package/dist/milvus/proto-json/schema.base.js.map +1 -1
  23. package/dist/milvus/types/Collection.d.ts +8 -2
  24. package/dist/milvus/types/Common.d.ts +3 -0
  25. package/dist/milvus/types/Data.d.ts +1 -304
  26. package/dist/milvus/types/Data.js +0 -1
  27. package/dist/milvus/types/Data.js.map +1 -1
  28. package/dist/milvus/types/DataTypes.d.ts +35 -0
  29. package/dist/milvus/types/DataTypes.js +3 -0
  30. package/dist/milvus/types/DataTypes.js.map +1 -0
  31. package/dist/milvus/types/HighLevel.d.ts +1 -1
  32. package/dist/milvus/types/Insert.d.ts +66 -0
  33. package/dist/milvus/types/Insert.js +4 -0
  34. package/dist/milvus/types/Insert.js.map +1 -0
  35. package/dist/milvus/types/Search.d.ts +147 -0
  36. package/dist/milvus/types/Search.js +4 -0
  37. package/dist/milvus/types/Search.js.map +1 -0
  38. package/dist/milvus/types/Segments.d.ts +68 -0
  39. package/dist/milvus/types/Segments.js +3 -0
  40. package/dist/milvus/types/Segments.js.map +1 -0
  41. package/dist/milvus/types/index.d.ts +4 -0
  42. package/dist/milvus/types/index.js +4 -0
  43. package/dist/milvus/types/index.js.map +1 -1
  44. package/dist/milvus/types.d.ts +4 -0
  45. package/dist/milvus/types.js +4 -1
  46. package/dist/milvus/types.js.map +1 -1
  47. package/dist/milvus/utils/Bytes.d.ts +3 -3
  48. package/dist/milvus/utils/Bytes.js +11 -10
  49. package/dist/milvus/utils/Bytes.js.map +1 -1
  50. package/dist/milvus/utils/Connection.d.ts +14 -0
  51. package/dist/milvus/utils/Connection.js +24 -0
  52. package/dist/milvus/utils/Connection.js.map +1 -0
  53. package/dist/milvus/utils/Data.d.ts +43 -0
  54. package/dist/milvus/utils/Data.js +297 -0
  55. package/dist/milvus/utils/Data.js.map +1 -0
  56. package/dist/milvus/utils/Format.d.ts +1 -233
  57. package/dist/milvus/utils/Format.js +108 -728
  58. package/dist/milvus/utils/Format.js.map +1 -1
  59. package/dist/milvus/utils/Function.d.ts +1 -21
  60. package/dist/milvus/utils/Function.js +1 -82
  61. package/dist/milvus/utils/Function.js.map +1 -1
  62. package/dist/milvus/utils/Schema.d.ts +59 -0
  63. package/dist/milvus/utils/Schema.js +256 -0
  64. package/dist/milvus/utils/Schema.js.map +1 -0
  65. package/dist/milvus/utils/Search.d.ts +193 -0
  66. package/dist/milvus/utils/Search.js +419 -0
  67. package/dist/milvus/utils/Search.js.map +1 -0
  68. package/dist/milvus/utils/index.d.ts +4 -0
  69. package/dist/milvus/utils/index.js +4 -0
  70. package/dist/milvus/utils/index.js.map +1 -1
  71. package/dist/sdk.json +1 -1
  72. package/package.json +2 -2
@@ -60,6 +60,18 @@ declare const _default: {
60
60
  requestType: string;
61
61
  responseType: string;
62
62
  };
63
+ AddCollectionFunction: {
64
+ requestType: string;
65
+ responseType: string;
66
+ };
67
+ AlterCollectionFunction: {
68
+ requestType: string;
69
+ responseType: string;
70
+ };
71
+ DropCollectionFunction: {
72
+ requestType: string;
73
+ responseType: string;
74
+ };
63
75
  CreatePartition: {
64
76
  requestType: string;
65
77
  responseType: string;
@@ -1878,6 +1890,97 @@ declare const _default: {
1878
1890
  };
1879
1891
  };
1880
1892
  };
1893
+ AddCollectionFunctionRequest: {
1894
+ options: {
1895
+ "(common.privilege_ext_obj).object_type": string;
1896
+ "(common.privilege_ext_obj).object_privilege": string;
1897
+ "(common.privilege_ext_obj).object_name_index": number;
1898
+ };
1899
+ fields: {
1900
+ base: {
1901
+ type: string;
1902
+ id: number;
1903
+ };
1904
+ db_name: {
1905
+ type: string;
1906
+ id: number;
1907
+ };
1908
+ collection_name: {
1909
+ type: string;
1910
+ id: number;
1911
+ };
1912
+ collectionID: {
1913
+ type: string;
1914
+ id: number;
1915
+ };
1916
+ functionSchema: {
1917
+ type: string;
1918
+ id: number;
1919
+ };
1920
+ };
1921
+ };
1922
+ AlterCollectionFunctionRequest: {
1923
+ options: {
1924
+ "(common.privilege_ext_obj).object_type": string;
1925
+ "(common.privilege_ext_obj).object_privilege": string;
1926
+ "(common.privilege_ext_obj).object_name_index": number;
1927
+ };
1928
+ fields: {
1929
+ base: {
1930
+ type: string;
1931
+ id: number;
1932
+ };
1933
+ db_name: {
1934
+ type: string;
1935
+ id: number;
1936
+ };
1937
+ collection_name: {
1938
+ type: string;
1939
+ id: number;
1940
+ };
1941
+ collectionID: {
1942
+ type: string;
1943
+ id: number;
1944
+ };
1945
+ function_name: {
1946
+ type: string;
1947
+ id: number;
1948
+ };
1949
+ functionSchema: {
1950
+ type: string;
1951
+ id: number;
1952
+ };
1953
+ };
1954
+ };
1955
+ DropCollectionFunctionRequest: {
1956
+ options: {
1957
+ "(common.privilege_ext_obj).object_type": string;
1958
+ "(common.privilege_ext_obj).object_privilege": string;
1959
+ "(common.privilege_ext_obj).object_name_index": number;
1960
+ };
1961
+ fields: {
1962
+ base: {
1963
+ type: string;
1964
+ id: number;
1965
+ };
1966
+ db_name: {
1967
+ type: string;
1968
+ id: number;
1969
+ };
1970
+ collection_name: {
1971
+ type: string;
1972
+ id: number;
1973
+ };
1974
+ collectionID: {
1975
+ type: string;
1976
+ id: number;
1977
+ };
1978
+ function_name: {
1979
+ type: string;
1980
+ id: number;
1981
+ };
1982
+ };
1983
+ };
1881
1984
  UpsertRequest: {
1882
1985
  options: {
1883
1986
  "(common.privilege_ext_obj).object_type": string;
@@ -2164,6 +2267,10 @@ declare const _default: {
2164
2267
  proto3_optional: boolean;
2165
2268
  };
2166
2269
  };
2270
+ highlighter: {
2271
+ type: string;
2272
+ id: number;
2273
+ };
2167
2274
  };
2168
2275
  };
2169
2276
  Hits: {
@@ -5207,12 +5314,15 @@ declare const _default: {
5207
5314
  type: string;
5208
5315
  id: number;
5209
5316
  };
5317
+ target_pchannel: {
5318
+ type: string;
5319
+ id: number;
5320
+ };
5210
5321
  };
5211
5322
  };
5212
5323
  GetReplicateInfoResponse: {
5213
5324
  fields: {
5214
- checkpoints: {
5215
- rule: string;
5325
+ checkpoint: {
5216
5326
  type: string;
5217
5327
  id: number;
5218
5328
  };
@@ -5517,6 +5627,9 @@ declare const _default: {
5517
5627
  DescribeAlias: number;
5518
5628
  ListAliases: number;
5519
5629
  AlterCollectionField: number;
5630
+ AddCollectionFunction: number;
5631
+ AlterCollectionFunction: number;
5632
+ DropCollectionFunction: number;
5520
5633
  CreatePartition: number;
5521
5634
  DropPartition: number;
5522
5635
  HasPartition: number;
@@ -5805,6 +5918,9 @@ declare const _default: {
5805
5918
  PrivilegeAddFileResource: number;
5806
5919
  PrivilegeRemoveFileResource: number;
5807
5920
  PrivilegeListFileResources: number;
5921
+ PrivilegeAddCollectionFunction: number;
5922
+ PrivilegeAlterCollectionFunction: number;
5923
+ PrivilegeDropCollectionFunction: number;
5808
5924
  };
5809
5925
  };
5810
5926
  PrivilegeExt: {
@@ -6060,6 +6176,47 @@ declare const _default: {
6060
6176
  };
6061
6177
  };
6062
6178
  };
6179
+ HighlightData: {
6180
+ fields: {
6181
+ fragments: {
6182
+ rule: string;
6183
+ type: string;
6184
+ id: number;
6185
+ };
6186
+ };
6187
+ };
6188
+ HighlightResult: {
6189
+ fields: {
6190
+ field_name: {
6191
+ type: string;
6192
+ id: number;
6193
+ };
6194
+ datas: {
6195
+ rule: string;
6196
+ type: string;
6197
+ id: number;
6198
+ };
6199
+ };
6200
+ };
6201
+ HighlightType: {
6202
+ values: {
6203
+ Lexical: number;
6204
+ Semantic: number;
6205
+ };
6206
+ };
6207
+ Highlighter: {
6208
+ fields: {
6209
+ type: {
6210
+ type: string;
6211
+ id: number;
6212
+ };
6213
+ params: {
6214
+ rule: string;
6215
+ type: string;
6216
+ id: number;
6217
+ };
6218
+ };
6219
+ };
6063
6220
  };
6064
6221
  };
6065
6222
  rg: {
@@ -6805,6 +6962,11 @@ declare const _default: {
6805
6962
  type: string;
6806
6963
  id: number;
6807
6964
  };
6965
+ highlight_results: {
6966
+ rule: string;
6967
+ type: string;
6968
+ id: number;
6969
+ };
6808
6970
  };
6809
6971
  };
6810
6972
  VectorClusteringInfo: {
@@ -62,6 +62,18 @@ exports.default = {
62
62
  "requestType": "AlterCollectionFieldRequest",
63
63
  "responseType": "common.Status"
64
64
  },
65
+ "AddCollectionFunction": {
66
+ "requestType": "AddCollectionFunctionRequest",
67
+ "responseType": "common.Status"
68
+ },
69
+ "AlterCollectionFunction": {
70
+ "requestType": "AlterCollectionFunctionRequest",
71
+ "responseType": "common.Status"
72
+ },
73
+ "DropCollectionFunction": {
74
+ "requestType": "DropCollectionFunctionRequest",
75
+ "responseType": "common.Status"
76
+ },
65
77
  "CreatePartition": {
66
78
  "requestType": "CreatePartitionRequest",
67
79
  "responseType": "common.Status"
@@ -1886,6 +1898,97 @@ exports.default = {
1886
1898
  }
1887
1899
  }
1888
1900
  },
1901
+ "AddCollectionFunctionRequest": {
1902
+ "options": {
1903
+ "(common.privilege_ext_obj).object_type": "Collection",
1904
+ "(common.privilege_ext_obj).object_privilege": "PrivilegeAddCollectionFunction",
1905
+ "(common.privilege_ext_obj).object_name_index": 3
1906
+ },
1907
+ "fields": {
1908
+ "base": {
1909
+ "type": "common.MsgBase",
1910
+ "id": 1
1911
+ },
1912
+ "db_name": {
1913
+ "type": "string",
1914
+ "id": 2
1915
+ },
1916
+ "collection_name": {
1917
+ "type": "string",
1918
+ "id": 3
1919
+ },
1920
+ "collectionID": {
1921
+ "type": "int64",
1922
+ "id": 4
1923
+ },
1924
+ "functionSchema": {
1925
+ "type": "schema.FunctionSchema",
1926
+ "id": 5
1927
+ }
1928
+ }
1929
+ },
1930
+ "AlterCollectionFunctionRequest": {
1931
+ "options": {
1932
+ "(common.privilege_ext_obj).object_type": "Collection",
1933
+ "(common.privilege_ext_obj).object_privilege": "PrivilegeDropCollectionFunction",
1934
+ "(common.privilege_ext_obj).object_name_index": 3
1935
+ },
1936
+ "fields": {
1937
+ "base": {
1938
+ "type": "common.MsgBase",
1939
+ "id": 1
1940
+ },
1941
+ "db_name": {
1942
+ "type": "string",
1943
+ "id": 2
1944
+ },
1945
+ "collection_name": {
1946
+ "type": "string",
1947
+ "id": 3
1948
+ },
1949
+ "collectionID": {
1950
+ "type": "int64",
1951
+ "id": 4
1952
+ },
1953
+ "function_name": {
1954
+ "type": "string",
1955
+ "id": 5
1956
+ },
1957
+ "functionSchema": {
1958
+ "type": "schema.FunctionSchema",
1959
+ "id": 6
1960
+ }
1961
+ }
1962
+ },
1963
+ "DropCollectionFunctionRequest": {
1964
+ "options": {
1965
+ "(common.privilege_ext_obj).object_type": "Collection",
1966
+ "(common.privilege_ext_obj).object_privilege": "PrivilegeDropCollectionFunction",
1967
+ "(common.privilege_ext_obj).object_name_index": 3
1968
+ },
1969
+ "fields": {
1970
+ "base": {
1971
+ "type": "common.MsgBase",
1972
+ "id": 1
1973
+ },
1974
+ "db_name": {
1975
+ "type": "string",
1976
+ "id": 2
1977
+ },
1978
+ "collection_name": {
1979
+ "type": "string",
1980
+ "id": 3
1981
+ },
1982
+ "collectionID": {
1983
+ "type": "int64",
1984
+ "id": 4
1985
+ },
1986
+ "function_name": {
1987
+ "type": "string",
1988
+ "id": 5
1989
+ }
1990
+ }
1991
+ },
1889
1992
  "UpsertRequest": {
1890
1993
  "options": {
1891
1994
  "(common.privilege_ext_obj).object_type": "Collection",
@@ -2177,6 +2280,10 @@ exports.default = {
2177
2280
  "options": {
2178
2281
  "proto3_optional": true
2179
2282
  }
2283
+ },
2284
+ "highlighter": {
2285
+ "type": "common.Highlighter",
2286
+ "id": 21
2180
2287
  }
2181
2288
  }
2182
2289
  },
@@ -5233,13 +5340,16 @@ exports.default = {
5233
5340
  "source_cluster_id": {
5234
5341
  "type": "string",
5235
5342
  "id": 1
5343
+ },
5344
+ "target_pchannel": {
5345
+ "type": "string",
5346
+ "id": 2
5236
5347
  }
5237
5348
  }
5238
5349
  },
5239
5350
  "GetReplicateInfoResponse": {
5240
5351
  "fields": {
5241
- "checkpoints": {
5242
- "rule": "repeated",
5352
+ "checkpoint": {
5243
5353
  "type": "common.ReplicateCheckpoint",
5244
5354
  "id": 1
5245
5355
  }
@@ -5548,6 +5658,9 @@ exports.default = {
5548
5658
  "DescribeAlias": 113,
5549
5659
  "ListAliases": 114,
5550
5660
  "AlterCollectionField": 115,
5661
+ "AddCollectionFunction": 116,
5662
+ "AlterCollectionFunction": 117,
5663
+ "DropCollectionFunction": 118,
5551
5664
  "CreatePartition": 200,
5552
5665
  "DropPartition": 201,
5553
5666
  "HasPartition": 202,
@@ -5835,7 +5948,10 @@ exports.default = {
5835
5948
  "PrivilegeAddCollectionField": 71,
5836
5949
  "PrivilegeAddFileResource": 72,
5837
5950
  "PrivilegeRemoveFileResource": 73,
5838
- "PrivilegeListFileResources": 74
5951
+ "PrivilegeListFileResources": 74,
5952
+ "PrivilegeAddCollectionFunction": 75,
5953
+ "PrivilegeAlterCollectionFunction": 76,
5954
+ "PrivilegeDropCollectionFunction": 77
5839
5955
  }
5840
5956
  },
5841
5957
  "PrivilegeExt": {
@@ -6090,6 +6206,47 @@ exports.default = {
6090
6206
  "id": 4
6091
6207
  }
6092
6208
  }
6209
+ },
6210
+ "HighlightData": {
6211
+ "fields": {
6212
+ "fragments": {
6213
+ "rule": "repeated",
6214
+ "type": "string",
6215
+ "id": 1
6216
+ }
6217
+ }
6218
+ },
6219
+ "HighlightResult": {
6220
+ "fields": {
6221
+ "field_name": {
6222
+ "type": "string",
6223
+ "id": 1
6224
+ },
6225
+ "datas": {
6226
+ "rule": "repeated",
6227
+ "type": "HighlightData",
6228
+ "id": 2
6229
+ }
6230
+ }
6231
+ },
6232
+ "HighlightType": {
6233
+ "values": {
6234
+ "Lexical": 0,
6235
+ "Semantic": 1
6236
+ }
6237
+ },
6238
+ "Highlighter": {
6239
+ "fields": {
6240
+ "type": {
6241
+ "type": "HighlightType",
6242
+ "id": 1
6243
+ },
6244
+ "params": {
6245
+ "rule": "repeated",
6246
+ "type": "KeyValuePair",
6247
+ "id": 2
6248
+ }
6249
+ }
6093
6250
  }
6094
6251
  }
6095
6252
  },
@@ -6874,6 +7031,11 @@ exports.default = {
6874
7031
  "primary_field_name": {
6875
7032
  "type": "string",
6876
7033
  "id": 13
7034
+ },
7035
+ "highlight_results": {
7036
+ "rule": "repeated",
7037
+ "type": "common.HighlightResult",
7038
+ "id": 14
6877
7039
  }
6878
7040
  }
6879
7041
  },