@zilliz/milvus2-sdk-node 2.2.2 → 2.2.4
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.
- package/dist/milvus/Client.d.ts +0 -8
- package/dist/milvus/Client.js +0 -17
- package/dist/milvus/Client.js.map +1 -1
- package/dist/milvus/Collection.d.ts +225 -131
- package/dist/milvus/Collection.js +262 -155
- package/dist/milvus/Collection.js.map +1 -1
- package/dist/milvus/Data.d.ts +129 -125
- package/dist/milvus/Data.js +157 -150
- package/dist/milvus/Data.js.map +1 -1
- package/dist/milvus/MilvusIndex.d.ts +57 -53
- package/dist/milvus/MilvusIndex.js +61 -55
- package/dist/milvus/MilvusIndex.js.map +1 -1
- package/dist/milvus/Partition.d.ts +86 -79
- package/dist/milvus/Partition.js +89 -80
- package/dist/milvus/Partition.js.map +1 -1
- package/dist/milvus/Resource.d.ts +173 -0
- package/dist/milvus/Resource.js +356 -0
- package/dist/milvus/Resource.js.map +1 -0
- package/dist/milvus/User.d.ts +119 -93
- package/dist/milvus/User.js +133 -100
- package/dist/milvus/User.js.map +1 -1
- package/dist/milvus/Utils.d.ts +1 -1
- package/dist/milvus/const/Milvus.d.ts +272 -0
- package/dist/milvus/const/Milvus.js +375 -0
- package/dist/milvus/const/Milvus.js.map +1 -0
- package/dist/milvus/index.d.ts +3 -1
- package/dist/milvus/index.js +8 -5
- package/dist/milvus/index.js.map +1 -1
- package/dist/milvus/types/Collection.d.ts +88 -8
- package/dist/milvus/types/Collection.js +1 -9
- package/dist/milvus/types/Collection.js.map +1 -1
- package/dist/milvus/types/Common.d.ts +11 -267
- package/dist/milvus/types/Common.js +1 -369
- package/dist/milvus/types/Common.js.map +1 -1
- package/dist/milvus/types/Data.d.ts +154 -1
- package/dist/milvus/types/Index.d.ts +20 -1
- package/dist/milvus/types/Partition.d.ts +8 -1
- package/dist/milvus/types/Resource.d.ts +44 -0
- package/dist/milvus/types/{Search.js → Resource.js} +1 -1
- package/dist/milvus/types/Resource.js.map +1 -0
- package/dist/milvus/types/Response.d.ts +0 -246
- package/dist/milvus/types/Response.js.map +1 -1
- package/dist/milvus/types/User.d.ts +53 -1
- package/dist/milvus/types.d.ts +8 -7
- package/dist/milvus/types.js +2 -1
- package/dist/milvus/types.js.map +1 -1
- package/dist/milvus/utils/Format.d.ts +12 -11
- package/dist/milvus/utils/Format.js +27 -18
- package/dist/milvus/utils/Format.js.map +1 -1
- package/dist/milvus/utils/Validate.d.ts +12 -0
- package/dist/milvus/utils/Validate.js +27 -5
- package/dist/milvus/utils/Validate.js.map +1 -1
- package/dist/proto/proto/common.proto +25 -2
- package/dist/proto/proto/google/protobuf/descriptor.proto +30 -0
- package/dist/proto/proto/milvus.proto +126 -0
- package/dist/proto/proto/msg.proto +107 -0
- package/dist/sdk.json +1 -1
- package/dist/utils/index.d.ts +0 -6
- package/dist/utils/index.js +5 -32
- package/dist/utils/index.js.map +1 -1
- package/package.json +5 -10
- package/dist/milvus/types/Search.d.ts +0 -81
- package/dist/milvus/types/Search.js.map +0 -1
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
export declare const DEFAULT_MILVUS_PORT = 19530;
|
|
2
|
+
export declare const DEFAULT_CONNECT_TIMEOUT: number;
|
|
3
|
+
export declare enum ConsistencyLevelEnum {
|
|
4
|
+
Strong = 0,
|
|
5
|
+
Session = 1,
|
|
6
|
+
Bounded = 2,
|
|
7
|
+
Eventually = 3,
|
|
8
|
+
Customized = 4
|
|
9
|
+
}
|
|
10
|
+
export declare enum SegmentState {
|
|
11
|
+
SegmentStateNone = 0,
|
|
12
|
+
NotExist = 1,
|
|
13
|
+
Growing = 2,
|
|
14
|
+
Sealed = 3,
|
|
15
|
+
Flushed = "Flushed",
|
|
16
|
+
Flushing = "Flushing"
|
|
17
|
+
}
|
|
18
|
+
export declare enum CompactionState {
|
|
19
|
+
UndefiedState = 0,
|
|
20
|
+
Executing = 1,
|
|
21
|
+
Completed = 2
|
|
22
|
+
}
|
|
23
|
+
export declare enum ImportState {
|
|
24
|
+
ImportPending = "ImportPending",
|
|
25
|
+
ImportFailed = "ImportFailed",
|
|
26
|
+
ImportStarted = "ImportStarted",
|
|
27
|
+
ImportPersisted = "ImportPersisted",
|
|
28
|
+
ImportCompleted = "ImportCompleted",
|
|
29
|
+
ImportFailedAndCleaned = "ImportFailedAndCleaned"
|
|
30
|
+
}
|
|
31
|
+
export declare enum ObjectType {
|
|
32
|
+
Collection = 0,
|
|
33
|
+
Global = 1,
|
|
34
|
+
User = 2
|
|
35
|
+
}
|
|
36
|
+
export declare enum ObjectPrivilege {
|
|
37
|
+
PrivilegeAll = 0,
|
|
38
|
+
PrivilegeCreateCollection = 1,
|
|
39
|
+
PrivilegeDropCollection = 2,
|
|
40
|
+
PrivilegeDescribeCollection = 3,
|
|
41
|
+
PrivilegeShowCollections = 4,
|
|
42
|
+
PrivilegeLoad = 5,
|
|
43
|
+
PrivilegeRelease = 6,
|
|
44
|
+
PrivilegeCompaction = 7,
|
|
45
|
+
PrivilegeInsert = 8,
|
|
46
|
+
PrivilegeDelete = 9,
|
|
47
|
+
PrivilegeGetStatistics = 10,
|
|
48
|
+
PrivilegeCreateIndex = 11,
|
|
49
|
+
PrivilegeIndexDetail = 12,
|
|
50
|
+
PrivilegeDropIndex = 13,
|
|
51
|
+
PrivilegeSearch = 14,
|
|
52
|
+
PrivilegeFlush = 15,
|
|
53
|
+
PrivilegeQuery = 16,
|
|
54
|
+
PrivilegeLoadBalance = 17,
|
|
55
|
+
PrivilegeImport = 18,
|
|
56
|
+
PrivilegeCreateOwnership = 19,
|
|
57
|
+
PrivilegeUpdateUser = 20,
|
|
58
|
+
PrivilegeDropOwnership = 21,
|
|
59
|
+
PrivilegeSelectOwnership = 22,
|
|
60
|
+
PrivilegeManageOwnership = 23,
|
|
61
|
+
PrivilegeSelectUser = 24
|
|
62
|
+
}
|
|
63
|
+
export declare enum StateCode {
|
|
64
|
+
Initializing = 0,
|
|
65
|
+
Healthy = 1,
|
|
66
|
+
Abnormal = 2,
|
|
67
|
+
StandBy = 3
|
|
68
|
+
}
|
|
69
|
+
export declare enum MetricType {
|
|
70
|
+
GHOST = 0,
|
|
71
|
+
L2 = 1,
|
|
72
|
+
IP = 2,
|
|
73
|
+
HAMMING = 3,
|
|
74
|
+
JACCARD = 4,
|
|
75
|
+
TANIMOTO = 5,
|
|
76
|
+
SUBSTRUCTURE = 6,
|
|
77
|
+
SUPERSTRUCTURE = 7
|
|
78
|
+
}
|
|
79
|
+
export declare enum IndexType {
|
|
80
|
+
INVALID = 0,
|
|
81
|
+
FLAT = 1,
|
|
82
|
+
IVFFLAT = 2,
|
|
83
|
+
IVFSQ8 = 3,
|
|
84
|
+
RNSG = 4,
|
|
85
|
+
IVFSQ8H = 5,
|
|
86
|
+
IVFPQ = 6,
|
|
87
|
+
SPTAGKDT = 7,
|
|
88
|
+
SPTAGBKT = 8,
|
|
89
|
+
HNSW = 11,
|
|
90
|
+
ANNOY = 12
|
|
91
|
+
}
|
|
92
|
+
export declare enum MsgType {
|
|
93
|
+
Undefined = 0,
|
|
94
|
+
CreateCollection = 100,
|
|
95
|
+
DropCollection = 101,
|
|
96
|
+
HasCollection = 102,
|
|
97
|
+
DescribeCollection = 103,
|
|
98
|
+
ShowCollections = 104,
|
|
99
|
+
GetSystemConfigs = 105,
|
|
100
|
+
LoadCollection = 106,
|
|
101
|
+
ReleaseCollection = 107,
|
|
102
|
+
CreateAlias = 108,
|
|
103
|
+
DropAlias = 109,
|
|
104
|
+
AlterAlias = 110,
|
|
105
|
+
AlterCollection = 111,
|
|
106
|
+
CreatePartition = 200,
|
|
107
|
+
DropPartition = 201,
|
|
108
|
+
HasPartition = 202,
|
|
109
|
+
DescribePartition = 203,
|
|
110
|
+
ShowPartitions = 204,
|
|
111
|
+
LoadPartitions = 205,
|
|
112
|
+
ReleasePartitions = 206,
|
|
113
|
+
ShowSegments = 250,
|
|
114
|
+
DescribeSegment = 251,
|
|
115
|
+
LoadSegments = 252,
|
|
116
|
+
ReleaseSegments = 253,
|
|
117
|
+
HandoffSegments = 254,
|
|
118
|
+
LoadBalanceSegments = 255,
|
|
119
|
+
DescribeSegments = 256,
|
|
120
|
+
CreateIndex = 300,
|
|
121
|
+
DescribeIndex = 301,
|
|
122
|
+
DropIndex = 302,
|
|
123
|
+
Insert = 400,
|
|
124
|
+
Delete = 401,
|
|
125
|
+
Flush = 402,
|
|
126
|
+
ResendSegmentStats = 403,
|
|
127
|
+
Search = 500,
|
|
128
|
+
SearchResult = 501,
|
|
129
|
+
GetIndexState = 502,
|
|
130
|
+
GetIndexBuildProgress = 503,
|
|
131
|
+
GetCollectionStatistics = 504,
|
|
132
|
+
GetPartitionStatistics = 505,
|
|
133
|
+
Retrieve = 506,
|
|
134
|
+
RetrieveResult = 507,
|
|
135
|
+
WatchDmChannels = 508,
|
|
136
|
+
RemoveDmChannels = 509,
|
|
137
|
+
WatchQueryChannels = 510,
|
|
138
|
+
RemoveQueryChannels = 511,
|
|
139
|
+
SealedSegmentsChangeInfo = 512,
|
|
140
|
+
WatchDeltaChannels = 513,
|
|
141
|
+
GetShardLeaders = 514,
|
|
142
|
+
GetReplicas = 515,
|
|
143
|
+
UnsubDmChannel = 516,
|
|
144
|
+
GetDistribution = 517,
|
|
145
|
+
SyncDistribution = 518,
|
|
146
|
+
SegmentInfo = 600,
|
|
147
|
+
SystemInfo = 601,
|
|
148
|
+
GetRecoveryInfo = 602,
|
|
149
|
+
GetSegmentState = 603,
|
|
150
|
+
TimeTick = 1200,
|
|
151
|
+
QueryNodeStats = 1201,
|
|
152
|
+
LoadIndex = 1202,
|
|
153
|
+
RequestID = 1203,
|
|
154
|
+
RequestTSO = 1204,
|
|
155
|
+
AllocateSegment = 1205,
|
|
156
|
+
SegmentStatistics = 1206,
|
|
157
|
+
SegmentFlushDone = 1207,
|
|
158
|
+
DataNodeTt = 1208,
|
|
159
|
+
CreateCredential = 1500,
|
|
160
|
+
GetCredential = 1501,
|
|
161
|
+
DeleteCredential = 1502,
|
|
162
|
+
UpdateCredential = 1503,
|
|
163
|
+
ListCredUsernames = 1504,
|
|
164
|
+
CreateRole = 1600,
|
|
165
|
+
DropRole = 1601,
|
|
166
|
+
OperateUserRole = 1602,
|
|
167
|
+
SelectRole = 1603,
|
|
168
|
+
SelectUser = 1604,
|
|
169
|
+
SelectResource = 1605,
|
|
170
|
+
OperatePrivilege = 1606,
|
|
171
|
+
SelectGrant = 1607,
|
|
172
|
+
RefreshPolicyInfoCache = 1608,
|
|
173
|
+
ListPolicy = 1609
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* @brief Field data type
|
|
177
|
+
*/
|
|
178
|
+
export declare enum DataType {
|
|
179
|
+
None = 0,
|
|
180
|
+
Bool = 1,
|
|
181
|
+
Int8 = 2,
|
|
182
|
+
Int16 = 3,
|
|
183
|
+
Int32 = 4,
|
|
184
|
+
Int64 = 5,
|
|
185
|
+
Float = 10,
|
|
186
|
+
Double = 11,
|
|
187
|
+
String = 20,
|
|
188
|
+
VarChar = 21,
|
|
189
|
+
BinaryVector = 100,
|
|
190
|
+
FloatVector = 101
|
|
191
|
+
}
|
|
192
|
+
export declare const DataTypeMap: {
|
|
193
|
+
[x: string]: number;
|
|
194
|
+
};
|
|
195
|
+
export declare enum OperateUserRoleType {
|
|
196
|
+
AddUserToRole = 0,
|
|
197
|
+
RemoveUserFromRole = 1
|
|
198
|
+
}
|
|
199
|
+
export declare enum OperatePrivilegeType {
|
|
200
|
+
Grant = 0,
|
|
201
|
+
Revoke = 1
|
|
202
|
+
}
|
|
203
|
+
export declare enum Roles {
|
|
204
|
+
ADMIN = "admin",
|
|
205
|
+
PUBLIC = "public"
|
|
206
|
+
}
|
|
207
|
+
export declare enum RbacObjects {
|
|
208
|
+
Collection = "Collection",
|
|
209
|
+
Global = "Global",
|
|
210
|
+
User = "User"
|
|
211
|
+
}
|
|
212
|
+
export declare enum CollectionPrivileges {
|
|
213
|
+
CreateIndex = "CreateIndex",
|
|
214
|
+
DropIndex = "DropIndex",
|
|
215
|
+
IndexDetail = "IndexDetail",
|
|
216
|
+
Load = "Load",
|
|
217
|
+
Release = "Release",
|
|
218
|
+
Insert = "Insert",
|
|
219
|
+
Delete = "Delete",
|
|
220
|
+
Search = "Search",
|
|
221
|
+
Flush = "Flush",
|
|
222
|
+
Query = "Query",
|
|
223
|
+
GetStatistics = "GetStatistics",
|
|
224
|
+
Compaction = "Compaction",
|
|
225
|
+
Alias = "Alias",
|
|
226
|
+
Import = "Import",
|
|
227
|
+
LoadBalance = "LoadBalance"
|
|
228
|
+
}
|
|
229
|
+
export declare enum GlobalPrivileges {
|
|
230
|
+
All = "*",
|
|
231
|
+
CreateCollection = "CreateCollection",
|
|
232
|
+
DropCollection = "DropCollection",
|
|
233
|
+
DescribeCollection = "DescribeCollection",
|
|
234
|
+
ShowCollections = "ShowCollections",
|
|
235
|
+
CreateOwnership = "CreateOwnership",
|
|
236
|
+
DropOwnership = "DropOwnership",
|
|
237
|
+
SelectOwnership = "SelectOwnership",
|
|
238
|
+
ManageOwnership = "ManageOwnership"
|
|
239
|
+
}
|
|
240
|
+
export declare enum UserPrivileges {
|
|
241
|
+
UpdateUser = "UpdateUser",
|
|
242
|
+
SelectUser = "SelectUser"
|
|
243
|
+
}
|
|
244
|
+
export declare const Privileges: {
|
|
245
|
+
All: GlobalPrivileges.All;
|
|
246
|
+
CreateCollection: GlobalPrivileges.CreateCollection;
|
|
247
|
+
DropCollection: GlobalPrivileges.DropCollection;
|
|
248
|
+
DescribeCollection: GlobalPrivileges.DescribeCollection;
|
|
249
|
+
ShowCollections: GlobalPrivileges.ShowCollections;
|
|
250
|
+
CreateOwnership: GlobalPrivileges.CreateOwnership;
|
|
251
|
+
DropOwnership: GlobalPrivileges.DropOwnership;
|
|
252
|
+
SelectOwnership: GlobalPrivileges.SelectOwnership;
|
|
253
|
+
ManageOwnership: GlobalPrivileges.ManageOwnership;
|
|
254
|
+
UpdateUser: UserPrivileges.UpdateUser;
|
|
255
|
+
SelectUser: UserPrivileges.SelectUser;
|
|
256
|
+
CreateIndex: CollectionPrivileges.CreateIndex;
|
|
257
|
+
DropIndex: CollectionPrivileges.DropIndex;
|
|
258
|
+
IndexDetail: CollectionPrivileges.IndexDetail;
|
|
259
|
+
Load: CollectionPrivileges.Load;
|
|
260
|
+
Release: CollectionPrivileges.Release;
|
|
261
|
+
Insert: CollectionPrivileges.Insert;
|
|
262
|
+
Delete: CollectionPrivileges.Delete;
|
|
263
|
+
Search: CollectionPrivileges.Search;
|
|
264
|
+
Flush: CollectionPrivileges.Flush;
|
|
265
|
+
Query: CollectionPrivileges.Query;
|
|
266
|
+
GetStatistics: CollectionPrivileges.GetStatistics;
|
|
267
|
+
Compaction: CollectionPrivileges.Compaction;
|
|
268
|
+
Alias: CollectionPrivileges.Alias;
|
|
269
|
+
Import: CollectionPrivileges.Import;
|
|
270
|
+
LoadBalance: CollectionPrivileges.LoadBalance;
|
|
271
|
+
};
|
|
272
|
+
export declare const DEFAULT_RESOURCE_GROUP = "__default_resource_group";
|
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.DEFAULT_RESOURCE_GROUP = exports.Privileges = exports.UserPrivileges = exports.GlobalPrivileges = exports.CollectionPrivileges = exports.RbacObjects = exports.Roles = exports.OperatePrivilegeType = exports.OperateUserRoleType = exports.DataTypeMap = exports.DataType = exports.MsgType = exports.IndexType = exports.MetricType = exports.StateCode = exports.ObjectPrivilege = exports.ObjectType = exports.ImportState = exports.CompactionState = exports.SegmentState = exports.ConsistencyLevelEnum = exports.DEFAULT_CONNECT_TIMEOUT = exports.DEFAULT_MILVUS_PORT = void 0;
|
|
15
|
+
exports.DEFAULT_MILVUS_PORT = 19530; // default milvus port
|
|
16
|
+
exports.DEFAULT_CONNECT_TIMEOUT = 10 * 1000; // 10s
|
|
17
|
+
var ErrorCode;
|
|
18
|
+
(function (ErrorCode) {
|
|
19
|
+
ErrorCode[ErrorCode["Success"] = 0] = "Success";
|
|
20
|
+
ErrorCode[ErrorCode["UnexpectedError"] = 1] = "UnexpectedError";
|
|
21
|
+
ErrorCode[ErrorCode["ConnectFailed"] = 2] = "ConnectFailed";
|
|
22
|
+
ErrorCode[ErrorCode["PermissionDenied"] = 3] = "PermissionDenied";
|
|
23
|
+
ErrorCode[ErrorCode["CollectionNotExists"] = 4] = "CollectionNotExists";
|
|
24
|
+
ErrorCode[ErrorCode["IllegalArgument"] = 5] = "IllegalArgument";
|
|
25
|
+
ErrorCode[ErrorCode["IllegalDimension"] = 7] = "IllegalDimension";
|
|
26
|
+
ErrorCode[ErrorCode["IllegalIndexType"] = 8] = "IllegalIndexType";
|
|
27
|
+
ErrorCode[ErrorCode["IllegalCollectionName"] = 9] = "IllegalCollectionName";
|
|
28
|
+
ErrorCode[ErrorCode["IllegalTOPK"] = 10] = "IllegalTOPK";
|
|
29
|
+
ErrorCode[ErrorCode["IllegalRowRecord"] = 11] = "IllegalRowRecord";
|
|
30
|
+
ErrorCode[ErrorCode["IllegalVectorID"] = 12] = "IllegalVectorID";
|
|
31
|
+
ErrorCode[ErrorCode["IllegalSearchResult"] = 13] = "IllegalSearchResult";
|
|
32
|
+
ErrorCode[ErrorCode["FileNotFound"] = 14] = "FileNotFound";
|
|
33
|
+
ErrorCode[ErrorCode["MetaFailed"] = 15] = "MetaFailed";
|
|
34
|
+
ErrorCode[ErrorCode["CacheFailed"] = 16] = "CacheFailed";
|
|
35
|
+
ErrorCode[ErrorCode["CannotCreateFolder"] = 17] = "CannotCreateFolder";
|
|
36
|
+
ErrorCode[ErrorCode["CannotCreateFile"] = 18] = "CannotCreateFile";
|
|
37
|
+
ErrorCode[ErrorCode["CannotDeleteFolder"] = 19] = "CannotDeleteFolder";
|
|
38
|
+
ErrorCode[ErrorCode["CannotDeleteFile"] = 20] = "CannotDeleteFile";
|
|
39
|
+
ErrorCode[ErrorCode["BuildIndexError"] = 21] = "BuildIndexError";
|
|
40
|
+
ErrorCode[ErrorCode["IllegalNLIST"] = 22] = "IllegalNLIST";
|
|
41
|
+
ErrorCode[ErrorCode["IllegalMetricType"] = 23] = "IllegalMetricType";
|
|
42
|
+
ErrorCode[ErrorCode["OutOfMemory"] = 24] = "OutOfMemory";
|
|
43
|
+
ErrorCode[ErrorCode["IndexNotExist"] = 25] = "IndexNotExist";
|
|
44
|
+
ErrorCode[ErrorCode["EmptyCollection"] = 26] = "EmptyCollection";
|
|
45
|
+
ErrorCode[ErrorCode["UpdateImportTaskFailure"] = 27] = "UpdateImportTaskFailure";
|
|
46
|
+
ErrorCode[ErrorCode["CollectionNameNotFound"] = 28] = "CollectionNameNotFound";
|
|
47
|
+
ErrorCode[ErrorCode["CreateCredentialFailure"] = 29] = "CreateCredentialFailure";
|
|
48
|
+
ErrorCode[ErrorCode["UpdateCredentialFailure"] = 30] = "UpdateCredentialFailure";
|
|
49
|
+
ErrorCode[ErrorCode["DeleteCredentialFailure"] = 31] = "DeleteCredentialFailure";
|
|
50
|
+
ErrorCode[ErrorCode["GetCredentialFailure"] = 32] = "GetCredentialFailure";
|
|
51
|
+
ErrorCode[ErrorCode["ListCredUsersFailure"] = 33] = "ListCredUsersFailure";
|
|
52
|
+
ErrorCode[ErrorCode["GetUserFailure"] = 34] = "GetUserFailure";
|
|
53
|
+
ErrorCode[ErrorCode["CreateRoleFailure"] = 35] = "CreateRoleFailure";
|
|
54
|
+
ErrorCode[ErrorCode["DropRoleFailure"] = 36] = "DropRoleFailure";
|
|
55
|
+
ErrorCode[ErrorCode["OperateUserRoleFailure"] = 37] = "OperateUserRoleFailure";
|
|
56
|
+
ErrorCode[ErrorCode["SelectRoleFailure"] = 38] = "SelectRoleFailure";
|
|
57
|
+
ErrorCode[ErrorCode["SelectUserFailure"] = 39] = "SelectUserFailure";
|
|
58
|
+
ErrorCode[ErrorCode["SelectResourceFailure"] = 40] = "SelectResourceFailure";
|
|
59
|
+
ErrorCode[ErrorCode["OperatePrivilegeFailure"] = 41] = "OperatePrivilegeFailure";
|
|
60
|
+
ErrorCode[ErrorCode["SelectGrantFailure"] = 42] = "SelectGrantFailure";
|
|
61
|
+
ErrorCode[ErrorCode["RefreshPolicyInfoCacheFailure"] = 43] = "RefreshPolicyInfoCacheFailure";
|
|
62
|
+
ErrorCode[ErrorCode["ListPolicyFailure"] = 44] = "ListPolicyFailure";
|
|
63
|
+
ErrorCode[ErrorCode["NotShardLeader"] = 45] = "NotShardLeader";
|
|
64
|
+
ErrorCode[ErrorCode["NoReplicaAvailable"] = 46] = "NoReplicaAvailable";
|
|
65
|
+
ErrorCode[ErrorCode["SegmentNotFound"] = 47] = "SegmentNotFound";
|
|
66
|
+
ErrorCode[ErrorCode["ForceDeny"] = 48] = "ForceDeny";
|
|
67
|
+
ErrorCode[ErrorCode["RateLimit"] = 49] = "RateLimit";
|
|
68
|
+
ErrorCode[ErrorCode["NodeIDNotMatch"] = 50] = "NodeIDNotMatch";
|
|
69
|
+
// Service availability.
|
|
70
|
+
// NA: Not Available.
|
|
71
|
+
ErrorCode[ErrorCode["DataCoordNA"] = 100] = "DataCoordNA";
|
|
72
|
+
// internal error code.
|
|
73
|
+
ErrorCode[ErrorCode["DDRequestRace"] = 1000] = "DDRequestRace";
|
|
74
|
+
})(ErrorCode || (ErrorCode = {}));
|
|
75
|
+
var ConsistencyLevelEnum;
|
|
76
|
+
(function (ConsistencyLevelEnum) {
|
|
77
|
+
ConsistencyLevelEnum[ConsistencyLevelEnum["Strong"] = 0] = "Strong";
|
|
78
|
+
ConsistencyLevelEnum[ConsistencyLevelEnum["Session"] = 1] = "Session";
|
|
79
|
+
ConsistencyLevelEnum[ConsistencyLevelEnum["Bounded"] = 2] = "Bounded";
|
|
80
|
+
ConsistencyLevelEnum[ConsistencyLevelEnum["Eventually"] = 3] = "Eventually";
|
|
81
|
+
ConsistencyLevelEnum[ConsistencyLevelEnum["Customized"] = 4] = "Customized";
|
|
82
|
+
})(ConsistencyLevelEnum = exports.ConsistencyLevelEnum || (exports.ConsistencyLevelEnum = {}));
|
|
83
|
+
var SegmentState;
|
|
84
|
+
(function (SegmentState) {
|
|
85
|
+
SegmentState[SegmentState["SegmentStateNone"] = 0] = "SegmentStateNone";
|
|
86
|
+
SegmentState[SegmentState["NotExist"] = 1] = "NotExist";
|
|
87
|
+
SegmentState[SegmentState["Growing"] = 2] = "Growing";
|
|
88
|
+
SegmentState[SegmentState["Sealed"] = 3] = "Sealed";
|
|
89
|
+
SegmentState["Flushed"] = "Flushed";
|
|
90
|
+
SegmentState["Flushing"] = "Flushing";
|
|
91
|
+
})(SegmentState = exports.SegmentState || (exports.SegmentState = {}));
|
|
92
|
+
var CompactionState;
|
|
93
|
+
(function (CompactionState) {
|
|
94
|
+
CompactionState[CompactionState["UndefiedState"] = 0] = "UndefiedState";
|
|
95
|
+
CompactionState[CompactionState["Executing"] = 1] = "Executing";
|
|
96
|
+
CompactionState[CompactionState["Completed"] = 2] = "Completed";
|
|
97
|
+
})(CompactionState = exports.CompactionState || (exports.CompactionState = {}));
|
|
98
|
+
var ImportState;
|
|
99
|
+
(function (ImportState) {
|
|
100
|
+
ImportState["ImportPending"] = "ImportPending";
|
|
101
|
+
ImportState["ImportFailed"] = "ImportFailed";
|
|
102
|
+
ImportState["ImportStarted"] = "ImportStarted";
|
|
103
|
+
ImportState["ImportPersisted"] = "ImportPersisted";
|
|
104
|
+
ImportState["ImportCompleted"] = "ImportCompleted";
|
|
105
|
+
ImportState["ImportFailedAndCleaned"] = "ImportFailedAndCleaned";
|
|
106
|
+
})(ImportState = exports.ImportState || (exports.ImportState = {}));
|
|
107
|
+
var ObjectType;
|
|
108
|
+
(function (ObjectType) {
|
|
109
|
+
ObjectType[ObjectType["Collection"] = 0] = "Collection";
|
|
110
|
+
ObjectType[ObjectType["Global"] = 1] = "Global";
|
|
111
|
+
ObjectType[ObjectType["User"] = 2] = "User";
|
|
112
|
+
})(ObjectType = exports.ObjectType || (exports.ObjectType = {}));
|
|
113
|
+
var ObjectPrivilege;
|
|
114
|
+
(function (ObjectPrivilege) {
|
|
115
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeAll"] = 0] = "PrivilegeAll";
|
|
116
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeCreateCollection"] = 1] = "PrivilegeCreateCollection";
|
|
117
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeDropCollection"] = 2] = "PrivilegeDropCollection";
|
|
118
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeDescribeCollection"] = 3] = "PrivilegeDescribeCollection";
|
|
119
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeShowCollections"] = 4] = "PrivilegeShowCollections";
|
|
120
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeLoad"] = 5] = "PrivilegeLoad";
|
|
121
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeRelease"] = 6] = "PrivilegeRelease";
|
|
122
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeCompaction"] = 7] = "PrivilegeCompaction";
|
|
123
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeInsert"] = 8] = "PrivilegeInsert";
|
|
124
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeDelete"] = 9] = "PrivilegeDelete";
|
|
125
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeGetStatistics"] = 10] = "PrivilegeGetStatistics";
|
|
126
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeCreateIndex"] = 11] = "PrivilegeCreateIndex";
|
|
127
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeIndexDetail"] = 12] = "PrivilegeIndexDetail";
|
|
128
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeDropIndex"] = 13] = "PrivilegeDropIndex";
|
|
129
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeSearch"] = 14] = "PrivilegeSearch";
|
|
130
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeFlush"] = 15] = "PrivilegeFlush";
|
|
131
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeQuery"] = 16] = "PrivilegeQuery";
|
|
132
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeLoadBalance"] = 17] = "PrivilegeLoadBalance";
|
|
133
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeImport"] = 18] = "PrivilegeImport";
|
|
134
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeCreateOwnership"] = 19] = "PrivilegeCreateOwnership";
|
|
135
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeUpdateUser"] = 20] = "PrivilegeUpdateUser";
|
|
136
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeDropOwnership"] = 21] = "PrivilegeDropOwnership";
|
|
137
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeSelectOwnership"] = 22] = "PrivilegeSelectOwnership";
|
|
138
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeManageOwnership"] = 23] = "PrivilegeManageOwnership";
|
|
139
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeSelectUser"] = 24] = "PrivilegeSelectUser";
|
|
140
|
+
})(ObjectPrivilege = exports.ObjectPrivilege || (exports.ObjectPrivilege = {}));
|
|
141
|
+
var StateCode;
|
|
142
|
+
(function (StateCode) {
|
|
143
|
+
StateCode[StateCode["Initializing"] = 0] = "Initializing";
|
|
144
|
+
StateCode[StateCode["Healthy"] = 1] = "Healthy";
|
|
145
|
+
StateCode[StateCode["Abnormal"] = 2] = "Abnormal";
|
|
146
|
+
StateCode[StateCode["StandBy"] = 3] = "StandBy";
|
|
147
|
+
})(StateCode = exports.StateCode || (exports.StateCode = {}));
|
|
148
|
+
var MetricType;
|
|
149
|
+
(function (MetricType) {
|
|
150
|
+
MetricType[MetricType["GHOST"] = 0] = "GHOST";
|
|
151
|
+
// L2 euclidean distance
|
|
152
|
+
MetricType[MetricType["L2"] = 1] = "L2";
|
|
153
|
+
// IP inner product
|
|
154
|
+
MetricType[MetricType["IP"] = 2] = "IP";
|
|
155
|
+
// HAMMING hamming distance
|
|
156
|
+
MetricType[MetricType["HAMMING"] = 3] = "HAMMING";
|
|
157
|
+
// JACCARD jaccard distance
|
|
158
|
+
MetricType[MetricType["JACCARD"] = 4] = "JACCARD";
|
|
159
|
+
// TANIMOTO tanimoto distance
|
|
160
|
+
MetricType[MetricType["TANIMOTO"] = 5] = "TANIMOTO";
|
|
161
|
+
// SUBSTRUCTURE substructure distance
|
|
162
|
+
MetricType[MetricType["SUBSTRUCTURE"] = 6] = "SUBSTRUCTURE";
|
|
163
|
+
// SUPERSTRUCTURE superstructure
|
|
164
|
+
MetricType[MetricType["SUPERSTRUCTURE"] = 7] = "SUPERSTRUCTURE";
|
|
165
|
+
})(MetricType = exports.MetricType || (exports.MetricType = {}));
|
|
166
|
+
var IndexType;
|
|
167
|
+
(function (IndexType) {
|
|
168
|
+
// INVALID invald index type
|
|
169
|
+
IndexType[IndexType["INVALID"] = 0] = "INVALID";
|
|
170
|
+
// FLAT flat
|
|
171
|
+
IndexType[IndexType["FLAT"] = 1] = "FLAT";
|
|
172
|
+
// IVFFLAT ivfflat
|
|
173
|
+
IndexType[IndexType["IVFFLAT"] = 2] = "IVFFLAT";
|
|
174
|
+
// IVFSQ8 ivfsq8
|
|
175
|
+
IndexType[IndexType["IVFSQ8"] = 3] = "IVFSQ8";
|
|
176
|
+
//RNSG rnsg
|
|
177
|
+
IndexType[IndexType["RNSG"] = 4] = "RNSG";
|
|
178
|
+
// IVFSQ8H ivfsq8h
|
|
179
|
+
IndexType[IndexType["IVFSQ8H"] = 5] = "IVFSQ8H";
|
|
180
|
+
// IVFPQ ivfpq
|
|
181
|
+
IndexType[IndexType["IVFPQ"] = 6] = "IVFPQ";
|
|
182
|
+
// SPTAGKDT sptagkdt
|
|
183
|
+
IndexType[IndexType["SPTAGKDT"] = 7] = "SPTAGKDT";
|
|
184
|
+
// SPTAGBKT sptagbkt
|
|
185
|
+
IndexType[IndexType["SPTAGBKT"] = 8] = "SPTAGBKT";
|
|
186
|
+
// HNSW hnsw
|
|
187
|
+
IndexType[IndexType["HNSW"] = 11] = "HNSW";
|
|
188
|
+
// ANNOY annoy
|
|
189
|
+
IndexType[IndexType["ANNOY"] = 12] = "ANNOY";
|
|
190
|
+
})(IndexType = exports.IndexType || (exports.IndexType = {}));
|
|
191
|
+
var MsgType;
|
|
192
|
+
(function (MsgType) {
|
|
193
|
+
MsgType[MsgType["Undefined"] = 0] = "Undefined";
|
|
194
|
+
/* DEFINITION REQUESTS: COLLECTION */
|
|
195
|
+
MsgType[MsgType["CreateCollection"] = 100] = "CreateCollection";
|
|
196
|
+
MsgType[MsgType["DropCollection"] = 101] = "DropCollection";
|
|
197
|
+
MsgType[MsgType["HasCollection"] = 102] = "HasCollection";
|
|
198
|
+
MsgType[MsgType["DescribeCollection"] = 103] = "DescribeCollection";
|
|
199
|
+
MsgType[MsgType["ShowCollections"] = 104] = "ShowCollections";
|
|
200
|
+
MsgType[MsgType["GetSystemConfigs"] = 105] = "GetSystemConfigs";
|
|
201
|
+
MsgType[MsgType["LoadCollection"] = 106] = "LoadCollection";
|
|
202
|
+
MsgType[MsgType["ReleaseCollection"] = 107] = "ReleaseCollection";
|
|
203
|
+
MsgType[MsgType["CreateAlias"] = 108] = "CreateAlias";
|
|
204
|
+
MsgType[MsgType["DropAlias"] = 109] = "DropAlias";
|
|
205
|
+
MsgType[MsgType["AlterAlias"] = 110] = "AlterAlias";
|
|
206
|
+
MsgType[MsgType["AlterCollection"] = 111] = "AlterCollection";
|
|
207
|
+
/* DEFINITION REQUESTS: PARTITION */
|
|
208
|
+
MsgType[MsgType["CreatePartition"] = 200] = "CreatePartition";
|
|
209
|
+
MsgType[MsgType["DropPartition"] = 201] = "DropPartition";
|
|
210
|
+
MsgType[MsgType["HasPartition"] = 202] = "HasPartition";
|
|
211
|
+
MsgType[MsgType["DescribePartition"] = 203] = "DescribePartition";
|
|
212
|
+
MsgType[MsgType["ShowPartitions"] = 204] = "ShowPartitions";
|
|
213
|
+
MsgType[MsgType["LoadPartitions"] = 205] = "LoadPartitions";
|
|
214
|
+
MsgType[MsgType["ReleasePartitions"] = 206] = "ReleasePartitions";
|
|
215
|
+
/* DEFINE REQUESTS: SEGMENT */
|
|
216
|
+
MsgType[MsgType["ShowSegments"] = 250] = "ShowSegments";
|
|
217
|
+
MsgType[MsgType["DescribeSegment"] = 251] = "DescribeSegment";
|
|
218
|
+
MsgType[MsgType["LoadSegments"] = 252] = "LoadSegments";
|
|
219
|
+
MsgType[MsgType["ReleaseSegments"] = 253] = "ReleaseSegments";
|
|
220
|
+
MsgType[MsgType["HandoffSegments"] = 254] = "HandoffSegments";
|
|
221
|
+
MsgType[MsgType["LoadBalanceSegments"] = 255] = "LoadBalanceSegments";
|
|
222
|
+
MsgType[MsgType["DescribeSegments"] = 256] = "DescribeSegments";
|
|
223
|
+
/* DEFINITION REQUESTS: INDEX */
|
|
224
|
+
MsgType[MsgType["CreateIndex"] = 300] = "CreateIndex";
|
|
225
|
+
MsgType[MsgType["DescribeIndex"] = 301] = "DescribeIndex";
|
|
226
|
+
MsgType[MsgType["DropIndex"] = 302] = "DropIndex";
|
|
227
|
+
/* MANIPULATION REQUESTS */
|
|
228
|
+
MsgType[MsgType["Insert"] = 400] = "Insert";
|
|
229
|
+
MsgType[MsgType["Delete"] = 401] = "Delete";
|
|
230
|
+
MsgType[MsgType["Flush"] = 402] = "Flush";
|
|
231
|
+
MsgType[MsgType["ResendSegmentStats"] = 403] = "ResendSegmentStats";
|
|
232
|
+
/* QUERY */
|
|
233
|
+
MsgType[MsgType["Search"] = 500] = "Search";
|
|
234
|
+
MsgType[MsgType["SearchResult"] = 501] = "SearchResult";
|
|
235
|
+
MsgType[MsgType["GetIndexState"] = 502] = "GetIndexState";
|
|
236
|
+
MsgType[MsgType["GetIndexBuildProgress"] = 503] = "GetIndexBuildProgress";
|
|
237
|
+
MsgType[MsgType["GetCollectionStatistics"] = 504] = "GetCollectionStatistics";
|
|
238
|
+
MsgType[MsgType["GetPartitionStatistics"] = 505] = "GetPartitionStatistics";
|
|
239
|
+
MsgType[MsgType["Retrieve"] = 506] = "Retrieve";
|
|
240
|
+
MsgType[MsgType["RetrieveResult"] = 507] = "RetrieveResult";
|
|
241
|
+
MsgType[MsgType["WatchDmChannels"] = 508] = "WatchDmChannels";
|
|
242
|
+
MsgType[MsgType["RemoveDmChannels"] = 509] = "RemoveDmChannels";
|
|
243
|
+
MsgType[MsgType["WatchQueryChannels"] = 510] = "WatchQueryChannels";
|
|
244
|
+
MsgType[MsgType["RemoveQueryChannels"] = 511] = "RemoveQueryChannels";
|
|
245
|
+
MsgType[MsgType["SealedSegmentsChangeInfo"] = 512] = "SealedSegmentsChangeInfo";
|
|
246
|
+
MsgType[MsgType["WatchDeltaChannels"] = 513] = "WatchDeltaChannels";
|
|
247
|
+
MsgType[MsgType["GetShardLeaders"] = 514] = "GetShardLeaders";
|
|
248
|
+
MsgType[MsgType["GetReplicas"] = 515] = "GetReplicas";
|
|
249
|
+
MsgType[MsgType["UnsubDmChannel"] = 516] = "UnsubDmChannel";
|
|
250
|
+
MsgType[MsgType["GetDistribution"] = 517] = "GetDistribution";
|
|
251
|
+
MsgType[MsgType["SyncDistribution"] = 518] = "SyncDistribution";
|
|
252
|
+
/* DATA SERVICE */
|
|
253
|
+
MsgType[MsgType["SegmentInfo"] = 600] = "SegmentInfo";
|
|
254
|
+
MsgType[MsgType["SystemInfo"] = 601] = "SystemInfo";
|
|
255
|
+
MsgType[MsgType["GetRecoveryInfo"] = 602] = "GetRecoveryInfo";
|
|
256
|
+
MsgType[MsgType["GetSegmentState"] = 603] = "GetSegmentState";
|
|
257
|
+
/* SYSTEM CONTROL */
|
|
258
|
+
MsgType[MsgType["TimeTick"] = 1200] = "TimeTick";
|
|
259
|
+
MsgType[MsgType["QueryNodeStats"] = 1201] = "QueryNodeStats";
|
|
260
|
+
MsgType[MsgType["LoadIndex"] = 1202] = "LoadIndex";
|
|
261
|
+
MsgType[MsgType["RequestID"] = 1203] = "RequestID";
|
|
262
|
+
MsgType[MsgType["RequestTSO"] = 1204] = "RequestTSO";
|
|
263
|
+
MsgType[MsgType["AllocateSegment"] = 1205] = "AllocateSegment";
|
|
264
|
+
MsgType[MsgType["SegmentStatistics"] = 1206] = "SegmentStatistics";
|
|
265
|
+
MsgType[MsgType["SegmentFlushDone"] = 1207] = "SegmentFlushDone";
|
|
266
|
+
MsgType[MsgType["DataNodeTt"] = 1208] = "DataNodeTt";
|
|
267
|
+
/* Credential */
|
|
268
|
+
MsgType[MsgType["CreateCredential"] = 1500] = "CreateCredential";
|
|
269
|
+
MsgType[MsgType["GetCredential"] = 1501] = "GetCredential";
|
|
270
|
+
MsgType[MsgType["DeleteCredential"] = 1502] = "DeleteCredential";
|
|
271
|
+
MsgType[MsgType["UpdateCredential"] = 1503] = "UpdateCredential";
|
|
272
|
+
MsgType[MsgType["ListCredUsernames"] = 1504] = "ListCredUsernames";
|
|
273
|
+
/* RBAC */
|
|
274
|
+
MsgType[MsgType["CreateRole"] = 1600] = "CreateRole";
|
|
275
|
+
MsgType[MsgType["DropRole"] = 1601] = "DropRole";
|
|
276
|
+
MsgType[MsgType["OperateUserRole"] = 1602] = "OperateUserRole";
|
|
277
|
+
MsgType[MsgType["SelectRole"] = 1603] = "SelectRole";
|
|
278
|
+
MsgType[MsgType["SelectUser"] = 1604] = "SelectUser";
|
|
279
|
+
MsgType[MsgType["SelectResource"] = 1605] = "SelectResource";
|
|
280
|
+
MsgType[MsgType["OperatePrivilege"] = 1606] = "OperatePrivilege";
|
|
281
|
+
MsgType[MsgType["SelectGrant"] = 1607] = "SelectGrant";
|
|
282
|
+
MsgType[MsgType["RefreshPolicyInfoCache"] = 1608] = "RefreshPolicyInfoCache";
|
|
283
|
+
MsgType[MsgType["ListPolicy"] = 1609] = "ListPolicy";
|
|
284
|
+
})(MsgType = exports.MsgType || (exports.MsgType = {}));
|
|
285
|
+
/**
|
|
286
|
+
* @brief Field data type
|
|
287
|
+
*/
|
|
288
|
+
var DataType;
|
|
289
|
+
(function (DataType) {
|
|
290
|
+
DataType[DataType["None"] = 0] = "None";
|
|
291
|
+
DataType[DataType["Bool"] = 1] = "Bool";
|
|
292
|
+
DataType[DataType["Int8"] = 2] = "Int8";
|
|
293
|
+
DataType[DataType["Int16"] = 3] = "Int16";
|
|
294
|
+
DataType[DataType["Int32"] = 4] = "Int32";
|
|
295
|
+
DataType[DataType["Int64"] = 5] = "Int64";
|
|
296
|
+
DataType[DataType["Float"] = 10] = "Float";
|
|
297
|
+
DataType[DataType["Double"] = 11] = "Double";
|
|
298
|
+
DataType[DataType["String"] = 20] = "String";
|
|
299
|
+
DataType[DataType["VarChar"] = 21] = "VarChar";
|
|
300
|
+
DataType[DataType["BinaryVector"] = 100] = "BinaryVector";
|
|
301
|
+
DataType[DataType["FloatVector"] = 101] = "FloatVector";
|
|
302
|
+
})(DataType = exports.DataType || (exports.DataType = {}));
|
|
303
|
+
exports.DataTypeMap = {
|
|
304
|
+
none: 0,
|
|
305
|
+
bool: 1,
|
|
306
|
+
int8: 2,
|
|
307
|
+
int16: 3,
|
|
308
|
+
int32: 4,
|
|
309
|
+
int64: 5,
|
|
310
|
+
float: 10,
|
|
311
|
+
double: 11,
|
|
312
|
+
string: 20,
|
|
313
|
+
varchar: 21,
|
|
314
|
+
binaryvector: 100,
|
|
315
|
+
floatvector: 101,
|
|
316
|
+
};
|
|
317
|
+
var OperateUserRoleType;
|
|
318
|
+
(function (OperateUserRoleType) {
|
|
319
|
+
OperateUserRoleType[OperateUserRoleType["AddUserToRole"] = 0] = "AddUserToRole";
|
|
320
|
+
OperateUserRoleType[OperateUserRoleType["RemoveUserFromRole"] = 1] = "RemoveUserFromRole";
|
|
321
|
+
})(OperateUserRoleType = exports.OperateUserRoleType || (exports.OperateUserRoleType = {}));
|
|
322
|
+
var OperatePrivilegeType;
|
|
323
|
+
(function (OperatePrivilegeType) {
|
|
324
|
+
OperatePrivilegeType[OperatePrivilegeType["Grant"] = 0] = "Grant";
|
|
325
|
+
OperatePrivilegeType[OperatePrivilegeType["Revoke"] = 1] = "Revoke";
|
|
326
|
+
})(OperatePrivilegeType = exports.OperatePrivilegeType || (exports.OperatePrivilegeType = {}));
|
|
327
|
+
var Roles;
|
|
328
|
+
(function (Roles) {
|
|
329
|
+
Roles["ADMIN"] = "admin";
|
|
330
|
+
Roles["PUBLIC"] = "public";
|
|
331
|
+
})(Roles = exports.Roles || (exports.Roles = {}));
|
|
332
|
+
var RbacObjects;
|
|
333
|
+
(function (RbacObjects) {
|
|
334
|
+
RbacObjects["Collection"] = "Collection";
|
|
335
|
+
RbacObjects["Global"] = "Global";
|
|
336
|
+
RbacObjects["User"] = "User";
|
|
337
|
+
})(RbacObjects = exports.RbacObjects || (exports.RbacObjects = {}));
|
|
338
|
+
var CollectionPrivileges;
|
|
339
|
+
(function (CollectionPrivileges) {
|
|
340
|
+
CollectionPrivileges["CreateIndex"] = "CreateIndex";
|
|
341
|
+
CollectionPrivileges["DropIndex"] = "DropIndex";
|
|
342
|
+
CollectionPrivileges["IndexDetail"] = "IndexDetail";
|
|
343
|
+
CollectionPrivileges["Load"] = "Load";
|
|
344
|
+
CollectionPrivileges["Release"] = "Release";
|
|
345
|
+
CollectionPrivileges["Insert"] = "Insert";
|
|
346
|
+
CollectionPrivileges["Delete"] = "Delete";
|
|
347
|
+
CollectionPrivileges["Search"] = "Search";
|
|
348
|
+
CollectionPrivileges["Flush"] = "Flush";
|
|
349
|
+
CollectionPrivileges["Query"] = "Query";
|
|
350
|
+
CollectionPrivileges["GetStatistics"] = "GetStatistics";
|
|
351
|
+
CollectionPrivileges["Compaction"] = "Compaction";
|
|
352
|
+
CollectionPrivileges["Alias"] = "Alias";
|
|
353
|
+
CollectionPrivileges["Import"] = "Import";
|
|
354
|
+
CollectionPrivileges["LoadBalance"] = "LoadBalance";
|
|
355
|
+
})(CollectionPrivileges = exports.CollectionPrivileges || (exports.CollectionPrivileges = {}));
|
|
356
|
+
var GlobalPrivileges;
|
|
357
|
+
(function (GlobalPrivileges) {
|
|
358
|
+
GlobalPrivileges["All"] = "*";
|
|
359
|
+
GlobalPrivileges["CreateCollection"] = "CreateCollection";
|
|
360
|
+
GlobalPrivileges["DropCollection"] = "DropCollection";
|
|
361
|
+
GlobalPrivileges["DescribeCollection"] = "DescribeCollection";
|
|
362
|
+
GlobalPrivileges["ShowCollections"] = "ShowCollections";
|
|
363
|
+
GlobalPrivileges["CreateOwnership"] = "CreateOwnership";
|
|
364
|
+
GlobalPrivileges["DropOwnership"] = "DropOwnership";
|
|
365
|
+
GlobalPrivileges["SelectOwnership"] = "SelectOwnership";
|
|
366
|
+
GlobalPrivileges["ManageOwnership"] = "ManageOwnership";
|
|
367
|
+
})(GlobalPrivileges = exports.GlobalPrivileges || (exports.GlobalPrivileges = {}));
|
|
368
|
+
var UserPrivileges;
|
|
369
|
+
(function (UserPrivileges) {
|
|
370
|
+
UserPrivileges["UpdateUser"] = "UpdateUser";
|
|
371
|
+
UserPrivileges["SelectUser"] = "SelectUser";
|
|
372
|
+
})(UserPrivileges = exports.UserPrivileges || (exports.UserPrivileges = {}));
|
|
373
|
+
exports.Privileges = __assign(__assign(__assign({}, CollectionPrivileges), UserPrivileges), GlobalPrivileges);
|
|
374
|
+
exports.DEFAULT_RESOURCE_GROUP = '__default_resource_group';
|
|
375
|
+
//# sourceMappingURL=Milvus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Milvus.js","sourceRoot":"","sources":["../../../milvus/const/Milvus.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAa,QAAA,mBA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