@meshtrade/api-old 1.40.0 → 1.42.0
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/meshtrade/compliance/client/v1/service_grpc_web_client_meshts.d.ts +7 -1
- package/dist/meshtrade/compliance/client/v1/service_grpc_web_client_meshts.js +8 -0
- package/dist/meshtrade/compliance/client/v1/service_grpc_web_pb.d.ts +12 -0
- package/dist/meshtrade/compliance/client/v1/service_grpc_web_pb.js +61 -0
- package/dist/meshtrade/compliance/client/v1/service_pb.d.ts +18 -0
- package/dist/meshtrade/compliance/client/v1/service_pb.js +152 -0
- package/dist/meshtrade/iam/role/v1/role.js +2 -0
- package/dist/meshtrade/iam/role/v1/role_pb.d.ts +2 -0
- package/dist/meshtrade/iam/role/v1/role_pb.js +2 -0
- package/dist/meshtrade/iam/user/v1/service_grpc_web_client_meshts.d.ts +1 -7
- package/dist/meshtrade/iam/user/v1/service_grpc_web_client_meshts.js +0 -8
- package/dist/meshtrade/iam/user/v1/service_grpc_web_pb.d.ts +0 -12
- package/dist/meshtrade/iam/user/v1/service_grpc_web_pb.js +0 -61
- package/dist/meshtrade/iam/user/v1/service_pb.d.ts +0 -67
- package/dist/meshtrade/iam/user/v1/service_pb.js +0 -567
- package/dist/meshtrade/iam/user/v1/user_pb.d.ts +32 -0
- package/dist/meshtrade/iam/user/v1/user_pb.js +270 -7
- package/dist/meshtrade/iam/user_profile/v1/index.d.ts +4 -0
- package/dist/meshtrade/iam/user_profile/v1/index.js +45 -0
- package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_client_meshts.d.ts +53 -0
- package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_client_meshts.js +96 -0
- package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_pb.d.ts +68 -0
- package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_pb.js +331 -0
- package/dist/meshtrade/iam/user_profile/v1/service_pb.d.ts +97 -0
- package/dist/meshtrade/iam/user_profile/v1/service_pb.js +812 -0
- package/dist/meshtrade/iam/user_profile/v1/user_profile_pb.d.ts +62 -0
- package/dist/meshtrade/iam/user_profile/v1/user_profile_pb.js +488 -0
- package/dist/meshtrade/option/method_options/v1/method_options_pb.d.ts +8 -0
- package/dist/meshtrade/option/method_options/v1/method_options_pb.js +40 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateClientRequest, GetClientRequest, ListClientsRequest, ListClientsResponse } from "./service_pb";
|
|
1
|
+
import { CreateClientRequest, GetClientRequest, GetGroupClientRequest, ListClientsRequest, ListClientsResponse } from "./service_pb";
|
|
2
2
|
import { Client } from "./client_pb";
|
|
3
3
|
import { UnaryInterceptor } from "grpc-web";
|
|
4
4
|
import { ConfigOpts } from "../../../common/config";
|
|
@@ -38,6 +38,12 @@ export declare class ClientServiceGrpcWebClientV1 {
|
|
|
38
38
|
* @returns {Promise<Client>} A promise that resolves with the client.
|
|
39
39
|
*/
|
|
40
40
|
getClient(request: GetClientRequest): Promise<Client>;
|
|
41
|
+
/**
|
|
42
|
+
* Retrieves a client.
|
|
43
|
+
* @param {GetGroupClientRequest} request - The request object for getgroupclient.
|
|
44
|
+
* @returns {Promise<Client>} A promise that resolves with the client.
|
|
45
|
+
*/
|
|
46
|
+
getGroupClient(request: GetGroupClientRequest): Promise<Client>;
|
|
41
47
|
/**
|
|
42
48
|
* Retrieves a list of clients.
|
|
43
49
|
* @param {ListClientsRequest} request - The request object for listclients.
|
|
@@ -76,6 +76,14 @@ class ClientServiceGrpcWebClientV1 {
|
|
|
76
76
|
getClient(request) {
|
|
77
77
|
return this._service.getClient(request);
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Retrieves a client.
|
|
81
|
+
* @param {GetGroupClientRequest} request - The request object for getgroupclient.
|
|
82
|
+
* @returns {Promise<Client>} A promise that resolves with the client.
|
|
83
|
+
*/
|
|
84
|
+
getGroupClient(request) {
|
|
85
|
+
return this._service.getGroupClient(request);
|
|
86
|
+
}
|
|
79
87
|
/**
|
|
80
88
|
* Retrieves a list of clients.
|
|
81
89
|
* @param {ListClientsRequest} request - The request object for listclients.
|
|
@@ -23,6 +23,13 @@ export class ClientServiceClient {
|
|
|
23
23
|
response: meshtrade_compliance_client_v1_client_pb.Client) => void
|
|
24
24
|
): grpcWeb.ClientReadableStream<meshtrade_compliance_client_v1_client_pb.Client>;
|
|
25
25
|
|
|
26
|
+
getGroupClient(
|
|
27
|
+
request: meshtrade_compliance_client_v1_service_pb.GetGroupClientRequest,
|
|
28
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
29
|
+
callback: (err: grpcWeb.RpcError,
|
|
30
|
+
response: meshtrade_compliance_client_v1_client_pb.Client) => void
|
|
31
|
+
): grpcWeb.ClientReadableStream<meshtrade_compliance_client_v1_client_pb.Client>;
|
|
32
|
+
|
|
26
33
|
listClients(
|
|
27
34
|
request: meshtrade_compliance_client_v1_service_pb.ListClientsRequest,
|
|
28
35
|
metadata: grpcWeb.Metadata | undefined,
|
|
@@ -47,6 +54,11 @@ export class ClientServicePromiseClient {
|
|
|
47
54
|
metadata?: grpcWeb.Metadata
|
|
48
55
|
): Promise<meshtrade_compliance_client_v1_client_pb.Client>;
|
|
49
56
|
|
|
57
|
+
getGroupClient(
|
|
58
|
+
request: meshtrade_compliance_client_v1_service_pb.GetGroupClientRequest,
|
|
59
|
+
metadata?: grpcWeb.Metadata
|
|
60
|
+
): Promise<meshtrade_compliance_client_v1_client_pb.Client>;
|
|
61
|
+
|
|
50
62
|
listClients(
|
|
51
63
|
request: meshtrade_compliance_client_v1_service_pb.ListClientsRequest,
|
|
52
64
|
metadata?: grpcWeb.Metadata
|
|
@@ -205,6 +205,67 @@ proto.meshtrade.compliance.client.v1.ClientServicePromiseClient.prototype.getCli
|
|
|
205
205
|
};
|
|
206
206
|
|
|
207
207
|
|
|
208
|
+
/**
|
|
209
|
+
* @const
|
|
210
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
211
|
+
* !proto.meshtrade.compliance.client.v1.GetGroupClientRequest,
|
|
212
|
+
* !proto.meshtrade.compliance.client.v1.Client>}
|
|
213
|
+
*/
|
|
214
|
+
const methodDescriptor_ClientService_GetGroupClient = new grpc.web.MethodDescriptor(
|
|
215
|
+
'/meshtrade.compliance.client.v1.ClientService/GetGroupClient',
|
|
216
|
+
grpc.web.MethodType.UNARY,
|
|
217
|
+
proto.meshtrade.compliance.client.v1.GetGroupClientRequest,
|
|
218
|
+
meshtrade_compliance_client_v1_client_pb.Client,
|
|
219
|
+
/**
|
|
220
|
+
* @param {!proto.meshtrade.compliance.client.v1.GetGroupClientRequest} request
|
|
221
|
+
* @return {!Uint8Array}
|
|
222
|
+
*/
|
|
223
|
+
function(request) {
|
|
224
|
+
return request.serializeBinary();
|
|
225
|
+
},
|
|
226
|
+
meshtrade_compliance_client_v1_client_pb.Client.deserializeBinary
|
|
227
|
+
);
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @param {!proto.meshtrade.compliance.client.v1.GetGroupClientRequest} request The
|
|
232
|
+
* request proto
|
|
233
|
+
* @param {?Object<string, string>} metadata User defined
|
|
234
|
+
* call metadata
|
|
235
|
+
* @param {function(?grpc.web.RpcError, ?proto.meshtrade.compliance.client.v1.Client)}
|
|
236
|
+
* callback The callback function(error, response)
|
|
237
|
+
* @return {!grpc.web.ClientReadableStream<!proto.meshtrade.compliance.client.v1.Client>|undefined}
|
|
238
|
+
* The XHR Node Readable Stream
|
|
239
|
+
*/
|
|
240
|
+
proto.meshtrade.compliance.client.v1.ClientServiceClient.prototype.getGroupClient =
|
|
241
|
+
function(request, metadata, callback) {
|
|
242
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
243
|
+
'/meshtrade.compliance.client.v1.ClientService/GetGroupClient',
|
|
244
|
+
request,
|
|
245
|
+
metadata || {},
|
|
246
|
+
methodDescriptor_ClientService_GetGroupClient,
|
|
247
|
+
callback);
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @param {!proto.meshtrade.compliance.client.v1.GetGroupClientRequest} request The
|
|
253
|
+
* request proto
|
|
254
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
255
|
+
* call metadata
|
|
256
|
+
* @return {!Promise<!proto.meshtrade.compliance.client.v1.Client>}
|
|
257
|
+
* Promise that resolves to the response
|
|
258
|
+
*/
|
|
259
|
+
proto.meshtrade.compliance.client.v1.ClientServicePromiseClient.prototype.getGroupClient =
|
|
260
|
+
function(request, metadata) {
|
|
261
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
262
|
+
'/meshtrade.compliance.client.v1.ClientService/GetGroupClient',
|
|
263
|
+
request,
|
|
264
|
+
metadata || {},
|
|
265
|
+
methodDescriptor_ClientService_GetGroupClient);
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
|
|
208
269
|
/**
|
|
209
270
|
* @const
|
|
210
271
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -43,6 +43,24 @@ export namespace CreateClientRequest {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
export class GetGroupClientRequest extends jspb.Message {
|
|
47
|
+
getGroup(): string;
|
|
48
|
+
setGroup(value: string): GetGroupClientRequest;
|
|
49
|
+
|
|
50
|
+
serializeBinary(): Uint8Array;
|
|
51
|
+
toObject(includeInstance?: boolean): GetGroupClientRequest.AsObject;
|
|
52
|
+
static toObject(includeInstance: boolean, msg: GetGroupClientRequest): GetGroupClientRequest.AsObject;
|
|
53
|
+
static serializeBinaryToWriter(message: GetGroupClientRequest, writer: jspb.BinaryWriter): void;
|
|
54
|
+
static deserializeBinary(bytes: Uint8Array): GetGroupClientRequest;
|
|
55
|
+
static deserializeBinaryFromReader(message: GetGroupClientRequest, reader: jspb.BinaryReader): GetGroupClientRequest;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export namespace GetGroupClientRequest {
|
|
59
|
+
export type AsObject = {
|
|
60
|
+
group: string,
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
46
64
|
export class ListClientsRequest extends jspb.Message {
|
|
47
65
|
serializeBinary(): Uint8Array;
|
|
48
66
|
toObject(includeInstance?: boolean): ListClientsRequest.AsObject;
|
|
@@ -29,6 +29,7 @@ var meshtrade_option_method_options_v1_method_options_pb = require('../../../../
|
|
|
29
29
|
goog.object.extend(proto, meshtrade_option_method_options_v1_method_options_pb);
|
|
30
30
|
goog.exportSymbol('proto.meshtrade.compliance.client.v1.CreateClientRequest', null, global);
|
|
31
31
|
goog.exportSymbol('proto.meshtrade.compliance.client.v1.GetClientRequest', null, global);
|
|
32
|
+
goog.exportSymbol('proto.meshtrade.compliance.client.v1.GetGroupClientRequest', null, global);
|
|
32
33
|
goog.exportSymbol('proto.meshtrade.compliance.client.v1.ListClientsRequest', null, global);
|
|
33
34
|
goog.exportSymbol('proto.meshtrade.compliance.client.v1.ListClientsResponse', null, global);
|
|
34
35
|
/**
|
|
@@ -73,6 +74,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
73
74
|
*/
|
|
74
75
|
proto.meshtrade.compliance.client.v1.CreateClientRequest.displayName = 'proto.meshtrade.compliance.client.v1.CreateClientRequest';
|
|
75
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Generated by JsPbCodeGenerator.
|
|
79
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
80
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
81
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
82
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
83
|
+
* valid.
|
|
84
|
+
* @extends {jspb.Message}
|
|
85
|
+
* @constructor
|
|
86
|
+
*/
|
|
87
|
+
proto.meshtrade.compliance.client.v1.GetGroupClientRequest = function(opt_data) {
|
|
88
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
89
|
+
};
|
|
90
|
+
goog.inherits(proto.meshtrade.compliance.client.v1.GetGroupClientRequest, jspb.Message);
|
|
91
|
+
if (goog.DEBUG && !COMPILED) {
|
|
92
|
+
/**
|
|
93
|
+
* @public
|
|
94
|
+
* @override
|
|
95
|
+
*/
|
|
96
|
+
proto.meshtrade.compliance.client.v1.GetGroupClientRequest.displayName = 'proto.meshtrade.compliance.client.v1.GetGroupClientRequest';
|
|
97
|
+
}
|
|
76
98
|
/**
|
|
77
99
|
* Generated by JsPbCodeGenerator.
|
|
78
100
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -399,6 +421,136 @@ proto.meshtrade.compliance.client.v1.CreateClientRequest.prototype.hasClient = f
|
|
|
399
421
|
|
|
400
422
|
|
|
401
423
|
|
|
424
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
425
|
+
/**
|
|
426
|
+
* Creates an object representation of this proto.
|
|
427
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
428
|
+
* Optional fields that are not set will be set to undefined.
|
|
429
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
430
|
+
* For the list of reserved names please see:
|
|
431
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
432
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
433
|
+
* JSPB instance for transitional soy proto support:
|
|
434
|
+
* http://goto/soy-param-migration
|
|
435
|
+
* @return {!Object}
|
|
436
|
+
*/
|
|
437
|
+
proto.meshtrade.compliance.client.v1.GetGroupClientRequest.prototype.toObject = function(opt_includeInstance) {
|
|
438
|
+
return proto.meshtrade.compliance.client.v1.GetGroupClientRequest.toObject(opt_includeInstance, this);
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Static version of the {@see toObject} method.
|
|
444
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
445
|
+
* the JSPB instance for transitional soy proto support:
|
|
446
|
+
* http://goto/soy-param-migration
|
|
447
|
+
* @param {!proto.meshtrade.compliance.client.v1.GetGroupClientRequest} msg The msg instance to transform.
|
|
448
|
+
* @return {!Object}
|
|
449
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
450
|
+
*/
|
|
451
|
+
proto.meshtrade.compliance.client.v1.GetGroupClientRequest.toObject = function(includeInstance, msg) {
|
|
452
|
+
var f, obj = {
|
|
453
|
+
group: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
454
|
+
};
|
|
455
|
+
|
|
456
|
+
if (includeInstance) {
|
|
457
|
+
obj.$jspbMessageInstance = msg;
|
|
458
|
+
}
|
|
459
|
+
return obj;
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Deserializes binary data (in protobuf wire format).
|
|
466
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
467
|
+
* @return {!proto.meshtrade.compliance.client.v1.GetGroupClientRequest}
|
|
468
|
+
*/
|
|
469
|
+
proto.meshtrade.compliance.client.v1.GetGroupClientRequest.deserializeBinary = function(bytes) {
|
|
470
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
471
|
+
var msg = new proto.meshtrade.compliance.client.v1.GetGroupClientRequest;
|
|
472
|
+
return proto.meshtrade.compliance.client.v1.GetGroupClientRequest.deserializeBinaryFromReader(msg, reader);
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
478
|
+
* given reader into the given message object.
|
|
479
|
+
* @param {!proto.meshtrade.compliance.client.v1.GetGroupClientRequest} msg The message object to deserialize into.
|
|
480
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
481
|
+
* @return {!proto.meshtrade.compliance.client.v1.GetGroupClientRequest}
|
|
482
|
+
*/
|
|
483
|
+
proto.meshtrade.compliance.client.v1.GetGroupClientRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
484
|
+
while (reader.nextField()) {
|
|
485
|
+
if (reader.isEndGroup()) {
|
|
486
|
+
break;
|
|
487
|
+
}
|
|
488
|
+
var field = reader.getFieldNumber();
|
|
489
|
+
switch (field) {
|
|
490
|
+
case 1:
|
|
491
|
+
var value = /** @type {string} */ (reader.readString());
|
|
492
|
+
msg.setGroup(value);
|
|
493
|
+
break;
|
|
494
|
+
default:
|
|
495
|
+
reader.skipField();
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
return msg;
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
505
|
+
* @return {!Uint8Array}
|
|
506
|
+
*/
|
|
507
|
+
proto.meshtrade.compliance.client.v1.GetGroupClientRequest.prototype.serializeBinary = function() {
|
|
508
|
+
var writer = new jspb.BinaryWriter();
|
|
509
|
+
proto.meshtrade.compliance.client.v1.GetGroupClientRequest.serializeBinaryToWriter(this, writer);
|
|
510
|
+
return writer.getResultBuffer();
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
516
|
+
* format), writing to the given BinaryWriter.
|
|
517
|
+
* @param {!proto.meshtrade.compliance.client.v1.GetGroupClientRequest} message
|
|
518
|
+
* @param {!jspb.BinaryWriter} writer
|
|
519
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
520
|
+
*/
|
|
521
|
+
proto.meshtrade.compliance.client.v1.GetGroupClientRequest.serializeBinaryToWriter = function(message, writer) {
|
|
522
|
+
var f = undefined;
|
|
523
|
+
f = message.getGroup();
|
|
524
|
+
if (f.length > 0) {
|
|
525
|
+
writer.writeString(
|
|
526
|
+
1,
|
|
527
|
+
f
|
|
528
|
+
);
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* optional string group = 1;
|
|
535
|
+
* @return {string}
|
|
536
|
+
*/
|
|
537
|
+
proto.meshtrade.compliance.client.v1.GetGroupClientRequest.prototype.getGroup = function() {
|
|
538
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* @param {string} value
|
|
544
|
+
* @return {!proto.meshtrade.compliance.client.v1.GetGroupClientRequest} returns this
|
|
545
|
+
*/
|
|
546
|
+
proto.meshtrade.compliance.client.v1.GetGroupClientRequest.prototype.setGroup = function(value) {
|
|
547
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
548
|
+
};
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
|
|
402
554
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
403
555
|
/**
|
|
404
556
|
* Creates an object representation of this proto.
|
|
@@ -29,6 +29,8 @@ const roleToStringMapping = {
|
|
|
29
29
|
[role_pb_1.Role.ROLE_IAM_GROUP_VIEWER]: "IAM Group Viewer",
|
|
30
30
|
[role_pb_1.Role.ROLE_IAM_USER_ADMIN]: "IAM User Admin",
|
|
31
31
|
[role_pb_1.Role.ROLE_IAM_USER_VIEWER]: "IAM User Viewer",
|
|
32
|
+
[role_pb_1.Role.ROLE_IAM_USER_PROFILE_ADMIN]: "User Profile Admin",
|
|
33
|
+
[role_pb_1.Role.ROLE_IAM_USER_PROFILE_VIEWER]: "User Profile Viewer",
|
|
32
34
|
[role_pb_1.Role.ROLE_STUDIO_ADMIN]: "Studio Admin",
|
|
33
35
|
[role_pb_1.Role.ROLE_STUDIO_VIEWER]: "Studio Viewer",
|
|
34
36
|
[role_pb_1.Role.ROLE_STUDIO_INSTRUMENT_ADMIN]: "Studio Instrument Admin",
|
|
@@ -20,6 +20,8 @@ export enum Role {
|
|
|
20
20
|
ROLE_IAM_GROUP_VIEWER = 3000005,
|
|
21
21
|
ROLE_IAM_USER_ADMIN = 3000006,
|
|
22
22
|
ROLE_IAM_USER_VIEWER = 3000007,
|
|
23
|
+
ROLE_IAM_USER_PROFILE_ADMIN = 3000008,
|
|
24
|
+
ROLE_IAM_USER_PROFILE_VIEWER = 3000009,
|
|
23
25
|
ROLE_STUDIO_ADMIN = 4000000,
|
|
24
26
|
ROLE_STUDIO_VIEWER = 4000001,
|
|
25
27
|
ROLE_STUDIO_INSTRUMENT_ADMIN = 4000002,
|
|
@@ -43,6 +43,8 @@ proto.meshtrade.iam.role.v1.Role = {
|
|
|
43
43
|
ROLE_IAM_GROUP_VIEWER: 3000005,
|
|
44
44
|
ROLE_IAM_USER_ADMIN: 3000006,
|
|
45
45
|
ROLE_IAM_USER_VIEWER: 3000007,
|
|
46
|
+
ROLE_IAM_USER_PROFILE_ADMIN: 3000008,
|
|
47
|
+
ROLE_IAM_USER_PROFILE_VIEWER: 3000009,
|
|
46
48
|
ROLE_STUDIO_ADMIN: 4000000,
|
|
47
49
|
ROLE_STUDIO_VIEWER: 4000001,
|
|
48
50
|
ROLE_STUDIO_INSTRUMENT_ADMIN: 4000002,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AssignRolesToUserRequest, CreateUserRequest, GetUserByEmailRequest, GetUserRequest, ListUsersRequest, ListUsersResponse, RevokeRolesFromUserRequest,
|
|
1
|
+
import { AssignRolesToUserRequest, CreateUserRequest, GetUserByEmailRequest, GetUserRequest, ListUsersRequest, ListUsersResponse, RevokeRolesFromUserRequest, UpdateUserRequest } from "./service_pb";
|
|
2
2
|
import { User } from "./user_pb";
|
|
3
3
|
import { UnaryInterceptor } from "grpc-web";
|
|
4
4
|
import { ConfigOpts } from "../../../common/config";
|
|
@@ -56,12 +56,6 @@ export declare class UserServiceGrpcWebClientV1 {
|
|
|
56
56
|
* @returns {Promise<ListUsersResponse>} A promise that resolves with the list of users.
|
|
57
57
|
*/
|
|
58
58
|
listUsers(request: ListUsersRequest): Promise<ListUsersResponse>;
|
|
59
|
-
/**
|
|
60
|
-
* Searches for users.
|
|
61
|
-
* @param {SearchUsersRequest} request - The request object for searchusers.
|
|
62
|
-
* @returns {Promise<SearchUsersResponse>} A promise that resolves with the search results.
|
|
63
|
-
*/
|
|
64
|
-
searchUsers(request: SearchUsersRequest): Promise<SearchUsersResponse>;
|
|
65
59
|
/**
|
|
66
60
|
* Creates a new user.
|
|
67
61
|
* @param {CreateUserRequest} request - The request object for createuser.
|
|
@@ -100,14 +100,6 @@ class UserServiceGrpcWebClientV1 {
|
|
|
100
100
|
listUsers(request) {
|
|
101
101
|
return this._service.listUsers(request);
|
|
102
102
|
}
|
|
103
|
-
/**
|
|
104
|
-
* Searches for users.
|
|
105
|
-
* @param {SearchUsersRequest} request - The request object for searchusers.
|
|
106
|
-
* @returns {Promise<SearchUsersResponse>} A promise that resolves with the search results.
|
|
107
|
-
*/
|
|
108
|
-
searchUsers(request) {
|
|
109
|
-
return this._service.searchUsers(request);
|
|
110
|
-
}
|
|
111
103
|
/**
|
|
112
104
|
* Creates a new user.
|
|
113
105
|
* @param {CreateUserRequest} request - The request object for createuser.
|
|
@@ -44,13 +44,6 @@ export class UserServiceClient {
|
|
|
44
44
|
response: meshtrade_iam_user_v1_service_pb.ListUsersResponse) => void
|
|
45
45
|
): grpcWeb.ClientReadableStream<meshtrade_iam_user_v1_service_pb.ListUsersResponse>;
|
|
46
46
|
|
|
47
|
-
searchUsers(
|
|
48
|
-
request: meshtrade_iam_user_v1_service_pb.SearchUsersRequest,
|
|
49
|
-
metadata: grpcWeb.Metadata | undefined,
|
|
50
|
-
callback: (err: grpcWeb.RpcError,
|
|
51
|
-
response: meshtrade_iam_user_v1_service_pb.SearchUsersResponse) => void
|
|
52
|
-
): grpcWeb.ClientReadableStream<meshtrade_iam_user_v1_service_pb.SearchUsersResponse>;
|
|
53
|
-
|
|
54
47
|
createUser(
|
|
55
48
|
request: meshtrade_iam_user_v1_service_pb.CreateUserRequest,
|
|
56
49
|
metadata: grpcWeb.Metadata | undefined,
|
|
@@ -97,11 +90,6 @@ export class UserServicePromiseClient {
|
|
|
97
90
|
metadata?: grpcWeb.Metadata
|
|
98
91
|
): Promise<meshtrade_iam_user_v1_service_pb.ListUsersResponse>;
|
|
99
92
|
|
|
100
|
-
searchUsers(
|
|
101
|
-
request: meshtrade_iam_user_v1_service_pb.SearchUsersRequest,
|
|
102
|
-
metadata?: grpcWeb.Metadata
|
|
103
|
-
): Promise<meshtrade_iam_user_v1_service_pb.SearchUsersResponse>;
|
|
104
|
-
|
|
105
93
|
createUser(
|
|
106
94
|
request: meshtrade_iam_user_v1_service_pb.CreateUserRequest,
|
|
107
95
|
metadata?: grpcWeb.Metadata
|
|
@@ -390,67 +390,6 @@ proto.meshtrade.iam.user.v1.UserServicePromiseClient.prototype.listUsers =
|
|
|
390
390
|
};
|
|
391
391
|
|
|
392
392
|
|
|
393
|
-
/**
|
|
394
|
-
* @const
|
|
395
|
-
* @type {!grpc.web.MethodDescriptor<
|
|
396
|
-
* !proto.meshtrade.iam.user.v1.SearchUsersRequest,
|
|
397
|
-
* !proto.meshtrade.iam.user.v1.SearchUsersResponse>}
|
|
398
|
-
*/
|
|
399
|
-
const methodDescriptor_UserService_SearchUsers = new grpc.web.MethodDescriptor(
|
|
400
|
-
'/meshtrade.iam.user.v1.UserService/SearchUsers',
|
|
401
|
-
grpc.web.MethodType.UNARY,
|
|
402
|
-
proto.meshtrade.iam.user.v1.SearchUsersRequest,
|
|
403
|
-
proto.meshtrade.iam.user.v1.SearchUsersResponse,
|
|
404
|
-
/**
|
|
405
|
-
* @param {!proto.meshtrade.iam.user.v1.SearchUsersRequest} request
|
|
406
|
-
* @return {!Uint8Array}
|
|
407
|
-
*/
|
|
408
|
-
function(request) {
|
|
409
|
-
return request.serializeBinary();
|
|
410
|
-
},
|
|
411
|
-
proto.meshtrade.iam.user.v1.SearchUsersResponse.deserializeBinary
|
|
412
|
-
);
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* @param {!proto.meshtrade.iam.user.v1.SearchUsersRequest} request The
|
|
417
|
-
* request proto
|
|
418
|
-
* @param {?Object<string, string>} metadata User defined
|
|
419
|
-
* call metadata
|
|
420
|
-
* @param {function(?grpc.web.RpcError, ?proto.meshtrade.iam.user.v1.SearchUsersResponse)}
|
|
421
|
-
* callback The callback function(error, response)
|
|
422
|
-
* @return {!grpc.web.ClientReadableStream<!proto.meshtrade.iam.user.v1.SearchUsersResponse>|undefined}
|
|
423
|
-
* The XHR Node Readable Stream
|
|
424
|
-
*/
|
|
425
|
-
proto.meshtrade.iam.user.v1.UserServiceClient.prototype.searchUsers =
|
|
426
|
-
function(request, metadata, callback) {
|
|
427
|
-
return this.client_.rpcCall(this.hostname_ +
|
|
428
|
-
'/meshtrade.iam.user.v1.UserService/SearchUsers',
|
|
429
|
-
request,
|
|
430
|
-
metadata || {},
|
|
431
|
-
methodDescriptor_UserService_SearchUsers,
|
|
432
|
-
callback);
|
|
433
|
-
};
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* @param {!proto.meshtrade.iam.user.v1.SearchUsersRequest} request The
|
|
438
|
-
* request proto
|
|
439
|
-
* @param {?Object<string, string>=} metadata User defined
|
|
440
|
-
* call metadata
|
|
441
|
-
* @return {!Promise<!proto.meshtrade.iam.user.v1.SearchUsersResponse>}
|
|
442
|
-
* Promise that resolves to the response
|
|
443
|
-
*/
|
|
444
|
-
proto.meshtrade.iam.user.v1.UserServicePromiseClient.prototype.searchUsers =
|
|
445
|
-
function(request, metadata) {
|
|
446
|
-
return this.client_.unaryCall(this.hostname_ +
|
|
447
|
-
'/meshtrade.iam.user.v1.UserService/SearchUsers',
|
|
448
|
-
request,
|
|
449
|
-
metadata || {},
|
|
450
|
-
methodDescriptor_UserService_SearchUsers);
|
|
451
|
-
};
|
|
452
|
-
|
|
453
|
-
|
|
454
393
|
/**
|
|
455
394
|
* @const
|
|
456
395
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -153,73 +153,6 @@ export namespace ListUsersResponse {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
export class SearchUsersRequest extends jspb.Message {
|
|
157
|
-
getEmail(): string;
|
|
158
|
-
setEmail(value: string): SearchUsersRequest;
|
|
159
|
-
|
|
160
|
-
getSorting(): SearchUsersRequest.Sorting | undefined;
|
|
161
|
-
setSorting(value?: SearchUsersRequest.Sorting): SearchUsersRequest;
|
|
162
|
-
hasSorting(): boolean;
|
|
163
|
-
clearSorting(): SearchUsersRequest;
|
|
164
|
-
|
|
165
|
-
serializeBinary(): Uint8Array;
|
|
166
|
-
toObject(includeInstance?: boolean): SearchUsersRequest.AsObject;
|
|
167
|
-
static toObject(includeInstance: boolean, msg: SearchUsersRequest): SearchUsersRequest.AsObject;
|
|
168
|
-
static serializeBinaryToWriter(message: SearchUsersRequest, writer: jspb.BinaryWriter): void;
|
|
169
|
-
static deserializeBinary(bytes: Uint8Array): SearchUsersRequest;
|
|
170
|
-
static deserializeBinaryFromReader(message: SearchUsersRequest, reader: jspb.BinaryReader): SearchUsersRequest;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
export namespace SearchUsersRequest {
|
|
174
|
-
export type AsObject = {
|
|
175
|
-
email: string,
|
|
176
|
-
sorting?: SearchUsersRequest.Sorting.AsObject,
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export class Sorting extends jspb.Message {
|
|
180
|
-
getField(): string;
|
|
181
|
-
setField(value: string): Sorting;
|
|
182
|
-
|
|
183
|
-
getOrder(): meshtrade_type_v1_sorting_pb.SortingOrder;
|
|
184
|
-
setOrder(value: meshtrade_type_v1_sorting_pb.SortingOrder): Sorting;
|
|
185
|
-
|
|
186
|
-
serializeBinary(): Uint8Array;
|
|
187
|
-
toObject(includeInstance?: boolean): Sorting.AsObject;
|
|
188
|
-
static toObject(includeInstance: boolean, msg: Sorting): Sorting.AsObject;
|
|
189
|
-
static serializeBinaryToWriter(message: Sorting, writer: jspb.BinaryWriter): void;
|
|
190
|
-
static deserializeBinary(bytes: Uint8Array): Sorting;
|
|
191
|
-
static deserializeBinaryFromReader(message: Sorting, reader: jspb.BinaryReader): Sorting;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
export namespace Sorting {
|
|
195
|
-
export type AsObject = {
|
|
196
|
-
field: string,
|
|
197
|
-
order: meshtrade_type_v1_sorting_pb.SortingOrder,
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
export class SearchUsersResponse extends jspb.Message {
|
|
204
|
-
getUsersList(): Array<meshtrade_iam_user_v1_user_pb.User>;
|
|
205
|
-
setUsersList(value: Array<meshtrade_iam_user_v1_user_pb.User>): SearchUsersResponse;
|
|
206
|
-
clearUsersList(): SearchUsersResponse;
|
|
207
|
-
addUsers(value?: meshtrade_iam_user_v1_user_pb.User, index?: number): meshtrade_iam_user_v1_user_pb.User;
|
|
208
|
-
|
|
209
|
-
serializeBinary(): Uint8Array;
|
|
210
|
-
toObject(includeInstance?: boolean): SearchUsersResponse.AsObject;
|
|
211
|
-
static toObject(includeInstance: boolean, msg: SearchUsersResponse): SearchUsersResponse.AsObject;
|
|
212
|
-
static serializeBinaryToWriter(message: SearchUsersResponse, writer: jspb.BinaryWriter): void;
|
|
213
|
-
static deserializeBinary(bytes: Uint8Array): SearchUsersResponse;
|
|
214
|
-
static deserializeBinaryFromReader(message: SearchUsersResponse, reader: jspb.BinaryReader): SearchUsersResponse;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
export namespace SearchUsersResponse {
|
|
218
|
-
export type AsObject = {
|
|
219
|
-
usersList: Array<meshtrade_iam_user_v1_user_pb.User.AsObject>,
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
|
|
223
156
|
export class CreateUserRequest extends jspb.Message {
|
|
224
157
|
getUser(): meshtrade_iam_user_v1_user_pb.User | undefined;
|
|
225
158
|
setUser(value?: meshtrade_iam_user_v1_user_pb.User): CreateUserRequest;
|