@zilliz/milvus2-sdk-node 2.5.11 → 2.6.0-rc2

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 (44) hide show
  1. package/dist/milvus/MilvusClient.js +2 -2
  2. package/dist/milvus/MilvusClient.js.map +1 -1
  3. package/dist/milvus/const/milvus.d.ts +5 -2
  4. package/dist/milvus/const/milvus.js +5 -0
  5. package/dist/milvus/const/milvus.js.map +1 -1
  6. package/dist/milvus/grpc/Collection.d.ts +63 -1
  7. package/dist/milvus/grpc/Collection.js +89 -0
  8. package/dist/milvus/grpc/Collection.js.map +1 -1
  9. package/dist/milvus/grpc/Data.js +7 -1
  10. package/dist/milvus/grpc/Data.js.map +1 -1
  11. package/dist/milvus/index.d.ts +0 -1
  12. package/dist/milvus/index.js +0 -1
  13. package/dist/milvus/index.js.map +1 -1
  14. package/dist/milvus/proto-json/milvus.base.d.ts +422 -0
  15. package/dist/milvus/proto-json/milvus.base.js +436 -11
  16. package/dist/milvus/proto-json/milvus.base.js.map +1 -1
  17. package/dist/milvus/proto-json/milvus.d.ts +422 -0
  18. package/dist/milvus/proto-json/milvus.js +436 -11
  19. package/dist/milvus/proto-json/milvus.js.map +1 -1
  20. package/dist/milvus/proto-json/schema.base.d.ts +88 -0
  21. package/dist/milvus/proto-json/schema.base.js +97 -6
  22. package/dist/milvus/proto-json/schema.base.js.map +1 -1
  23. package/dist/milvus/types/Collection.d.ts +10 -0
  24. package/dist/milvus/types/Data.d.ts +7 -3
  25. package/dist/milvus/types/Data.js.map +1 -1
  26. package/dist/milvus/utils/Bytes.d.ts +13 -1
  27. package/dist/milvus/utils/Bytes.js +34 -1
  28. package/dist/milvus/utils/Bytes.js.map +1 -1
  29. package/dist/milvus/utils/Format.d.ts +47 -5
  30. package/dist/milvus/utils/Format.js +91 -54
  31. package/dist/milvus/utils/Format.js.map +1 -1
  32. package/dist/milvus/utils/Function.js +3 -0
  33. package/dist/milvus/utils/Function.js.map +1 -1
  34. package/dist/milvus/utils/Validate.js +2 -1
  35. package/dist/milvus/utils/Validate.js.map +1 -1
  36. package/dist/sdk.json +1 -1
  37. package/package.json +4 -6
  38. package/dist/milvus/MilvusLiteClient.d.ts +0 -5
  39. package/dist/milvus/MilvusLiteClient.js +0 -40
  40. package/dist/milvus/MilvusLiteClient.js.map +0 -1
  41. package/dist/milvus/lite/MilvusLiteServer.d.ts +0 -11
  42. package/dist/milvus/lite/MilvusLiteServer.js +0 -201
  43. package/dist/milvus/lite/MilvusLiteServer.js.map +0 -1
  44. package/dist/milvus/lite/start.py +0 -66
@@ -194,6 +194,10 @@ exports.default = {
194
194
  "requestType": "FlushAllRequest",
195
195
  "responseType": "FlushAllResponse"
196
196
  },
197
+ "AddCollectionField": {
198
+ "requestType": "AddCollectionFieldRequest",
199
+ "responseType": "common.Status"
200
+ },
197
201
  "GetFlushState": {
198
202
  "requestType": "GetFlushStateRequest",
199
203
  "responseType": "GetFlushStateResponse"
@@ -413,6 +417,34 @@ exports.default = {
413
417
  "RunAnalyzer": {
414
418
  "requestType": "RunAnalyzerRequest",
415
419
  "responseType": "RunAnalyzerResponse"
420
+ },
421
+ "AddUserTags": {
422
+ "requestType": "AddUserTagsRequest",
423
+ "responseType": "common.Status"
424
+ },
425
+ "DeleteUserTags": {
426
+ "requestType": "DeleteUserTagsRequest",
427
+ "responseType": "common.Status"
428
+ },
429
+ "GetUserTags": {
430
+ "requestType": "GetUserTagsRequest",
431
+ "responseType": "GetUserTagsResponse"
432
+ },
433
+ "ListUsersWithTag": {
434
+ "requestType": "ListUsersWithTagRequest",
435
+ "responseType": "ListUsersWithTagResponse"
436
+ },
437
+ "CreateRowPolicy": {
438
+ "requestType": "CreateRowPolicyRequest",
439
+ "responseType": "common.Status"
440
+ },
441
+ "DropRowPolicy": {
442
+ "requestType": "DropRowPolicyRequest",
443
+ "responseType": "common.Status"
444
+ },
445
+ "ListRowPolicies": {
446
+ "requestType": "ListRowPoliciesRequest",
447
+ "responseType": "ListRowPoliciesResponse"
416
448
  }
417
449
  }
418
450
  },
@@ -1740,6 +1772,35 @@ exports.default = {
1740
1772
  }
1741
1773
  }
1742
1774
  },
1775
+ "AddCollectionFieldRequest": {
1776
+ "options": {
1777
+ "(common.privilege_ext_obj).object_type": "Collection",
1778
+ "(common.privilege_ext_obj).object_privilege": "PrivilegeAddCollectionField",
1779
+ "(common.privilege_ext_obj).object_name_index": 3
1780
+ },
1781
+ "fields": {
1782
+ "base": {
1783
+ "type": "common.MsgBase",
1784
+ "id": 1
1785
+ },
1786
+ "db_name": {
1787
+ "type": "string",
1788
+ "id": 2
1789
+ },
1790
+ "collection_name": {
1791
+ "type": "string",
1792
+ "id": 3
1793
+ },
1794
+ "collectionID": {
1795
+ "type": "int64",
1796
+ "id": 4
1797
+ },
1798
+ "schema": {
1799
+ "type": "bytes",
1800
+ "id": 5
1801
+ }
1802
+ }
1803
+ },
1743
1804
  "UpsertRequest": {
1744
1805
  "options": {
1745
1806
  "(common.privilege_ext_obj).object_type": "Collection",
@@ -1981,6 +2042,10 @@ exports.default = {
1981
2042
  "keyType": "string",
1982
2043
  "type": "schema.TemplateValue",
1983
2044
  "id": 18
2045
+ },
2046
+ "function_score": {
2047
+ "type": "schema.FunctionScore",
2048
+ "id": 19
1984
2049
  }
1985
2050
  }
1986
2051
  },
@@ -2081,6 +2146,10 @@ exports.default = {
2081
2146
  "use_default_consistency": {
2082
2147
  "type": "bool",
2083
2148
  "id": 12
2149
+ },
2150
+ "function_score": {
2151
+ "type": "schema.FunctionScore",
2152
+ "id": 13
2084
2153
  }
2085
2154
  }
2086
2155
  },
@@ -4413,8 +4482,8 @@ exports.default = {
4413
4482
  },
4414
4483
  "GetImportProgressAuthPlaceholder": {
4415
4484
  "options": {
4416
- "(common.privilege_ext_obj).object_type": "Collection",
4417
- "(common.privilege_ext_obj).object_privilege": "PrivilegeImport",
4485
+ "(common.privilege_ext_obj).object_type": "Global",
4486
+ "(common.privilege_ext_obj).object_privilege": "PrivilegeGetImportProgress",
4418
4487
  "(common.privilege_ext_obj).object_name_index": -1
4419
4488
  },
4420
4489
  "fields": {
@@ -4426,9 +4495,9 @@ exports.default = {
4426
4495
  },
4427
4496
  "ListImportsAuthPlaceholder": {
4428
4497
  "options": {
4429
- "(common.privilege_ext_obj).object_type": "Collection",
4430
- "(common.privilege_ext_obj).object_privilege": "PrivilegeImport",
4431
- "(common.privilege_ext_obj).object_name_index": 1
4498
+ "(common.privilege_ext_obj).object_type": "Global",
4499
+ "(common.privilege_ext_obj).object_privilege": "PrivilegeListImport",
4500
+ "(common.privilege_ext_obj).object_name_index": -1
4432
4501
  },
4433
4502
  "fields": {
4434
4503
  "db_name": {
@@ -4532,6 +4601,271 @@ exports.default = {
4532
4601
  "id": 2
4533
4602
  }
4534
4603
  }
4604
+ },
4605
+ "RowPolicyAction": {
4606
+ "values": {
4607
+ "Query": 0,
4608
+ "Search": 1,
4609
+ "Insert": 2,
4610
+ "Delete": 3,
4611
+ "Upsert": 4
4612
+ }
4613
+ },
4614
+ "AddUserTagsRequest": {
4615
+ "options": {
4616
+ "(common.privilege_ext_obj).object_type": "User",
4617
+ "(common.privilege_ext_obj).object_privilege": "PrivilegeUpdateUser",
4618
+ "(common.privilege_ext_obj).object_name_index": 2
4619
+ },
4620
+ "fields": {
4621
+ "base": {
4622
+ "type": "common.MsgBase",
4623
+ "id": 1
4624
+ },
4625
+ "user_name": {
4626
+ "type": "string",
4627
+ "id": 2
4628
+ },
4629
+ "tags": {
4630
+ "keyType": "string",
4631
+ "type": "string",
4632
+ "id": 3
4633
+ }
4634
+ }
4635
+ },
4636
+ "DeleteUserTagsRequest": {
4637
+ "options": {
4638
+ "(common.privilege_ext_obj).object_type": "User",
4639
+ "(common.privilege_ext_obj).object_privilege": "PrivilegeUpdateUser",
4640
+ "(common.privilege_ext_obj).object_name_index": 2
4641
+ },
4642
+ "fields": {
4643
+ "base": {
4644
+ "type": "common.MsgBase",
4645
+ "id": 1
4646
+ },
4647
+ "user_name": {
4648
+ "type": "string",
4649
+ "id": 2
4650
+ },
4651
+ "tag_keys": {
4652
+ "rule": "repeated",
4653
+ "type": "string",
4654
+ "id": 3
4655
+ }
4656
+ }
4657
+ },
4658
+ "GetUserTagsRequest": {
4659
+ "options": {
4660
+ "(common.privilege_ext_obj).object_type": "User",
4661
+ "(common.privilege_ext_obj).object_privilege": "PrivilegeSelectUser",
4662
+ "(common.privilege_ext_obj).object_name_index": 2
4663
+ },
4664
+ "fields": {
4665
+ "base": {
4666
+ "type": "common.MsgBase",
4667
+ "id": 1
4668
+ },
4669
+ "user_name": {
4670
+ "type": "string",
4671
+ "id": 2
4672
+ }
4673
+ }
4674
+ },
4675
+ "GetUserTagsResponse": {
4676
+ "fields": {
4677
+ "status": {
4678
+ "type": "common.Status",
4679
+ "id": 1
4680
+ },
4681
+ "tags": {
4682
+ "keyType": "string",
4683
+ "type": "string",
4684
+ "id": 2
4685
+ }
4686
+ }
4687
+ },
4688
+ "ListUsersWithTagRequest": {
4689
+ "options": {
4690
+ "(common.privilege_ext_obj).object_type": "User",
4691
+ "(common.privilege_ext_obj).object_privilege": "PrivilegeSelectUser",
4692
+ "(common.privilege_ext_obj).object_name_index": -1
4693
+ },
4694
+ "fields": {
4695
+ "base": {
4696
+ "type": "common.MsgBase",
4697
+ "id": 1
4698
+ },
4699
+ "tag_key": {
4700
+ "type": "string",
4701
+ "id": 2
4702
+ },
4703
+ "tag_value": {
4704
+ "type": "string",
4705
+ "id": 3
4706
+ }
4707
+ }
4708
+ },
4709
+ "ListUsersWithTagResponse": {
4710
+ "fields": {
4711
+ "status": {
4712
+ "type": "common.Status",
4713
+ "id": 1
4714
+ },
4715
+ "user_names": {
4716
+ "rule": "repeated",
4717
+ "type": "string",
4718
+ "id": 2
4719
+ }
4720
+ }
4721
+ },
4722
+ "CreateRowPolicyRequest": {
4723
+ "options": {
4724
+ "(common.privilege_ext_obj).object_type": "Collection",
4725
+ "(common.privilege_ext_obj).object_privilege": "PrivilegeCreateOwnership",
4726
+ "(common.privilege_ext_obj).object_name_index": 3
4727
+ },
4728
+ "fields": {
4729
+ "base": {
4730
+ "type": "common.MsgBase",
4731
+ "id": 1
4732
+ },
4733
+ "db_name": {
4734
+ "type": "string",
4735
+ "id": 2
4736
+ },
4737
+ "collection_name": {
4738
+ "type": "string",
4739
+ "id": 3
4740
+ },
4741
+ "policy_name": {
4742
+ "type": "string",
4743
+ "id": 4
4744
+ },
4745
+ "actions": {
4746
+ "rule": "repeated",
4747
+ "type": "RowPolicyAction",
4748
+ "id": 5
4749
+ },
4750
+ "roles": {
4751
+ "rule": "repeated",
4752
+ "type": "string",
4753
+ "id": 6
4754
+ },
4755
+ "using_expr": {
4756
+ "type": "string",
4757
+ "id": 7
4758
+ },
4759
+ "check_expr": {
4760
+ "type": "string",
4761
+ "id": 8
4762
+ },
4763
+ "description": {
4764
+ "type": "string",
4765
+ "id": 9
4766
+ }
4767
+ }
4768
+ },
4769
+ "DropRowPolicyRequest": {
4770
+ "options": {
4771
+ "(common.privilege_ext_obj).object_type": "Collection",
4772
+ "(common.privilege_ext_obj).object_privilege": "PrivilegeDropOwnership",
4773
+ "(common.privilege_ext_obj).object_name_index": 3
4774
+ },
4775
+ "fields": {
4776
+ "base": {
4777
+ "type": "common.MsgBase",
4778
+ "id": 1
4779
+ },
4780
+ "db_name": {
4781
+ "type": "string",
4782
+ "id": 2
4783
+ },
4784
+ "collection_name": {
4785
+ "type": "string",
4786
+ "id": 3
4787
+ },
4788
+ "policy_name": {
4789
+ "type": "string",
4790
+ "id": 4
4791
+ }
4792
+ }
4793
+ },
4794
+ "ListRowPoliciesRequest": {
4795
+ "options": {
4796
+ "(common.privilege_ext_obj).object_type": "Collection",
4797
+ "(common.privilege_ext_obj).object_privilege": "PrivilegeSelectOwnership",
4798
+ "(common.privilege_ext_obj).object_name_index": 3
4799
+ },
4800
+ "fields": {
4801
+ "base": {
4802
+ "type": "common.MsgBase",
4803
+ "id": 1
4804
+ },
4805
+ "db_name": {
4806
+ "type": "string",
4807
+ "id": 2
4808
+ },
4809
+ "collection_name": {
4810
+ "type": "string",
4811
+ "id": 3
4812
+ }
4813
+ }
4814
+ },
4815
+ "RowPolicy": {
4816
+ "fields": {
4817
+ "policy_name": {
4818
+ "type": "string",
4819
+ "id": 1
4820
+ },
4821
+ "actions": {
4822
+ "rule": "repeated",
4823
+ "type": "RowPolicyAction",
4824
+ "id": 2
4825
+ },
4826
+ "roles": {
4827
+ "rule": "repeated",
4828
+ "type": "string",
4829
+ "id": 3
4830
+ },
4831
+ "using_expr": {
4832
+ "type": "string",
4833
+ "id": 4
4834
+ },
4835
+ "check_expr": {
4836
+ "type": "string",
4837
+ "id": 5
4838
+ },
4839
+ "description": {
4840
+ "type": "string",
4841
+ "id": 6
4842
+ },
4843
+ "created_at": {
4844
+ "type": "int64",
4845
+ "id": 7
4846
+ }
4847
+ }
4848
+ },
4849
+ "ListRowPoliciesResponse": {
4850
+ "fields": {
4851
+ "status": {
4852
+ "type": "common.Status",
4853
+ "id": 1
4854
+ },
4855
+ "policies": {
4856
+ "rule": "repeated",
4857
+ "type": "RowPolicy",
4858
+ "id": 2
4859
+ },
4860
+ "db_name": {
4861
+ "type": "string",
4862
+ "id": 3
4863
+ },
4864
+ "collection_name": {
4865
+ "type": "string",
4866
+ "id": 4
4867
+ }
4868
+ }
4535
4869
  }
4536
4870
  }
4537
4871
  },
@@ -4718,6 +5052,7 @@ exports.default = {
4718
5052
  "Float16Vector": 102,
4719
5053
  "BFloat16Vector": 103,
4720
5054
  "SparseFloatVector": 104,
5055
+ "Int8Vector": 105,
4721
5056
  "Int64": 5,
4722
5057
  "VarChar": 21
4723
5058
  }
@@ -4877,7 +5212,8 @@ exports.default = {
4877
5212
  "DropDatabase": 1802,
4878
5213
  "ListDatabases": 1803,
4879
5214
  "AlterDatabase": 1804,
4880
- "DescribeDatabase": 1805
5215
+ "DescribeDatabase": 1805,
5216
+ "AddCollectionField": 1900
4881
5217
  }
4882
5218
  },
4883
5219
  "MsgBase": {
@@ -5059,7 +5395,10 @@ exports.default = {
5059
5395
  "PrivilegeGroupDatabaseAdmin": 65,
5060
5396
  "PrivilegeGroupCollectionReadOnly": 66,
5061
5397
  "PrivilegeGroupCollectionReadWrite": 67,
5062
- "PrivilegeGroupCollectionAdmin": 68
5398
+ "PrivilegeGroupCollectionAdmin": 68,
5399
+ "PrivilegeGetImportProgress": 69,
5400
+ "PrivilegeListImport": 70,
5401
+ "PrivilegeAddCollectionField": 71
5063
5402
  }
5064
5403
  },
5065
5404
  "PrivilegeExt": {
@@ -5286,18 +5625,23 @@ exports.default = {
5286
5625
  "Array": 22,
5287
5626
  "JSON": 23,
5288
5627
  "Geometry": 24,
5628
+ "Text": 25,
5289
5629
  "BinaryVector": 100,
5290
5630
  "FloatVector": 101,
5291
5631
  "Float16Vector": 102,
5292
5632
  "BFloat16Vector": 103,
5293
- "SparseFloatVector": 104
5633
+ "SparseFloatVector": 104,
5634
+ "Int8Vector": 105,
5635
+ "ArrayOfVector": 106,
5636
+ "ArrayOfStruct": 200
5294
5637
  }
5295
5638
  },
5296
5639
  "FunctionType": {
5297
5640
  "values": {
5298
5641
  "Unknown": 0,
5299
5642
  "BM25": 1,
5300
- "TextEmbedding": 2
5643
+ "TextEmbedding": 2,
5644
+ "Rerank": 3
5301
5645
  }
5302
5646
  },
5303
5647
  "FieldState": {
@@ -5423,6 +5767,20 @@ exports.default = {
5423
5767
  }
5424
5768
  }
5425
5769
  },
5770
+ "FunctionScore": {
5771
+ "fields": {
5772
+ "functions": {
5773
+ "rule": "repeated",
5774
+ "type": "FunctionSchema",
5775
+ "id": 1
5776
+ },
5777
+ "params": {
5778
+ "rule": "repeated",
5779
+ "type": "common.KeyValuePair",
5780
+ "id": 2
5781
+ }
5782
+ }
5783
+ },
5426
5784
  "CollectionSchema": {
5427
5785
  "fields": {
5428
5786
  "name": {
@@ -5462,6 +5820,32 @@ exports.default = {
5462
5820
  "dbName": {
5463
5821
  "type": "string",
5464
5822
  "id": 8
5823
+ },
5824
+ "struct_array_fields": {
5825
+ "rule": "repeated",
5826
+ "type": "StructArrayFieldSchema",
5827
+ "id": 9
5828
+ }
5829
+ }
5830
+ },
5831
+ "StructArrayFieldSchema": {
5832
+ "fields": {
5833
+ "fieldID": {
5834
+ "type": "int64",
5835
+ "id": 1
5836
+ },
5837
+ "name": {
5838
+ "type": "string",
5839
+ "id": 2
5840
+ },
5841
+ "description": {
5842
+ "type": "string",
5843
+ "id": 3
5844
+ },
5845
+ "fields": {
5846
+ "rule": "repeated",
5847
+ "type": "FieldSchema",
5848
+ "id": 4
5465
5849
  }
5466
5850
  }
5467
5851
  },
@@ -5685,7 +6069,9 @@ exports.default = {
5685
6069
  "binary_vector",
5686
6070
  "float16_vector",
5687
6071
  "bfloat16_vector",
5688
- "sparse_float_vector"
6072
+ "sparse_float_vector",
6073
+ "int8_vector",
6074
+ "vector_array"
5689
6075
  ]
5690
6076
  }
5691
6077
  },
@@ -5713,6 +6099,40 @@ exports.default = {
5713
6099
  "sparse_float_vector": {
5714
6100
  "type": "SparseFloatArray",
5715
6101
  "id": 6
6102
+ },
6103
+ "int8_vector": {
6104
+ "type": "bytes",
6105
+ "id": 7
6106
+ },
6107
+ "vector_array": {
6108
+ "type": "VectorArray",
6109
+ "id": 8
6110
+ }
6111
+ }
6112
+ },
6113
+ "VectorArray": {
6114
+ "fields": {
6115
+ "dim": {
6116
+ "type": "int64",
6117
+ "id": 1
6118
+ },
6119
+ "data": {
6120
+ "rule": "repeated",
6121
+ "type": "VectorField",
6122
+ "id": 2
6123
+ },
6124
+ "element_type": {
6125
+ "type": "DataType",
6126
+ "id": 3
6127
+ }
6128
+ }
6129
+ },
6130
+ "StructArrayField": {
6131
+ "fields": {
6132
+ "fields": {
6133
+ "rule": "repeated",
6134
+ "type": "FieldData",
6135
+ "id": 1
5716
6136
  }
5717
6137
  }
5718
6138
  },
@@ -5721,7 +6141,8 @@ exports.default = {
5721
6141
  "field": {
5722
6142
  "oneof": [
5723
6143
  "scalars",
5724
- "vectors"
6144
+ "vectors",
6145
+ "struct_arrays"
5725
6146
  ]
5726
6147
  }
5727
6148
  },
@@ -5742,6 +6163,10 @@ exports.default = {
5742
6163
  "type": "VectorField",
5743
6164
  "id": 4
5744
6165
  },
6166
+ "struct_arrays": {
6167
+ "type": "StructArrayField",
6168
+ "id": 8
6169
+ },
5745
6170
  "field_id": {
5746
6171
  "type": "int64",
5747
6172
  "id": 5