@zilliz/milvus2-sdk-node 2.6.9 → 2.6.11

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 (59) hide show
  1. package/README.md +24 -196
  2. package/dist/milvus/HttpClient.d.ts +39 -0
  3. package/dist/milvus/HttpClient.js +1 -1
  4. package/dist/milvus/HttpClient.js.map +1 -1
  5. package/dist/milvus/const/client.d.ts +3 -1
  6. package/dist/milvus/const/client.js +2 -0
  7. package/dist/milvus/const/client.js.map +1 -1
  8. package/dist/milvus/const/error.d.ts +2 -0
  9. package/dist/milvus/const/error.js +2 -0
  10. package/dist/milvus/const/error.js.map +1 -1
  11. package/dist/milvus/grpc/BaseClient.js +1 -1
  12. package/dist/milvus/grpc/Collection.d.ts +86 -1
  13. package/dist/milvus/grpc/Collection.js +138 -0
  14. package/dist/milvus/grpc/Collection.js.map +1 -1
  15. package/dist/milvus/grpc/Data.js +5 -2
  16. package/dist/milvus/grpc/Data.js.map +1 -1
  17. package/dist/milvus/grpc/GrpcClient.js +2 -0
  18. package/dist/milvus/grpc/GrpcClient.js.map +1 -1
  19. package/dist/milvus/http/Collection.d.ts +9 -1
  20. package/dist/milvus/http/Collection.js +48 -0
  21. package/dist/milvus/http/Collection.js.map +1 -1
  22. package/dist/milvus/http/Database.d.ts +42 -0
  23. package/dist/milvus/http/Database.js +71 -0
  24. package/dist/milvus/http/Database.js.map +1 -0
  25. package/dist/milvus/http/MilvusIndex.d.ts +3 -1
  26. package/dist/milvus/http/MilvusIndex.js +12 -0
  27. package/dist/milvus/http/MilvusIndex.js.map +1 -1
  28. package/dist/milvus/http/Vector.js +1 -1
  29. package/dist/milvus/http/Vector.js.map +1 -1
  30. package/dist/milvus/http/index.d.ts +1 -0
  31. package/dist/milvus/http/index.js +1 -0
  32. package/dist/milvus/http/index.js.map +1 -1
  33. package/dist/milvus/proto-json/milvus.base.d.ts +34 -514
  34. package/dist/milvus/proto-json/milvus.base.js +36 -522
  35. package/dist/milvus/proto-json/milvus.base.js.map +1 -1
  36. package/dist/milvus/proto-json/milvus.d.ts +90 -570
  37. package/dist/milvus/proto-json/milvus.js +92 -578
  38. package/dist/milvus/proto-json/milvus.js.map +1 -1
  39. package/dist/milvus/proto-json/schema.base.d.ts +6 -44
  40. package/dist/milvus/proto-json/schema.base.js +8 -46
  41. package/dist/milvus/proto-json/schema.base.js.map +1 -1
  42. package/dist/milvus/types/Collection.d.ts +16 -0
  43. package/dist/milvus/types/Common.d.ts +2 -0
  44. package/dist/milvus/types/Http.d.ts +99 -0
  45. package/dist/milvus/types/Search.d.ts +4 -2
  46. package/dist/milvus/utils/Function.d.ts +18 -4
  47. package/dist/milvus/utils/Function.js +56 -7
  48. package/dist/milvus/utils/Function.js.map +1 -1
  49. package/dist/milvus/utils/Grpc.d.ts +6 -0
  50. package/dist/milvus/utils/Grpc.js +29 -1
  51. package/dist/milvus/utils/Grpc.js.map +1 -1
  52. package/dist/milvus/utils/Schema.d.ts +12 -1
  53. package/dist/milvus/utils/Schema.js +21 -1
  54. package/dist/milvus/utils/Schema.js.map +1 -1
  55. package/dist/milvus/utils/Search.d.ts +16 -0
  56. package/dist/milvus/utils/Search.js +47 -3
  57. package/dist/milvus/utils/Search.js.map +1 -1
  58. package/dist/sdk.json +1 -1
  59. package/package.json +10 -5
@@ -482,6 +482,10 @@ exports.default = {
482
482
  "requestType": "UpdateReplicateConfigurationRequest",
483
483
  "responseType": "common.Status"
484
484
  },
485
+ "GetReplicateConfiguration": {
486
+ "requestType": "GetReplicateConfigurationRequest",
487
+ "responseType": "GetReplicateConfigurationResponse"
488
+ },
485
489
  "GetReplicateInfo": {
486
490
  "requestType": "GetReplicateInfoRequest",
487
491
  "responseType": "GetReplicateInfoResponse"
@@ -491,42 +495,6 @@ exports.default = {
491
495
  "requestStream": true,
492
496
  "responseType": "ReplicateResponse",
493
497
  "responseStream": true
494
- },
495
- "ComputePhraseMatchSlop": {
496
- "requestType": "ComputePhraseMatchSlopRequest",
497
- "responseType": "ComputePhraseMatchSlopResponse"
498
- },
499
- "CreateSnapshot": {
500
- "requestType": "CreateSnapshotRequest",
501
- "responseType": "common.Status"
502
- },
503
- "DropSnapshot": {
504
- "requestType": "DropSnapshotRequest",
505
- "responseType": "common.Status"
506
- },
507
- "ListSnapshots": {
508
- "requestType": "ListSnapshotsRequest",
509
- "responseType": "ListSnapshotsResponse"
510
- },
511
- "DescribeSnapshot": {
512
- "requestType": "DescribeSnapshotRequest",
513
- "responseType": "DescribeSnapshotResponse"
514
- },
515
- "RestoreSnapshot": {
516
- "requestType": "RestoreSnapshotRequest",
517
- "responseType": "RestoreSnapshotResponse"
518
- },
519
- "GetRestoreSnapshotState": {
520
- "requestType": "GetRestoreSnapshotStateRequest",
521
- "responseType": "GetRestoreSnapshotStateResponse"
522
- },
523
- "ListRestoreSnapshotJobs": {
524
- "requestType": "ListRestoreSnapshotJobsRequest",
525
- "responseType": "ListRestoreSnapshotJobsResponse"
526
- },
527
- "AlterCollectionSchema": {
528
- "requestType": "AlterCollectionSchemaRequest",
529
- "responseType": "AlterCollectionSchemaResponse"
530
498
  }
531
499
  }
532
500
  },
@@ -5435,6 +5403,30 @@ exports.default = {
5435
5403
  "replicateConfiguration": {
5436
5404
  "type": "common.ReplicateConfiguration",
5437
5405
  "id": 1
5406
+ },
5407
+ "forcePromote": {
5408
+ "type": "bool",
5409
+ "id": 2
5410
+ }
5411
+ }
5412
+ },
5413
+ "GetReplicateConfigurationRequest": {
5414
+ "options": {
5415
+ "(common.privilege_ext_obj).object_type": "Global",
5416
+ "(common.privilege_ext_obj).object_privilege": "PrivilegeGetReplicateConfiguration",
5417
+ "(common.privilege_ext_obj).object_name_index": -1
5418
+ },
5419
+ "fields": {}
5420
+ },
5421
+ "GetReplicateConfigurationResponse": {
5422
+ "fields": {
5423
+ "status": {
5424
+ "type": "common.Status",
5425
+ "id": 1
5426
+ },
5427
+ "configuration": {
5428
+ "type": "common.ReplicateConfiguration",
5429
+ "id": 2
5438
5430
  }
5439
5431
  }
5440
5432
  },
@@ -5536,446 +5528,6 @@ exports.default = {
5536
5528
  "id": 1
5537
5529
  }
5538
5530
  }
5539
- },
5540
- "ComputePhraseMatchSlopRequest": {
5541
- "fields": {
5542
- "base": {
5543
- "type": "common.MsgBase",
5544
- "id": 1
5545
- },
5546
- "analyzerParams": {
5547
- "type": "string",
5548
- "id": 2
5549
- },
5550
- "queryText": {
5551
- "type": "string",
5552
- "id": 3
5553
- },
5554
- "dataTexts": {
5555
- "rule": "repeated",
5556
- "type": "string",
5557
- "id": 4
5558
- }
5559
- }
5560
- },
5561
- "ComputePhraseMatchSlopResponse": {
5562
- "fields": {
5563
- "status": {
5564
- "type": "common.Status",
5565
- "id": 1
5566
- },
5567
- "isMatch": {
5568
- "rule": "repeated",
5569
- "type": "bool",
5570
- "id": 2
5571
- },
5572
- "slops": {
5573
- "rule": "repeated",
5574
- "type": "int64",
5575
- "id": 3
5576
- }
5577
- }
5578
- },
5579
- "CreateSnapshotRequest": {
5580
- "options": {
5581
- "(common.privilege_ext_obj).object_type": "Global",
5582
- "(common.privilege_ext_obj).object_privilege": "PrivilegeCreateSnapshot",
5583
- "(common.privilege_ext_obj).object_name_index": -1
5584
- },
5585
- "fields": {
5586
- "base": {
5587
- "type": "common.MsgBase",
5588
- "id": 1
5589
- },
5590
- "name": {
5591
- "type": "string",
5592
- "id": 2
5593
- },
5594
- "description": {
5595
- "type": "string",
5596
- "id": 3
5597
- },
5598
- "dbName": {
5599
- "type": "string",
5600
- "id": 4
5601
- },
5602
- "collectionName": {
5603
- "type": "string",
5604
- "id": 5
5605
- }
5606
- }
5607
- },
5608
- "DropSnapshotRequest": {
5609
- "options": {
5610
- "(common.privilege_ext_obj).object_type": "Global",
5611
- "(common.privilege_ext_obj).object_privilege": "PrivilegeDropSnapshot",
5612
- "(common.privilege_ext_obj).object_name_index": -1
5613
- },
5614
- "fields": {
5615
- "base": {
5616
- "type": "common.MsgBase",
5617
- "id": 1
5618
- },
5619
- "name": {
5620
- "type": "string",
5621
- "id": 2
5622
- }
5623
- }
5624
- },
5625
- "ListSnapshotsRequest": {
5626
- "options": {
5627
- "(common.privilege_ext_obj).object_type": "Global",
5628
- "(common.privilege_ext_obj).object_privilege": "PrivilegeListSnapshots",
5629
- "(common.privilege_ext_obj).object_name_index": -1
5630
- },
5631
- "fields": {
5632
- "base": {
5633
- "type": "common.MsgBase",
5634
- "id": 1
5635
- },
5636
- "dbName": {
5637
- "type": "string",
5638
- "id": 2
5639
- },
5640
- "collectionName": {
5641
- "type": "string",
5642
- "id": 3
5643
- }
5644
- }
5645
- },
5646
- "ListSnapshotsResponse": {
5647
- "fields": {
5648
- "status": {
5649
- "type": "common.Status",
5650
- "id": 1
5651
- },
5652
- "snapshots": {
5653
- "rule": "repeated",
5654
- "type": "string",
5655
- "id": 2
5656
- }
5657
- }
5658
- },
5659
- "DescribeSnapshotRequest": {
5660
- "options": {
5661
- "(common.privilege_ext_obj).object_type": "Global",
5662
- "(common.privilege_ext_obj).object_privilege": "PrivilegeDescribeSnapshot",
5663
- "(common.privilege_ext_obj).object_name_index": -1
5664
- },
5665
- "fields": {
5666
- "base": {
5667
- "type": "common.MsgBase",
5668
- "id": 1
5669
- },
5670
- "name": {
5671
- "type": "string",
5672
- "id": 2
5673
- }
5674
- }
5675
- },
5676
- "DescribeSnapshotResponse": {
5677
- "fields": {
5678
- "status": {
5679
- "type": "common.Status",
5680
- "id": 1
5681
- },
5682
- "name": {
5683
- "type": "string",
5684
- "id": 2
5685
- },
5686
- "description": {
5687
- "type": "string",
5688
- "id": 3
5689
- },
5690
- "collectionName": {
5691
- "type": "string",
5692
- "id": 4
5693
- },
5694
- "partitionNames": {
5695
- "rule": "repeated",
5696
- "type": "string",
5697
- "id": 5
5698
- },
5699
- "createTs": {
5700
- "type": "int64",
5701
- "id": 6
5702
- },
5703
- "s3Location": {
5704
- "type": "string",
5705
- "id": 7
5706
- }
5707
- }
5708
- },
5709
- "RestoreSnapshotRequest": {
5710
- "options": {
5711
- "(common.privilege_ext_obj).object_type": "Global",
5712
- "(common.privilege_ext_obj).object_privilege": "PrivilegeRestoreSnapshot",
5713
- "(common.privilege_ext_obj).object_name_index": -1
5714
- },
5715
- "fields": {
5716
- "base": {
5717
- "type": "common.MsgBase",
5718
- "id": 1
5719
- },
5720
- "name": {
5721
- "type": "string",
5722
- "id": 2
5723
- },
5724
- "dbName": {
5725
- "type": "string",
5726
- "id": 3
5727
- },
5728
- "collectionName": {
5729
- "type": "string",
5730
- "id": 4
5731
- },
5732
- "rewriteData": {
5733
- "type": "bool",
5734
- "id": 5
5735
- }
5736
- }
5737
- },
5738
- "RestoreSnapshotResponse": {
5739
- "fields": {
5740
- "status": {
5741
- "type": "common.Status",
5742
- "id": 1
5743
- },
5744
- "jobId": {
5745
- "type": "int64",
5746
- "id": 2
5747
- }
5748
- }
5749
- },
5750
- "RestoreSnapshotState": {
5751
- "values": {
5752
- "RestoreSnapshotNone": 0,
5753
- "RestoreSnapshotPending": 1,
5754
- "RestoreSnapshotExecuting": 2,
5755
- "RestoreSnapshotCompleted": 3,
5756
- "RestoreSnapshotFailed": 4
5757
- }
5758
- },
5759
- "RestoreSnapshotInfo": {
5760
- "fields": {
5761
- "jobId": {
5762
- "type": "int64",
5763
- "id": 1
5764
- },
5765
- "snapshotName": {
5766
- "type": "string",
5767
- "id": 2
5768
- },
5769
- "dbName": {
5770
- "type": "string",
5771
- "id": 3
5772
- },
5773
- "collectionName": {
5774
- "type": "string",
5775
- "id": 4
5776
- },
5777
- "state": {
5778
- "type": "RestoreSnapshotState",
5779
- "id": 5
5780
- },
5781
- "progress": {
5782
- "type": "int32",
5783
- "id": 6
5784
- },
5785
- "reason": {
5786
- "type": "string",
5787
- "id": 7
5788
- },
5789
- "startTime": {
5790
- "type": "uint64",
5791
- "id": 8
5792
- },
5793
- "timeCost": {
5794
- "type": "uint64",
5795
- "id": 9
5796
- }
5797
- }
5798
- },
5799
- "GetRestoreSnapshotStateRequest": {
5800
- "options": {
5801
- "(common.privilege_ext_obj).object_type": "Global",
5802
- "(common.privilege_ext_obj).object_privilege": "PrivilegeRestoreSnapshot",
5803
- "(common.privilege_ext_obj).object_name_index": -1
5804
- },
5805
- "fields": {
5806
- "base": {
5807
- "type": "common.MsgBase",
5808
- "id": 1
5809
- },
5810
- "jobId": {
5811
- "type": "int64",
5812
- "id": 2
5813
- }
5814
- }
5815
- },
5816
- "GetRestoreSnapshotStateResponse": {
5817
- "fields": {
5818
- "status": {
5819
- "type": "common.Status",
5820
- "id": 1
5821
- },
5822
- "info": {
5823
- "type": "RestoreSnapshotInfo",
5824
- "id": 2
5825
- }
5826
- }
5827
- },
5828
- "ListRestoreSnapshotJobsRequest": {
5829
- "options": {
5830
- "(common.privilege_ext_obj).object_type": "Global",
5831
- "(common.privilege_ext_obj).object_privilege": "PrivilegeRestoreSnapshot",
5832
- "(common.privilege_ext_obj).object_name_index": -1
5833
- },
5834
- "fields": {
5835
- "base": {
5836
- "type": "common.MsgBase",
5837
- "id": 1
5838
- },
5839
- "dbName": {
5840
- "type": "string",
5841
- "id": 2
5842
- },
5843
- "collectionName": {
5844
- "type": "string",
5845
- "id": 3
5846
- }
5847
- }
5848
- },
5849
- "ListRestoreSnapshotJobsResponse": {
5850
- "fields": {
5851
- "status": {
5852
- "type": "common.Status",
5853
- "id": 1
5854
- },
5855
- "jobs": {
5856
- "rule": "repeated",
5857
- "type": "RestoreSnapshotInfo",
5858
- "id": 2
5859
- }
5860
- }
5861
- },
5862
- "AlterCollectionSchemaRequest": {
5863
- "options": {
5864
- "(common.privilege_ext_obj).object_type": "Collection",
5865
- "(common.privilege_ext_obj).object_privilege": "PrivilegeAlterCollectionSchema",
5866
- "(common.privilege_ext_obj).object_name_index": 3
5867
- },
5868
- "fields": {
5869
- "base": {
5870
- "type": "common.MsgBase",
5871
- "id": 1
5872
- },
5873
- "dbName": {
5874
- "type": "string",
5875
- "id": 2
5876
- },
5877
- "collectionName": {
5878
- "type": "string",
5879
- "id": 3
5880
- },
5881
- "collectionID": {
5882
- "type": "int64",
5883
- "id": 4
5884
- },
5885
- "action": {
5886
- "type": "Action",
5887
- "id": 5
5888
- }
5889
- },
5890
- "nested": {
5891
- "FieldInfo": {
5892
- "fields": {
5893
- "fieldSchema": {
5894
- "type": "schema.FieldSchema",
5895
- "id": 1
5896
- },
5897
- "indexName": {
5898
- "type": "string",
5899
- "id": 2
5900
- },
5901
- "extraParams": {
5902
- "rule": "repeated",
5903
- "type": "common.KeyValuePair",
5904
- "id": 3
5905
- }
5906
- }
5907
- },
5908
- "AddRequest": {
5909
- "fields": {
5910
- "fieldInfos": {
5911
- "rule": "repeated",
5912
- "type": "FieldInfo",
5913
- "id": 1
5914
- },
5915
- "funcSchema": {
5916
- "rule": "repeated",
5917
- "type": "schema.FunctionSchema",
5918
- "id": 2
5919
- },
5920
- "doPhysicalBackfill": {
5921
- "type": "bool",
5922
- "id": 3
5923
- }
5924
- }
5925
- },
5926
- "DropRequest": {
5927
- "oneofs": {
5928
- "fieldIdentifier": {
5929
- "oneof": [
5930
- "fieldName",
5931
- "fieldId"
5932
- ]
5933
- }
5934
- },
5935
- "fields": {
5936
- "fieldName": {
5937
- "type": "string",
5938
- "id": 1
5939
- },
5940
- "fieldId": {
5941
- "type": "int64",
5942
- "id": 2
5943
- }
5944
- }
5945
- },
5946
- "Action": {
5947
- "oneofs": {
5948
- "op": {
5949
- "oneof": [
5950
- "addRequest",
5951
- "dropRequest"
5952
- ]
5953
- }
5954
- },
5955
- "fields": {
5956
- "addRequest": {
5957
- "type": "AddRequest",
5958
- "id": 1
5959
- },
5960
- "dropRequest": {
5961
- "type": "DropRequest",
5962
- "id": 2
5963
- }
5964
- }
5965
- }
5966
- }
5967
- },
5968
- "AlterCollectionSchemaResponse": {
5969
- "fields": {
5970
- "alterStatus": {
5971
- "type": "common.Status",
5972
- "id": 1
5973
- },
5974
- "indexStatus": {
5975
- "type": "common.Status",
5976
- "id": 2
5977
- }
5978
- }
5979
5531
  }
5980
5532
  }
5981
5533
  },
@@ -6187,10 +5739,6 @@ exports.default = {
6187
5739
  "rule": "repeated",
6188
5740
  "type": "bytes",
6189
5741
  "id": 3
6190
- },
6191
- "elementLevel": {
6192
- "type": "bool",
6193
- "id": 4
6194
5742
  }
6195
5743
  }
6196
5744
  },
@@ -6339,15 +5887,7 @@ exports.default = {
6339
5887
  "AlterDatabase": 1804,
6340
5888
  "DescribeDatabase": 1805,
6341
5889
  "AddCollectionField": 1900,
6342
- "AlterWAL": 2000,
6343
- "CreateSnapshot": 2100,
6344
- "DropSnapshot": 2101,
6345
- "ListSnapshots": 2102,
6346
- "DescribeSnapshot": 2103,
6347
- "RestoreSnapshot": 2104,
6348
- "GetRestoreSnapshotState": 2105,
6349
- "ListRestoreSnapshotJobs": 2106,
6350
- "AlterCollectionSchema": 2200
5890
+ "AlterWAL": 2000
6351
5891
  }
6352
5892
  },
6353
5893
  "MsgBase": {
@@ -6537,12 +6077,7 @@ exports.default = {
6537
6077
  "PrivilegeRemoveFileResource": 73,
6538
6078
  "PrivilegeListFileResources": 74,
6539
6079
  "PrivilegeUpdateReplicateConfiguration": 78,
6540
- "PrivilegeCreateSnapshot": 79,
6541
- "PrivilegeDropSnapshot": 80,
6542
- "PrivilegeDescribeSnapshot": 81,
6543
- "PrivilegeListSnapshots": 82,
6544
- "PrivilegeRestoreSnapshot": 83,
6545
- "PrivilegeAlterCollectionSchema": 84
6080
+ "PrivilegeGetReplicateConfiguration": 85
6546
6081
  }
6547
6082
  },
6548
6083
  "PrivilegeExt": {
@@ -6799,6 +6334,11 @@ exports.default = {
6799
6334
  "rule": "repeated",
6800
6335
  "type": "string",
6801
6336
  "id": 1
6337
+ },
6338
+ "scores": {
6339
+ "rule": "repeated",
6340
+ "type": "float",
6341
+ "id": 2
6802
6342
  }
6803
6343
  }
6804
6344
  },
@@ -6942,8 +6482,7 @@ exports.default = {
6942
6482
  "Unknown": 0,
6943
6483
  "BM25": 1,
6944
6484
  "TextEmbedding": 2,
6945
- "Rerank": 3,
6946
- "MinHash": 4
6485
+ "Rerank": 3
6947
6486
  }
6948
6487
  },
6949
6488
  "FieldState": {
@@ -7021,10 +6560,6 @@ exports.default = {
7021
6560
  "isFunctionOutput": {
7022
6561
  "type": "bool",
7023
6562
  "id": 16
7024
- },
7025
- "externalField": {
7026
- "type": "string",
7027
- "id": 17
7028
6563
  }
7029
6564
  }
7030
6565
  },
@@ -7136,23 +6671,6 @@ exports.default = {
7136
6671
  "type": "int32",
7137
6672
  "id": 10
7138
6673
  },
7139
- "externalSource": {
7140
- "type": "string",
7141
- "id": 11
7142
- },
7143
- "externalSpec": {
7144
- "type": "string",
7145
- "id": 12
7146
- },
7147
- "doPhysicalBackfill": {
7148
- "type": "bool",
7149
- "id": 13
7150
- },
7151
- "fileResourceIds": {
7152
- "rule": "repeated",
7153
- "type": "int64",
7154
- "id": 14
7155
- },
7156
6674
  "enableNamespace": {
7157
6675
  "type": "bool",
7158
6676
  "id": 15
@@ -7657,10 +7175,6 @@ exports.default = {
7657
7175
  "rule": "repeated",
7658
7176
  "type": "common.HighlightResult",
7659
7177
  "id": 14
7660
- },
7661
- "elementIndices": {
7662
- "type": "LongArray",
7663
- "id": 15
7664
7178
  }
7665
7179
  }
7666
7180
  },