@miradorlabs/web-grpc 3.10.0 → 3.12.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/package.json +1 -1
- package/proto/gateway/web/v1/github_connector.ts +367 -0
- package/proto/gateway/web/v1/github_connector_grpc_pb.js +35 -0
- package/proto/gateway/web/v1/github_connector_pb.js +687 -0
- package/proto/gateway/web/v1/policy_gateway.ts +21 -142
- package/proto/gateway/web/v1/policy_gateway_pb.js +21 -138
package/package.json
CHANGED
|
@@ -235,6 +235,26 @@ export interface CreateInstallTermaPullRequestsResponse {
|
|
|
235
235
|
results: InstallTermaPullRequestResult[];
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
+
export interface ListInstallTermaPullRequestsRequest {
|
|
239
|
+
organizationId: string;
|
|
240
|
+
projectId: string;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export interface InstallTermaPullRequest {
|
|
244
|
+
/** GitHub owner/name. */
|
|
245
|
+
repository: string;
|
|
246
|
+
number: number;
|
|
247
|
+
url: string;
|
|
248
|
+
/** open, merged or closed. */
|
|
249
|
+
state: string;
|
|
250
|
+
updatedAt: string;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export interface ListInstallTermaPullRequestsResponse {
|
|
254
|
+
status: ResponseStatus | undefined;
|
|
255
|
+
pullRequests: InstallTermaPullRequest[];
|
|
256
|
+
}
|
|
257
|
+
|
|
238
258
|
function createBaseGitHubScopeRequest(): GitHubScopeRequest {
|
|
239
259
|
return { organizationId: "" };
|
|
240
260
|
}
|
|
@@ -3030,6 +3050,335 @@ export const CreateInstallTermaPullRequestsResponse: MessageFns<CreateInstallTer
|
|
|
3030
3050
|
},
|
|
3031
3051
|
};
|
|
3032
3052
|
|
|
3053
|
+
function createBaseListInstallTermaPullRequestsRequest(): ListInstallTermaPullRequestsRequest {
|
|
3054
|
+
return { organizationId: "", projectId: "" };
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3057
|
+
export const ListInstallTermaPullRequestsRequest: MessageFns<ListInstallTermaPullRequestsRequest> = {
|
|
3058
|
+
encode(message: ListInstallTermaPullRequestsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3059
|
+
if (message.organizationId !== "") {
|
|
3060
|
+
writer.uint32(10).string(message.organizationId);
|
|
3061
|
+
}
|
|
3062
|
+
if (message.projectId !== "") {
|
|
3063
|
+
writer.uint32(18).string(message.projectId);
|
|
3064
|
+
}
|
|
3065
|
+
return writer;
|
|
3066
|
+
},
|
|
3067
|
+
|
|
3068
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ListInstallTermaPullRequestsRequest {
|
|
3069
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3070
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
3071
|
+
if (previousRecursionDepth >= 100) {
|
|
3072
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3073
|
+
}
|
|
3074
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3075
|
+
try {
|
|
3076
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3077
|
+
const message = createBaseListInstallTermaPullRequestsRequest();
|
|
3078
|
+
while (reader.pos < end) {
|
|
3079
|
+
const tag = reader.uint32();
|
|
3080
|
+
switch (tag >>> 3) {
|
|
3081
|
+
case 1: {
|
|
3082
|
+
if (tag !== 10) {
|
|
3083
|
+
break;
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3086
|
+
message.organizationId = reader.string();
|
|
3087
|
+
continue;
|
|
3088
|
+
}
|
|
3089
|
+
case 2: {
|
|
3090
|
+
if (tag !== 18) {
|
|
3091
|
+
break;
|
|
3092
|
+
}
|
|
3093
|
+
|
|
3094
|
+
message.projectId = reader.string();
|
|
3095
|
+
continue;
|
|
3096
|
+
}
|
|
3097
|
+
}
|
|
3098
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3099
|
+
break;
|
|
3100
|
+
}
|
|
3101
|
+
reader.skip(tag & 7);
|
|
3102
|
+
}
|
|
3103
|
+
return message;
|
|
3104
|
+
} finally {
|
|
3105
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3106
|
+
}
|
|
3107
|
+
},
|
|
3108
|
+
|
|
3109
|
+
fromJSON(object: any): ListInstallTermaPullRequestsRequest {
|
|
3110
|
+
return {
|
|
3111
|
+
organizationId: isSet(object.organizationId)
|
|
3112
|
+
? globalThis.String(object.organizationId)
|
|
3113
|
+
: isSet(object.organization_id)
|
|
3114
|
+
? globalThis.String(object.organization_id)
|
|
3115
|
+
: "",
|
|
3116
|
+
projectId: isSet(object.projectId)
|
|
3117
|
+
? globalThis.String(object.projectId)
|
|
3118
|
+
: isSet(object.project_id)
|
|
3119
|
+
? globalThis.String(object.project_id)
|
|
3120
|
+
: "",
|
|
3121
|
+
};
|
|
3122
|
+
},
|
|
3123
|
+
|
|
3124
|
+
toJSON(message: ListInstallTermaPullRequestsRequest): unknown {
|
|
3125
|
+
const obj: any = {};
|
|
3126
|
+
if (message.organizationId !== "") {
|
|
3127
|
+
obj.organizationId = message.organizationId;
|
|
3128
|
+
}
|
|
3129
|
+
if (message.projectId !== "") {
|
|
3130
|
+
obj.projectId = message.projectId;
|
|
3131
|
+
}
|
|
3132
|
+
return obj;
|
|
3133
|
+
},
|
|
3134
|
+
|
|
3135
|
+
create<I extends Exact<DeepPartial<ListInstallTermaPullRequestsRequest>, I>>(
|
|
3136
|
+
base?: I,
|
|
3137
|
+
): ListInstallTermaPullRequestsRequest {
|
|
3138
|
+
return ListInstallTermaPullRequestsRequest.fromPartial(base ?? ({} as any));
|
|
3139
|
+
},
|
|
3140
|
+
fromPartial<I extends Exact<DeepPartial<ListInstallTermaPullRequestsRequest>, I>>(
|
|
3141
|
+
object: I,
|
|
3142
|
+
): ListInstallTermaPullRequestsRequest {
|
|
3143
|
+
const message = createBaseListInstallTermaPullRequestsRequest();
|
|
3144
|
+
message.organizationId = object.organizationId ?? "";
|
|
3145
|
+
message.projectId = object.projectId ?? "";
|
|
3146
|
+
return message;
|
|
3147
|
+
},
|
|
3148
|
+
};
|
|
3149
|
+
|
|
3150
|
+
function createBaseInstallTermaPullRequest(): InstallTermaPullRequest {
|
|
3151
|
+
return { repository: "", number: 0, url: "", state: "", updatedAt: "" };
|
|
3152
|
+
}
|
|
3153
|
+
|
|
3154
|
+
export const InstallTermaPullRequest: MessageFns<InstallTermaPullRequest> = {
|
|
3155
|
+
encode(message: InstallTermaPullRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3156
|
+
if (message.repository !== "") {
|
|
3157
|
+
writer.uint32(10).string(message.repository);
|
|
3158
|
+
}
|
|
3159
|
+
if (message.number !== 0) {
|
|
3160
|
+
writer.uint32(16).int64(message.number);
|
|
3161
|
+
}
|
|
3162
|
+
if (message.url !== "") {
|
|
3163
|
+
writer.uint32(26).string(message.url);
|
|
3164
|
+
}
|
|
3165
|
+
if (message.state !== "") {
|
|
3166
|
+
writer.uint32(34).string(message.state);
|
|
3167
|
+
}
|
|
3168
|
+
if (message.updatedAt !== "") {
|
|
3169
|
+
writer.uint32(42).string(message.updatedAt);
|
|
3170
|
+
}
|
|
3171
|
+
return writer;
|
|
3172
|
+
},
|
|
3173
|
+
|
|
3174
|
+
decode(input: BinaryReader | Uint8Array, length?: number): InstallTermaPullRequest {
|
|
3175
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3176
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
3177
|
+
if (previousRecursionDepth >= 100) {
|
|
3178
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3179
|
+
}
|
|
3180
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3181
|
+
try {
|
|
3182
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3183
|
+
const message = createBaseInstallTermaPullRequest();
|
|
3184
|
+
while (reader.pos < end) {
|
|
3185
|
+
const tag = reader.uint32();
|
|
3186
|
+
switch (tag >>> 3) {
|
|
3187
|
+
case 1: {
|
|
3188
|
+
if (tag !== 10) {
|
|
3189
|
+
break;
|
|
3190
|
+
}
|
|
3191
|
+
|
|
3192
|
+
message.repository = reader.string();
|
|
3193
|
+
continue;
|
|
3194
|
+
}
|
|
3195
|
+
case 2: {
|
|
3196
|
+
if (tag !== 16) {
|
|
3197
|
+
break;
|
|
3198
|
+
}
|
|
3199
|
+
|
|
3200
|
+
message.number = longToNumber(reader.int64());
|
|
3201
|
+
continue;
|
|
3202
|
+
}
|
|
3203
|
+
case 3: {
|
|
3204
|
+
if (tag !== 26) {
|
|
3205
|
+
break;
|
|
3206
|
+
}
|
|
3207
|
+
|
|
3208
|
+
message.url = reader.string();
|
|
3209
|
+
continue;
|
|
3210
|
+
}
|
|
3211
|
+
case 4: {
|
|
3212
|
+
if (tag !== 34) {
|
|
3213
|
+
break;
|
|
3214
|
+
}
|
|
3215
|
+
|
|
3216
|
+
message.state = reader.string();
|
|
3217
|
+
continue;
|
|
3218
|
+
}
|
|
3219
|
+
case 5: {
|
|
3220
|
+
if (tag !== 42) {
|
|
3221
|
+
break;
|
|
3222
|
+
}
|
|
3223
|
+
|
|
3224
|
+
message.updatedAt = reader.string();
|
|
3225
|
+
continue;
|
|
3226
|
+
}
|
|
3227
|
+
}
|
|
3228
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3229
|
+
break;
|
|
3230
|
+
}
|
|
3231
|
+
reader.skip(tag & 7);
|
|
3232
|
+
}
|
|
3233
|
+
return message;
|
|
3234
|
+
} finally {
|
|
3235
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3236
|
+
}
|
|
3237
|
+
},
|
|
3238
|
+
|
|
3239
|
+
fromJSON(object: any): InstallTermaPullRequest {
|
|
3240
|
+
return {
|
|
3241
|
+
repository: isSet(object.repository) ? globalThis.String(object.repository) : "",
|
|
3242
|
+
number: isSet(object.number) ? globalThis.Number(object.number) : 0,
|
|
3243
|
+
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
3244
|
+
state: isSet(object.state) ? globalThis.String(object.state) : "",
|
|
3245
|
+
updatedAt: isSet(object.updatedAt)
|
|
3246
|
+
? globalThis.String(object.updatedAt)
|
|
3247
|
+
: isSet(object.updated_at)
|
|
3248
|
+
? globalThis.String(object.updated_at)
|
|
3249
|
+
: "",
|
|
3250
|
+
};
|
|
3251
|
+
},
|
|
3252
|
+
|
|
3253
|
+
toJSON(message: InstallTermaPullRequest): unknown {
|
|
3254
|
+
const obj: any = {};
|
|
3255
|
+
if (message.repository !== "") {
|
|
3256
|
+
obj.repository = message.repository;
|
|
3257
|
+
}
|
|
3258
|
+
if (message.number !== 0) {
|
|
3259
|
+
obj.number = Math.round(message.number);
|
|
3260
|
+
}
|
|
3261
|
+
if (message.url !== "") {
|
|
3262
|
+
obj.url = message.url;
|
|
3263
|
+
}
|
|
3264
|
+
if (message.state !== "") {
|
|
3265
|
+
obj.state = message.state;
|
|
3266
|
+
}
|
|
3267
|
+
if (message.updatedAt !== "") {
|
|
3268
|
+
obj.updatedAt = message.updatedAt;
|
|
3269
|
+
}
|
|
3270
|
+
return obj;
|
|
3271
|
+
},
|
|
3272
|
+
|
|
3273
|
+
create<I extends Exact<DeepPartial<InstallTermaPullRequest>, I>>(base?: I): InstallTermaPullRequest {
|
|
3274
|
+
return InstallTermaPullRequest.fromPartial(base ?? ({} as any));
|
|
3275
|
+
},
|
|
3276
|
+
fromPartial<I extends Exact<DeepPartial<InstallTermaPullRequest>, I>>(object: I): InstallTermaPullRequest {
|
|
3277
|
+
const message = createBaseInstallTermaPullRequest();
|
|
3278
|
+
message.repository = object.repository ?? "";
|
|
3279
|
+
message.number = object.number ?? 0;
|
|
3280
|
+
message.url = object.url ?? "";
|
|
3281
|
+
message.state = object.state ?? "";
|
|
3282
|
+
message.updatedAt = object.updatedAt ?? "";
|
|
3283
|
+
return message;
|
|
3284
|
+
},
|
|
3285
|
+
};
|
|
3286
|
+
|
|
3287
|
+
function createBaseListInstallTermaPullRequestsResponse(): ListInstallTermaPullRequestsResponse {
|
|
3288
|
+
return { status: undefined, pullRequests: [] };
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3291
|
+
export const ListInstallTermaPullRequestsResponse: MessageFns<ListInstallTermaPullRequestsResponse> = {
|
|
3292
|
+
encode(message: ListInstallTermaPullRequestsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3293
|
+
if (message.status !== undefined) {
|
|
3294
|
+
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
3295
|
+
}
|
|
3296
|
+
for (const v of message.pullRequests) {
|
|
3297
|
+
InstallTermaPullRequest.encode(v!, writer.uint32(18).fork()).join();
|
|
3298
|
+
}
|
|
3299
|
+
return writer;
|
|
3300
|
+
},
|
|
3301
|
+
|
|
3302
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ListInstallTermaPullRequestsResponse {
|
|
3303
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3304
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
3305
|
+
if (previousRecursionDepth >= 100) {
|
|
3306
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3307
|
+
}
|
|
3308
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3309
|
+
try {
|
|
3310
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3311
|
+
const message = createBaseListInstallTermaPullRequestsResponse();
|
|
3312
|
+
while (reader.pos < end) {
|
|
3313
|
+
const tag = reader.uint32();
|
|
3314
|
+
switch (tag >>> 3) {
|
|
3315
|
+
case 1: {
|
|
3316
|
+
if (tag !== 10) {
|
|
3317
|
+
break;
|
|
3318
|
+
}
|
|
3319
|
+
|
|
3320
|
+
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
3321
|
+
continue;
|
|
3322
|
+
}
|
|
3323
|
+
case 2: {
|
|
3324
|
+
if (tag !== 18) {
|
|
3325
|
+
break;
|
|
3326
|
+
}
|
|
3327
|
+
|
|
3328
|
+
message.pullRequests.push(InstallTermaPullRequest.decode(reader, reader.uint32()));
|
|
3329
|
+
continue;
|
|
3330
|
+
}
|
|
3331
|
+
}
|
|
3332
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3333
|
+
break;
|
|
3334
|
+
}
|
|
3335
|
+
reader.skip(tag & 7);
|
|
3336
|
+
}
|
|
3337
|
+
return message;
|
|
3338
|
+
} finally {
|
|
3339
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3340
|
+
}
|
|
3341
|
+
},
|
|
3342
|
+
|
|
3343
|
+
fromJSON(object: any): ListInstallTermaPullRequestsResponse {
|
|
3344
|
+
return {
|
|
3345
|
+
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
3346
|
+
pullRequests: globalThis.Array.isArray(object?.pullRequests)
|
|
3347
|
+
? object.pullRequests.map((e: any) => InstallTermaPullRequest.fromJSON(e))
|
|
3348
|
+
: globalThis.Array.isArray(object?.pull_requests)
|
|
3349
|
+
? object.pull_requests.map((e: any) => InstallTermaPullRequest.fromJSON(e))
|
|
3350
|
+
: [],
|
|
3351
|
+
};
|
|
3352
|
+
},
|
|
3353
|
+
|
|
3354
|
+
toJSON(message: ListInstallTermaPullRequestsResponse): unknown {
|
|
3355
|
+
const obj: any = {};
|
|
3356
|
+
if (message.status !== undefined) {
|
|
3357
|
+
obj.status = ResponseStatus.toJSON(message.status);
|
|
3358
|
+
}
|
|
3359
|
+
if (message.pullRequests?.length) {
|
|
3360
|
+
obj.pullRequests = message.pullRequests.map((e) => InstallTermaPullRequest.toJSON(e));
|
|
3361
|
+
}
|
|
3362
|
+
return obj;
|
|
3363
|
+
},
|
|
3364
|
+
|
|
3365
|
+
create<I extends Exact<DeepPartial<ListInstallTermaPullRequestsResponse>, I>>(
|
|
3366
|
+
base?: I,
|
|
3367
|
+
): ListInstallTermaPullRequestsResponse {
|
|
3368
|
+
return ListInstallTermaPullRequestsResponse.fromPartial(base ?? ({} as any));
|
|
3369
|
+
},
|
|
3370
|
+
fromPartial<I extends Exact<DeepPartial<ListInstallTermaPullRequestsResponse>, I>>(
|
|
3371
|
+
object: I,
|
|
3372
|
+
): ListInstallTermaPullRequestsResponse {
|
|
3373
|
+
const message = createBaseListInstallTermaPullRequestsResponse();
|
|
3374
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
3375
|
+
? ResponseStatus.fromPartial(object.status)
|
|
3376
|
+
: undefined;
|
|
3377
|
+
message.pullRequests = object.pullRequests?.map((e) => InstallTermaPullRequest.fromPartial(e)) || [];
|
|
3378
|
+
return message;
|
|
3379
|
+
},
|
|
3380
|
+
};
|
|
3381
|
+
|
|
3033
3382
|
/**
|
|
3034
3383
|
* One GitHub App connection per organization. Credentials never leave the
|
|
3035
3384
|
* account service; installation tokens are minted on demand and never stored.
|
|
@@ -3048,6 +3397,14 @@ export interface GitHubGatewayService {
|
|
|
3048
3397
|
request: CreateInstallTermaPullRequestsRequest,
|
|
3049
3398
|
metadata?: Metadata,
|
|
3050
3399
|
): Promise<CreateInstallTermaPullRequestsResponse>;
|
|
3400
|
+
/**
|
|
3401
|
+
* Org members. Every setup pull request Terma opened for the team on GitHub, open, merged or closed (a repository can
|
|
3402
|
+
* have several over time), most recently updated first.
|
|
3403
|
+
*/
|
|
3404
|
+
ListInstallTermaPullRequests(
|
|
3405
|
+
request: ListInstallTermaPullRequestsRequest,
|
|
3406
|
+
metadata?: Metadata,
|
|
3407
|
+
): Promise<ListInstallTermaPullRequestsResponse>;
|
|
3051
3408
|
ReceiveGitHubWebhook(request: GitHubWebhookRequest, metadata?: Metadata): Promise<GitHubEmptyResponse>;
|
|
3052
3409
|
}
|
|
3053
3410
|
|
|
@@ -3067,6 +3424,7 @@ export class GitHubGatewayServiceClientImpl implements GitHubGatewayService {
|
|
|
3067
3424
|
this.ListGitHubIssues = this.ListGitHubIssues.bind(this);
|
|
3068
3425
|
this.ListGitHubFiles = this.ListGitHubFiles.bind(this);
|
|
3069
3426
|
this.CreateInstallTermaPullRequests = this.CreateInstallTermaPullRequests.bind(this);
|
|
3427
|
+
this.ListInstallTermaPullRequests = this.ListInstallTermaPullRequests.bind(this);
|
|
3070
3428
|
this.ReceiveGitHubWebhook = this.ReceiveGitHubWebhook.bind(this);
|
|
3071
3429
|
}
|
|
3072
3430
|
GetGitHubConnector(request: GitHubScopeRequest, metadata?: Metadata): Promise<GitHubStatusResponse> {
|
|
@@ -3126,6 +3484,15 @@ export class GitHubGatewayServiceClientImpl implements GitHubGatewayService {
|
|
|
3126
3484
|
return promise.then((data) => CreateInstallTermaPullRequestsResponse.decode(new BinaryReader(data)));
|
|
3127
3485
|
}
|
|
3128
3486
|
|
|
3487
|
+
ListInstallTermaPullRequests(
|
|
3488
|
+
request: ListInstallTermaPullRequestsRequest,
|
|
3489
|
+
metadata?: Metadata,
|
|
3490
|
+
): Promise<ListInstallTermaPullRequestsResponse> {
|
|
3491
|
+
const data = ListInstallTermaPullRequestsRequest.encode(request).finish();
|
|
3492
|
+
const promise = this.rpc.request(this.service, "ListInstallTermaPullRequests", data, metadata);
|
|
3493
|
+
return promise.then((data) => ListInstallTermaPullRequestsResponse.decode(new BinaryReader(data)));
|
|
3494
|
+
}
|
|
3495
|
+
|
|
3129
3496
|
ReceiveGitHubWebhook(request: GitHubWebhookRequest, metadata?: Metadata): Promise<GitHubEmptyResponse> {
|
|
3130
3497
|
const data = GitHubWebhookRequest.encode(request).finish();
|
|
3131
3498
|
const promise = this.rpc.request(this.service, "ReceiveGitHubWebhook", data, metadata);
|
|
@@ -181,6 +181,28 @@ function deserialize_gateway_web_v1_GitHubWebhookRequest(buffer_arg) {
|
|
|
181
181
|
return proto_gateway_web_v1_github_connector_pb.GitHubWebhookRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
182
182
|
}
|
|
183
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
|
+
|
|
184
206
|
|
|
185
207
|
// One GitHub App connection per organization. Credentials never leave the
|
|
186
208
|
// account service; installation tokens are minted on demand and never stored.
|
|
@@ -285,6 +307,19 @@ createInstallTermaPullRequests: {
|
|
|
285
307
|
responseSerialize: serialize_gateway_web_v1_CreateInstallTermaPullRequestsResponse,
|
|
286
308
|
responseDeserialize: deserialize_gateway_web_v1_CreateInstallTermaPullRequestsResponse,
|
|
287
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
|
+
},
|
|
288
323
|
receiveGitHubWebhook: {
|
|
289
324
|
path: '/gateway.web.v1.GitHubGatewayService/ReceiveGitHubWebhook',
|
|
290
325
|
requestStream: false,
|