@miradorlabs/web-grpc 2.72.0 → 2.75.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/account_gateway.ts +239 -0
- package/proto/gateway/web/v1/account_gateway_grpc_pb.js +36 -0
- package/proto/gateway/web/v1/account_gateway_pb.js +499 -0
- package/proto/gateway/web/v1/ai_gateway.ts +121 -0
- package/proto/gateway/web/v1/ai_gateway_pb.js +154 -3
- package/proto/gateway/web/v1/beta_gateway.ts +1370 -0
- package/proto/gateway/web/v1/beta_gateway_grpc_pb.js +184 -0
- package/proto/gateway/web/v1/beta_gateway_pb.js +2570 -0
- package/proto/gateway/web/v1/github_connector.ts +488 -0
- package/proto/gateway/web/v1/github_connector_grpc_pb.js +33 -0
- package/proto/gateway/web/v1/github_connector_pb.js +846 -0
|
@@ -126,6 +126,89 @@ export interface GitHubEmptyResponse {
|
|
|
126
126
|
status: ResponseStatus | undefined;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
export interface GitHubFilesRequest {
|
|
130
|
+
organizationId: string;
|
|
131
|
+
repositoryFullName: string;
|
|
132
|
+
/** 1–50 unique repository-relative paths. */
|
|
133
|
+
paths: string[];
|
|
134
|
+
/** Full SHA or 7–40 hexadecimal prefix; resolved once. */
|
|
135
|
+
commitSha: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export interface GitHubFileResult {
|
|
139
|
+
path: string;
|
|
140
|
+
code: GitHubFileResult_Code;
|
|
141
|
+
errorMessage: string;
|
|
142
|
+
blobSha: string;
|
|
143
|
+
content: string;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export enum GitHubFileResult_Code {
|
|
147
|
+
CODE_UNSPECIFIED = 0,
|
|
148
|
+
CODE_OK = 1,
|
|
149
|
+
CODE_NOT_FOUND = 2,
|
|
150
|
+
CODE_UNSUPPORTED = 3,
|
|
151
|
+
CODE_TOO_LARGE = 4,
|
|
152
|
+
CODE_UNAVAILABLE = 5,
|
|
153
|
+
UNRECOGNIZED = -1,
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export function gitHubFileResult_CodeFromJSON(object: any): GitHubFileResult_Code {
|
|
157
|
+
switch (object) {
|
|
158
|
+
case 0:
|
|
159
|
+
case "CODE_UNSPECIFIED":
|
|
160
|
+
return GitHubFileResult_Code.CODE_UNSPECIFIED;
|
|
161
|
+
case 1:
|
|
162
|
+
case "CODE_OK":
|
|
163
|
+
return GitHubFileResult_Code.CODE_OK;
|
|
164
|
+
case 2:
|
|
165
|
+
case "CODE_NOT_FOUND":
|
|
166
|
+
return GitHubFileResult_Code.CODE_NOT_FOUND;
|
|
167
|
+
case 3:
|
|
168
|
+
case "CODE_UNSUPPORTED":
|
|
169
|
+
return GitHubFileResult_Code.CODE_UNSUPPORTED;
|
|
170
|
+
case 4:
|
|
171
|
+
case "CODE_TOO_LARGE":
|
|
172
|
+
return GitHubFileResult_Code.CODE_TOO_LARGE;
|
|
173
|
+
case 5:
|
|
174
|
+
case "CODE_UNAVAILABLE":
|
|
175
|
+
return GitHubFileResult_Code.CODE_UNAVAILABLE;
|
|
176
|
+
case -1:
|
|
177
|
+
case "UNRECOGNIZED":
|
|
178
|
+
default:
|
|
179
|
+
return GitHubFileResult_Code.UNRECOGNIZED;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export function gitHubFileResult_CodeToJSON(object: GitHubFileResult_Code): string {
|
|
184
|
+
switch (object) {
|
|
185
|
+
case GitHubFileResult_Code.CODE_UNSPECIFIED:
|
|
186
|
+
return "CODE_UNSPECIFIED";
|
|
187
|
+
case GitHubFileResult_Code.CODE_OK:
|
|
188
|
+
return "CODE_OK";
|
|
189
|
+
case GitHubFileResult_Code.CODE_NOT_FOUND:
|
|
190
|
+
return "CODE_NOT_FOUND";
|
|
191
|
+
case GitHubFileResult_Code.CODE_UNSUPPORTED:
|
|
192
|
+
return "CODE_UNSUPPORTED";
|
|
193
|
+
case GitHubFileResult_Code.CODE_TOO_LARGE:
|
|
194
|
+
return "CODE_TOO_LARGE";
|
|
195
|
+
case GitHubFileResult_Code.CODE_UNAVAILABLE:
|
|
196
|
+
return "CODE_UNAVAILABLE";
|
|
197
|
+
case GitHubFileResult_Code.UNRECOGNIZED:
|
|
198
|
+
default:
|
|
199
|
+
return "UNRECOGNIZED";
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface GitHubFilesResponse {
|
|
204
|
+
status: ResponseStatus | undefined;
|
|
205
|
+
repositoryFullName: string;
|
|
206
|
+
/** Resolved full SHA shared by every file result. */
|
|
207
|
+
commitSha: string;
|
|
208
|
+
/** One result per requested path, in request order. */
|
|
209
|
+
files: GitHubFileResult[];
|
|
210
|
+
}
|
|
211
|
+
|
|
129
212
|
function createBaseGitHubScopeRequest(): GitHubScopeRequest {
|
|
130
213
|
return { organizationId: "" };
|
|
131
214
|
}
|
|
@@ -2173,6 +2256,403 @@ export const GitHubEmptyResponse: MessageFns<GitHubEmptyResponse> = {
|
|
|
2173
2256
|
},
|
|
2174
2257
|
};
|
|
2175
2258
|
|
|
2259
|
+
function createBaseGitHubFilesRequest(): GitHubFilesRequest {
|
|
2260
|
+
return { organizationId: "", repositoryFullName: "", paths: [], commitSha: "" };
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
export const GitHubFilesRequest: MessageFns<GitHubFilesRequest> = {
|
|
2264
|
+
encode(message: GitHubFilesRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2265
|
+
if (message.organizationId !== "") {
|
|
2266
|
+
writer.uint32(10).string(message.organizationId);
|
|
2267
|
+
}
|
|
2268
|
+
if (message.repositoryFullName !== "") {
|
|
2269
|
+
writer.uint32(18).string(message.repositoryFullName);
|
|
2270
|
+
}
|
|
2271
|
+
for (const v of message.paths) {
|
|
2272
|
+
writer.uint32(26).string(v!);
|
|
2273
|
+
}
|
|
2274
|
+
if (message.commitSha !== "") {
|
|
2275
|
+
writer.uint32(34).string(message.commitSha);
|
|
2276
|
+
}
|
|
2277
|
+
return writer;
|
|
2278
|
+
},
|
|
2279
|
+
|
|
2280
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GitHubFilesRequest {
|
|
2281
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2282
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
2283
|
+
if (previousRecursionDepth >= 100) {
|
|
2284
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2285
|
+
}
|
|
2286
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2287
|
+
try {
|
|
2288
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2289
|
+
const message = createBaseGitHubFilesRequest();
|
|
2290
|
+
while (reader.pos < end) {
|
|
2291
|
+
const tag = reader.uint32();
|
|
2292
|
+
switch (tag >>> 3) {
|
|
2293
|
+
case 1: {
|
|
2294
|
+
if (tag !== 10) {
|
|
2295
|
+
break;
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
message.organizationId = reader.string();
|
|
2299
|
+
continue;
|
|
2300
|
+
}
|
|
2301
|
+
case 2: {
|
|
2302
|
+
if (tag !== 18) {
|
|
2303
|
+
break;
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
message.repositoryFullName = reader.string();
|
|
2307
|
+
continue;
|
|
2308
|
+
}
|
|
2309
|
+
case 3: {
|
|
2310
|
+
if (tag !== 26) {
|
|
2311
|
+
break;
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2314
|
+
message.paths.push(reader.string());
|
|
2315
|
+
continue;
|
|
2316
|
+
}
|
|
2317
|
+
case 4: {
|
|
2318
|
+
if (tag !== 34) {
|
|
2319
|
+
break;
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
message.commitSha = reader.string();
|
|
2323
|
+
continue;
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2327
|
+
break;
|
|
2328
|
+
}
|
|
2329
|
+
reader.skip(tag & 7);
|
|
2330
|
+
}
|
|
2331
|
+
return message;
|
|
2332
|
+
} finally {
|
|
2333
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2334
|
+
}
|
|
2335
|
+
},
|
|
2336
|
+
|
|
2337
|
+
fromJSON(object: any): GitHubFilesRequest {
|
|
2338
|
+
return {
|
|
2339
|
+
organizationId: isSet(object.organizationId)
|
|
2340
|
+
? globalThis.String(object.organizationId)
|
|
2341
|
+
: isSet(object.organization_id)
|
|
2342
|
+
? globalThis.String(object.organization_id)
|
|
2343
|
+
: "",
|
|
2344
|
+
repositoryFullName: isSet(object.repositoryFullName)
|
|
2345
|
+
? globalThis.String(object.repositoryFullName)
|
|
2346
|
+
: isSet(object.repository_full_name)
|
|
2347
|
+
? globalThis.String(object.repository_full_name)
|
|
2348
|
+
: "",
|
|
2349
|
+
paths: globalThis.Array.isArray(object?.paths) ? object.paths.map((e: any) => globalThis.String(e)) : [],
|
|
2350
|
+
commitSha: isSet(object.commitSha)
|
|
2351
|
+
? globalThis.String(object.commitSha)
|
|
2352
|
+
: isSet(object.commit_sha)
|
|
2353
|
+
? globalThis.String(object.commit_sha)
|
|
2354
|
+
: "",
|
|
2355
|
+
};
|
|
2356
|
+
},
|
|
2357
|
+
|
|
2358
|
+
toJSON(message: GitHubFilesRequest): unknown {
|
|
2359
|
+
const obj: any = {};
|
|
2360
|
+
if (message.organizationId !== "") {
|
|
2361
|
+
obj.organizationId = message.organizationId;
|
|
2362
|
+
}
|
|
2363
|
+
if (message.repositoryFullName !== "") {
|
|
2364
|
+
obj.repositoryFullName = message.repositoryFullName;
|
|
2365
|
+
}
|
|
2366
|
+
if (message.paths?.length) {
|
|
2367
|
+
obj.paths = message.paths;
|
|
2368
|
+
}
|
|
2369
|
+
if (message.commitSha !== "") {
|
|
2370
|
+
obj.commitSha = message.commitSha;
|
|
2371
|
+
}
|
|
2372
|
+
return obj;
|
|
2373
|
+
},
|
|
2374
|
+
|
|
2375
|
+
create<I extends Exact<DeepPartial<GitHubFilesRequest>, I>>(base?: I): GitHubFilesRequest {
|
|
2376
|
+
return GitHubFilesRequest.fromPartial(base ?? ({} as any));
|
|
2377
|
+
},
|
|
2378
|
+
fromPartial<I extends Exact<DeepPartial<GitHubFilesRequest>, I>>(object: I): GitHubFilesRequest {
|
|
2379
|
+
const message = createBaseGitHubFilesRequest();
|
|
2380
|
+
message.organizationId = object.organizationId ?? "";
|
|
2381
|
+
message.repositoryFullName = object.repositoryFullName ?? "";
|
|
2382
|
+
message.paths = object.paths?.map((e) => e) || [];
|
|
2383
|
+
message.commitSha = object.commitSha ?? "";
|
|
2384
|
+
return message;
|
|
2385
|
+
},
|
|
2386
|
+
};
|
|
2387
|
+
|
|
2388
|
+
function createBaseGitHubFileResult(): GitHubFileResult {
|
|
2389
|
+
return { path: "", code: 0, errorMessage: "", blobSha: "", content: "" };
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
export const GitHubFileResult: MessageFns<GitHubFileResult> = {
|
|
2393
|
+
encode(message: GitHubFileResult, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2394
|
+
if (message.path !== "") {
|
|
2395
|
+
writer.uint32(10).string(message.path);
|
|
2396
|
+
}
|
|
2397
|
+
if (message.code !== 0) {
|
|
2398
|
+
writer.uint32(16).int32(message.code);
|
|
2399
|
+
}
|
|
2400
|
+
if (message.errorMessage !== "") {
|
|
2401
|
+
writer.uint32(26).string(message.errorMessage);
|
|
2402
|
+
}
|
|
2403
|
+
if (message.blobSha !== "") {
|
|
2404
|
+
writer.uint32(34).string(message.blobSha);
|
|
2405
|
+
}
|
|
2406
|
+
if (message.content !== "") {
|
|
2407
|
+
writer.uint32(42).string(message.content);
|
|
2408
|
+
}
|
|
2409
|
+
return writer;
|
|
2410
|
+
},
|
|
2411
|
+
|
|
2412
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GitHubFileResult {
|
|
2413
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2414
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
2415
|
+
if (previousRecursionDepth >= 100) {
|
|
2416
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2417
|
+
}
|
|
2418
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2419
|
+
try {
|
|
2420
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2421
|
+
const message = createBaseGitHubFileResult();
|
|
2422
|
+
while (reader.pos < end) {
|
|
2423
|
+
const tag = reader.uint32();
|
|
2424
|
+
switch (tag >>> 3) {
|
|
2425
|
+
case 1: {
|
|
2426
|
+
if (tag !== 10) {
|
|
2427
|
+
break;
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2430
|
+
message.path = reader.string();
|
|
2431
|
+
continue;
|
|
2432
|
+
}
|
|
2433
|
+
case 2: {
|
|
2434
|
+
if (tag !== 16) {
|
|
2435
|
+
break;
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2438
|
+
message.code = reader.int32() as any;
|
|
2439
|
+
continue;
|
|
2440
|
+
}
|
|
2441
|
+
case 3: {
|
|
2442
|
+
if (tag !== 26) {
|
|
2443
|
+
break;
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
message.errorMessage = reader.string();
|
|
2447
|
+
continue;
|
|
2448
|
+
}
|
|
2449
|
+
case 4: {
|
|
2450
|
+
if (tag !== 34) {
|
|
2451
|
+
break;
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2454
|
+
message.blobSha = reader.string();
|
|
2455
|
+
continue;
|
|
2456
|
+
}
|
|
2457
|
+
case 5: {
|
|
2458
|
+
if (tag !== 42) {
|
|
2459
|
+
break;
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
message.content = reader.string();
|
|
2463
|
+
continue;
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2467
|
+
break;
|
|
2468
|
+
}
|
|
2469
|
+
reader.skip(tag & 7);
|
|
2470
|
+
}
|
|
2471
|
+
return message;
|
|
2472
|
+
} finally {
|
|
2473
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2474
|
+
}
|
|
2475
|
+
},
|
|
2476
|
+
|
|
2477
|
+
fromJSON(object: any): GitHubFileResult {
|
|
2478
|
+
return {
|
|
2479
|
+
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
2480
|
+
code: isSet(object.code) ? gitHubFileResult_CodeFromJSON(object.code) : 0,
|
|
2481
|
+
errorMessage: isSet(object.errorMessage)
|
|
2482
|
+
? globalThis.String(object.errorMessage)
|
|
2483
|
+
: isSet(object.error_message)
|
|
2484
|
+
? globalThis.String(object.error_message)
|
|
2485
|
+
: "",
|
|
2486
|
+
blobSha: isSet(object.blobSha)
|
|
2487
|
+
? globalThis.String(object.blobSha)
|
|
2488
|
+
: isSet(object.blob_sha)
|
|
2489
|
+
? globalThis.String(object.blob_sha)
|
|
2490
|
+
: "",
|
|
2491
|
+
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
2492
|
+
};
|
|
2493
|
+
},
|
|
2494
|
+
|
|
2495
|
+
toJSON(message: GitHubFileResult): unknown {
|
|
2496
|
+
const obj: any = {};
|
|
2497
|
+
if (message.path !== "") {
|
|
2498
|
+
obj.path = message.path;
|
|
2499
|
+
}
|
|
2500
|
+
if (message.code !== 0) {
|
|
2501
|
+
obj.code = gitHubFileResult_CodeToJSON(message.code);
|
|
2502
|
+
}
|
|
2503
|
+
if (message.errorMessage !== "") {
|
|
2504
|
+
obj.errorMessage = message.errorMessage;
|
|
2505
|
+
}
|
|
2506
|
+
if (message.blobSha !== "") {
|
|
2507
|
+
obj.blobSha = message.blobSha;
|
|
2508
|
+
}
|
|
2509
|
+
if (message.content !== "") {
|
|
2510
|
+
obj.content = message.content;
|
|
2511
|
+
}
|
|
2512
|
+
return obj;
|
|
2513
|
+
},
|
|
2514
|
+
|
|
2515
|
+
create<I extends Exact<DeepPartial<GitHubFileResult>, I>>(base?: I): GitHubFileResult {
|
|
2516
|
+
return GitHubFileResult.fromPartial(base ?? ({} as any));
|
|
2517
|
+
},
|
|
2518
|
+
fromPartial<I extends Exact<DeepPartial<GitHubFileResult>, I>>(object: I): GitHubFileResult {
|
|
2519
|
+
const message = createBaseGitHubFileResult();
|
|
2520
|
+
message.path = object.path ?? "";
|
|
2521
|
+
message.code = object.code ?? 0;
|
|
2522
|
+
message.errorMessage = object.errorMessage ?? "";
|
|
2523
|
+
message.blobSha = object.blobSha ?? "";
|
|
2524
|
+
message.content = object.content ?? "";
|
|
2525
|
+
return message;
|
|
2526
|
+
},
|
|
2527
|
+
};
|
|
2528
|
+
|
|
2529
|
+
function createBaseGitHubFilesResponse(): GitHubFilesResponse {
|
|
2530
|
+
return { status: undefined, repositoryFullName: "", commitSha: "", files: [] };
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2533
|
+
export const GitHubFilesResponse: MessageFns<GitHubFilesResponse> = {
|
|
2534
|
+
encode(message: GitHubFilesResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2535
|
+
if (message.status !== undefined) {
|
|
2536
|
+
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
2537
|
+
}
|
|
2538
|
+
if (message.repositoryFullName !== "") {
|
|
2539
|
+
writer.uint32(18).string(message.repositoryFullName);
|
|
2540
|
+
}
|
|
2541
|
+
if (message.commitSha !== "") {
|
|
2542
|
+
writer.uint32(26).string(message.commitSha);
|
|
2543
|
+
}
|
|
2544
|
+
for (const v of message.files) {
|
|
2545
|
+
GitHubFileResult.encode(v!, writer.uint32(34).fork()).join();
|
|
2546
|
+
}
|
|
2547
|
+
return writer;
|
|
2548
|
+
},
|
|
2549
|
+
|
|
2550
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GitHubFilesResponse {
|
|
2551
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2552
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
2553
|
+
if (previousRecursionDepth >= 100) {
|
|
2554
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2555
|
+
}
|
|
2556
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2557
|
+
try {
|
|
2558
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2559
|
+
const message = createBaseGitHubFilesResponse();
|
|
2560
|
+
while (reader.pos < end) {
|
|
2561
|
+
const tag = reader.uint32();
|
|
2562
|
+
switch (tag >>> 3) {
|
|
2563
|
+
case 1: {
|
|
2564
|
+
if (tag !== 10) {
|
|
2565
|
+
break;
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2568
|
+
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
2569
|
+
continue;
|
|
2570
|
+
}
|
|
2571
|
+
case 2: {
|
|
2572
|
+
if (tag !== 18) {
|
|
2573
|
+
break;
|
|
2574
|
+
}
|
|
2575
|
+
|
|
2576
|
+
message.repositoryFullName = reader.string();
|
|
2577
|
+
continue;
|
|
2578
|
+
}
|
|
2579
|
+
case 3: {
|
|
2580
|
+
if (tag !== 26) {
|
|
2581
|
+
break;
|
|
2582
|
+
}
|
|
2583
|
+
|
|
2584
|
+
message.commitSha = reader.string();
|
|
2585
|
+
continue;
|
|
2586
|
+
}
|
|
2587
|
+
case 4: {
|
|
2588
|
+
if (tag !== 34) {
|
|
2589
|
+
break;
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2592
|
+
message.files.push(GitHubFileResult.decode(reader, reader.uint32()));
|
|
2593
|
+
continue;
|
|
2594
|
+
}
|
|
2595
|
+
}
|
|
2596
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2597
|
+
break;
|
|
2598
|
+
}
|
|
2599
|
+
reader.skip(tag & 7);
|
|
2600
|
+
}
|
|
2601
|
+
return message;
|
|
2602
|
+
} finally {
|
|
2603
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2604
|
+
}
|
|
2605
|
+
},
|
|
2606
|
+
|
|
2607
|
+
fromJSON(object: any): GitHubFilesResponse {
|
|
2608
|
+
return {
|
|
2609
|
+
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
2610
|
+
repositoryFullName: isSet(object.repositoryFullName)
|
|
2611
|
+
? globalThis.String(object.repositoryFullName)
|
|
2612
|
+
: isSet(object.repository_full_name)
|
|
2613
|
+
? globalThis.String(object.repository_full_name)
|
|
2614
|
+
: "",
|
|
2615
|
+
commitSha: isSet(object.commitSha)
|
|
2616
|
+
? globalThis.String(object.commitSha)
|
|
2617
|
+
: isSet(object.commit_sha)
|
|
2618
|
+
? globalThis.String(object.commit_sha)
|
|
2619
|
+
: "",
|
|
2620
|
+
files: globalThis.Array.isArray(object?.files) ? object.files.map((e: any) => GitHubFileResult.fromJSON(e)) : [],
|
|
2621
|
+
};
|
|
2622
|
+
},
|
|
2623
|
+
|
|
2624
|
+
toJSON(message: GitHubFilesResponse): unknown {
|
|
2625
|
+
const obj: any = {};
|
|
2626
|
+
if (message.status !== undefined) {
|
|
2627
|
+
obj.status = ResponseStatus.toJSON(message.status);
|
|
2628
|
+
}
|
|
2629
|
+
if (message.repositoryFullName !== "") {
|
|
2630
|
+
obj.repositoryFullName = message.repositoryFullName;
|
|
2631
|
+
}
|
|
2632
|
+
if (message.commitSha !== "") {
|
|
2633
|
+
obj.commitSha = message.commitSha;
|
|
2634
|
+
}
|
|
2635
|
+
if (message.files?.length) {
|
|
2636
|
+
obj.files = message.files.map((e) => GitHubFileResult.toJSON(e));
|
|
2637
|
+
}
|
|
2638
|
+
return obj;
|
|
2639
|
+
},
|
|
2640
|
+
|
|
2641
|
+
create<I extends Exact<DeepPartial<GitHubFilesResponse>, I>>(base?: I): GitHubFilesResponse {
|
|
2642
|
+
return GitHubFilesResponse.fromPartial(base ?? ({} as any));
|
|
2643
|
+
},
|
|
2644
|
+
fromPartial<I extends Exact<DeepPartial<GitHubFilesResponse>, I>>(object: I): GitHubFilesResponse {
|
|
2645
|
+
const message = createBaseGitHubFilesResponse();
|
|
2646
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
2647
|
+
? ResponseStatus.fromPartial(object.status)
|
|
2648
|
+
: undefined;
|
|
2649
|
+
message.repositoryFullName = object.repositoryFullName ?? "";
|
|
2650
|
+
message.commitSha = object.commitSha ?? "";
|
|
2651
|
+
message.files = object.files?.map((e) => GitHubFileResult.fromPartial(e)) || [];
|
|
2652
|
+
return message;
|
|
2653
|
+
},
|
|
2654
|
+
};
|
|
2655
|
+
|
|
2176
2656
|
/**
|
|
2177
2657
|
* One GitHub App connection per organization. Credentials never leave the
|
|
2178
2658
|
* account service; installation tokens are minted on demand and never stored.
|
|
@@ -2185,6 +2665,7 @@ export interface GitHubGatewayService {
|
|
|
2185
2665
|
ListGitHubRepositories(request: GitHubScopeRequest, metadata?: Metadata): Promise<GitHubRepositoriesResponse>;
|
|
2186
2666
|
ListGitHubPullRequests(request: GitHubPullRequestsRequest, metadata?: Metadata): Promise<GitHubPullRequestsResponse>;
|
|
2187
2667
|
ListGitHubIssues(request: GitHubIssuesRequest, metadata?: Metadata): Promise<GitHubIssuesResponse>;
|
|
2668
|
+
ListGitHubFiles(request: GitHubFilesRequest, metadata?: Metadata): Promise<GitHubFilesResponse>;
|
|
2188
2669
|
ReceiveGitHubWebhook(request: GitHubWebhookRequest, metadata?: Metadata): Promise<GitHubEmptyResponse>;
|
|
2189
2670
|
}
|
|
2190
2671
|
|
|
@@ -2202,6 +2683,7 @@ export class GitHubGatewayServiceClientImpl implements GitHubGatewayService {
|
|
|
2202
2683
|
this.ListGitHubRepositories = this.ListGitHubRepositories.bind(this);
|
|
2203
2684
|
this.ListGitHubPullRequests = this.ListGitHubPullRequests.bind(this);
|
|
2204
2685
|
this.ListGitHubIssues = this.ListGitHubIssues.bind(this);
|
|
2686
|
+
this.ListGitHubFiles = this.ListGitHubFiles.bind(this);
|
|
2205
2687
|
this.ReceiveGitHubWebhook = this.ReceiveGitHubWebhook.bind(this);
|
|
2206
2688
|
}
|
|
2207
2689
|
GetGitHubConnector(request: GitHubScopeRequest, metadata?: Metadata): Promise<GitHubStatusResponse> {
|
|
@@ -2246,6 +2728,12 @@ export class GitHubGatewayServiceClientImpl implements GitHubGatewayService {
|
|
|
2246
2728
|
return promise.then((data) => GitHubIssuesResponse.decode(new BinaryReader(data)));
|
|
2247
2729
|
}
|
|
2248
2730
|
|
|
2731
|
+
ListGitHubFiles(request: GitHubFilesRequest, metadata?: Metadata): Promise<GitHubFilesResponse> {
|
|
2732
|
+
const data = GitHubFilesRequest.encode(request).finish();
|
|
2733
|
+
const promise = this.rpc.request(this.service, "ListGitHubFiles", data, metadata);
|
|
2734
|
+
return promise.then((data) => GitHubFilesResponse.decode(new BinaryReader(data)));
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2249
2737
|
ReceiveGitHubWebhook(request: GitHubWebhookRequest, metadata?: Metadata): Promise<GitHubEmptyResponse> {
|
|
2250
2738
|
const data = GitHubWebhookRequest.encode(request).finish();
|
|
2251
2739
|
const promise = this.rpc.request(this.service, "ReceiveGitHubWebhook", data, metadata);
|
|
@@ -49,6 +49,28 @@ function deserialize_gateway_web_v1_GitHubEmptyResponse(buffer_arg) {
|
|
|
49
49
|
return proto_gateway_web_v1_github_connector_pb.GitHubEmptyResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
function serialize_gateway_web_v1_GitHubFilesRequest(arg) {
|
|
53
|
+
if (!(arg instanceof proto_gateway_web_v1_github_connector_pb.GitHubFilesRequest)) {
|
|
54
|
+
throw new Error('Expected argument of type gateway.web.v1.GitHubFilesRequest');
|
|
55
|
+
}
|
|
56
|
+
return Buffer.from(arg.serializeBinary());
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function deserialize_gateway_web_v1_GitHubFilesRequest(buffer_arg) {
|
|
60
|
+
return proto_gateway_web_v1_github_connector_pb.GitHubFilesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function serialize_gateway_web_v1_GitHubFilesResponse(arg) {
|
|
64
|
+
if (!(arg instanceof proto_gateway_web_v1_github_connector_pb.GitHubFilesResponse)) {
|
|
65
|
+
throw new Error('Expected argument of type gateway.web.v1.GitHubFilesResponse');
|
|
66
|
+
}
|
|
67
|
+
return Buffer.from(arg.serializeBinary());
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function deserialize_gateway_web_v1_GitHubFilesResponse(buffer_arg) {
|
|
71
|
+
return proto_gateway_web_v1_github_connector_pb.GitHubFilesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
72
|
+
}
|
|
73
|
+
|
|
52
74
|
function serialize_gateway_web_v1_GitHubIssuesRequest(arg) {
|
|
53
75
|
if (!(arg instanceof proto_gateway_web_v1_github_connector_pb.GitHubIssuesRequest)) {
|
|
54
76
|
throw new Error('Expected argument of type gateway.web.v1.GitHubIssuesRequest');
|
|
@@ -218,6 +240,17 @@ var GitHubGatewayServiceService = exports.GitHubGatewayServiceService = {
|
|
|
218
240
|
responseSerialize: serialize_gateway_web_v1_GitHubIssuesResponse,
|
|
219
241
|
responseDeserialize: deserialize_gateway_web_v1_GitHubIssuesResponse,
|
|
220
242
|
},
|
|
243
|
+
listGitHubFiles: {
|
|
244
|
+
path: '/gateway.web.v1.GitHubGatewayService/ListGitHubFiles',
|
|
245
|
+
requestStream: false,
|
|
246
|
+
responseStream: false,
|
|
247
|
+
requestType: proto_gateway_web_v1_github_connector_pb.GitHubFilesRequest,
|
|
248
|
+
responseType: proto_gateway_web_v1_github_connector_pb.GitHubFilesResponse,
|
|
249
|
+
requestSerialize: serialize_gateway_web_v1_GitHubFilesRequest,
|
|
250
|
+
requestDeserialize: deserialize_gateway_web_v1_GitHubFilesRequest,
|
|
251
|
+
responseSerialize: serialize_gateway_web_v1_GitHubFilesResponse,
|
|
252
|
+
responseDeserialize: deserialize_gateway_web_v1_GitHubFilesResponse,
|
|
253
|
+
},
|
|
221
254
|
receiveGitHubWebhook: {
|
|
222
255
|
path: '/gateway.web.v1.GitHubGatewayService/ReceiveGitHubWebhook',
|
|
223
256
|
requestStream: false,
|