"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OperatePrivilegeGroupType = exports.RANKER_TYPE = exports.ShowPartitionsType = exports.ShowCollectionsType = exports.LoadState = exports.Privileges = exports.UserPrivileges = exports.GlobalPrivileges = exports.CollectionPrivileges = exports.RbacObjects = exports.Roles = exports.OperatePrivilegeType = exports.OperateUserRoleType = exports.DataTypeStringEnum = exports.DataTypeMap = exports.VectorDataTypes = exports.FunctionType = exports.PlaceholderType = exports.DataType = exports.MsgType = exports.IndexType = exports.MetricType = exports.StateCode = exports.ObjectPrivilege = exports.ObjectType = exports.ImportState = exports.CompactionState = exports.SegmentLevel = exports.SegmentState = exports.ConsistencyLevelEnum = exports.DslType = exports.IndexState = void 0;
var IndexState;
(function (IndexState) {
    IndexState[IndexState["IndexStateNone"] = 0] = "IndexStateNone";
    IndexState[IndexState["Unissued"] = 1] = "Unissued";
    IndexState[IndexState["InProgress"] = 2] = "InProgress";
    IndexState[IndexState["Finished"] = 3] = "Finished";
    IndexState[IndexState["Failed"] = 4] = "Failed";
})(IndexState = exports.IndexState || (exports.IndexState = {}));
var DslType;
(function (DslType) {
    DslType[DslType["Dsl"] = 0] = "Dsl";
    DslType[DslType["BoolExprV1"] = 1] = "BoolExprV1";
})(DslType = exports.DslType || (exports.DslType = {}));
// consistency levels enum
var ConsistencyLevelEnum;
(function (ConsistencyLevelEnum) {
    ConsistencyLevelEnum[ConsistencyLevelEnum["Strong"] = 0] = "Strong";
    ConsistencyLevelEnum[ConsistencyLevelEnum["Session"] = 1] = "Session";
    ConsistencyLevelEnum[ConsistencyLevelEnum["Bounded"] = 2] = "Bounded";
    ConsistencyLevelEnum[ConsistencyLevelEnum["Eventually"] = 3] = "Eventually";
    ConsistencyLevelEnum[ConsistencyLevelEnum["Customized"] = 4] = "Customized";
})(ConsistencyLevelEnum = exports.ConsistencyLevelEnum || (exports.ConsistencyLevelEnum = {}));
// segement state enum
var SegmentState;
(function (SegmentState) {
    SegmentState[SegmentState["SegmentStateNone"] = 0] = "SegmentStateNone";
    SegmentState[SegmentState["NotExist"] = 1] = "NotExist";
    SegmentState[SegmentState["Growing"] = 2] = "Growing";
    SegmentState[SegmentState["Sealed"] = 3] = "Sealed";
    SegmentState["Flushed"] = "Flushed";
    SegmentState["Flushing"] = "Flushing";
})(SegmentState = exports.SegmentState || (exports.SegmentState = {}));
// segment level enum
var SegmentLevel;
(function (SegmentLevel) {
    SegmentLevel[SegmentLevel["Legacy"] = 0] = "Legacy";
    SegmentLevel[SegmentLevel["L0"] = 1] = "L0";
    SegmentLevel[SegmentLevel["L1"] = 2] = "L1";
    SegmentLevel[SegmentLevel["L2"] = 3] = "L2";
})(SegmentLevel = exports.SegmentLevel || (exports.SegmentLevel = {}));
// compaction state enum
var CompactionState;
(function (CompactionState) {
    CompactionState[CompactionState["UndefiedState"] = 0] = "UndefiedState";
    CompactionState[CompactionState["Executing"] = 1] = "Executing";
    CompactionState[CompactionState["Completed"] = 2] = "Completed";
})(CompactionState = exports.CompactionState || (exports.CompactionState = {}));
// import state enum
var ImportState;
(function (ImportState) {
    ImportState["ImportPending"] = "ImportPending";
    ImportState["ImportFailed"] = "ImportFailed";
    ImportState["ImportStarted"] = "ImportStarted";
    ImportState["ImportPersisted"] = "ImportPersisted";
    ImportState["ImportCompleted"] = "ImportCompleted";
    ImportState["ImportFailedAndCleaned"] = "ImportFailedAndCleaned";
})(ImportState = exports.ImportState || (exports.ImportState = {}));
// RBAC object type
var ObjectType;
(function (ObjectType) {
    ObjectType[ObjectType["Collection"] = 0] = "Collection";
    ObjectType[ObjectType["Global"] = 1] = "Global";
    ObjectType[ObjectType["User"] = 2] = "User";
})(ObjectType = exports.ObjectType || (exports.ObjectType = {}));
// RBAC object priviledge types
var ObjectPrivilege;
(function (ObjectPrivilege) {
    ObjectPrivilege[ObjectPrivilege["PrivilegeAll"] = 0] = "PrivilegeAll";
    ObjectPrivilege[ObjectPrivilege["PrivilegeCreateCollection"] = 1] = "PrivilegeCreateCollection";
    ObjectPrivilege[ObjectPrivilege["PrivilegeDropCollection"] = 2] = "PrivilegeDropCollection";
    ObjectPrivilege[ObjectPrivilege["PrivilegeDescribeCollection"] = 3] = "PrivilegeDescribeCollection";
    ObjectPrivilege[ObjectPrivilege["PrivilegeShowCollections"] = 4] = "PrivilegeShowCollections";
    ObjectPrivilege[ObjectPrivilege["PrivilegeLoad"] = 5] = "PrivilegeLoad";
    ObjectPrivilege[ObjectPrivilege["PrivilegeRelease"] = 6] = "PrivilegeRelease";
    ObjectPrivilege[ObjectPrivilege["PrivilegeCompaction"] = 7] = "PrivilegeCompaction";
    ObjectPrivilege[ObjectPrivilege["PrivilegeInsert"] = 8] = "PrivilegeInsert";
    ObjectPrivilege[ObjectPrivilege["PrivilegeDelete"] = 9] = "PrivilegeDelete";
    ObjectPrivilege[ObjectPrivilege["PrivilegeGetStatistics"] = 10] = "PrivilegeGetStatistics";
    ObjectPrivilege[ObjectPrivilege["PrivilegeCreateIndex"] = 11] = "PrivilegeCreateIndex";
    ObjectPrivilege[ObjectPrivilege["PrivilegeIndexDetail"] = 12] = "PrivilegeIndexDetail";
    ObjectPrivilege[ObjectPrivilege["PrivilegeDropIndex"] = 13] = "PrivilegeDropIndex";
    ObjectPrivilege[ObjectPrivilege["PrivilegeSearch"] = 14] = "PrivilegeSearch";
    ObjectPrivilege[ObjectPrivilege["PrivilegeFlush"] = 15] = "PrivilegeFlush";
    ObjectPrivilege[ObjectPrivilege["PrivilegeQuery"] = 16] = "PrivilegeQuery";
    ObjectPrivilege[ObjectPrivilege["PrivilegeLoadBalance"] = 17] = "PrivilegeLoadBalance";
    ObjectPrivilege[ObjectPrivilege["PrivilegeImport"] = 18] = "PrivilegeImport";
    ObjectPrivilege[ObjectPrivilege["PrivilegeCreateOwnership"] = 19] = "PrivilegeCreateOwnership";
    ObjectPrivilege[ObjectPrivilege["PrivilegeUpdateUser"] = 20] = "PrivilegeUpdateUser";
    ObjectPrivilege[ObjectPrivilege["PrivilegeDropOwnership"] = 21] = "PrivilegeDropOwnership";
    ObjectPrivilege[ObjectPrivilege["PrivilegeSelectOwnership"] = 22] = "PrivilegeSelectOwnership";
    ObjectPrivilege[ObjectPrivilege["PrivilegeManageOwnership"] = 23] = "PrivilegeManageOwnership";
    ObjectPrivilege[ObjectPrivilege["PrivilegeSelectUser"] = 24] = "PrivilegeSelectUser";
})(ObjectPrivilege = exports.ObjectPrivilege || (exports.ObjectPrivilege = {}));
// Milvus healthy status code
var StateCode;
(function (StateCode) {
    StateCode[StateCode["Initializing"] = 0] = "Initializing";
    StateCode[StateCode["Healthy"] = 1] = "Healthy";
    StateCode[StateCode["Abnormal"] = 2] = "Abnormal";
    StateCode[StateCode["StandBy"] = 3] = "StandBy";
})(StateCode = exports.StateCode || (exports.StateCode = {}));
// Metric types
var MetricType;
(function (MetricType) {
    // L2 euclidean distance
    MetricType["L2"] = "L2";
    // IP inner product
    MetricType["IP"] = "IP";
    // support cosine 2.3
    MetricType["COSINE"] = "COSINE";
    // HAMMING hamming distance
    MetricType["HAMMING"] = "HAMMING";
    // JACCARD jaccard distance
    MetricType["JACCARD"] = "JACCARD";
    // TANIMOTO tanimoto distance
    MetricType["TANIMOTO"] = "TANIMOTO";
    // SUBSTRUCTURE substructure distance
    MetricType["SUBSTRUCTURE"] = "SUBSTRUCTURE";
    // SUPERSTRUCTURE superstructure
    MetricType["SUPERSTRUCTURE"] = "SUPERSTRUCTURE";
    // BM 25
    MetricType["BM25"] = "BM25";
    // MHJACCARD
    MetricType["MHJACCARD"] = "MHJACCARD";
    // Struct
    MetricType["MAX_SIM"] = "MAX_SIM";
    MetricType["MAX_SIM_COSINE"] = "MAX_SIM_COSINE";
    MetricType["MAX_SIM_IP"] = "MAX_SIM_IP";
    MetricType["MAX_SIM_L2"] = "MAX_SIM_L2";
    MetricType["DTW_COSINE"] = "DTW_COSINE";
    MetricType["DTW_IP"] = "DTW_IP";
})(MetricType = exports.MetricType || (exports.MetricType = {}));
// Index types
var IndexType;
(function (IndexType) {
    // vector
    IndexType["FLAT"] = "FLAT";
    IndexType["IVF_FLAT"] = "IVF_FLAT";
    IndexType["IVF_SQ8"] = "IVF_SQ8";
    IndexType["IVF_PQ"] = "IVF_PQ";
    IndexType["HNSW"] = "HNSW";
    IndexType["BIN_FLAT"] = "BIN_FLAT";
    IndexType["BIN_IVF_FLAT"] = "BIN_IVF_FLAT";
    IndexType["DISKANN"] = "DISKANN";
    IndexType["AUTOINDEX"] = "AUTOINDEX";
    IndexType["ANNOY"] = "ANNOY";
    IndexType["SPARSE_INVERTED_INDEX"] = "SPARSE_INVERTED_INDEX";
    IndexType["SPARSE_WAND"] = "SPARSE_WAND";
    // 2.3
    IndexType["GPU_FLAT"] = "GPU_FLAT";
    IndexType["GPU_IVF_FLAT"] = "GPU_IVF_FLAT";
    IndexType["GPU_IVF_PQ"] = "GPU_IVF_PQ";
    IndexType["GPU_IVF_SQ8"] = "GPU_IVF_SQ8";
    IndexType["GPU_BRUTE_FORCE"] = "GPU_BRUTE_FORCE";
    IndexType["GPU_CAGRA"] = "GPU_CAGRA";
    IndexType["RAFT_IVF_FLAT"] = "RAFT_IVF_FLAT";
    IndexType["RAFT_IVF_PQ"] = "RAFT_IVF_PQ";
    IndexType["ScaNN"] = "SCANN";
    // scalar
    IndexType["STL_SORT"] = "STL_SORT";
    IndexType["TRIE"] = "Trie";
    IndexType["INVERTED"] = "INVERTED";
    // 2.5
    IndexType["BITMAP"] = "BITMAP";
    // 2.6
    IndexType["IVF_RABITQ"] = "IVF_RABITQ";
    IndexType["MINHASH_LSH"] = "MINHASH_LSH";
    IndexType["RTREE"] = "RTREE";
})(IndexType = exports.IndexType || (exports.IndexType = {}));
// MsgType
var MsgType;
(function (MsgType) {
    MsgType[MsgType["Undefined"] = 0] = "Undefined";
    /* DEFINITION REQUESTS: COLLECTION */
    MsgType[MsgType["CreateCollection"] = 100] = "CreateCollection";
    MsgType[MsgType["DropCollection"] = 101] = "DropCollection";
    MsgType[MsgType["HasCollection"] = 102] = "HasCollection";
    MsgType[MsgType["DescribeCollection"] = 103] = "DescribeCollection";
    MsgType[MsgType["ShowCollections"] = 104] = "ShowCollections";
    MsgType[MsgType["GetSystemConfigs"] = 105] = "GetSystemConfigs";
    MsgType[MsgType["LoadCollection"] = 106] = "LoadCollection";
    MsgType[MsgType["ReleaseCollection"] = 107] = "ReleaseCollection";
    MsgType[MsgType["CreateAlias"] = 108] = "CreateAlias";
    MsgType[MsgType["DropAlias"] = 109] = "DropAlias";
    MsgType[MsgType["AlterAlias"] = 110] = "AlterAlias";
    MsgType[MsgType["AlterCollection"] = 111] = "AlterCollection";
    /* DEFINITION REQUESTS: PARTITION */
    MsgType[MsgType["CreatePartition"] = 200] = "CreatePartition";
    MsgType[MsgType["DropPartition"] = 201] = "DropPartition";
    MsgType[MsgType["HasPartition"] = 202] = "HasPartition";
    MsgType[MsgType["DescribePartition"] = 203] = "DescribePartition";
    MsgType[MsgType["ShowPartitions"] = 204] = "ShowPartitions";
    MsgType[MsgType["LoadPartitions"] = 205] = "LoadPartitions";
    MsgType[MsgType["ReleasePartitions"] = 206] = "ReleasePartitions";
    /* DEFINE REQUESTS: SEGMENT */
    MsgType[MsgType["ShowSegments"] = 250] = "ShowSegments";
    MsgType[MsgType["DescribeSegment"] = 251] = "DescribeSegment";
    MsgType[MsgType["LoadSegments"] = 252] = "LoadSegments";
    MsgType[MsgType["ReleaseSegments"] = 253] = "ReleaseSegments";
    MsgType[MsgType["HandoffSegments"] = 254] = "HandoffSegments";
    MsgType[MsgType["LoadBalanceSegments"] = 255] = "LoadBalanceSegments";
    MsgType[MsgType["DescribeSegments"] = 256] = "DescribeSegments";
    /* DEFINITION REQUESTS: INDEX */
    MsgType[MsgType["CreateIndex"] = 300] = "CreateIndex";
    MsgType[MsgType["DescribeIndex"] = 301] = "DescribeIndex";
    MsgType[MsgType["DropIndex"] = 302] = "DropIndex";
    /* MANIPULATION REQUESTS */
    MsgType[MsgType["Insert"] = 400] = "Insert";
    MsgType[MsgType["Delete"] = 401] = "Delete";
    MsgType[MsgType["Flush"] = 402] = "Flush";
    MsgType[MsgType["ResendSegmentStats"] = 403] = "ResendSegmentStats";
    /* QUERY */
    MsgType[MsgType["Search"] = 500] = "Search";
    MsgType[MsgType["SearchResult"] = 501] = "SearchResult";
    MsgType[MsgType["GetIndexState"] = 502] = "GetIndexState";
    MsgType[MsgType["GetIndexBuildProgress"] = 503] = "GetIndexBuildProgress";
    MsgType[MsgType["GetCollectionStatistics"] = 504] = "GetCollectionStatistics";
    MsgType[MsgType["GetPartitionStatistics"] = 505] = "GetPartitionStatistics";
    MsgType[MsgType["Retrieve"] = 506] = "Retrieve";
    MsgType[MsgType["RetrieveResult"] = 507] = "RetrieveResult";
    MsgType[MsgType["WatchDmChannels"] = 508] = "WatchDmChannels";
    MsgType[MsgType["RemoveDmChannels"] = 509] = "RemoveDmChannels";
    MsgType[MsgType["WatchQueryChannels"] = 510] = "WatchQueryChannels";
    MsgType[MsgType["RemoveQueryChannels"] = 511] = "RemoveQueryChannels";
    MsgType[MsgType["SealedSegmentsChangeInfo"] = 512] = "SealedSegmentsChangeInfo";
    MsgType[MsgType["WatchDeltaChannels"] = 513] = "WatchDeltaChannels";
    MsgType[MsgType["GetShardLeaders"] = 514] = "GetShardLeaders";
    MsgType[MsgType["GetReplicas"] = 515] = "GetReplicas";
    MsgType[MsgType["UnsubDmChannel"] = 516] = "UnsubDmChannel";
    MsgType[MsgType["GetDistribution"] = 517] = "GetDistribution";
    MsgType[MsgType["SyncDistribution"] = 518] = "SyncDistribution";
    /* DATA SERVICE */
    MsgType[MsgType["SegmentInfo"] = 600] = "SegmentInfo";
    MsgType[MsgType["SystemInfo"] = 601] = "SystemInfo";
    MsgType[MsgType["GetRecoveryInfo"] = 602] = "GetRecoveryInfo";
    MsgType[MsgType["GetSegmentState"] = 603] = "GetSegmentState";
    /* SYSTEM CONTROL */
    MsgType[MsgType["TimeTick"] = 1200] = "TimeTick";
    MsgType[MsgType["QueryNodeStats"] = 1201] = "QueryNodeStats";
    MsgType[MsgType["LoadIndex"] = 1202] = "LoadIndex";
    MsgType[MsgType["RequestID"] = 1203] = "RequestID";
    MsgType[MsgType["RequestTSO"] = 1204] = "RequestTSO";
    MsgType[MsgType["AllocateSegment"] = 1205] = "AllocateSegment";
    MsgType[MsgType["SegmentStatistics"] = 1206] = "SegmentStatistics";
    MsgType[MsgType["SegmentFlushDone"] = 1207] = "SegmentFlushDone";
    MsgType[MsgType["DataNodeTt"] = 1208] = "DataNodeTt";
    /* Credential */
    MsgType[MsgType["CreateCredential"] = 1500] = "CreateCredential";
    MsgType[MsgType["GetCredential"] = 1501] = "GetCredential";
    MsgType[MsgType["DeleteCredential"] = 1502] = "DeleteCredential";
    MsgType[MsgType["UpdateCredential"] = 1503] = "UpdateCredential";
    MsgType[MsgType["ListCredUsernames"] = 1504] = "ListCredUsernames";
    /* RBAC */
    MsgType[MsgType["CreateRole"] = 1600] = "CreateRole";
    MsgType[MsgType["DropRole"] = 1601] = "DropRole";
    MsgType[MsgType["OperateUserRole"] = 1602] = "OperateUserRole";
    MsgType[MsgType["SelectRole"] = 1603] = "SelectRole";
    MsgType[MsgType["SelectUser"] = 1604] = "SelectUser";
    MsgType[MsgType["SelectResource"] = 1605] = "SelectResource";
    MsgType[MsgType["OperatePrivilege"] = 1606] = "OperatePrivilege";
    MsgType[MsgType["SelectGrant"] = 1607] = "SelectGrant";
    MsgType[MsgType["RefreshPolicyInfoCache"] = 1608] = "RefreshPolicyInfoCache";
    MsgType[MsgType["ListPolicy"] = 1609] = "ListPolicy";
})(MsgType = exports.MsgType || (exports.MsgType = {}));
// data type enum
var DataType;
(function (DataType) {
    DataType[DataType["None"] = 0] = "None";
    DataType[DataType["Bool"] = 1] = "Bool";
    DataType[DataType["Int8"] = 2] = "Int8";
    DataType[DataType["Int16"] = 3] = "Int16";
    DataType[DataType["Int32"] = 4] = "Int32";
    DataType[DataType["Int64"] = 5] = "Int64";
    DataType[DataType["Float"] = 10] = "Float";
    DataType[DataType["Double"] = 11] = "Double";
    // String = 20,
    DataType[DataType["VarChar"] = 21] = "VarChar";
    DataType[DataType["Array"] = 22] = "Array";
    DataType[DataType["JSON"] = 23] = "JSON";
    DataType[DataType["Geometry"] = 24] = "Geometry";
    DataType[DataType["Timestamptz"] = 26] = "Timestamptz";
    DataType[DataType["BinaryVector"] = 100] = "BinaryVector";
    DataType[DataType["FloatVector"] = 101] = "FloatVector";
    DataType[DataType["Float16Vector"] = 102] = "Float16Vector";
    DataType[DataType["BFloat16Vector"] = 103] = "BFloat16Vector";
    DataType[DataType["SparseFloatVector"] = 104] = "SparseFloatVector";
    DataType[DataType["Int8Vector"] = 105] = "Int8Vector";
    DataType[DataType["Struct"] = 201] = "Struct";
})(DataType = exports.DataType || (exports.DataType = {}));
var PlaceholderType;
(function (PlaceholderType) {
    PlaceholderType[PlaceholderType["None"] = 0] = "None";
    PlaceholderType[PlaceholderType["BinaryVector"] = 100] = "BinaryVector";
    PlaceholderType[PlaceholderType["FloatVector"] = 101] = "FloatVector";
    PlaceholderType[PlaceholderType["Float16Vector"] = 102] = "Float16Vector";
    PlaceholderType[PlaceholderType["BFloat16Vector"] = 103] = "BFloat16Vector";
    PlaceholderType[PlaceholderType["SparseFloatVector"] = 104] = "SparseFloatVector";
    PlaceholderType[PlaceholderType["Int8Vector"] = 105] = "Int8Vector";
    PlaceholderType[PlaceholderType["Int64"] = 5] = "Int64";
    PlaceholderType[PlaceholderType["VarChar"] = 21] = "VarChar";
    PlaceholderType[PlaceholderType["EmbListBinaryVector"] = 300] = "EmbListBinaryVector";
    PlaceholderType[PlaceholderType["EmbListFloatVector"] = 301] = "EmbListFloatVector";
    PlaceholderType[PlaceholderType["EmbListFloat16Vector"] = 302] = "EmbListFloat16Vector";
    PlaceholderType[PlaceholderType["EmbListBFloat16Vector"] = 303] = "EmbListBFloat16Vector";
    PlaceholderType[PlaceholderType["EmbListSparseFloatVector"] = 304] = "EmbListSparseFloatVector";
    PlaceholderType[PlaceholderType["EmbListInt8Vector"] = 305] = "EmbListInt8Vector";
})(PlaceholderType = exports.PlaceholderType || (exports.PlaceholderType = {}));
var FunctionType;
(function (FunctionType) {
    FunctionType[FunctionType["Unknown"] = 0] = "Unknown";
    FunctionType[FunctionType["BM25"] = 1] = "BM25";
    FunctionType[FunctionType["TEXTEMBEDDING"] = 2] = "TEXTEMBEDDING";
    FunctionType[FunctionType["RERANK"] = 3] = "RERANK";
})(FunctionType = exports.FunctionType || (exports.FunctionType = {}));
exports.VectorDataTypes = [
    DataType.BinaryVector,
    DataType.FloatVector,
    DataType.Float16Vector,
    DataType.BFloat16Vector,
    DataType.SparseFloatVector,
    DataType.Int8Vector,
];
// data type map
exports.DataTypeMap = {
    None: 0,
    Bool: 1,
    Int8: 2,
    Int16: 3,
    Int32: 4,
    Int64: 5,
    Float: 10,
    Double: 11,
    // String: 20,
    VarChar: 21,
    Array: 22,
    JSON: 23,
    Geometry: 24,
    Timestamptz: 26,
    BinaryVector: 100,
    FloatVector: 101,
    Float16Vector: 102,
    BFloat16Vector: 103,
    SparseFloatVector: 104,
    Int8Vector: 105,
    Struct: 201,
};
// data type string enum
var DataTypeStringEnum;
(function (DataTypeStringEnum) {
    DataTypeStringEnum["None"] = "None";
    DataTypeStringEnum["Bool"] = "Bool";
    DataTypeStringEnum["Int8"] = "Int8";
    DataTypeStringEnum["Int16"] = "Int16";
    DataTypeStringEnum["Int32"] = "Int32";
    DataTypeStringEnum["Int64"] = "Int64";
    DataTypeStringEnum["Float"] = "Float";
    DataTypeStringEnum["Double"] = "Double";
    DataTypeStringEnum["VarChar"] = "VarChar";
    DataTypeStringEnum["Array"] = "Array";
    DataTypeStringEnum["JSON"] = "JSON";
    DataTypeStringEnum["Geometry"] = "Geometry";
    DataTypeStringEnum["Timestamptz"] = "Timestamptz";
    DataTypeStringEnum["BinaryVector"] = "BinaryVector";
    DataTypeStringEnum["FloatVector"] = "FloatVector";
    DataTypeStringEnum["Float16Vector"] = "Float16Vector";
    DataTypeStringEnum["BFloat16Vector"] = "BFloat16Vector";
    DataTypeStringEnum["SparseFloatVector"] = "SparseFloatVector";
    DataTypeStringEnum["Int8Vector"] = "Int8Vector";
    DataTypeStringEnum["Struct"] = "Struct";
})(DataTypeStringEnum = exports.DataTypeStringEnum || (exports.DataTypeStringEnum = {}));
// RBAC: operate user role type
var OperateUserRoleType;
(function (OperateUserRoleType) {
    OperateUserRoleType[OperateUserRoleType["AddUserToRole"] = 0] = "AddUserToRole";
    OperateUserRoleType[OperateUserRoleType["RemoveUserFromRole"] = 1] = "RemoveUserFromRole";
})(OperateUserRoleType = exports.OperateUserRoleType || (exports.OperateUserRoleType = {}));
// RBAC: operate privilege type
var OperatePrivilegeType;
(function (OperatePrivilegeType) {
    OperatePrivilegeType[OperatePrivilegeType["Grant"] = 0] = "Grant";
    OperatePrivilegeType[OperatePrivilegeType["Revoke"] = 1] = "Revoke";
})(OperatePrivilegeType = exports.OperatePrivilegeType || (exports.OperatePrivilegeType = {}));
// RBAC: default roles
var Roles;
(function (Roles) {
    Roles["ADMIN"] = "admin";
    Roles["PUBLIC"] = "public";
})(Roles = exports.Roles || (exports.Roles = {}));
// RBAC: default objects
var RbacObjects;
(function (RbacObjects) {
    RbacObjects["Collection"] = "Collection";
    RbacObjects["Global"] = "Global";
    RbacObjects["User"] = "User";
})(RbacObjects = exports.RbacObjects || (exports.RbacObjects = {}));
// RBAC: collection privileges
var CollectionPrivileges;
(function (CollectionPrivileges) {
    CollectionPrivileges["CreateIndex"] = "CreateIndex";
    CollectionPrivileges["DropIndex"] = "DropIndex";
    CollectionPrivileges["IndexDetail"] = "IndexDetail";
    CollectionPrivileges["Load"] = "Load";
    CollectionPrivileges["GetLoadingProgress"] = "GetLoadingProgress";
    CollectionPrivileges["GetLoadState"] = "GetLoadState";
    CollectionPrivileges["Release"] = "Release";
    CollectionPrivileges["Insert"] = "Insert";
    CollectionPrivileges["Upsert"] = "Upsert";
    CollectionPrivileges["Delete"] = "Delete";
    CollectionPrivileges["Search"] = "Search";
    CollectionPrivileges["Flush"] = "Flush";
    CollectionPrivileges["GetFlushState"] = "GetFlushState";
    CollectionPrivileges["Query"] = "Query";
    CollectionPrivileges["GetStatistics"] = "GetStatistics";
    CollectionPrivileges["Compaction"] = "Compaction";
    CollectionPrivileges["Import"] = "Import";
    CollectionPrivileges["LoadBalance"] = "LoadBalance";
    CollectionPrivileges["CreatePartition"] = "CreatePartition";
    CollectionPrivileges["DropPartition"] = "DropPartition";
    CollectionPrivileges["ShowPartitions"] = "ShowPartitions";
    CollectionPrivileges["HasPartition"] = "HasPartition";
})(CollectionPrivileges = exports.CollectionPrivileges || (exports.CollectionPrivileges = {}));
// RBAC: global privileges
var GlobalPrivileges;
(function (GlobalPrivileges) {
    GlobalPrivileges["All"] = "*";
    GlobalPrivileges["CreateCollection"] = "CreateCollection";
    GlobalPrivileges["DropCollection"] = "DropCollection";
    GlobalPrivileges["DescribeCollection"] = "DescribeCollection";
    GlobalPrivileges["ShowCollections"] = "ShowCollections";
    GlobalPrivileges["RenameCollection"] = "RenameCollection";
    GlobalPrivileges["FlushAll"] = "FlushAll";
    GlobalPrivileges["CreateOwnership"] = "CreateOwnership";
    GlobalPrivileges["DropOwnership"] = "DropOwnership";
    GlobalPrivileges["SelectOwnership"] = "SelectOwnership";
    GlobalPrivileges["ManageOwnership"] = "ManageOwnership";
    GlobalPrivileges["CreateResourceGroup"] = "CreateResourceGroup";
    GlobalPrivileges["DropResourceGroup"] = "DropResourceGroup";
    GlobalPrivileges["DescribeResourceGroup"] = "DescribeResourceGroup";
    GlobalPrivileges["ListResourceGroups"] = "ListResourceGroups";
    GlobalPrivileges["TransferNode"] = "TransferNode";
    GlobalPrivileges["TransferReplica"] = "TransferReplica";
    GlobalPrivileges["CreateDatabase"] = "CreateDatabase";
    GlobalPrivileges["ListDatabases"] = "ListDatabases";
    GlobalPrivileges["DropDatabase"] = "DropDatabase";
    GlobalPrivileges["CreateAlias"] = "CreateAlias";
    GlobalPrivileges["DropAlias"] = "DropAlias";
    GlobalPrivileges["DescribeAlias"] = "DescribeAlias";
    GlobalPrivileges["ListAliases"] = "ListAliases";
})(GlobalPrivileges = exports.GlobalPrivileges || (exports.GlobalPrivileges = {}));
// RBAC: user privileges
var UserPrivileges;
(function (UserPrivileges) {
    UserPrivileges["UpdateUser"] = "UpdateUser";
    UserPrivileges["SelectUser"] = "SelectUser";
})(UserPrivileges = exports.UserPrivileges || (exports.UserPrivileges = {}));
// RBAC: all privileges
exports.Privileges = Object.assign(Object.assign(Object.assign({}, CollectionPrivileges), UserPrivileges), GlobalPrivileges);
// Collection load state enum
var LoadState;
(function (LoadState) {
    LoadState["LoadStateNotExist"] = "LoadStateNotExist";
    LoadState["LoadStateNotLoad"] = "LoadStateNotLoad";
    LoadState["LoadStateLoading"] = "LoadStateLoading";
    LoadState["LoadStateLoaded"] = "LoadStateLoaded";
})(LoadState = exports.LoadState || (exports.LoadState = {}));
var ShowCollectionsType;
(function (ShowCollectionsType) {
    ShowCollectionsType[ShowCollectionsType["All"] = 0] = "All";
    ShowCollectionsType[ShowCollectionsType["Loaded"] = 1] = "Loaded";
})(ShowCollectionsType = exports.ShowCollectionsType || (exports.ShowCollectionsType = {}));
var ShowPartitionsType;
(function (ShowPartitionsType) {
    ShowPartitionsType[ShowPartitionsType["All"] = 0] = "All";
    ShowPartitionsType[ShowPartitionsType["Loaded"] = 1] = "Loaded";
})(ShowPartitionsType = exports.ShowPartitionsType || (exports.ShowPartitionsType = {}));
var RANKER_TYPE;
(function (RANKER_TYPE) {
    RANKER_TYPE["RRF"] = "rrf";
    RANKER_TYPE["WEIGHTED"] = "weighted";
})(RANKER_TYPE = exports.RANKER_TYPE || (exports.RANKER_TYPE = {}));
var OperatePrivilegeGroupType;
(function (OperatePrivilegeGroupType) {
    OperatePrivilegeGroupType[OperatePrivilegeGroupType["AddPrivilegesToGroup"] = 0] = "AddPrivilegesToGroup";
    OperatePrivilegeGroupType[OperatePrivilegeGroupType["RemovePrivilegesFromGroup"] = 1] = "RemovePrivilegesFromGroup";
})(OperatePrivilegeGroupType = exports.OperatePrivilegeGroupType || (exports.OperatePrivilegeGroupType = {}));
//# sourceMappingURL=milvus.js.map