@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
package/dist/milvus/User.js
CHANGED
|
@@ -29,7 +29,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
29
29
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
30
|
function step(op) {
|
|
31
31
|
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
-
while (_) try {
|
|
32
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
33
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
34
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
35
|
switch (op[0]) {
|
|
@@ -55,8 +55,8 @@ exports.User = void 0;
|
|
|
55
55
|
var utils_1 = require("../utils");
|
|
56
56
|
var Client_1 = require("./Client");
|
|
57
57
|
var ErrorReason_1 = require("./const/ErrorReason");
|
|
58
|
-
var Common_1 = require("./types/Common");
|
|
59
58
|
var Format_1 = require("./utils/Format");
|
|
59
|
+
var Milvus_1 = require("./const/Milvus");
|
|
60
60
|
var User = /** @class */ (function (_super) {
|
|
61
61
|
__extends(User, _super);
|
|
62
62
|
function User() {
|
|
@@ -66,15 +66,15 @@ var User = /** @class */ (function (_super) {
|
|
|
66
66
|
* Create user in milvus
|
|
67
67
|
*
|
|
68
68
|
* @param data
|
|
69
|
-
* | Property | Type
|
|
70
|
-
* |
|
|
69
|
+
* | Property | Type | Description |
|
|
70
|
+
* | :-- | :-- | :-- |
|
|
71
71
|
* | username | String | username |
|
|
72
72
|
* | password | String | user password |
|
|
73
|
+
* | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
73
74
|
*
|
|
74
|
-
*
|
|
75
|
-
* @return
|
|
75
|
+
* @returns
|
|
76
76
|
* | Property | Description |
|
|
77
|
-
* |
|
|
77
|
+
* | :-- | :-- |
|
|
78
78
|
* | error_code | Error code number |
|
|
79
79
|
* | reason | Error cause|
|
|
80
80
|
*
|
|
@@ -100,7 +100,7 @@ var User = /** @class */ (function (_super) {
|
|
|
100
100
|
return [4 /*yield*/, (0, utils_1.promisify)(this.client, 'CreateCredential', {
|
|
101
101
|
username: data.username,
|
|
102
102
|
password: encryptedPassword,
|
|
103
|
-
})];
|
|
103
|
+
}, data === null || data === void 0 ? void 0 : data.timeout)];
|
|
104
104
|
case 1:
|
|
105
105
|
promise = _a.sent();
|
|
106
106
|
return [2 /*return*/, promise];
|
|
@@ -113,23 +113,24 @@ var User = /** @class */ (function (_super) {
|
|
|
113
113
|
*
|
|
114
114
|
* @param data
|
|
115
115
|
* | Property | Type | Description |
|
|
116
|
-
* |
|
|
116
|
+
* | :-- | :-- | :-- |
|
|
117
117
|
* | username | String | username |
|
|
118
118
|
* | password | String | user password |
|
|
119
|
+
* | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
119
120
|
*
|
|
120
|
-
*
|
|
121
|
-
* @return
|
|
121
|
+
* @returns
|
|
122
122
|
* | Property | Description |
|
|
123
|
-
* |
|
|
123
|
+
* | :-- | :-- |
|
|
124
124
|
* | error_code | Error code number |
|
|
125
125
|
* | reason | Error cause|
|
|
126
126
|
*
|
|
127
127
|
* #### Example
|
|
128
128
|
*
|
|
129
129
|
* ```
|
|
130
|
-
* milvusClient.userManager.
|
|
130
|
+
* milvusClient.userManager.updateUser({
|
|
131
131
|
* username: NAME,
|
|
132
|
-
*
|
|
132
|
+
* newPassword: PASSWORD,
|
|
133
|
+
* oldPassword: PASSWORD,
|
|
133
134
|
* });
|
|
134
135
|
* ```
|
|
135
136
|
*/
|
|
@@ -150,7 +151,7 @@ var User = /** @class */ (function (_super) {
|
|
|
150
151
|
username: data.username,
|
|
151
152
|
oldPassword: encryptedOldPwd,
|
|
152
153
|
newPassword: encryptedNewPwd,
|
|
153
|
-
})];
|
|
154
|
+
}, data === null || data === void 0 ? void 0 : data.timeout)];
|
|
154
155
|
case 1:
|
|
155
156
|
promise = _a.sent();
|
|
156
157
|
return [2 /*return*/, promise];
|
|
@@ -163,13 +164,13 @@ var User = /** @class */ (function (_super) {
|
|
|
163
164
|
*
|
|
164
165
|
* @param data
|
|
165
166
|
* | Property | Type | Description |
|
|
166
|
-
* |
|
|
167
|
+
* | :-- | :-- | :-- |
|
|
167
168
|
* | username | String | username |
|
|
169
|
+
* | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
168
170
|
*
|
|
169
|
-
*
|
|
170
|
-
* @return
|
|
171
|
+
* @returns
|
|
171
172
|
* | Property | Description |
|
|
172
|
-
* |
|
|
173
|
+
* | :-- | :-- |
|
|
173
174
|
* | error_code | Error code number |
|
|
174
175
|
* | reason | Error cause|
|
|
175
176
|
*
|
|
@@ -192,7 +193,7 @@ var User = /** @class */ (function (_super) {
|
|
|
192
193
|
}
|
|
193
194
|
return [4 /*yield*/, (0, utils_1.promisify)(this.client, 'DeleteCredential', {
|
|
194
195
|
username: data.username,
|
|
195
|
-
}, data.timeout)];
|
|
196
|
+
}, data === null || data === void 0 ? void 0 : data.timeout)];
|
|
196
197
|
case 1:
|
|
197
198
|
promise = _a.sent();
|
|
198
199
|
return [2 /*return*/, promise];
|
|
@@ -203,10 +204,15 @@ var User = /** @class */ (function (_super) {
|
|
|
203
204
|
/**
|
|
204
205
|
* List user in milvus
|
|
205
206
|
*
|
|
206
|
-
* @
|
|
207
|
+
* @param data
|
|
208
|
+
* | Property | Type | Description |
|
|
209
|
+
* | :-- | :-- | :-- |
|
|
210
|
+
* | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
211
|
+
*
|
|
212
|
+
* @returns
|
|
207
213
|
* | Property | Description |
|
|
208
|
-
* |
|
|
209
|
-
* | status | { error_code: number, reason: string }|
|
|
214
|
+
* | :-- | :-- |
|
|
215
|
+
* | status | { error_code: number, reason: string } |
|
|
210
216
|
* | usernames | string[] |
|
|
211
217
|
*
|
|
212
218
|
* #### Example
|
|
@@ -231,10 +237,16 @@ var User = /** @class */ (function (_super) {
|
|
|
231
237
|
/**
|
|
232
238
|
* Create user role
|
|
233
239
|
*
|
|
234
|
-
* @
|
|
240
|
+
* @param data
|
|
241
|
+
* | Property | Type | Description |
|
|
242
|
+
* | :-- | :-- | :-- |
|
|
243
|
+
* | roleName | String | role name |
|
|
244
|
+
* | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
245
|
+
*
|
|
246
|
+
* @returns
|
|
235
247
|
* | Property | Description |
|
|
236
|
-
* |
|
|
237
|
-
* | status | { error_code: number, reason: string }|
|
|
248
|
+
* | :-- | :-- |
|
|
249
|
+
* | status | { error_code: number, reason: string } |
|
|
238
250
|
* | reason | '' |
|
|
239
251
|
*
|
|
240
252
|
* #### Example
|
|
@@ -261,10 +273,16 @@ var User = /** @class */ (function (_super) {
|
|
|
261
273
|
/**
|
|
262
274
|
* Drop user role
|
|
263
275
|
*
|
|
264
|
-
* @
|
|
276
|
+
* @param data
|
|
277
|
+
* | Property | Type | Description |
|
|
278
|
+
* | :-- | :-- | :-- |
|
|
279
|
+
* | roleName | String | User name |
|
|
280
|
+
* | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
281
|
+
*
|
|
282
|
+
* @returns
|
|
265
283
|
* | Property | Description |
|
|
266
|
-
* |
|
|
267
|
-
* | status | { error_code: number, reason: string }|
|
|
284
|
+
* | :-- | :-- |
|
|
285
|
+
* | status | { error_code: number, reason: string } |
|
|
268
286
|
* | reason | '' |
|
|
269
287
|
*
|
|
270
288
|
* #### Example
|
|
@@ -291,10 +309,17 @@ var User = /** @class */ (function (_super) {
|
|
|
291
309
|
/**
|
|
292
310
|
* add user to role
|
|
293
311
|
*
|
|
294
|
-
* @
|
|
312
|
+
* @param data
|
|
313
|
+
* | Property | Type | Description |
|
|
314
|
+
* | :-- | :-- | :-- |
|
|
315
|
+
* | username | String | User name |
|
|
316
|
+
* | roleName | String | Role name |
|
|
317
|
+
* | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
318
|
+
*
|
|
319
|
+
* @returns
|
|
295
320
|
* | Property | Description |
|
|
296
|
-
* |
|
|
297
|
-
* | status | { error_code: number, reason: string }|
|
|
321
|
+
* | :-- | :-- |
|
|
322
|
+
* | status | { error_code: number, reason: string } |
|
|
298
323
|
* | reason | '' |
|
|
299
324
|
*
|
|
300
325
|
* #### Example
|
|
@@ -311,7 +336,7 @@ var User = /** @class */ (function (_super) {
|
|
|
311
336
|
case 0: return [4 /*yield*/, (0, utils_1.promisify)(this.client, 'OperateUserRole', {
|
|
312
337
|
username: data.username,
|
|
313
338
|
role_name: data.roleName,
|
|
314
|
-
type:
|
|
339
|
+
type: Milvus_1.OperateUserRoleType.AddUserToRole,
|
|
315
340
|
}, data === null || data === void 0 ? void 0 : data.timeout)];
|
|
316
341
|
case 1:
|
|
317
342
|
promise = _a.sent();
|
|
@@ -323,10 +348,17 @@ var User = /** @class */ (function (_super) {
|
|
|
323
348
|
/**
|
|
324
349
|
* remove user from role
|
|
325
350
|
*
|
|
326
|
-
* @
|
|
351
|
+
* @param data
|
|
352
|
+
* | Property | Type | Description |
|
|
353
|
+
* | :-- | :-- | :-- |
|
|
354
|
+
* | username | String | User name |
|
|
355
|
+
* | roleName | String | Role name |
|
|
356
|
+
* | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
357
|
+
*
|
|
358
|
+
* @returns
|
|
327
359
|
* | Property | Description |
|
|
328
|
-
* |
|
|
329
|
-
* | status | { error_code: number, reason: string }|
|
|
360
|
+
* | :-- | :-- |
|
|
361
|
+
* | status | { error_code: number, reason: string } |
|
|
330
362
|
* | reason | '' |
|
|
331
363
|
*
|
|
332
364
|
* #### Example
|
|
@@ -343,7 +375,7 @@ var User = /** @class */ (function (_super) {
|
|
|
343
375
|
case 0: return [4 /*yield*/, (0, utils_1.promisify)(this.client, 'OperateUserRole', {
|
|
344
376
|
username: data.username,
|
|
345
377
|
role_name: data.roleName,
|
|
346
|
-
type:
|
|
378
|
+
type: Milvus_1.OperateUserRoleType.RemoveUserFromRole,
|
|
347
379
|
}, data === null || data === void 0 ? void 0 : data.timeout)];
|
|
348
380
|
case 1:
|
|
349
381
|
promise = _a.sent();
|
|
@@ -357,15 +389,15 @@ var User = /** @class */ (function (_super) {
|
|
|
357
389
|
*
|
|
358
390
|
* @param data
|
|
359
391
|
* | Property | Type | Description |
|
|
360
|
-
* |
|
|
361
|
-
* | roleName | String |
|
|
392
|
+
* | :-- | :-- | :-- |
|
|
393
|
+
* | roleName | String | Role name |
|
|
362
394
|
* | includeUserInfo? | boolean | should result including user info, by default: true |
|
|
363
|
-
* | timeout | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
395
|
+
* | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
364
396
|
|
|
365
|
-
* @
|
|
397
|
+
* @returns
|
|
366
398
|
* | Property | Description |
|
|
367
|
-
* |
|
|
368
|
-
* | status | { error_code: number, reason: string }|
|
|
399
|
+
* | :-- | :-- |
|
|
400
|
+
* | status | { error_code: number, reason: string } |
|
|
369
401
|
* | results | { users: {name: string}[]; role: {name: string} }[] |
|
|
370
402
|
*
|
|
371
403
|
* #### Example
|
|
@@ -395,13 +427,13 @@ var User = /** @class */ (function (_super) {
|
|
|
395
427
|
*
|
|
396
428
|
* @param data
|
|
397
429
|
* | Property | Type | Description |
|
|
398
|
-
* |
|
|
399
|
-
* | timeout | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
430
|
+
* | :-- | :-- | :-- |
|
|
431
|
+
* | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
400
432
|
*
|
|
401
|
-
* @
|
|
433
|
+
* @returns
|
|
402
434
|
* | Property | Description |
|
|
403
|
-
* |
|
|
404
|
-
* | status | { error_code: number, reason: string }|
|
|
435
|
+
* | :-- | :-- |
|
|
436
|
+
* | status | { error_code: number, reason: string } |
|
|
405
437
|
* | reason | '' |
|
|
406
438
|
*
|
|
407
439
|
* #### Example
|
|
@@ -428,15 +460,15 @@ var User = /** @class */ (function (_super) {
|
|
|
428
460
|
*
|
|
429
461
|
* @param data
|
|
430
462
|
* | Property | Type | Description |
|
|
431
|
-
* |
|
|
432
|
-
* | userName | String |
|
|
463
|
+
* | :-- | :-- | :-- |
|
|
464
|
+
* | userName | String | User name |
|
|
433
465
|
* | includeUserInfo? | boolean | should result including user info, by default: true |
|
|
434
|
-
* | timeout | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
466
|
+
* | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
435
467
|
*
|
|
436
|
-
* @
|
|
468
|
+
* @returns
|
|
437
469
|
* | Property | Description |
|
|
438
|
-
* |
|
|
439
|
-
* | status | { error_code: number, reason: string }|
|
|
470
|
+
* | :-- | :-- |
|
|
471
|
+
* | status | { error_code: number, reason: string } |
|
|
440
472
|
* | results | user: {name: string}; roles: {name: string}[] |
|
|
441
473
|
*
|
|
442
474
|
* #### Example
|
|
@@ -466,17 +498,17 @@ var User = /** @class */ (function (_super) {
|
|
|
466
498
|
*
|
|
467
499
|
* @param data
|
|
468
500
|
* | Property | Type | Description |
|
|
469
|
-
* |
|
|
470
|
-
* | roleName | String |
|
|
501
|
+
* | :-- | :-- | :-- |
|
|
502
|
+
* | roleName | String | Role name |
|
|
471
503
|
* | object | string | Type of the operational object to which the specified privilege belongs, such as Collection, Index, Partition, etc. This parameter is case-sensitive.|
|
|
472
504
|
* | objectName | string | Name of the object to which the role is granted the specified prvilege. |
|
|
473
505
|
* | privilegeName | string | Name of the privilege to be granted to the role. This parameter is case-sensitive. |
|
|
474
|
-
* | timeout | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
506
|
+
* | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
475
507
|
*
|
|
476
|
-
* @
|
|
508
|
+
* @returns
|
|
477
509
|
* | Property | Description |
|
|
478
|
-
* |
|
|
479
|
-
* | status | { error_code: number, reason: string }|
|
|
510
|
+
* | :-- | :-- |
|
|
511
|
+
* | status | { error_code: number, reason: string } |
|
|
480
512
|
* | reason | '' |
|
|
481
513
|
*
|
|
482
514
|
* #### Example
|
|
@@ -504,7 +536,7 @@ var User = /** @class */ (function (_super) {
|
|
|
504
536
|
privilege: { name: data.privilegeName },
|
|
505
537
|
},
|
|
506
538
|
},
|
|
507
|
-
type:
|
|
539
|
+
type: Milvus_1.OperatePrivilegeType.Grant,
|
|
508
540
|
}, data === null || data === void 0 ? void 0 : data.timeout)];
|
|
509
541
|
case 1:
|
|
510
542
|
promise = _a.sent();
|
|
@@ -518,17 +550,17 @@ var User = /** @class */ (function (_super) {
|
|
|
518
550
|
*
|
|
519
551
|
* @param data
|
|
520
552
|
* | Property | Type | Description |
|
|
521
|
-
* |
|
|
522
|
-
* | roleName | String |
|
|
553
|
+
* | :-- | :-- | :-- |
|
|
554
|
+
* | roleName | String | Role name |
|
|
523
555
|
* | object | string | Type of the operational object to which the specified privilege belongs, such as Collection, Index, Partition, etc. This parameter is case-sensitive.|
|
|
524
556
|
* | objectName | string | Name of the object to which the role is granted the specified prvilege. |
|
|
525
557
|
* | privilegeName | string | Name of the privilege to be granted to the role. This parameter is case-sensitive. |
|
|
526
|
-
* | timeout | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
558
|
+
* | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
527
559
|
*
|
|
528
|
-
* @
|
|
560
|
+
* @returns
|
|
529
561
|
* | Property | Description |
|
|
530
562
|
* | :------------- | :-------- |
|
|
531
|
-
* | status | { error_code: number, reason: string }|
|
|
563
|
+
* | status | { error_code: number, reason: string } |
|
|
532
564
|
* | reason | '' |
|
|
533
565
|
*
|
|
534
566
|
* #### Example
|
|
@@ -556,7 +588,7 @@ var User = /** @class */ (function (_super) {
|
|
|
556
588
|
privilege: { name: data.privilegeName },
|
|
557
589
|
},
|
|
558
590
|
},
|
|
559
|
-
type:
|
|
591
|
+
type: Milvus_1.OperatePrivilegeType.Revoke,
|
|
560
592
|
}, data === null || data === void 0 ? void 0 : data.timeout)];
|
|
561
593
|
case 1:
|
|
562
594
|
promise = _a.sent();
|
|
@@ -569,26 +601,22 @@ var User = /** @class */ (function (_super) {
|
|
|
569
601
|
* revoke all roles priviledges
|
|
570
602
|
* @param data
|
|
571
603
|
* | Property | Type | Description |
|
|
572
|
-
* |
|
|
573
|
-
* |
|
|
574
|
-
* | object | string | Type of the operational object to which the specified privilege belongs, such as Collection, Index, Partition, etc. This parameter is case-sensitive.|
|
|
575
|
-
* | objectName | string | Name of the object to which the role is granted the specified prvilege. |
|
|
576
|
-
* | privilegeName | string | Name of the privilege to be granted to the role. This parameter is case-sensitive. |
|
|
577
|
-
* | timeout | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
604
|
+
* | :-- | :-- | :-- |
|
|
605
|
+
* | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
578
606
|
*
|
|
579
|
-
* @
|
|
607
|
+
* @returns
|
|
580
608
|
* | Property | Description |
|
|
581
|
-
* |
|
|
582
|
-
* | status | { error_code: number, reason: string }|
|
|
583
|
-
* | reason | ''
|
|
609
|
+
* | :-- | :-- |
|
|
610
|
+
* | status | { error_code: number, reason: string } |
|
|
611
|
+
* | reason | '' |
|
|
584
612
|
*
|
|
585
613
|
* #### Example
|
|
586
614
|
*
|
|
587
615
|
* ```
|
|
588
|
-
* milvusClient.userManager.revokeAllRolesPrivileges(
|
|
616
|
+
* milvusClient.userManager.revokeAllRolesPrivileges();
|
|
589
617
|
* ```
|
|
590
618
|
*/
|
|
591
|
-
User.prototype.
|
|
619
|
+
User.prototype.dropAllRoles = function (data) {
|
|
592
620
|
return __awaiter(this, void 0, void 0, function () {
|
|
593
621
|
var res, promises, i, r, grants, j, entity, _a, _b;
|
|
594
622
|
return __generator(this, function (_c) {
|
|
@@ -612,6 +640,7 @@ var User = /** @class */ (function (_super) {
|
|
|
612
640
|
case 4:
|
|
613
641
|
if (!(j < grants.entities.length)) return [3 /*break*/, 7];
|
|
614
642
|
entity = grants.entities[j];
|
|
643
|
+
// revoke grant
|
|
615
644
|
return [4 /*yield*/, this.revokeRolePrivilege({
|
|
616
645
|
roleName: entity.role.name,
|
|
617
646
|
object: entity.object.name,
|
|
@@ -620,6 +649,7 @@ var User = /** @class */ (function (_super) {
|
|
|
620
649
|
timeout: data === null || data === void 0 ? void 0 : data.timeout,
|
|
621
650
|
})];
|
|
622
651
|
case 5:
|
|
652
|
+
// revoke grant
|
|
623
653
|
_c.sent();
|
|
624
654
|
_c.label = 6;
|
|
625
655
|
case 6:
|
|
@@ -627,12 +657,15 @@ var User = /** @class */ (function (_super) {
|
|
|
627
657
|
return [3 /*break*/, 4];
|
|
628
658
|
case 7:
|
|
629
659
|
_b = (_a = promises).push;
|
|
660
|
+
// drop the role
|
|
630
661
|
return [4 /*yield*/, this.dropRole({
|
|
631
662
|
roleName: r.role.name,
|
|
632
663
|
timeout: data === null || data === void 0 ? void 0 : data.timeout,
|
|
633
664
|
})];
|
|
634
665
|
case 8:
|
|
635
|
-
_b.apply(_a, [
|
|
666
|
+
_b.apply(_a, [
|
|
667
|
+
// drop the role
|
|
668
|
+
_c.sent()]);
|
|
636
669
|
_c.label = 9;
|
|
637
670
|
case 9:
|
|
638
671
|
i++;
|
|
@@ -646,18 +679,18 @@ var User = /** @class */ (function (_super) {
|
|
|
646
679
|
* select a grant
|
|
647
680
|
* @param data
|
|
648
681
|
* | Property | Type | Description |
|
|
649
|
-
* |
|
|
650
|
-
* | roleName | String |
|
|
682
|
+
* | :-- | :-- | :-- |
|
|
683
|
+
* | roleName | String | Role name |
|
|
651
684
|
* | object | string | Type of the operational object to which the specified privilege belongs, such as Collection, Index, Partition, etc. This parameter is case-sensitive.|
|
|
652
685
|
* | objectName | string | Name of the object to which the role is granted the specified prvilege. |
|
|
653
686
|
* | privilegeName | string | Name of the privilege to be granted to the role. This parameter is case-sensitive. |
|
|
654
|
-
* | timeout | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
687
|
+
* | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
655
688
|
*
|
|
656
|
-
* @
|
|
657
|
-
* | Property
|
|
658
|
-
* |
|
|
659
|
-
* | status
|
|
660
|
-
* | reason
|
|
689
|
+
* @returns
|
|
690
|
+
* | Property | Description |
|
|
691
|
+
* | :-- | :-- |
|
|
692
|
+
* | status | { error_code: number, reason: string } |
|
|
693
|
+
* | reason | '' |
|
|
661
694
|
*
|
|
662
695
|
* #### Example
|
|
663
696
|
*
|
|
@@ -696,14 +729,14 @@ var User = /** @class */ (function (_super) {
|
|
|
696
729
|
* list all grants for a role
|
|
697
730
|
* @param data
|
|
698
731
|
* | Property | Type | Description |
|
|
699
|
-
* |
|
|
700
|
-
* | roleName | String |
|
|
701
|
-
* | timeout | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
732
|
+
* | :-- | :-- | :-- |
|
|
733
|
+
* | roleName | String | Role name |
|
|
734
|
+
* | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
702
735
|
*
|
|
703
|
-
* @
|
|
736
|
+
* @returns
|
|
704
737
|
* | Property | Description |
|
|
705
|
-
* |
|
|
706
|
-
* | status | { error_code: number, reason: string }|
|
|
738
|
+
* | :-- | :-- |
|
|
739
|
+
* | status | { error_code: number, reason: string } |
|
|
707
740
|
* | reason | '' |
|
|
708
741
|
*
|
|
709
742
|
* #### Example
|
|
@@ -735,14 +768,14 @@ var User = /** @class */ (function (_super) {
|
|
|
735
768
|
* check if the role is existing
|
|
736
769
|
* @param data
|
|
737
770
|
* | Property | Type | Description |
|
|
738
|
-
* |
|
|
739
|
-
* | roleName | String |
|
|
740
|
-
* | timeout | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
771
|
+
* | :-- | :-- | :-- |
|
|
772
|
+
* | roleName | String | Role name |
|
|
773
|
+
* | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
|
|
741
774
|
*
|
|
742
|
-
* @
|
|
775
|
+
* @returns
|
|
743
776
|
* | Property | Description |
|
|
744
|
-
* |
|
|
745
|
-
* | status | { error_code: number, reason: string }|
|
|
777
|
+
* | :-- | :-- |
|
|
778
|
+
* | status | { error_code: number, reason: string } |
|
|
746
779
|
* | reason | '' |
|
|
747
780
|
*
|
|
748
781
|
* #### Example
|
package/dist/milvus/User.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../milvus/User.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kCAAqC;AACrC,mCAAkC;AAClC,mDAAoD;
|
|
1
|
+
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../milvus/User.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kCAAqC;AACrC,mCAAkC;AAClC,mDAAoD;AACpD,yCAAgD;AAChD,yCAA2E;AAyB3E;IAA0B,wBAAM;IAAhC;;IAkqBA,CAAC;IAjqBC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,yBAAU,GAAhB,UAAiB,IAAmB;;;;;;wBAClC,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;4BAC9D,MAA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AI,uBAAJ,IAAI,CAAE,OAAO,CACd,EAAA;;wBAdK,OAAO,GAAG,SAcf;wBAED,sBAAO,OAAO,EAAC;;;;KAChB;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,yBAAU,GAAhB,UAAiB,IAAmB;;;;;4BAClB,qBAAM,IAAA,iBAAS,EAC7B,IAAI,CAAC,MAAM,EACX,aAAa,EACb;4BACE,MAAM,EAAE;gCACN,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE;6BAC9B;yBACF,EACD,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,CACd,EAAA;;wBATK,OAAO,GAAG,SASf;wBAED,sBAAO,OAAO,EAAC;;;;KAChB;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,sBAAO,GAAb,UAAc,IAAgB;;;;;4BACb,qBAAM,IAAI,CAAC,SAAS,EAAE,EAAA;;wBAA/B,MAAM,GAAG,SAAsB;wBAErC,sBAAO;gCACL,MAAM,EAAE,MAAM,CAAC,MAAM;gCACrB,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,CAAC,IAAI,CAAC,IAAI,EAAX,CAAW,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;6BACtE,EAAC;;;;KACH;IACH,WAAC;AAAD,CAAC,AAlqBD,CAA0B,eAAM,GAkqB/B;AAlqBY,oBAAI"}
|
package/dist/milvus/Utils.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { hybridtsToUnixtime, datetimeToHybrids, unixtimeToHybridts, } from
|
|
1
|
+
export { hybridtsToUnixtime, datetimeToHybrids, unixtimeToHybridts, } from './utils/Format';
|