@miradorlabs/web-grpc 3.9.0 → 3.11.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.
|
@@ -5,6 +5,28 @@ var grpc = require('@grpc/grpc-js');
|
|
|
5
5
|
var proto_gateway_web_v1_github_connector_pb = require('../../../../proto/gateway/web/v1/github_connector_pb.js');
|
|
6
6
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
7
7
|
|
|
8
|
+
function serialize_gateway_web_v1_CreateInstallTermaPullRequestsRequest(arg) {
|
|
9
|
+
if (!(arg instanceof proto_gateway_web_v1_github_connector_pb.CreateInstallTermaPullRequestsRequest)) {
|
|
10
|
+
throw new Error('Expected argument of type gateway.web.v1.CreateInstallTermaPullRequestsRequest');
|
|
11
|
+
}
|
|
12
|
+
return Buffer.from(arg.serializeBinary());
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function deserialize_gateway_web_v1_CreateInstallTermaPullRequestsRequest(buffer_arg) {
|
|
16
|
+
return proto_gateway_web_v1_github_connector_pb.CreateInstallTermaPullRequestsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function serialize_gateway_web_v1_CreateInstallTermaPullRequestsResponse(arg) {
|
|
20
|
+
if (!(arg instanceof proto_gateway_web_v1_github_connector_pb.CreateInstallTermaPullRequestsResponse)) {
|
|
21
|
+
throw new Error('Expected argument of type gateway.web.v1.CreateInstallTermaPullRequestsResponse');
|
|
22
|
+
}
|
|
23
|
+
return Buffer.from(arg.serializeBinary());
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function deserialize_gateway_web_v1_CreateInstallTermaPullRequestsResponse(buffer_arg) {
|
|
27
|
+
return proto_gateway_web_v1_github_connector_pb.CreateInstallTermaPullRequestsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
28
|
+
}
|
|
29
|
+
|
|
8
30
|
function serialize_gateway_web_v1_GitHubBeginResponse(arg) {
|
|
9
31
|
if (!(arg instanceof proto_gateway_web_v1_github_connector_pb.GitHubBeginResponse)) {
|
|
10
32
|
throw new Error('Expected argument of type gateway.web.v1.GitHubBeginResponse');
|
|
@@ -159,6 +181,28 @@ function deserialize_gateway_web_v1_GitHubWebhookRequest(buffer_arg) {
|
|
|
159
181
|
return proto_gateway_web_v1_github_connector_pb.GitHubWebhookRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
160
182
|
}
|
|
161
183
|
|
|
184
|
+
function serialize_gateway_web_v1_ListInstallTermaPullRequestsRequest(arg) {
|
|
185
|
+
if (!(arg instanceof proto_gateway_web_v1_github_connector_pb.ListInstallTermaPullRequestsRequest)) {
|
|
186
|
+
throw new Error('Expected argument of type gateway.web.v1.ListInstallTermaPullRequestsRequest');
|
|
187
|
+
}
|
|
188
|
+
return Buffer.from(arg.serializeBinary());
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
function deserialize_gateway_web_v1_ListInstallTermaPullRequestsRequest(buffer_arg) {
|
|
192
|
+
return proto_gateway_web_v1_github_connector_pb.ListInstallTermaPullRequestsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
function serialize_gateway_web_v1_ListInstallTermaPullRequestsResponse(arg) {
|
|
196
|
+
if (!(arg instanceof proto_gateway_web_v1_github_connector_pb.ListInstallTermaPullRequestsResponse)) {
|
|
197
|
+
throw new Error('Expected argument of type gateway.web.v1.ListInstallTermaPullRequestsResponse');
|
|
198
|
+
}
|
|
199
|
+
return Buffer.from(arg.serializeBinary());
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
function deserialize_gateway_web_v1_ListInstallTermaPullRequestsResponse(buffer_arg) {
|
|
203
|
+
return proto_gateway_web_v1_github_connector_pb.ListInstallTermaPullRequestsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
204
|
+
}
|
|
205
|
+
|
|
162
206
|
|
|
163
207
|
// One GitHub App connection per organization. Credentials never leave the
|
|
164
208
|
// account service; installation tokens are minted on demand and never stored.
|
|
@@ -251,6 +295,31 @@ var GitHubGatewayServiceService = exports.GitHubGatewayServiceService = {
|
|
|
251
295
|
responseSerialize: serialize_gateway_web_v1_GitHubFilesResponse,
|
|
252
296
|
responseDeserialize: deserialize_gateway_web_v1_GitHubFilesResponse,
|
|
253
297
|
},
|
|
298
|
+
// Org admins only. Opens one pull request per repository that sets Terma up for the team.
|
|
299
|
+
createInstallTermaPullRequests: {
|
|
300
|
+
path: '/gateway.web.v1.GitHubGatewayService/CreateInstallTermaPullRequests',
|
|
301
|
+
requestStream: false,
|
|
302
|
+
responseStream: false,
|
|
303
|
+
requestType: proto_gateway_web_v1_github_connector_pb.CreateInstallTermaPullRequestsRequest,
|
|
304
|
+
responseType: proto_gateway_web_v1_github_connector_pb.CreateInstallTermaPullRequestsResponse,
|
|
305
|
+
requestSerialize: serialize_gateway_web_v1_CreateInstallTermaPullRequestsRequest,
|
|
306
|
+
requestDeserialize: deserialize_gateway_web_v1_CreateInstallTermaPullRequestsRequest,
|
|
307
|
+
responseSerialize: serialize_gateway_web_v1_CreateInstallTermaPullRequestsResponse,
|
|
308
|
+
responseDeserialize: deserialize_gateway_web_v1_CreateInstallTermaPullRequestsResponse,
|
|
309
|
+
},
|
|
310
|
+
// Org members. Every setup pull request Terma opened for the team on GitHub, open, merged or closed (a repository can
|
|
311
|
+
// have several over time), most recently updated first.
|
|
312
|
+
listInstallTermaPullRequests: {
|
|
313
|
+
path: '/gateway.web.v1.GitHubGatewayService/ListInstallTermaPullRequests',
|
|
314
|
+
requestStream: false,
|
|
315
|
+
responseStream: false,
|
|
316
|
+
requestType: proto_gateway_web_v1_github_connector_pb.ListInstallTermaPullRequestsRequest,
|
|
317
|
+
responseType: proto_gateway_web_v1_github_connector_pb.ListInstallTermaPullRequestsResponse,
|
|
318
|
+
requestSerialize: serialize_gateway_web_v1_ListInstallTermaPullRequestsRequest,
|
|
319
|
+
requestDeserialize: deserialize_gateway_web_v1_ListInstallTermaPullRequestsRequest,
|
|
320
|
+
responseSerialize: serialize_gateway_web_v1_ListInstallTermaPullRequestsResponse,
|
|
321
|
+
responseDeserialize: deserialize_gateway_web_v1_ListInstallTermaPullRequestsResponse,
|
|
322
|
+
},
|
|
254
323
|
receiveGitHubWebhook: {
|
|
255
324
|
path: '/gateway.web.v1.GitHubGatewayService/ReceiveGitHubWebhook',
|
|
256
325
|
requestStream: false,
|