@zilliz/milvus2-sdk-node 2.6.1 → 2.6.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.
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 -15
  15. package/dist/milvus/proto-json/milvus.base.js +165 -16
  16. package/dist/milvus/proto-json/milvus.base.js.map +1 -1
  17. package/dist/milvus/proto-json/milvus.d.ts +164 -15
  18. package/dist/milvus/proto-json/milvus.js +165 -16
  19. package/dist/milvus/proto-json/milvus.js.map +1 -1
  20. package/dist/milvus/proto-json/schema.base.d.ts +52 -5
  21. package/dist/milvus/proto-json/schema.base.js +53 -6
  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 +117 -727
  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: {
@@ -4854,10 +4961,6 @@ declare const _default: {
4854
4961
  type: string;
4855
4962
  id: number;
4856
4963
  };
4857
- type: {
4858
- type: string;
4859
- id: number;
4860
- };
4861
4964
  };
4862
4965
  };
4863
4966
  AddFileResourceRequest: {
@@ -4879,10 +4982,6 @@ declare const _default: {
4879
4982
  type: string;
4880
4983
  id: number;
4881
4984
  };
4882
- type: {
4883
- type: string;
4884
- id: number;
4885
- };
4886
4985
  };
4887
4986
  };
4888
4987
  RemoveFileResourceRequest: {
@@ -5207,12 +5306,15 @@ declare const _default: {
5207
5306
  type: string;
5208
5307
  id: number;
5209
5308
  };
5309
+ target_pchannel: {
5310
+ type: string;
5311
+ id: number;
5312
+ };
5210
5313
  };
5211
5314
  };
5212
5315
  GetReplicateInfoResponse: {
5213
5316
  fields: {
5214
- checkpoints: {
5215
- rule: string;
5317
+ checkpoint: {
5216
5318
  type: string;
5217
5319
  id: number;
5218
5320
  };
@@ -5517,6 +5619,9 @@ declare const _default: {
5517
5619
  DescribeAlias: number;
5518
5620
  ListAliases: number;
5519
5621
  AlterCollectionField: number;
5622
+ AddCollectionFunction: number;
5623
+ AlterCollectionFunction: number;
5624
+ DropCollectionFunction: number;
5520
5625
  CreatePartition: number;
5521
5626
  DropPartition: number;
5522
5627
  HasPartition: number;
@@ -5805,6 +5910,9 @@ declare const _default: {
5805
5910
  PrivilegeAddFileResource: number;
5806
5911
  PrivilegeRemoveFileResource: number;
5807
5912
  PrivilegeListFileResources: number;
5913
+ PrivilegeAddCollectionFunction: number;
5914
+ PrivilegeAlterCollectionFunction: number;
5915
+ PrivilegeDropCollectionFunction: number;
5808
5916
  };
5809
5917
  };
5810
5918
  PrivilegeExt: {
@@ -5941,11 +6049,6 @@ declare const _default: {
5941
6049
  LOW: number;
5942
6050
  };
5943
6051
  };
5944
- FileResourceType: {
5945
- values: {
5946
- ANALYZER_DICTIONARY: number;
5947
- };
5948
- };
5949
6052
  WALName: {
5950
6053
  values: {
5951
6054
  Unknown: number;
@@ -6060,6 +6163,47 @@ declare const _default: {
6060
6163
  };
6061
6164
  };
6062
6165
  };
6166
+ HighlightData: {
6167
+ fields: {
6168
+ fragments: {
6169
+ rule: string;
6170
+ type: string;
6171
+ id: number;
6172
+ };
6173
+ };
6174
+ };
6175
+ HighlightResult: {
6176
+ fields: {
6177
+ field_name: {
6178
+ type: string;
6179
+ id: number;
6180
+ };
6181
+ datas: {
6182
+ rule: string;
6183
+ type: string;
6184
+ id: number;
6185
+ };
6186
+ };
6187
+ };
6188
+ HighlightType: {
6189
+ values: {
6190
+ Lexical: number;
6191
+ Semantic: number;
6192
+ };
6193
+ };
6194
+ Highlighter: {
6195
+ fields: {
6196
+ type: {
6197
+ type: string;
6198
+ id: number;
6199
+ };
6200
+ params: {
6201
+ rule: string;
6202
+ type: string;
6203
+ id: number;
6204
+ };
6205
+ };
6206
+ };
6063
6207
  };
6064
6208
  };
6065
6209
  rg: {
@@ -6805,6 +6949,11 @@ declare const _default: {
6805
6949
  type: string;
6806
6950
  id: number;
6807
6951
  };
6952
+ highlight_results: {
6953
+ rule: string;
6954
+ type: string;
6955
+ id: number;
6956
+ };
6808
6957
  };
6809
6958
  };
6810
6959
  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
  },
@@ -4880,10 +4987,6 @@ exports.default = {
4880
4987
  "path": {
4881
4988
  "type": "string",
4882
4989
  "id": 3
4883
- },
4884
- "type": {
4885
- "type": "common.FileResourceType",
4886
- "id": 4
4887
4990
  }
4888
4991
  }
4889
4992
  },
@@ -4905,10 +5008,6 @@ exports.default = {
4905
5008
  "path": {
4906
5009
  "type": "string",
4907
5010
  "id": 3
4908
- },
4909
- "type": {
4910
- "type": "common.FileResourceType",
4911
- "id": 4
4912
5011
  }
4913
5012
  }
4914
5013
  },
@@ -5233,13 +5332,16 @@ exports.default = {
5233
5332
  "source_cluster_id": {
5234
5333
  "type": "string",
5235
5334
  "id": 1
5335
+ },
5336
+ "target_pchannel": {
5337
+ "type": "string",
5338
+ "id": 2
5236
5339
  }
5237
5340
  }
5238
5341
  },
5239
5342
  "GetReplicateInfoResponse": {
5240
5343
  "fields": {
5241
- "checkpoints": {
5242
- "rule": "repeated",
5344
+ "checkpoint": {
5243
5345
  "type": "common.ReplicateCheckpoint",
5244
5346
  "id": 1
5245
5347
  }
@@ -5548,6 +5650,9 @@ exports.default = {
5548
5650
  "DescribeAlias": 113,
5549
5651
  "ListAliases": 114,
5550
5652
  "AlterCollectionField": 115,
5653
+ "AddCollectionFunction": 116,
5654
+ "AlterCollectionFunction": 117,
5655
+ "DropCollectionFunction": 118,
5551
5656
  "CreatePartition": 200,
5552
5657
  "DropPartition": 201,
5553
5658
  "HasPartition": 202,
@@ -5835,7 +5940,10 @@ exports.default = {
5835
5940
  "PrivilegeAddCollectionField": 71,
5836
5941
  "PrivilegeAddFileResource": 72,
5837
5942
  "PrivilegeRemoveFileResource": 73,
5838
- "PrivilegeListFileResources": 74
5943
+ "PrivilegeListFileResources": 74,
5944
+ "PrivilegeAddCollectionFunction": 75,
5945
+ "PrivilegeAlterCollectionFunction": 76,
5946
+ "PrivilegeDropCollectionFunction": 77
5839
5947
  }
5840
5948
  },
5841
5949
  "PrivilegeExt": {
@@ -5972,11 +6080,6 @@ exports.default = {
5972
6080
  "LOW": 1
5973
6081
  }
5974
6082
  },
5975
- "FileResourceType": {
5976
- "values": {
5977
- "ANALYZER_DICTIONARY": 0
5978
- }
5979
- },
5980
6083
  "WALName": {
5981
6084
  "values": {
5982
6085
  "Unknown": 0,
@@ -6090,6 +6193,47 @@ exports.default = {
6090
6193
  "id": 4
6091
6194
  }
6092
6195
  }
6196
+ },
6197
+ "HighlightData": {
6198
+ "fields": {
6199
+ "fragments": {
6200
+ "rule": "repeated",
6201
+ "type": "string",
6202
+ "id": 1
6203
+ }
6204
+ }
6205
+ },
6206
+ "HighlightResult": {
6207
+ "fields": {
6208
+ "field_name": {
6209
+ "type": "string",
6210
+ "id": 1
6211
+ },
6212
+ "datas": {
6213
+ "rule": "repeated",
6214
+ "type": "HighlightData",
6215
+ "id": 2
6216
+ }
6217
+ }
6218
+ },
6219
+ "HighlightType": {
6220
+ "values": {
6221
+ "Lexical": 0,
6222
+ "Semantic": 1
6223
+ }
6224
+ },
6225
+ "Highlighter": {
6226
+ "fields": {
6227
+ "type": {
6228
+ "type": "HighlightType",
6229
+ "id": 1
6230
+ },
6231
+ "params": {
6232
+ "rule": "repeated",
6233
+ "type": "KeyValuePair",
6234
+ "id": 2
6235
+ }
6236
+ }
6093
6237
  }
6094
6238
  }
6095
6239
  },
@@ -6874,6 +7018,11 @@ exports.default = {
6874
7018
  "primary_field_name": {
6875
7019
  "type": "string",
6876
7020
  "id": 13
7021
+ },
7022
+ "highlight_results": {
7023
+ "rule": "repeated",
7024
+ "type": "common.HighlightResult",
7025
+ "id": 14
6877
7026
  }
6878
7027
  }
6879
7028
  },