@miradorlabs/web-grpc 2.28.0 → 2.30.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.
|
@@ -6,6 +6,50 @@ var proto_gateway_web_v1_account_gateway_pb = require('../../../../proto/gateway
|
|
|
6
6
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
7
7
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
8
8
|
|
|
9
|
+
function serialize_gateway_web_v1_AddDemoProjectRequest(arg) {
|
|
10
|
+
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.AddDemoProjectRequest)) {
|
|
11
|
+
throw new Error('Expected argument of type gateway.web.v1.AddDemoProjectRequest');
|
|
12
|
+
}
|
|
13
|
+
return Buffer.from(arg.serializeBinary());
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function deserialize_gateway_web_v1_AddDemoProjectRequest(buffer_arg) {
|
|
17
|
+
return proto_gateway_web_v1_account_gateway_pb.AddDemoProjectRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function serialize_gateway_web_v1_AddDemoProjectResponse(arg) {
|
|
21
|
+
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.AddDemoProjectResponse)) {
|
|
22
|
+
throw new Error('Expected argument of type gateway.web.v1.AddDemoProjectResponse');
|
|
23
|
+
}
|
|
24
|
+
return Buffer.from(arg.serializeBinary());
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function deserialize_gateway_web_v1_AddDemoProjectResponse(buffer_arg) {
|
|
28
|
+
return proto_gateway_web_v1_account_gateway_pb.AddDemoProjectResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function serialize_gateway_web_v1_AuthorizeCliLoginRequest(arg) {
|
|
32
|
+
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.AuthorizeCliLoginRequest)) {
|
|
33
|
+
throw new Error('Expected argument of type gateway.web.v1.AuthorizeCliLoginRequest');
|
|
34
|
+
}
|
|
35
|
+
return Buffer.from(arg.serializeBinary());
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function deserialize_gateway_web_v1_AuthorizeCliLoginRequest(buffer_arg) {
|
|
39
|
+
return proto_gateway_web_v1_account_gateway_pb.AuthorizeCliLoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function serialize_gateway_web_v1_AuthorizeCliLoginResponse(arg) {
|
|
43
|
+
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.AuthorizeCliLoginResponse)) {
|
|
44
|
+
throw new Error('Expected argument of type gateway.web.v1.AuthorizeCliLoginResponse');
|
|
45
|
+
}
|
|
46
|
+
return Buffer.from(arg.serializeBinary());
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function deserialize_gateway_web_v1_AuthorizeCliLoginResponse(buffer_arg) {
|
|
50
|
+
return proto_gateway_web_v1_account_gateway_pb.AuthorizeCliLoginResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
51
|
+
}
|
|
52
|
+
|
|
9
53
|
function serialize_gateway_web_v1_CreateOrganizationRequest(arg) {
|
|
10
54
|
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.CreateOrganizationRequest)) {
|
|
11
55
|
throw new Error('Expected argument of type gateway.web.v1.CreateOrganizationRequest');
|
|
@@ -182,6 +226,28 @@ function deserialize_gateway_web_v1_InviteUserResponse(buffer_arg) {
|
|
|
182
226
|
return proto_gateway_web_v1_account_gateway_pb.InviteUserResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
183
227
|
}
|
|
184
228
|
|
|
229
|
+
function serialize_gateway_web_v1_ListCliSessionsRequest(arg) {
|
|
230
|
+
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.ListCliSessionsRequest)) {
|
|
231
|
+
throw new Error('Expected argument of type gateway.web.v1.ListCliSessionsRequest');
|
|
232
|
+
}
|
|
233
|
+
return Buffer.from(arg.serializeBinary());
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
function deserialize_gateway_web_v1_ListCliSessionsRequest(buffer_arg) {
|
|
237
|
+
return proto_gateway_web_v1_account_gateway_pb.ListCliSessionsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
function serialize_gateway_web_v1_ListCliSessionsResponse(arg) {
|
|
241
|
+
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.ListCliSessionsResponse)) {
|
|
242
|
+
throw new Error('Expected argument of type gateway.web.v1.ListCliSessionsResponse');
|
|
243
|
+
}
|
|
244
|
+
return Buffer.from(arg.serializeBinary());
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
function deserialize_gateway_web_v1_ListCliSessionsResponse(buffer_arg) {
|
|
248
|
+
return proto_gateway_web_v1_account_gateway_pb.ListCliSessionsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
249
|
+
}
|
|
250
|
+
|
|
185
251
|
function serialize_gateway_web_v1_ListInvitationsRequest(arg) {
|
|
186
252
|
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.ListInvitationsRequest)) {
|
|
187
253
|
throw new Error('Expected argument of type gateway.web.v1.ListInvitationsRequest');
|
|
@@ -325,6 +391,28 @@ function deserialize_gateway_web_v1_ProjectsStatsEnvelope(buffer_arg) {
|
|
|
325
391
|
return proto_gateway_web_v1_account_gateway_pb.ProjectsStatsEnvelope.deserializeBinary(new Uint8Array(buffer_arg));
|
|
326
392
|
}
|
|
327
393
|
|
|
394
|
+
function serialize_gateway_web_v1_RemoveDemoProjectRequest(arg) {
|
|
395
|
+
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.RemoveDemoProjectRequest)) {
|
|
396
|
+
throw new Error('Expected argument of type gateway.web.v1.RemoveDemoProjectRequest');
|
|
397
|
+
}
|
|
398
|
+
return Buffer.from(arg.serializeBinary());
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
function deserialize_gateway_web_v1_RemoveDemoProjectRequest(buffer_arg) {
|
|
402
|
+
return proto_gateway_web_v1_account_gateway_pb.RemoveDemoProjectRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
function serialize_gateway_web_v1_RemoveDemoProjectResponse(arg) {
|
|
406
|
+
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.RemoveDemoProjectResponse)) {
|
|
407
|
+
throw new Error('Expected argument of type gateway.web.v1.RemoveDemoProjectResponse');
|
|
408
|
+
}
|
|
409
|
+
return Buffer.from(arg.serializeBinary());
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
function deserialize_gateway_web_v1_RemoveDemoProjectResponse(buffer_arg) {
|
|
413
|
+
return proto_gateway_web_v1_account_gateway_pb.RemoveDemoProjectResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
414
|
+
}
|
|
415
|
+
|
|
328
416
|
function serialize_gateway_web_v1_RemoveUserRequest(arg) {
|
|
329
417
|
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.RemoveUserRequest)) {
|
|
330
418
|
throw new Error('Expected argument of type gateway.web.v1.RemoveUserRequest');
|
|
@@ -369,6 +457,28 @@ function deserialize_gateway_web_v1_ResendInviteResponse(buffer_arg) {
|
|
|
369
457
|
return proto_gateway_web_v1_account_gateway_pb.ResendInviteResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
370
458
|
}
|
|
371
459
|
|
|
460
|
+
function serialize_gateway_web_v1_RevokeCliSessionRequest(arg) {
|
|
461
|
+
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.RevokeCliSessionRequest)) {
|
|
462
|
+
throw new Error('Expected argument of type gateway.web.v1.RevokeCliSessionRequest');
|
|
463
|
+
}
|
|
464
|
+
return Buffer.from(arg.serializeBinary());
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
function deserialize_gateway_web_v1_RevokeCliSessionRequest(buffer_arg) {
|
|
468
|
+
return proto_gateway_web_v1_account_gateway_pb.RevokeCliSessionRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
function serialize_gateway_web_v1_RevokeCliSessionResponse(arg) {
|
|
472
|
+
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.RevokeCliSessionResponse)) {
|
|
473
|
+
throw new Error('Expected argument of type gateway.web.v1.RevokeCliSessionResponse');
|
|
474
|
+
}
|
|
475
|
+
return Buffer.from(arg.serializeBinary());
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
function deserialize_gateway_web_v1_RevokeCliSessionResponse(buffer_arg) {
|
|
479
|
+
return proto_gateway_web_v1_account_gateway_pb.RevokeCliSessionResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
480
|
+
}
|
|
481
|
+
|
|
372
482
|
function serialize_gateway_web_v1_RevokeInvitationRequest(arg) {
|
|
373
483
|
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.RevokeInvitationRequest)) {
|
|
374
484
|
throw new Error('Expected argument of type gateway.web.v1.RevokeInvitationRequest');
|
|
@@ -615,6 +725,29 @@ createProject: {
|
|
|
615
725
|
responseSerialize: serialize_gateway_web_v1_DeleteProjectResponse,
|
|
616
726
|
responseDeserialize: deserialize_gateway_web_v1_DeleteProjectResponse,
|
|
617
727
|
},
|
|
728
|
+
// Demo project: self-service add/remove of the shared, read-only demo project
|
|
729
|
+
addDemoProject: {
|
|
730
|
+
path: '/gateway.web.v1.AccountGatewayService/AddDemoProject',
|
|
731
|
+
requestStream: false,
|
|
732
|
+
responseStream: false,
|
|
733
|
+
requestType: proto_gateway_web_v1_account_gateway_pb.AddDemoProjectRequest,
|
|
734
|
+
responseType: proto_gateway_web_v1_account_gateway_pb.AddDemoProjectResponse,
|
|
735
|
+
requestSerialize: serialize_gateway_web_v1_AddDemoProjectRequest,
|
|
736
|
+
requestDeserialize: deserialize_gateway_web_v1_AddDemoProjectRequest,
|
|
737
|
+
responseSerialize: serialize_gateway_web_v1_AddDemoProjectResponse,
|
|
738
|
+
responseDeserialize: deserialize_gateway_web_v1_AddDemoProjectResponse,
|
|
739
|
+
},
|
|
740
|
+
removeDemoProject: {
|
|
741
|
+
path: '/gateway.web.v1.AccountGatewayService/RemoveDemoProject',
|
|
742
|
+
requestStream: false,
|
|
743
|
+
responseStream: false,
|
|
744
|
+
requestType: proto_gateway_web_v1_account_gateway_pb.RemoveDemoProjectRequest,
|
|
745
|
+
responseType: proto_gateway_web_v1_account_gateway_pb.RemoveDemoProjectResponse,
|
|
746
|
+
requestSerialize: serialize_gateway_web_v1_RemoveDemoProjectRequest,
|
|
747
|
+
requestDeserialize: deserialize_gateway_web_v1_RemoveDemoProjectRequest,
|
|
748
|
+
responseSerialize: serialize_gateway_web_v1_RemoveDemoProjectResponse,
|
|
749
|
+
responseDeserialize: deserialize_gateway_web_v1_RemoveDemoProjectResponse,
|
|
750
|
+
},
|
|
618
751
|
// Web API Key operations
|
|
619
752
|
createWebApiKey: {
|
|
620
753
|
path: '/gateway.web.v1.AccountGatewayService/CreateWebApiKey',
|
|
@@ -841,6 +974,40 @@ streamProjectsStats: {
|
|
|
841
974
|
responseSerialize: serialize_gateway_web_v1_ProjectsStatsEnvelope,
|
|
842
975
|
responseDeserialize: deserialize_gateway_web_v1_ProjectsStatsEnvelope,
|
|
843
976
|
},
|
|
977
|
+
// CLI authorization
|
|
978
|
+
authorizeCliLogin: {
|
|
979
|
+
path: '/gateway.web.v1.AccountGatewayService/AuthorizeCliLogin',
|
|
980
|
+
requestStream: false,
|
|
981
|
+
responseStream: false,
|
|
982
|
+
requestType: proto_gateway_web_v1_account_gateway_pb.AuthorizeCliLoginRequest,
|
|
983
|
+
responseType: proto_gateway_web_v1_account_gateway_pb.AuthorizeCliLoginResponse,
|
|
984
|
+
requestSerialize: serialize_gateway_web_v1_AuthorizeCliLoginRequest,
|
|
985
|
+
requestDeserialize: deserialize_gateway_web_v1_AuthorizeCliLoginRequest,
|
|
986
|
+
responseSerialize: serialize_gateway_web_v1_AuthorizeCliLoginResponse,
|
|
987
|
+
responseDeserialize: deserialize_gateway_web_v1_AuthorizeCliLoginResponse,
|
|
988
|
+
},
|
|
989
|
+
listCliSessions: {
|
|
990
|
+
path: '/gateway.web.v1.AccountGatewayService/ListCliSessions',
|
|
991
|
+
requestStream: false,
|
|
992
|
+
responseStream: false,
|
|
993
|
+
requestType: proto_gateway_web_v1_account_gateway_pb.ListCliSessionsRequest,
|
|
994
|
+
responseType: proto_gateway_web_v1_account_gateway_pb.ListCliSessionsResponse,
|
|
995
|
+
requestSerialize: serialize_gateway_web_v1_ListCliSessionsRequest,
|
|
996
|
+
requestDeserialize: deserialize_gateway_web_v1_ListCliSessionsRequest,
|
|
997
|
+
responseSerialize: serialize_gateway_web_v1_ListCliSessionsResponse,
|
|
998
|
+
responseDeserialize: deserialize_gateway_web_v1_ListCliSessionsResponse,
|
|
999
|
+
},
|
|
1000
|
+
revokeCliSession: {
|
|
1001
|
+
path: '/gateway.web.v1.AccountGatewayService/RevokeCliSession',
|
|
1002
|
+
requestStream: false,
|
|
1003
|
+
responseStream: false,
|
|
1004
|
+
requestType: proto_gateway_web_v1_account_gateway_pb.RevokeCliSessionRequest,
|
|
1005
|
+
responseType: proto_gateway_web_v1_account_gateway_pb.RevokeCliSessionResponse,
|
|
1006
|
+
requestSerialize: serialize_gateway_web_v1_RevokeCliSessionRequest,
|
|
1007
|
+
requestDeserialize: deserialize_gateway_web_v1_RevokeCliSessionRequest,
|
|
1008
|
+
responseSerialize: serialize_gateway_web_v1_RevokeCliSessionResponse,
|
|
1009
|
+
responseDeserialize: deserialize_gateway_web_v1_RevokeCliSessionResponse,
|
|
1010
|
+
},
|
|
844
1011
|
};
|
|
845
1012
|
|
|
846
1013
|
exports.AccountGatewayServiceClient = grpc.makeGenericClientConstructor(AccountGatewayServiceService, 'AccountGatewayService');
|