export declare enum MetricType { GHOST = 0, L2 = 1, IP = 2, HAMMING = 3, JACCARD = 4, TANIMOTO = 5, SUBSTRUCTURE = 6, SUPERSTRUCTURE = 7 } export declare enum IndexType { INVALID = 0, FLAT = 1, IVFFLAT = 2, IVFSQ8 = 3, RNSG = 4, IVFSQ8H = 5, IVFPQ = 6, SPTAGKDT = 7, SPTAGBKT = 8, HNSW = 11, ANNOY = 12 } export declare enum MsgType { Undefined = 0, CreateCollection = 100, DropCollection = 101, HasCollection = 102, DescribeCollection = 103, ShowCollections = 104, GetSystemConfigs = 105, LoadCollection = 106, ReleaseCollection = 107, CreateAlias = 108, DropAlias = 109, AlterAlias = 110, AlterCollection = 111, CreatePartition = 200, DropPartition = 201, HasPartition = 202, DescribePartition = 203, ShowPartitions = 204, LoadPartitions = 205, ReleasePartitions = 206, ShowSegments = 250, DescribeSegment = 251, LoadSegments = 252, ReleaseSegments = 253, HandoffSegments = 254, LoadBalanceSegments = 255, DescribeSegments = 256, CreateIndex = 300, DescribeIndex = 301, DropIndex = 302, Insert = 400, Delete = 401, Flush = 402, ResendSegmentStats = 403, Search = 500, SearchResult = 501, GetIndexState = 502, GetIndexBuildProgress = 503, GetCollectionStatistics = 504, GetPartitionStatistics = 505, Retrieve = 506, RetrieveResult = 507, WatchDmChannels = 508, RemoveDmChannels = 509, WatchQueryChannels = 510, RemoveQueryChannels = 511, SealedSegmentsChangeInfo = 512, WatchDeltaChannels = 513, GetShardLeaders = 514, GetReplicas = 515, UnsubDmChannel = 516, GetDistribution = 517, SyncDistribution = 518, SegmentInfo = 600, SystemInfo = 601, GetRecoveryInfo = 602, GetSegmentState = 603, TimeTick = 1200, QueryNodeStats = 1201, LoadIndex = 1202, RequestID = 1203, RequestTSO = 1204, AllocateSegment = 1205, SegmentStatistics = 1206, SegmentFlushDone = 1207, DataNodeTt = 1208, CreateCredential = 1500, GetCredential = 1501, DeleteCredential = 1502, UpdateCredential = 1503, ListCredUsernames = 1504, CreateRole = 1600, DropRole = 1601, OperateUserRole = 1602, SelectRole = 1603, SelectUser = 1604, SelectResource = 1605, OperatePrivilege = 1606, SelectGrant = 1607, RefreshPolicyInfoCache = 1608, ListPolicy = 1609 } export interface MsgBase { base: { msg_type: MsgType; }; } /** * @brief Field data type */ export declare enum DataType { None = 0, Bool = 1, Int8 = 2, Int16 = 3, Int32 = 4, Int64 = 5, Float = 10, Double = 11, String = 20, VarChar = 21, BinaryVector = 100, FloatVector = 101 } export declare const DataTypeMap: { [x: string]: number; }; export interface KeyValuePair { key: string; value: string | number; } export declare enum IndexState { IndexStateNone = 0, Unissued = 1, InProgress = 2, Finished = 3, Failed = 4 } export declare enum DslType { Dsl = 0, BoolExprV1 = 1 } interface NumberArray { data: Number[]; } interface StringArray { data: String[]; } export interface NumberArrayId { int_id: NumberArray; } export interface StringArrayId { str_id: StringArray; } export declare enum SegmentState { SegmentStateNone = 0, NotExist = 1, Growing = 2, Sealed = 3, Flushed = "Flushed", Flushing = "Flushing" } export declare enum CompactionState { UndefiedState = 0, Executing = 1, Completed = 2 } export interface GrpcTimeOut { timeout?: number; } export declare enum ConsistencyLevel { Strong = 0, Session = 1, Bounded = 2, Eventually = 3, Customized = 4 } export declare enum ImportState { ImportPending = "ImportPending", ImportFailed = "ImportFailed", ImportStarted = "ImportStarted", ImportPersisted = "ImportPersisted", ImportCompleted = "ImportCompleted", ImportFailedAndCleaned = "ImportFailedAndCleaned" } export declare enum ObjectType { Collection = 0, Global = 1, User = 2 } export declare enum ObjectPrivilege { PrivilegeAll = 0, PrivilegeCreateCollection = 1, PrivilegeDropCollection = 2, PrivilegeDescribeCollection = 3, PrivilegeShowCollections = 4, PrivilegeLoad = 5, PrivilegeRelease = 6, PrivilegeCompaction = 7, PrivilegeInsert = 8, PrivilegeDelete = 9, PrivilegeGetStatistics = 10, PrivilegeCreateIndex = 11, PrivilegeIndexDetail = 12, PrivilegeDropIndex = 13, PrivilegeSearch = 14, PrivilegeFlush = 15, PrivilegeQuery = 16, PrivilegeLoadBalance = 17, PrivilegeImport = 18, PrivilegeCreateOwnership = 19, PrivilegeUpdateUser = 20, PrivilegeDropOwnership = 21, PrivilegeSelectOwnership = 22, PrivilegeManageOwnership = 23, PrivilegeSelectUser = 24 } export declare enum StateCode { Initializing = 0, Healthy = 1, Abnormal = 2, StandBy = 3 } export {};