@zilliz/milvus2-sdk-node 2.2.0 → 2.2.2
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/README.md +21 -13
- package/dist/milvus/Collection.d.ts +2 -0
- package/dist/milvus/Collection.js +6 -4
- package/dist/milvus/Collection.js.map +1 -1
- package/dist/milvus/Data.d.ts +1 -0
- package/dist/milvus/Data.js +6 -7
- package/dist/milvus/Data.js.map +1 -1
- package/dist/milvus/User.d.ts +316 -28
- package/dist/milvus/User.js +565 -26
- package/dist/milvus/User.js.map +1 -1
- package/dist/milvus/types/Common.d.ts +164 -1
- package/dist/milvus/types/Common.js +218 -1
- package/dist/milvus/types/Common.js.map +1 -1
- package/dist/milvus/types/Index.d.ts +1 -1
- package/dist/milvus/types/Response.d.ts +47 -1
- package/dist/milvus/types/Response.js.map +1 -1
- package/dist/milvus/types/User.d.ts +37 -1
- package/dist/proto/proto/common.proto +19 -1
- package/dist/proto/proto/google/protobuf/descriptor.proto +24 -0
- package/dist/proto/proto/milvus.proto +43 -2
- package/dist/proto/proto/schema.proto +2 -0
- package/dist/sdk.json +1 -1
- package/package.json +2 -2
|
@@ -31,6 +31,10 @@ export declare enum MsgType {
|
|
|
31
31
|
GetSystemConfigs = 105,
|
|
32
32
|
LoadCollection = 106,
|
|
33
33
|
ReleaseCollection = 107,
|
|
34
|
+
CreateAlias = 108,
|
|
35
|
+
DropAlias = 109,
|
|
36
|
+
AlterAlias = 110,
|
|
37
|
+
AlterCollection = 111,
|
|
34
38
|
CreatePartition = 200,
|
|
35
39
|
DropPartition = 201,
|
|
36
40
|
HasPartition = 202,
|
|
@@ -40,12 +44,18 @@ export declare enum MsgType {
|
|
|
40
44
|
ReleasePartitions = 206,
|
|
41
45
|
ShowSegments = 250,
|
|
42
46
|
DescribeSegment = 251,
|
|
47
|
+
LoadSegments = 252,
|
|
48
|
+
ReleaseSegments = 253,
|
|
49
|
+
HandoffSegments = 254,
|
|
50
|
+
LoadBalanceSegments = 255,
|
|
51
|
+
DescribeSegments = 256,
|
|
43
52
|
CreateIndex = 300,
|
|
44
53
|
DescribeIndex = 301,
|
|
45
54
|
DropIndex = 302,
|
|
46
55
|
Insert = 400,
|
|
47
56
|
Delete = 401,
|
|
48
57
|
Flush = 402,
|
|
58
|
+
ResendSegmentStats = 403,
|
|
49
59
|
Search = 500,
|
|
50
60
|
SearchResult = 501,
|
|
51
61
|
GetIndexState = 502,
|
|
@@ -54,7 +64,21 @@ export declare enum MsgType {
|
|
|
54
64
|
GetPartitionStatistics = 505,
|
|
55
65
|
Retrieve = 506,
|
|
56
66
|
RetrieveResult = 507,
|
|
67
|
+
WatchDmChannels = 508,
|
|
68
|
+
RemoveDmChannels = 509,
|
|
69
|
+
WatchQueryChannels = 510,
|
|
70
|
+
RemoveQueryChannels = 511,
|
|
71
|
+
SealedSegmentsChangeInfo = 512,
|
|
72
|
+
WatchDeltaChannels = 513,
|
|
73
|
+
GetShardLeaders = 514,
|
|
74
|
+
GetReplicas = 515,
|
|
75
|
+
UnsubDmChannel = 516,
|
|
76
|
+
GetDistribution = 517,
|
|
77
|
+
SyncDistribution = 518,
|
|
57
78
|
SegmentInfo = 600,
|
|
79
|
+
SystemInfo = 601,
|
|
80
|
+
GetRecoveryInfo = 602,
|
|
81
|
+
GetSegmentState = 603,
|
|
58
82
|
TimeTick = 1200,
|
|
59
83
|
QueryNodeStats = 1201,
|
|
60
84
|
LoadIndex = 1202,
|
|
@@ -62,7 +86,23 @@ export declare enum MsgType {
|
|
|
62
86
|
RequestTSO = 1204,
|
|
63
87
|
AllocateSegment = 1205,
|
|
64
88
|
SegmentStatistics = 1206,
|
|
65
|
-
SegmentFlushDone = 1207
|
|
89
|
+
SegmentFlushDone = 1207,
|
|
90
|
+
DataNodeTt = 1208,
|
|
91
|
+
CreateCredential = 1500,
|
|
92
|
+
GetCredential = 1501,
|
|
93
|
+
DeleteCredential = 1502,
|
|
94
|
+
UpdateCredential = 1503,
|
|
95
|
+
ListCredUsernames = 1504,
|
|
96
|
+
CreateRole = 1600,
|
|
97
|
+
DropRole = 1601,
|
|
98
|
+
OperateUserRole = 1602,
|
|
99
|
+
SelectRole = 1603,
|
|
100
|
+
SelectUser = 1604,
|
|
101
|
+
SelectResource = 1605,
|
|
102
|
+
OperatePrivilege = 1606,
|
|
103
|
+
SelectGrant = 1607,
|
|
104
|
+
RefreshPolicyInfoCache = 1608,
|
|
105
|
+
ListPolicy = 1609
|
|
66
106
|
}
|
|
67
107
|
export interface MsgBase {
|
|
68
108
|
base: {
|
|
@@ -132,6 +172,13 @@ export declare enum CompactionState {
|
|
|
132
172
|
export interface GrpcTimeOut {
|
|
133
173
|
timeout?: number;
|
|
134
174
|
}
|
|
175
|
+
export declare enum ConsistencyLevel {
|
|
176
|
+
Strong = 0,
|
|
177
|
+
Session = 1,
|
|
178
|
+
Bounded = 2,
|
|
179
|
+
Eventually = 3,
|
|
180
|
+
Customized = 4
|
|
181
|
+
}
|
|
135
182
|
export declare enum ImportState {
|
|
136
183
|
ImportPending = "ImportPending",
|
|
137
184
|
ImportFailed = "ImportFailed",
|
|
@@ -140,4 +187,120 @@ export declare enum ImportState {
|
|
|
140
187
|
ImportCompleted = "ImportCompleted",
|
|
141
188
|
ImportFailedAndCleaned = "ImportFailedAndCleaned"
|
|
142
189
|
}
|
|
190
|
+
export declare enum ObjectType {
|
|
191
|
+
Collection = 0,
|
|
192
|
+
Global = 1,
|
|
193
|
+
User = 2
|
|
194
|
+
}
|
|
195
|
+
export declare enum ObjectPrivilege {
|
|
196
|
+
PrivilegeAll = 0,
|
|
197
|
+
PrivilegeCreateCollection = 1,
|
|
198
|
+
PrivilegeDropCollection = 2,
|
|
199
|
+
PrivilegeDescribeCollection = 3,
|
|
200
|
+
PrivilegeShowCollections = 4,
|
|
201
|
+
PrivilegeLoad = 5,
|
|
202
|
+
PrivilegeRelease = 6,
|
|
203
|
+
PrivilegeCompaction = 7,
|
|
204
|
+
PrivilegeInsert = 8,
|
|
205
|
+
PrivilegeDelete = 9,
|
|
206
|
+
PrivilegeGetStatistics = 10,
|
|
207
|
+
PrivilegeCreateIndex = 11,
|
|
208
|
+
PrivilegeIndexDetail = 12,
|
|
209
|
+
PrivilegeDropIndex = 13,
|
|
210
|
+
PrivilegeSearch = 14,
|
|
211
|
+
PrivilegeFlush = 15,
|
|
212
|
+
PrivilegeQuery = 16,
|
|
213
|
+
PrivilegeLoadBalance = 17,
|
|
214
|
+
PrivilegeImport = 18,
|
|
215
|
+
PrivilegeCreateOwnership = 19,
|
|
216
|
+
PrivilegeUpdateUser = 20,
|
|
217
|
+
PrivilegeDropOwnership = 21,
|
|
218
|
+
PrivilegeSelectOwnership = 22,
|
|
219
|
+
PrivilegeManageOwnership = 23,
|
|
220
|
+
PrivilegeSelectUser = 24
|
|
221
|
+
}
|
|
222
|
+
export declare enum StateCode {
|
|
223
|
+
Initializing = 0,
|
|
224
|
+
Healthy = 1,
|
|
225
|
+
Abnormal = 2,
|
|
226
|
+
StandBy = 3
|
|
227
|
+
}
|
|
228
|
+
export declare enum OperateUserRoleType {
|
|
229
|
+
AddUserToRole = 0,
|
|
230
|
+
RemoveUserFromRole = 1
|
|
231
|
+
}
|
|
232
|
+
export declare enum OperatePrivilegeType {
|
|
233
|
+
Grant = 0,
|
|
234
|
+
Revoke = 1
|
|
235
|
+
}
|
|
236
|
+
export declare enum Roles {
|
|
237
|
+
ADMIN = "admin",
|
|
238
|
+
PUBLIC = "public"
|
|
239
|
+
}
|
|
240
|
+
export declare enum RbacObjects {
|
|
241
|
+
Collection = "Collection",
|
|
242
|
+
Global = "Global",
|
|
243
|
+
User = "User"
|
|
244
|
+
}
|
|
245
|
+
export declare enum CollectionPrivileges {
|
|
246
|
+
CreateIndex = "CreateIndex",
|
|
247
|
+
DropIndex = "DropIndex",
|
|
248
|
+
IndexDetail = "IndexDetail",
|
|
249
|
+
Load = "Load",
|
|
250
|
+
Release = "Release",
|
|
251
|
+
Insert = "Insert",
|
|
252
|
+
Delete = "Delete",
|
|
253
|
+
Search = "Search",
|
|
254
|
+
Flush = "Flush",
|
|
255
|
+
Query = "Query",
|
|
256
|
+
GetStatistics = "GetStatistics",
|
|
257
|
+
Compaction = "Compaction",
|
|
258
|
+
Alias = "Alias",
|
|
259
|
+
Import = "Import",
|
|
260
|
+
LoadBalance = "LoadBalance"
|
|
261
|
+
}
|
|
262
|
+
export declare enum GlobalPrivileges {
|
|
263
|
+
All = "*",
|
|
264
|
+
CreateCollection = "CreateCollection",
|
|
265
|
+
DropCollection = "DropCollection",
|
|
266
|
+
DescribeCollection = "DescribeCollection",
|
|
267
|
+
ShowCollections = "ShowCollections",
|
|
268
|
+
CreateOwnership = "CreateOwnership",
|
|
269
|
+
DropOwnership = "DropOwnership",
|
|
270
|
+
SelectOwnership = "SelectOwnership",
|
|
271
|
+
ManageOwnership = "ManageOwnership"
|
|
272
|
+
}
|
|
273
|
+
export declare enum UserPrivileges {
|
|
274
|
+
UpdateUser = "UpdateUser",
|
|
275
|
+
SelectUser = "SelectUser"
|
|
276
|
+
}
|
|
277
|
+
export declare const Privileges: {
|
|
278
|
+
All: GlobalPrivileges.All;
|
|
279
|
+
CreateCollection: GlobalPrivileges.CreateCollection;
|
|
280
|
+
DropCollection: GlobalPrivileges.DropCollection;
|
|
281
|
+
DescribeCollection: GlobalPrivileges.DescribeCollection;
|
|
282
|
+
ShowCollections: GlobalPrivileges.ShowCollections;
|
|
283
|
+
CreateOwnership: GlobalPrivileges.CreateOwnership;
|
|
284
|
+
DropOwnership: GlobalPrivileges.DropOwnership;
|
|
285
|
+
SelectOwnership: GlobalPrivileges.SelectOwnership;
|
|
286
|
+
ManageOwnership: GlobalPrivileges.ManageOwnership;
|
|
287
|
+
UpdateUser: UserPrivileges.UpdateUser;
|
|
288
|
+
SelectUser: UserPrivileges.SelectUser;
|
|
289
|
+
CreateIndex: CollectionPrivileges.CreateIndex;
|
|
290
|
+
DropIndex: CollectionPrivileges.DropIndex;
|
|
291
|
+
IndexDetail: CollectionPrivileges.IndexDetail;
|
|
292
|
+
Load: CollectionPrivileges.Load;
|
|
293
|
+
Release: CollectionPrivileges.Release;
|
|
294
|
+
Insert: CollectionPrivileges.Insert;
|
|
295
|
+
Delete: CollectionPrivileges.Delete;
|
|
296
|
+
Search: CollectionPrivileges.Search;
|
|
297
|
+
Flush: CollectionPrivileges.Flush;
|
|
298
|
+
Query: CollectionPrivileges.Query;
|
|
299
|
+
GetStatistics: CollectionPrivileges.GetStatistics;
|
|
300
|
+
Compaction: CollectionPrivileges.Compaction;
|
|
301
|
+
Alias: CollectionPrivileges.Alias;
|
|
302
|
+
Import: CollectionPrivileges.Import;
|
|
303
|
+
LoadBalance: CollectionPrivileges.LoadBalance;
|
|
304
|
+
};
|
|
305
|
+
export declare type Privileges = CollectionPrivileges | UserPrivileges | GlobalPrivileges;
|
|
143
306
|
export {};
|
|
@@ -1,6 +1,75 @@
|
|
|
1
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
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ImportState = exports.CompactionState = exports.SegmentState = exports.DslType = exports.IndexState = exports.DataTypeMap = exports.DataType = exports.MsgType = exports.IndexType = exports.MetricType = void 0;
|
|
14
|
+
exports.Privileges = exports.UserPrivileges = exports.GlobalPrivileges = exports.CollectionPrivileges = exports.RbacObjects = exports.Roles = exports.OperatePrivilegeType = exports.OperateUserRoleType = exports.StateCode = exports.ObjectPrivilege = exports.ObjectType = exports.ImportState = exports.ConsistencyLevel = exports.CompactionState = exports.SegmentState = exports.DslType = exports.IndexState = exports.DataTypeMap = exports.DataType = exports.MsgType = exports.IndexType = exports.MetricType = void 0;
|
|
15
|
+
var ErrorCode;
|
|
16
|
+
(function (ErrorCode) {
|
|
17
|
+
ErrorCode[ErrorCode["Success"] = 0] = "Success";
|
|
18
|
+
ErrorCode[ErrorCode["UnexpectedError"] = 1] = "UnexpectedError";
|
|
19
|
+
ErrorCode[ErrorCode["ConnectFailed"] = 2] = "ConnectFailed";
|
|
20
|
+
ErrorCode[ErrorCode["PermissionDenied"] = 3] = "PermissionDenied";
|
|
21
|
+
ErrorCode[ErrorCode["CollectionNotExists"] = 4] = "CollectionNotExists";
|
|
22
|
+
ErrorCode[ErrorCode["IllegalArgument"] = 5] = "IllegalArgument";
|
|
23
|
+
ErrorCode[ErrorCode["IllegalDimension"] = 7] = "IllegalDimension";
|
|
24
|
+
ErrorCode[ErrorCode["IllegalIndexType"] = 8] = "IllegalIndexType";
|
|
25
|
+
ErrorCode[ErrorCode["IllegalCollectionName"] = 9] = "IllegalCollectionName";
|
|
26
|
+
ErrorCode[ErrorCode["IllegalTOPK"] = 10] = "IllegalTOPK";
|
|
27
|
+
ErrorCode[ErrorCode["IllegalRowRecord"] = 11] = "IllegalRowRecord";
|
|
28
|
+
ErrorCode[ErrorCode["IllegalVectorID"] = 12] = "IllegalVectorID";
|
|
29
|
+
ErrorCode[ErrorCode["IllegalSearchResult"] = 13] = "IllegalSearchResult";
|
|
30
|
+
ErrorCode[ErrorCode["FileNotFound"] = 14] = "FileNotFound";
|
|
31
|
+
ErrorCode[ErrorCode["MetaFailed"] = 15] = "MetaFailed";
|
|
32
|
+
ErrorCode[ErrorCode["CacheFailed"] = 16] = "CacheFailed";
|
|
33
|
+
ErrorCode[ErrorCode["CannotCreateFolder"] = 17] = "CannotCreateFolder";
|
|
34
|
+
ErrorCode[ErrorCode["CannotCreateFile"] = 18] = "CannotCreateFile";
|
|
35
|
+
ErrorCode[ErrorCode["CannotDeleteFolder"] = 19] = "CannotDeleteFolder";
|
|
36
|
+
ErrorCode[ErrorCode["CannotDeleteFile"] = 20] = "CannotDeleteFile";
|
|
37
|
+
ErrorCode[ErrorCode["BuildIndexError"] = 21] = "BuildIndexError";
|
|
38
|
+
ErrorCode[ErrorCode["IllegalNLIST"] = 22] = "IllegalNLIST";
|
|
39
|
+
ErrorCode[ErrorCode["IllegalMetricType"] = 23] = "IllegalMetricType";
|
|
40
|
+
ErrorCode[ErrorCode["OutOfMemory"] = 24] = "OutOfMemory";
|
|
41
|
+
ErrorCode[ErrorCode["IndexNotExist"] = 25] = "IndexNotExist";
|
|
42
|
+
ErrorCode[ErrorCode["EmptyCollection"] = 26] = "EmptyCollection";
|
|
43
|
+
ErrorCode[ErrorCode["UpdateImportTaskFailure"] = 27] = "UpdateImportTaskFailure";
|
|
44
|
+
ErrorCode[ErrorCode["CollectionNameNotFound"] = 28] = "CollectionNameNotFound";
|
|
45
|
+
ErrorCode[ErrorCode["CreateCredentialFailure"] = 29] = "CreateCredentialFailure";
|
|
46
|
+
ErrorCode[ErrorCode["UpdateCredentialFailure"] = 30] = "UpdateCredentialFailure";
|
|
47
|
+
ErrorCode[ErrorCode["DeleteCredentialFailure"] = 31] = "DeleteCredentialFailure";
|
|
48
|
+
ErrorCode[ErrorCode["GetCredentialFailure"] = 32] = "GetCredentialFailure";
|
|
49
|
+
ErrorCode[ErrorCode["ListCredUsersFailure"] = 33] = "ListCredUsersFailure";
|
|
50
|
+
ErrorCode[ErrorCode["GetUserFailure"] = 34] = "GetUserFailure";
|
|
51
|
+
ErrorCode[ErrorCode["CreateRoleFailure"] = 35] = "CreateRoleFailure";
|
|
52
|
+
ErrorCode[ErrorCode["DropRoleFailure"] = 36] = "DropRoleFailure";
|
|
53
|
+
ErrorCode[ErrorCode["OperateUserRoleFailure"] = 37] = "OperateUserRoleFailure";
|
|
54
|
+
ErrorCode[ErrorCode["SelectRoleFailure"] = 38] = "SelectRoleFailure";
|
|
55
|
+
ErrorCode[ErrorCode["SelectUserFailure"] = 39] = "SelectUserFailure";
|
|
56
|
+
ErrorCode[ErrorCode["SelectResourceFailure"] = 40] = "SelectResourceFailure";
|
|
57
|
+
ErrorCode[ErrorCode["OperatePrivilegeFailure"] = 41] = "OperatePrivilegeFailure";
|
|
58
|
+
ErrorCode[ErrorCode["SelectGrantFailure"] = 42] = "SelectGrantFailure";
|
|
59
|
+
ErrorCode[ErrorCode["RefreshPolicyInfoCacheFailure"] = 43] = "RefreshPolicyInfoCacheFailure";
|
|
60
|
+
ErrorCode[ErrorCode["ListPolicyFailure"] = 44] = "ListPolicyFailure";
|
|
61
|
+
ErrorCode[ErrorCode["NotShardLeader"] = 45] = "NotShardLeader";
|
|
62
|
+
ErrorCode[ErrorCode["NoReplicaAvailable"] = 46] = "NoReplicaAvailable";
|
|
63
|
+
ErrorCode[ErrorCode["SegmentNotFound"] = 47] = "SegmentNotFound";
|
|
64
|
+
ErrorCode[ErrorCode["ForceDeny"] = 48] = "ForceDeny";
|
|
65
|
+
ErrorCode[ErrorCode["RateLimit"] = 49] = "RateLimit";
|
|
66
|
+
ErrorCode[ErrorCode["NodeIDNotMatch"] = 50] = "NodeIDNotMatch";
|
|
67
|
+
// Service availability.
|
|
68
|
+
// NA: Not Available.
|
|
69
|
+
ErrorCode[ErrorCode["DataCoordNA"] = 100] = "DataCoordNA";
|
|
70
|
+
// internal error code.
|
|
71
|
+
ErrorCode[ErrorCode["DDRequestRace"] = 1000] = "DDRequestRace";
|
|
72
|
+
})(ErrorCode || (ErrorCode = {}));
|
|
4
73
|
var MetricType;
|
|
5
74
|
(function (MetricType) {
|
|
6
75
|
MetricType[MetricType["GHOST"] = 0] = "GHOST";
|
|
@@ -56,6 +125,10 @@ var MsgType;
|
|
|
56
125
|
MsgType[MsgType["GetSystemConfigs"] = 105] = "GetSystemConfigs";
|
|
57
126
|
MsgType[MsgType["LoadCollection"] = 106] = "LoadCollection";
|
|
58
127
|
MsgType[MsgType["ReleaseCollection"] = 107] = "ReleaseCollection";
|
|
128
|
+
MsgType[MsgType["CreateAlias"] = 108] = "CreateAlias";
|
|
129
|
+
MsgType[MsgType["DropAlias"] = 109] = "DropAlias";
|
|
130
|
+
MsgType[MsgType["AlterAlias"] = 110] = "AlterAlias";
|
|
131
|
+
MsgType[MsgType["AlterCollection"] = 111] = "AlterCollection";
|
|
59
132
|
/* DEFINITION REQUESTS: PARTITION */
|
|
60
133
|
MsgType[MsgType["CreatePartition"] = 200] = "CreatePartition";
|
|
61
134
|
MsgType[MsgType["DropPartition"] = 201] = "DropPartition";
|
|
@@ -67,6 +140,11 @@ var MsgType;
|
|
|
67
140
|
/* DEFINE REQUESTS: SEGMENT */
|
|
68
141
|
MsgType[MsgType["ShowSegments"] = 250] = "ShowSegments";
|
|
69
142
|
MsgType[MsgType["DescribeSegment"] = 251] = "DescribeSegment";
|
|
143
|
+
MsgType[MsgType["LoadSegments"] = 252] = "LoadSegments";
|
|
144
|
+
MsgType[MsgType["ReleaseSegments"] = 253] = "ReleaseSegments";
|
|
145
|
+
MsgType[MsgType["HandoffSegments"] = 254] = "HandoffSegments";
|
|
146
|
+
MsgType[MsgType["LoadBalanceSegments"] = 255] = "LoadBalanceSegments";
|
|
147
|
+
MsgType[MsgType["DescribeSegments"] = 256] = "DescribeSegments";
|
|
70
148
|
/* DEFINITION REQUESTS: INDEX */
|
|
71
149
|
MsgType[MsgType["CreateIndex"] = 300] = "CreateIndex";
|
|
72
150
|
MsgType[MsgType["DescribeIndex"] = 301] = "DescribeIndex";
|
|
@@ -75,6 +153,7 @@ var MsgType;
|
|
|
75
153
|
MsgType[MsgType["Insert"] = 400] = "Insert";
|
|
76
154
|
MsgType[MsgType["Delete"] = 401] = "Delete";
|
|
77
155
|
MsgType[MsgType["Flush"] = 402] = "Flush";
|
|
156
|
+
MsgType[MsgType["ResendSegmentStats"] = 403] = "ResendSegmentStats";
|
|
78
157
|
/* QUERY */
|
|
79
158
|
MsgType[MsgType["Search"] = 500] = "Search";
|
|
80
159
|
MsgType[MsgType["SearchResult"] = 501] = "SearchResult";
|
|
@@ -84,8 +163,22 @@ var MsgType;
|
|
|
84
163
|
MsgType[MsgType["GetPartitionStatistics"] = 505] = "GetPartitionStatistics";
|
|
85
164
|
MsgType[MsgType["Retrieve"] = 506] = "Retrieve";
|
|
86
165
|
MsgType[MsgType["RetrieveResult"] = 507] = "RetrieveResult";
|
|
166
|
+
MsgType[MsgType["WatchDmChannels"] = 508] = "WatchDmChannels";
|
|
167
|
+
MsgType[MsgType["RemoveDmChannels"] = 509] = "RemoveDmChannels";
|
|
168
|
+
MsgType[MsgType["WatchQueryChannels"] = 510] = "WatchQueryChannels";
|
|
169
|
+
MsgType[MsgType["RemoveQueryChannels"] = 511] = "RemoveQueryChannels";
|
|
170
|
+
MsgType[MsgType["SealedSegmentsChangeInfo"] = 512] = "SealedSegmentsChangeInfo";
|
|
171
|
+
MsgType[MsgType["WatchDeltaChannels"] = 513] = "WatchDeltaChannels";
|
|
172
|
+
MsgType[MsgType["GetShardLeaders"] = 514] = "GetShardLeaders";
|
|
173
|
+
MsgType[MsgType["GetReplicas"] = 515] = "GetReplicas";
|
|
174
|
+
MsgType[MsgType["UnsubDmChannel"] = 516] = "UnsubDmChannel";
|
|
175
|
+
MsgType[MsgType["GetDistribution"] = 517] = "GetDistribution";
|
|
176
|
+
MsgType[MsgType["SyncDistribution"] = 518] = "SyncDistribution";
|
|
87
177
|
/* DATA SERVICE */
|
|
88
178
|
MsgType[MsgType["SegmentInfo"] = 600] = "SegmentInfo";
|
|
179
|
+
MsgType[MsgType["SystemInfo"] = 601] = "SystemInfo";
|
|
180
|
+
MsgType[MsgType["GetRecoveryInfo"] = 602] = "GetRecoveryInfo";
|
|
181
|
+
MsgType[MsgType["GetSegmentState"] = 603] = "GetSegmentState";
|
|
89
182
|
/* SYSTEM CONTROL */
|
|
90
183
|
MsgType[MsgType["TimeTick"] = 1200] = "TimeTick";
|
|
91
184
|
MsgType[MsgType["QueryNodeStats"] = 1201] = "QueryNodeStats";
|
|
@@ -95,6 +188,24 @@ var MsgType;
|
|
|
95
188
|
MsgType[MsgType["AllocateSegment"] = 1205] = "AllocateSegment";
|
|
96
189
|
MsgType[MsgType["SegmentStatistics"] = 1206] = "SegmentStatistics";
|
|
97
190
|
MsgType[MsgType["SegmentFlushDone"] = 1207] = "SegmentFlushDone";
|
|
191
|
+
MsgType[MsgType["DataNodeTt"] = 1208] = "DataNodeTt";
|
|
192
|
+
/* Credential */
|
|
193
|
+
MsgType[MsgType["CreateCredential"] = 1500] = "CreateCredential";
|
|
194
|
+
MsgType[MsgType["GetCredential"] = 1501] = "GetCredential";
|
|
195
|
+
MsgType[MsgType["DeleteCredential"] = 1502] = "DeleteCredential";
|
|
196
|
+
MsgType[MsgType["UpdateCredential"] = 1503] = "UpdateCredential";
|
|
197
|
+
MsgType[MsgType["ListCredUsernames"] = 1504] = "ListCredUsernames";
|
|
198
|
+
/* RBAC */
|
|
199
|
+
MsgType[MsgType["CreateRole"] = 1600] = "CreateRole";
|
|
200
|
+
MsgType[MsgType["DropRole"] = 1601] = "DropRole";
|
|
201
|
+
MsgType[MsgType["OperateUserRole"] = 1602] = "OperateUserRole";
|
|
202
|
+
MsgType[MsgType["SelectRole"] = 1603] = "SelectRole";
|
|
203
|
+
MsgType[MsgType["SelectUser"] = 1604] = "SelectUser";
|
|
204
|
+
MsgType[MsgType["SelectResource"] = 1605] = "SelectResource";
|
|
205
|
+
MsgType[MsgType["OperatePrivilege"] = 1606] = "OperatePrivilege";
|
|
206
|
+
MsgType[MsgType["SelectGrant"] = 1607] = "SelectGrant";
|
|
207
|
+
MsgType[MsgType["RefreshPolicyInfoCache"] = 1608] = "RefreshPolicyInfoCache";
|
|
208
|
+
MsgType[MsgType["ListPolicy"] = 1609] = "ListPolicy";
|
|
98
209
|
})(MsgType = exports.MsgType || (exports.MsgType = {}));
|
|
99
210
|
/**
|
|
100
211
|
* @brief Field data type
|
|
@@ -156,6 +267,14 @@ var CompactionState;
|
|
|
156
267
|
CompactionState[CompactionState["Executing"] = 1] = "Executing";
|
|
157
268
|
CompactionState[CompactionState["Completed"] = 2] = "Completed";
|
|
158
269
|
})(CompactionState = exports.CompactionState || (exports.CompactionState = {}));
|
|
270
|
+
var ConsistencyLevel;
|
|
271
|
+
(function (ConsistencyLevel) {
|
|
272
|
+
ConsistencyLevel[ConsistencyLevel["Strong"] = 0] = "Strong";
|
|
273
|
+
ConsistencyLevel[ConsistencyLevel["Session"] = 1] = "Session";
|
|
274
|
+
ConsistencyLevel[ConsistencyLevel["Bounded"] = 2] = "Bounded";
|
|
275
|
+
ConsistencyLevel[ConsistencyLevel["Eventually"] = 3] = "Eventually";
|
|
276
|
+
ConsistencyLevel[ConsistencyLevel["Customized"] = 4] = "Customized";
|
|
277
|
+
})(ConsistencyLevel = exports.ConsistencyLevel || (exports.ConsistencyLevel = {}));
|
|
159
278
|
var ImportState;
|
|
160
279
|
(function (ImportState) {
|
|
161
280
|
ImportState["ImportPending"] = "ImportPending";
|
|
@@ -165,4 +284,102 @@ var ImportState;
|
|
|
165
284
|
ImportState["ImportCompleted"] = "ImportCompleted";
|
|
166
285
|
ImportState["ImportFailedAndCleaned"] = "ImportFailedAndCleaned";
|
|
167
286
|
})(ImportState = exports.ImportState || (exports.ImportState = {}));
|
|
287
|
+
var ObjectType;
|
|
288
|
+
(function (ObjectType) {
|
|
289
|
+
ObjectType[ObjectType["Collection"] = 0] = "Collection";
|
|
290
|
+
ObjectType[ObjectType["Global"] = 1] = "Global";
|
|
291
|
+
ObjectType[ObjectType["User"] = 2] = "User";
|
|
292
|
+
})(ObjectType = exports.ObjectType || (exports.ObjectType = {}));
|
|
293
|
+
var ObjectPrivilege;
|
|
294
|
+
(function (ObjectPrivilege) {
|
|
295
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeAll"] = 0] = "PrivilegeAll";
|
|
296
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeCreateCollection"] = 1] = "PrivilegeCreateCollection";
|
|
297
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeDropCollection"] = 2] = "PrivilegeDropCollection";
|
|
298
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeDescribeCollection"] = 3] = "PrivilegeDescribeCollection";
|
|
299
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeShowCollections"] = 4] = "PrivilegeShowCollections";
|
|
300
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeLoad"] = 5] = "PrivilegeLoad";
|
|
301
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeRelease"] = 6] = "PrivilegeRelease";
|
|
302
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeCompaction"] = 7] = "PrivilegeCompaction";
|
|
303
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeInsert"] = 8] = "PrivilegeInsert";
|
|
304
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeDelete"] = 9] = "PrivilegeDelete";
|
|
305
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeGetStatistics"] = 10] = "PrivilegeGetStatistics";
|
|
306
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeCreateIndex"] = 11] = "PrivilegeCreateIndex";
|
|
307
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeIndexDetail"] = 12] = "PrivilegeIndexDetail";
|
|
308
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeDropIndex"] = 13] = "PrivilegeDropIndex";
|
|
309
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeSearch"] = 14] = "PrivilegeSearch";
|
|
310
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeFlush"] = 15] = "PrivilegeFlush";
|
|
311
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeQuery"] = 16] = "PrivilegeQuery";
|
|
312
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeLoadBalance"] = 17] = "PrivilegeLoadBalance";
|
|
313
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeImport"] = 18] = "PrivilegeImport";
|
|
314
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeCreateOwnership"] = 19] = "PrivilegeCreateOwnership";
|
|
315
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeUpdateUser"] = 20] = "PrivilegeUpdateUser";
|
|
316
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeDropOwnership"] = 21] = "PrivilegeDropOwnership";
|
|
317
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeSelectOwnership"] = 22] = "PrivilegeSelectOwnership";
|
|
318
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeManageOwnership"] = 23] = "PrivilegeManageOwnership";
|
|
319
|
+
ObjectPrivilege[ObjectPrivilege["PrivilegeSelectUser"] = 24] = "PrivilegeSelectUser";
|
|
320
|
+
})(ObjectPrivilege = exports.ObjectPrivilege || (exports.ObjectPrivilege = {}));
|
|
321
|
+
var StateCode;
|
|
322
|
+
(function (StateCode) {
|
|
323
|
+
StateCode[StateCode["Initializing"] = 0] = "Initializing";
|
|
324
|
+
StateCode[StateCode["Healthy"] = 1] = "Healthy";
|
|
325
|
+
StateCode[StateCode["Abnormal"] = 2] = "Abnormal";
|
|
326
|
+
StateCode[StateCode["StandBy"] = 3] = "StandBy";
|
|
327
|
+
})(StateCode = exports.StateCode || (exports.StateCode = {}));
|
|
328
|
+
var OperateUserRoleType;
|
|
329
|
+
(function (OperateUserRoleType) {
|
|
330
|
+
OperateUserRoleType[OperateUserRoleType["AddUserToRole"] = 0] = "AddUserToRole";
|
|
331
|
+
OperateUserRoleType[OperateUserRoleType["RemoveUserFromRole"] = 1] = "RemoveUserFromRole";
|
|
332
|
+
})(OperateUserRoleType = exports.OperateUserRoleType || (exports.OperateUserRoleType = {}));
|
|
333
|
+
var OperatePrivilegeType;
|
|
334
|
+
(function (OperatePrivilegeType) {
|
|
335
|
+
OperatePrivilegeType[OperatePrivilegeType["Grant"] = 0] = "Grant";
|
|
336
|
+
OperatePrivilegeType[OperatePrivilegeType["Revoke"] = 1] = "Revoke";
|
|
337
|
+
})(OperatePrivilegeType = exports.OperatePrivilegeType || (exports.OperatePrivilegeType = {}));
|
|
338
|
+
var Roles;
|
|
339
|
+
(function (Roles) {
|
|
340
|
+
Roles["ADMIN"] = "admin";
|
|
341
|
+
Roles["PUBLIC"] = "public";
|
|
342
|
+
})(Roles = exports.Roles || (exports.Roles = {}));
|
|
343
|
+
var RbacObjects;
|
|
344
|
+
(function (RbacObjects) {
|
|
345
|
+
RbacObjects["Collection"] = "Collection";
|
|
346
|
+
RbacObjects["Global"] = "Global";
|
|
347
|
+
RbacObjects["User"] = "User";
|
|
348
|
+
})(RbacObjects = exports.RbacObjects || (exports.RbacObjects = {}));
|
|
349
|
+
var CollectionPrivileges;
|
|
350
|
+
(function (CollectionPrivileges) {
|
|
351
|
+
CollectionPrivileges["CreateIndex"] = "CreateIndex";
|
|
352
|
+
CollectionPrivileges["DropIndex"] = "DropIndex";
|
|
353
|
+
CollectionPrivileges["IndexDetail"] = "IndexDetail";
|
|
354
|
+
CollectionPrivileges["Load"] = "Load";
|
|
355
|
+
CollectionPrivileges["Release"] = "Release";
|
|
356
|
+
CollectionPrivileges["Insert"] = "Insert";
|
|
357
|
+
CollectionPrivileges["Delete"] = "Delete";
|
|
358
|
+
CollectionPrivileges["Search"] = "Search";
|
|
359
|
+
CollectionPrivileges["Flush"] = "Flush";
|
|
360
|
+
CollectionPrivileges["Query"] = "Query";
|
|
361
|
+
CollectionPrivileges["GetStatistics"] = "GetStatistics";
|
|
362
|
+
CollectionPrivileges["Compaction"] = "Compaction";
|
|
363
|
+
CollectionPrivileges["Alias"] = "Alias";
|
|
364
|
+
CollectionPrivileges["Import"] = "Import";
|
|
365
|
+
CollectionPrivileges["LoadBalance"] = "LoadBalance";
|
|
366
|
+
})(CollectionPrivileges = exports.CollectionPrivileges || (exports.CollectionPrivileges = {}));
|
|
367
|
+
var GlobalPrivileges;
|
|
368
|
+
(function (GlobalPrivileges) {
|
|
369
|
+
GlobalPrivileges["All"] = "*";
|
|
370
|
+
GlobalPrivileges["CreateCollection"] = "CreateCollection";
|
|
371
|
+
GlobalPrivileges["DropCollection"] = "DropCollection";
|
|
372
|
+
GlobalPrivileges["DescribeCollection"] = "DescribeCollection";
|
|
373
|
+
GlobalPrivileges["ShowCollections"] = "ShowCollections";
|
|
374
|
+
GlobalPrivileges["CreateOwnership"] = "CreateOwnership";
|
|
375
|
+
GlobalPrivileges["DropOwnership"] = "DropOwnership";
|
|
376
|
+
GlobalPrivileges["SelectOwnership"] = "SelectOwnership";
|
|
377
|
+
GlobalPrivileges["ManageOwnership"] = "ManageOwnership";
|
|
378
|
+
})(GlobalPrivileges = exports.GlobalPrivileges || (exports.GlobalPrivileges = {}));
|
|
379
|
+
var UserPrivileges;
|
|
380
|
+
(function (UserPrivileges) {
|
|
381
|
+
UserPrivileges["UpdateUser"] = "UpdateUser";
|
|
382
|
+
UserPrivileges["SelectUser"] = "SelectUser";
|
|
383
|
+
})(UserPrivileges = exports.UserPrivileges || (exports.UserPrivileges = {}));
|
|
384
|
+
exports.Privileges = __assign(__assign(__assign({}, CollectionPrivileges), UserPrivileges), GlobalPrivileges);
|
|
168
385
|
//# sourceMappingURL=Common.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Common.js","sourceRoot":"","sources":["../../../milvus/types/Common.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Common.js","sourceRoot":"","sources":["../../../milvus/types/Common.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,IAAK,SA0DJ;AA1DD,WAAK,SAAS;IACZ,+CAAW,CAAA;IACX,+DAAmB,CAAA;IACnB,2DAAiB,CAAA;IACjB,iEAAoB,CAAA;IACpB,uEAAuB,CAAA;IACvB,+DAAmB,CAAA;IACnB,iEAAoB,CAAA;IACpB,iEAAoB,CAAA;IACpB,2EAAyB,CAAA;IACzB,wDAAgB,CAAA;IAChB,kEAAqB,CAAA;IACrB,gEAAoB,CAAA;IACpB,wEAAwB,CAAA;IACxB,0DAAi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B,CAAA;IAC/B,uDAAmC,CAAA;IACnC,uDAAmC,CAAA;AACrC,CAAC,EAVW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAU3B;AAED,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,2CAAyB,CAAA;IACzB,2CAAyB,CAAA;AAC3B,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAEY,QAAA,UAAU,kCAClB,oBAAoB,GACpB,cAAc,GACd,gBAAgB,EACnB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConsistencyLevelEnum } from './Collection';
|
|
2
|
-
import { IndexState, ImportState, KeyValuePair, NumberArrayId, SegmentState, StringArrayId, CompactionState } from './Common';
|
|
2
|
+
import { Privileges, IndexState, ImportState, KeyValuePair, NumberArrayId, SegmentState, StringArrayId, CompactionState, RbacObjects } from './Common';
|
|
3
3
|
export declare enum ErrorCode {
|
|
4
4
|
SUCCESS = "Success",
|
|
5
5
|
INDEX_NOT_EXIST = "IndexNotExist",
|
|
@@ -210,4 +210,50 @@ export interface ListImportTasksResponse {
|
|
|
210
210
|
status: ResStatus;
|
|
211
211
|
tasks: GetImportStateResponse[];
|
|
212
212
|
}
|
|
213
|
+
declare type RoleEntity = {
|
|
214
|
+
name: string;
|
|
215
|
+
};
|
|
216
|
+
declare type User = {
|
|
217
|
+
name: string;
|
|
218
|
+
};
|
|
219
|
+
declare type RoleResult = {
|
|
220
|
+
users: User[];
|
|
221
|
+
role: RoleEntity;
|
|
222
|
+
};
|
|
223
|
+
export interface SelectRoleResponse {
|
|
224
|
+
status: ResStatus;
|
|
225
|
+
results: RoleResult[];
|
|
226
|
+
}
|
|
227
|
+
declare type UserResult = {
|
|
228
|
+
user: User;
|
|
229
|
+
roles: RoleEntity[];
|
|
230
|
+
};
|
|
231
|
+
export interface SelectUserResponse {
|
|
232
|
+
status: ResStatus;
|
|
233
|
+
results: UserResult[];
|
|
234
|
+
}
|
|
235
|
+
declare type ObjectEntity = {
|
|
236
|
+
name: RbacObjects;
|
|
237
|
+
};
|
|
238
|
+
declare type PrivilegeEntity = {
|
|
239
|
+
name: Privileges;
|
|
240
|
+
};
|
|
241
|
+
declare type Grantor = {
|
|
242
|
+
user: User;
|
|
243
|
+
privilege: PrivilegeEntity;
|
|
244
|
+
};
|
|
245
|
+
declare type GrantEntity = {
|
|
246
|
+
role: RoleEntity;
|
|
247
|
+
object: ObjectEntity;
|
|
248
|
+
object_name: string;
|
|
249
|
+
grantor: Grantor;
|
|
250
|
+
};
|
|
251
|
+
export interface SelectGrantResponse {
|
|
252
|
+
status: ResStatus;
|
|
253
|
+
entities: GrantEntity[];
|
|
254
|
+
}
|
|
255
|
+
export interface HasRoleResponse {
|
|
256
|
+
status: ResStatus;
|
|
257
|
+
hasRole: boolean;
|
|
258
|
+
}
|
|
213
259
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../milvus/types/Response.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../milvus/types/Response.ts"],"names":[],"mappings":";;;AAYA,IAAY,SA2BX;AA3BD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,8CAAiC,CAAA;IACjC,iDAAoC,CAAA;IACpC,iDAAoC,CAAA;IACpC,qCAAqC;IACrC,2CAA2C;IAC3C,mDAAmD;IACnD,yCAAyC;IACzC,2CAA2C;IAC3C,6CAA6C;IAC7C,uDAAuD;IACvD,iCAAiC;IACjC,2CAA2C;IAC3C,2CAA2C;IAC3C,mDAAmD;IACnD,qCAAqC;IACrC,+BAA+B;IAC/B,iCAAiC;IACjC,iDAAiD;IACjD,6CAA6C;IAC7C,iDAAiD;IACjD,6CAA6C;IAC7C,2CAA2C;IAC3C,mCAAmC;IACnC,+CAA+C;IAC/C,mCAAmC;AACrC,CAAC,EA3BW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QA2BpB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GrpcTimeOut } from './Common';
|
|
1
|
+
import { GrpcTimeOut, Privileges, RbacObjects } from './Common';
|
|
2
2
|
export interface UpdateUserReq extends GrpcTimeOut {
|
|
3
3
|
username: string;
|
|
4
4
|
oldPassword: string;
|
|
@@ -13,3 +13,39 @@ export interface DeleteUserReq extends GrpcTimeOut {
|
|
|
13
13
|
}
|
|
14
14
|
export interface ListUsersReq extends GrpcTimeOut {
|
|
15
15
|
}
|
|
16
|
+
export interface CreateRoleReq extends GrpcTimeOut {
|
|
17
|
+
roleName: string;
|
|
18
|
+
}
|
|
19
|
+
export interface DropRoleReq extends GrpcTimeOut {
|
|
20
|
+
roleName: string;
|
|
21
|
+
}
|
|
22
|
+
export interface HasRoleReq extends GrpcTimeOut {
|
|
23
|
+
roleName: string;
|
|
24
|
+
}
|
|
25
|
+
export interface AddUserToRoleReq extends GrpcTimeOut {
|
|
26
|
+
username: string;
|
|
27
|
+
roleName: string;
|
|
28
|
+
}
|
|
29
|
+
export interface RemoveUserFromRoleReq extends GrpcTimeOut {
|
|
30
|
+
username: string;
|
|
31
|
+
roleName: string;
|
|
32
|
+
}
|
|
33
|
+
export interface SelectRoleReq extends GrpcTimeOut {
|
|
34
|
+
roleName: string;
|
|
35
|
+
includeUserInfo?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface SelectUserReq extends GrpcTimeOut {
|
|
38
|
+
username: string;
|
|
39
|
+
includeRoleInfo?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface OperateRolePrivilegeReq extends GrpcTimeOut {
|
|
42
|
+
roleName: string;
|
|
43
|
+
object: RbacObjects;
|
|
44
|
+
objectName: string;
|
|
45
|
+
privilegeName: Privileges;
|
|
46
|
+
}
|
|
47
|
+
export interface SelectGrantReq extends OperateRolePrivilegeReq {
|
|
48
|
+
}
|
|
49
|
+
export interface ListGrantsReq extends GrpcTimeOut {
|
|
50
|
+
roleName: string;
|
|
51
|
+
}
|