@opsee/mcp-server 0.8.1 → 0.8.2
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/gen/api/v1/board_pb.d.ts +225 -1
- package/gen/api/v1/board_pb.js +54 -5
- package/gen/api/v1/comment_pb.d.ts +15 -0
- package/gen/api/v1/comment_pb.js +1 -1
- package/gen/api/v1/initiative_pb.d.ts +785 -0
- package/gen/api/v1/initiative_pb.js +199 -0
- package/gen/api/v1/integration_pb.d.ts +750 -0
- package/gen/api/v1/integration_pb.js +193 -0
- package/gen/api/v1/models_pb.d.ts +234 -0
- package/gen/api/v1/models_pb.js +17 -3
- package/gen/api/v1/readiness_pb.d.ts +834 -0
- package/gen/api/v1/readiness_pb.js +197 -0
- package/gen/api/v1/task_pb.d.ts +8 -0
- package/gen/api/v1/task_pb.js +1 -1
- package/package.json +1 -1
- package/src/client/api.ts +3 -0
- package/src/server.ts +2 -0
- package/src/tools/comments.ts +10 -6
- package/src/tools/initiatives.ts +321 -0
- package/src/tools/tasks.ts +100 -1
- package/src/utils/format.ts +244 -1
|
@@ -0,0 +1,834 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.3
|
|
2
|
+
// @generated from file api/v1/readiness.proto (package api.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
6
|
+
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
7
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
import type { Pagination } from "./pagination_pb";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Describes the file api/v1/readiness.proto.
|
|
12
|
+
*/
|
|
13
|
+
export declare const file_api_v1_readiness: GenFile;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* ReadinessSignal is one piece of deterministic evidence behind a report's
|
|
17
|
+
* Risk Level (mirrors readiness.Signal). Evidence is an open key/value bag whose
|
|
18
|
+
* shape depends on the signal kind.
|
|
19
|
+
*
|
|
20
|
+
* @generated from message api.v1.ReadinessSignal
|
|
21
|
+
*/
|
|
22
|
+
export declare type ReadinessSignal = Message<"api.v1.ReadinessSignal"> & {
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: string kind = 1;
|
|
25
|
+
*/
|
|
26
|
+
kind: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @generated from field: string summary = 2;
|
|
30
|
+
*/
|
|
31
|
+
summary: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* "deterministic" | "judgment"
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: string class = 3;
|
|
37
|
+
*/
|
|
38
|
+
class: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @generated from field: google.protobuf.Struct evidence = 4;
|
|
42
|
+
*/
|
|
43
|
+
evidence?: JsonObject;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Describes the message api.v1.ReadinessSignal.
|
|
48
|
+
* Use `create(ReadinessSignalSchema)` to create a new message.
|
|
49
|
+
*/
|
|
50
|
+
export declare const ReadinessSignalSchema: GenMessage<ReadinessSignal>;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* ReadinessRequiredAction is one action a PR author should take before merge.
|
|
54
|
+
*
|
|
55
|
+
* @generated from message api.v1.ReadinessRequiredAction
|
|
56
|
+
*/
|
|
57
|
+
export declare type ReadinessRequiredAction = Message<"api.v1.ReadinessRequiredAction"> & {
|
|
58
|
+
/**
|
|
59
|
+
* @generated from field: string summary = 1;
|
|
60
|
+
*/
|
|
61
|
+
summary: string;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @generated from field: string reason = 2;
|
|
65
|
+
*/
|
|
66
|
+
reason: string;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Describes the message api.v1.ReadinessRequiredAction.
|
|
71
|
+
* Use `create(ReadinessRequiredActionSchema)` to create a new message.
|
|
72
|
+
*/
|
|
73
|
+
export declare const ReadinessRequiredActionSchema: GenMessage<ReadinessRequiredAction>;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* ReadinessReport is the per-(repository, PR, head SHA) production-readiness
|
|
77
|
+
* assessment produced by the deterministic pipeline. Anchored to a repository,
|
|
78
|
+
* never to a Task (ADR-0006).
|
|
79
|
+
*
|
|
80
|
+
* @generated from message api.v1.ReadinessReport
|
|
81
|
+
*/
|
|
82
|
+
export declare type ReadinessReport = Message<"api.v1.ReadinessReport"> & {
|
|
83
|
+
/**
|
|
84
|
+
* @generated from field: uint32 id = 1;
|
|
85
|
+
*/
|
|
86
|
+
id: number;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @generated from field: uint32 project_repository_id = 2;
|
|
90
|
+
*/
|
|
91
|
+
projectRepositoryId: number;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @generated from field: string provider = 3;
|
|
95
|
+
*/
|
|
96
|
+
provider: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @generated from field: int32 pr_number = 4;
|
|
100
|
+
*/
|
|
101
|
+
prNumber: number;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @generated from field: string head_sha = 5;
|
|
105
|
+
*/
|
|
106
|
+
headSha: string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* "low" | "medium" | "high" | "critical"
|
|
110
|
+
*
|
|
111
|
+
* @generated from field: string risk_level = 6;
|
|
112
|
+
*/
|
|
113
|
+
riskLevel: string;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* "deterministic" | "enriched"
|
|
117
|
+
*
|
|
118
|
+
* @generated from field: string phase = 7;
|
|
119
|
+
*/
|
|
120
|
+
phase: string;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @generated from field: optional string comment_url = 8;
|
|
124
|
+
*/
|
|
125
|
+
commentUrl?: string;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @generated from field: repeated api.v1.ReadinessSignal signals = 9;
|
|
129
|
+
*/
|
|
130
|
+
signals: ReadinessSignal[];
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @generated from field: repeated api.v1.ReadinessRequiredAction required_actions = 10;
|
|
134
|
+
*/
|
|
135
|
+
requiredActions: ReadinessRequiredAction[];
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Raw EffectivePolicy snapshot JSON the verdict was computed against
|
|
139
|
+
* (ADR-0007 §2). Passed through verbatim for auditing; not modelled here.
|
|
140
|
+
*
|
|
141
|
+
* @generated from field: string policy_snapshot_json = 11;
|
|
142
|
+
*/
|
|
143
|
+
policySnapshotJson: string;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @generated from field: google.protobuf.Timestamp created_at = 12;
|
|
147
|
+
*/
|
|
148
|
+
createdAt?: Timestamp;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 13;
|
|
152
|
+
*/
|
|
153
|
+
updatedAt?: Timestamp;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Repository association for the dashboard (OPS-102): the full name
|
|
157
|
+
* ("owner/repo"), the repository's web URL, and a deep link to this PR on the
|
|
158
|
+
* provider. Empty when the connected repository can't be resolved.
|
|
159
|
+
*
|
|
160
|
+
* @generated from field: string repository_full_name = 14;
|
|
161
|
+
*/
|
|
162
|
+
repositoryFullName: string;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @generated from field: string repository_url = 15;
|
|
166
|
+
*/
|
|
167
|
+
repositoryUrl: string;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @generated from field: string pr_url = 16;
|
|
171
|
+
*/
|
|
172
|
+
prUrl: string;
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Describes the message api.v1.ReadinessReport.
|
|
177
|
+
* Use `create(ReadinessReportSchema)` to create a new message.
|
|
178
|
+
*/
|
|
179
|
+
export declare const ReadinessReportSchema: GenMessage<ReadinessReport>;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @generated from message api.v1.ListReadinessReportsRequest
|
|
183
|
+
*/
|
|
184
|
+
export declare type ListReadinessReportsRequest = Message<"api.v1.ListReadinessReportsRequest"> & {
|
|
185
|
+
/**
|
|
186
|
+
* @generated from field: uint32 project_id = 1;
|
|
187
|
+
*/
|
|
188
|
+
projectId: number;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @generated from field: api.v1.Pagination pagination = 2;
|
|
192
|
+
*/
|
|
193
|
+
pagination?: Pagination;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Optional filter to a single connected repository within the project.
|
|
197
|
+
*
|
|
198
|
+
* @generated from field: optional uint32 project_repository_id = 3;
|
|
199
|
+
*/
|
|
200
|
+
projectRepositoryId?: number;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Optional filter by risk band ("low"|"medium"|"high"|"critical").
|
|
204
|
+
*
|
|
205
|
+
* @generated from field: optional string risk_level = 4;
|
|
206
|
+
*/
|
|
207
|
+
riskLevel?: string;
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Describes the message api.v1.ListReadinessReportsRequest.
|
|
212
|
+
* Use `create(ListReadinessReportsRequestSchema)` to create a new message.
|
|
213
|
+
*/
|
|
214
|
+
export declare const ListReadinessReportsRequestSchema: GenMessage<ListReadinessReportsRequest>;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* @generated from message api.v1.ListReadinessReportsResponse
|
|
218
|
+
*/
|
|
219
|
+
export declare type ListReadinessReportsResponse = Message<"api.v1.ListReadinessReportsResponse"> & {
|
|
220
|
+
/**
|
|
221
|
+
* @generated from field: repeated api.v1.ReadinessReport reports = 1;
|
|
222
|
+
*/
|
|
223
|
+
reports: ReadinessReport[];
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* @generated from field: api.v1.Pagination pagination = 2;
|
|
227
|
+
*/
|
|
228
|
+
pagination?: Pagination;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Describes the message api.v1.ListReadinessReportsResponse.
|
|
233
|
+
* Use `create(ListReadinessReportsResponseSchema)` to create a new message.
|
|
234
|
+
*/
|
|
235
|
+
export declare const ListReadinessReportsResponseSchema: GenMessage<ListReadinessReportsResponse>;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @generated from message api.v1.GetReadinessReportRequest
|
|
239
|
+
*/
|
|
240
|
+
export declare type GetReadinessReportRequest = Message<"api.v1.GetReadinessReportRequest"> & {
|
|
241
|
+
/**
|
|
242
|
+
* @generated from field: uint32 id = 1;
|
|
243
|
+
*/
|
|
244
|
+
id: number;
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Describes the message api.v1.GetReadinessReportRequest.
|
|
249
|
+
* Use `create(GetReadinessReportRequestSchema)` to create a new message.
|
|
250
|
+
*/
|
|
251
|
+
export declare const GetReadinessReportRequestSchema: GenMessage<GetReadinessReportRequest>;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* @generated from message api.v1.GetReadinessReportResponse
|
|
255
|
+
*/
|
|
256
|
+
export declare type GetReadinessReportResponse = Message<"api.v1.GetReadinessReportResponse"> & {
|
|
257
|
+
/**
|
|
258
|
+
* @generated from field: api.v1.ReadinessReport report = 1;
|
|
259
|
+
*/
|
|
260
|
+
report?: ReadinessReport;
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Describes the message api.v1.GetReadinessReportResponse.
|
|
265
|
+
* Use `create(GetReadinessReportResponseSchema)` to create a new message.
|
|
266
|
+
*/
|
|
267
|
+
export declare const GetReadinessReportResponseSchema: GenMessage<GetReadinessReportResponse>;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* ReadinessPolicyInput is the editable, sparse form of a Readiness Policy
|
|
271
|
+
* (mirrors readiness.PolicyInput). It is the org-level default applied where a
|
|
272
|
+
* repository has no in-repo `.opsee` readiness block (CONTEXT.md "Readiness
|
|
273
|
+
* Policy"); the repo block overrides it per field. Every field is optional and
|
|
274
|
+
* uses presence to mean "set" — an absent field inherits the built-in default
|
|
275
|
+
* rather than meaning false/zero, so the nil != false tri-state survives the
|
|
276
|
+
* round-trip. The six risk thresholds are flattened (files + lines per band).
|
|
277
|
+
*
|
|
278
|
+
* @generated from message api.v1.ReadinessPolicyInput
|
|
279
|
+
*/
|
|
280
|
+
export declare type ReadinessPolicyInput = Message<"api.v1.ReadinessPolicyInput"> & {
|
|
281
|
+
/**
|
|
282
|
+
* @generated from field: optional int32 medium_files = 1;
|
|
283
|
+
*/
|
|
284
|
+
mediumFiles?: number;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @generated from field: optional int32 high_files = 2;
|
|
288
|
+
*/
|
|
289
|
+
highFiles?: number;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* @generated from field: optional int32 critical_files = 3;
|
|
293
|
+
*/
|
|
294
|
+
criticalFiles?: number;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* @generated from field: optional int32 medium_lines = 4;
|
|
298
|
+
*/
|
|
299
|
+
mediumLines?: number;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* @generated from field: optional int32 high_lines = 5;
|
|
303
|
+
*/
|
|
304
|
+
highLines?: number;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* @generated from field: optional int32 critical_lines = 6;
|
|
308
|
+
*/
|
|
309
|
+
criticalLines?: number;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* @generated from field: repeated string high_risk_paths = 7;
|
|
313
|
+
*/
|
|
314
|
+
highRiskPaths: string[];
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* @generated from field: repeated string require_feature_flag_for = 8;
|
|
318
|
+
*/
|
|
319
|
+
requireFeatureFlagFor: string[];
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* @generated from field: optional bool require_owner_review = 9;
|
|
323
|
+
*/
|
|
324
|
+
requireOwnerReview?: boolean;
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* @generated from field: optional bool require_rollback_plan_for_high_risk = 10;
|
|
328
|
+
*/
|
|
329
|
+
requireRollbackPlanForHighRisk?: boolean;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* @generated from field: optional bool require_observability_for_high_risk = 11;
|
|
333
|
+
*/
|
|
334
|
+
requireObservabilityForHighRisk?: boolean;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* @generated from field: optional bool block_critical_risk = 12;
|
|
338
|
+
*/
|
|
339
|
+
blockCriticalRisk?: boolean;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @generated from field: optional bool advisory_for_medium_risk = 13;
|
|
343
|
+
*/
|
|
344
|
+
advisoryForMediumRisk?: boolean;
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Describes the message api.v1.ReadinessPolicyInput.
|
|
349
|
+
* Use `create(ReadinessPolicyInputSchema)` to create a new message.
|
|
350
|
+
*/
|
|
351
|
+
export declare const ReadinessPolicyInputSchema: GenMessage<ReadinessPolicyInput>;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* @generated from message api.v1.GetReadinessOrgDefaultPolicyRequest
|
|
355
|
+
*/
|
|
356
|
+
export declare type GetReadinessOrgDefaultPolicyRequest = Message<"api.v1.GetReadinessOrgDefaultPolicyRequest"> & {
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Describes the message api.v1.GetReadinessOrgDefaultPolicyRequest.
|
|
361
|
+
* Use `create(GetReadinessOrgDefaultPolicyRequestSchema)` to create a new message.
|
|
362
|
+
*/
|
|
363
|
+
export declare const GetReadinessOrgDefaultPolicyRequestSchema: GenMessage<GetReadinessOrgDefaultPolicyRequest>;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* @generated from message api.v1.GetReadinessOrgDefaultPolicyResponse
|
|
367
|
+
*/
|
|
368
|
+
export declare type GetReadinessOrgDefaultPolicyResponse = Message<"api.v1.GetReadinessOrgDefaultPolicyResponse"> & {
|
|
369
|
+
/**
|
|
370
|
+
* @generated from field: api.v1.ReadinessPolicyInput policy = 1;
|
|
371
|
+
*/
|
|
372
|
+
policy?: ReadinessPolicyInput;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* configured is false when the company has no org-default row yet, so the
|
|
376
|
+
* editor can surface "using built-in defaults" instead of empty fields.
|
|
377
|
+
*
|
|
378
|
+
* @generated from field: bool configured = 2;
|
|
379
|
+
*/
|
|
380
|
+
configured: boolean;
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Describes the message api.v1.GetReadinessOrgDefaultPolicyResponse.
|
|
385
|
+
* Use `create(GetReadinessOrgDefaultPolicyResponseSchema)` to create a new message.
|
|
386
|
+
*/
|
|
387
|
+
export declare const GetReadinessOrgDefaultPolicyResponseSchema: GenMessage<GetReadinessOrgDefaultPolicyResponse>;
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* @generated from message api.v1.UpdateReadinessOrgDefaultPolicyRequest
|
|
391
|
+
*/
|
|
392
|
+
export declare type UpdateReadinessOrgDefaultPolicyRequest = Message<"api.v1.UpdateReadinessOrgDefaultPolicyRequest"> & {
|
|
393
|
+
/**
|
|
394
|
+
* @generated from field: api.v1.ReadinessPolicyInput policy = 1;
|
|
395
|
+
*/
|
|
396
|
+
policy?: ReadinessPolicyInput;
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Describes the message api.v1.UpdateReadinessOrgDefaultPolicyRequest.
|
|
401
|
+
* Use `create(UpdateReadinessOrgDefaultPolicyRequestSchema)` to create a new message.
|
|
402
|
+
*/
|
|
403
|
+
export declare const UpdateReadinessOrgDefaultPolicyRequestSchema: GenMessage<UpdateReadinessOrgDefaultPolicyRequest>;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* @generated from message api.v1.UpdateReadinessOrgDefaultPolicyResponse
|
|
407
|
+
*/
|
|
408
|
+
export declare type UpdateReadinessOrgDefaultPolicyResponse = Message<"api.v1.UpdateReadinessOrgDefaultPolicyResponse"> & {
|
|
409
|
+
/**
|
|
410
|
+
* @generated from field: api.v1.ReadinessPolicyInput policy = 1;
|
|
411
|
+
*/
|
|
412
|
+
policy?: ReadinessPolicyInput;
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Describes the message api.v1.UpdateReadinessOrgDefaultPolicyResponse.
|
|
417
|
+
* Use `create(UpdateReadinessOrgDefaultPolicyResponseSchema)` to create a new message.
|
|
418
|
+
*/
|
|
419
|
+
export declare const UpdateReadinessOrgDefaultPolicyResponseSchema: GenMessage<UpdateReadinessOrgDefaultPolicyResponse>;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* ReadinessRepository is a project's connected repository together with whether
|
|
423
|
+
* Readiness analysis is enabled on it (OPS-101). project_repository_id is the
|
|
424
|
+
* ProjectRepository row id — the unit Readiness is enabled per.
|
|
425
|
+
*
|
|
426
|
+
* @generated from message api.v1.ReadinessRepository
|
|
427
|
+
*/
|
|
428
|
+
export declare type ReadinessRepository = Message<"api.v1.ReadinessRepository"> & {
|
|
429
|
+
/**
|
|
430
|
+
* @generated from field: uint32 project_repository_id = 1;
|
|
431
|
+
*/
|
|
432
|
+
projectRepositoryId: number;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* @generated from field: string repository_full_name = 2;
|
|
436
|
+
*/
|
|
437
|
+
repositoryFullName: string;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* @generated from field: string provider = 3;
|
|
441
|
+
*/
|
|
442
|
+
provider: string;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* @generated from field: bool enable_readiness = 4;
|
|
446
|
+
*/
|
|
447
|
+
enableReadiness: boolean;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* The repository's web URL (e.g. https://github.com/owner/repo), for linking
|
|
451
|
+
* out to the provider from the per-repository view. Empty if unknown.
|
|
452
|
+
*
|
|
453
|
+
* @generated from field: string repository_url = 5;
|
|
454
|
+
*/
|
|
455
|
+
repositoryUrl: string;
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Describes the message api.v1.ReadinessRepository.
|
|
460
|
+
* Use `create(ReadinessRepositorySchema)` to create a new message.
|
|
461
|
+
*/
|
|
462
|
+
export declare const ReadinessRepositorySchema: GenMessage<ReadinessRepository>;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* @generated from message api.v1.ListReadinessRepositoriesRequest
|
|
466
|
+
*/
|
|
467
|
+
export declare type ListReadinessRepositoriesRequest = Message<"api.v1.ListReadinessRepositoriesRequest"> & {
|
|
468
|
+
/**
|
|
469
|
+
* @generated from field: uint32 project_id = 1;
|
|
470
|
+
*/
|
|
471
|
+
projectId: number;
|
|
472
|
+
};
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Describes the message api.v1.ListReadinessRepositoriesRequest.
|
|
476
|
+
* Use `create(ListReadinessRepositoriesRequestSchema)` to create a new message.
|
|
477
|
+
*/
|
|
478
|
+
export declare const ListReadinessRepositoriesRequestSchema: GenMessage<ListReadinessRepositoriesRequest>;
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* @generated from message api.v1.ListReadinessRepositoriesResponse
|
|
482
|
+
*/
|
|
483
|
+
export declare type ListReadinessRepositoriesResponse = Message<"api.v1.ListReadinessRepositoriesResponse"> & {
|
|
484
|
+
/**
|
|
485
|
+
* @generated from field: repeated api.v1.ReadinessRepository repositories = 1;
|
|
486
|
+
*/
|
|
487
|
+
repositories: ReadinessRepository[];
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Describes the message api.v1.ListReadinessRepositoriesResponse.
|
|
492
|
+
* Use `create(ListReadinessRepositoriesResponseSchema)` to create a new message.
|
|
493
|
+
*/
|
|
494
|
+
export declare const ListReadinessRepositoriesResponseSchema: GenMessage<ListReadinessRepositoriesResponse>;
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* @generated from message api.v1.SetRepositoryReadinessRequest
|
|
498
|
+
*/
|
|
499
|
+
export declare type SetRepositoryReadinessRequest = Message<"api.v1.SetRepositoryReadinessRequest"> & {
|
|
500
|
+
/**
|
|
501
|
+
* @generated from field: uint32 project_id = 1;
|
|
502
|
+
*/
|
|
503
|
+
projectId: number;
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* @generated from field: uint32 project_repository_id = 2;
|
|
507
|
+
*/
|
|
508
|
+
projectRepositoryId: number;
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* @generated from field: bool enabled = 3;
|
|
512
|
+
*/
|
|
513
|
+
enabled: boolean;
|
|
514
|
+
};
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Describes the message api.v1.SetRepositoryReadinessRequest.
|
|
518
|
+
* Use `create(SetRepositoryReadinessRequestSchema)` to create a new message.
|
|
519
|
+
*/
|
|
520
|
+
export declare const SetRepositoryReadinessRequestSchema: GenMessage<SetRepositoryReadinessRequest>;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* @generated from message api.v1.SetRepositoryReadinessResponse
|
|
524
|
+
*/
|
|
525
|
+
export declare type SetRepositoryReadinessResponse = Message<"api.v1.SetRepositoryReadinessResponse"> & {
|
|
526
|
+
/**
|
|
527
|
+
* @generated from field: api.v1.ReadinessRepository repository = 1;
|
|
528
|
+
*/
|
|
529
|
+
repository?: ReadinessRepository;
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Describes the message api.v1.SetRepositoryReadinessResponse.
|
|
534
|
+
* Use `create(SetRepositoryReadinessResponseSchema)` to create a new message.
|
|
535
|
+
*/
|
|
536
|
+
export declare const SetRepositoryReadinessResponseSchema: GenMessage<SetRepositoryReadinessResponse>;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* @generated from message api.v1.RebuildRepositoryProfileRequest
|
|
540
|
+
*/
|
|
541
|
+
export declare type RebuildRepositoryProfileRequest = Message<"api.v1.RebuildRepositoryProfileRequest"> & {
|
|
542
|
+
/**
|
|
543
|
+
* @generated from field: uint32 project_id = 1;
|
|
544
|
+
*/
|
|
545
|
+
projectId: number;
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* @generated from field: uint32 project_repository_id = 2;
|
|
549
|
+
*/
|
|
550
|
+
projectRepositoryId: number;
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Describes the message api.v1.RebuildRepositoryProfileRequest.
|
|
555
|
+
* Use `create(RebuildRepositoryProfileRequestSchema)` to create a new message.
|
|
556
|
+
*/
|
|
557
|
+
export declare const RebuildRepositoryProfileRequestSchema: GenMessage<RebuildRepositoryProfileRequest>;
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Empty: the rebuild runs asynchronously on the queue worker. Clients poll
|
|
561
|
+
* GetRepositoryProfile (its updated_at advances) to observe completion.
|
|
562
|
+
*
|
|
563
|
+
* @generated from message api.v1.RebuildRepositoryProfileResponse
|
|
564
|
+
*/
|
|
565
|
+
export declare type RebuildRepositoryProfileResponse = Message<"api.v1.RebuildRepositoryProfileResponse"> & {
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Describes the message api.v1.RebuildRepositoryProfileResponse.
|
|
570
|
+
* Use `create(RebuildRepositoryProfileResponseSchema)` to create a new message.
|
|
571
|
+
*/
|
|
572
|
+
export declare const RebuildRepositoryProfileResponseSchema: GenMessage<RebuildRepositoryProfileResponse>;
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* RepositoryProfile is the contextual model of a repository built once when
|
|
576
|
+
* Readiness is enabled (OPS-107): cached deterministic facts plus an optional
|
|
577
|
+
* LLM-authored architecture summary. configured is false when no profile has
|
|
578
|
+
* been built yet (the per-PR pipeline still works without one).
|
|
579
|
+
*
|
|
580
|
+
* @generated from message api.v1.RepositoryProfile
|
|
581
|
+
*/
|
|
582
|
+
export declare type RepositoryProfile = Message<"api.v1.RepositoryProfile"> & {
|
|
583
|
+
/**
|
|
584
|
+
* @generated from field: uint32 project_repository_id = 1;
|
|
585
|
+
*/
|
|
586
|
+
projectRepositoryId: number;
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* @generated from field: repeated string languages = 2;
|
|
590
|
+
*/
|
|
591
|
+
languages: string[];
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* @generated from field: repeated string contributors = 3;
|
|
595
|
+
*/
|
|
596
|
+
contributors: string[];
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* distinct CODEOWNERS owners parsed from the cached file
|
|
600
|
+
*
|
|
601
|
+
* @generated from field: repeated string owners = 4;
|
|
602
|
+
*/
|
|
603
|
+
owners: string[];
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* @generated from field: string summary = 5;
|
|
607
|
+
*/
|
|
608
|
+
summary: string;
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* @generated from field: bool configured = 6;
|
|
612
|
+
*/
|
|
613
|
+
configured: boolean;
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 7;
|
|
617
|
+
*/
|
|
618
|
+
updatedAt?: Timestamp;
|
|
619
|
+
};
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Describes the message api.v1.RepositoryProfile.
|
|
623
|
+
* Use `create(RepositoryProfileSchema)` to create a new message.
|
|
624
|
+
*/
|
|
625
|
+
export declare const RepositoryProfileSchema: GenMessage<RepositoryProfile>;
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* @generated from message api.v1.GetRepositoryProfileRequest
|
|
629
|
+
*/
|
|
630
|
+
export declare type GetRepositoryProfileRequest = Message<"api.v1.GetRepositoryProfileRequest"> & {
|
|
631
|
+
/**
|
|
632
|
+
* @generated from field: uint32 project_id = 1;
|
|
633
|
+
*/
|
|
634
|
+
projectId: number;
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* @generated from field: uint32 project_repository_id = 2;
|
|
638
|
+
*/
|
|
639
|
+
projectRepositoryId: number;
|
|
640
|
+
};
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* Describes the message api.v1.GetRepositoryProfileRequest.
|
|
644
|
+
* Use `create(GetRepositoryProfileRequestSchema)` to create a new message.
|
|
645
|
+
*/
|
|
646
|
+
export declare const GetRepositoryProfileRequestSchema: GenMessage<GetRepositoryProfileRequest>;
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* @generated from message api.v1.GetRepositoryProfileResponse
|
|
650
|
+
*/
|
|
651
|
+
export declare type GetRepositoryProfileResponse = Message<"api.v1.GetRepositoryProfileResponse"> & {
|
|
652
|
+
/**
|
|
653
|
+
* @generated from field: api.v1.RepositoryProfile profile = 1;
|
|
654
|
+
*/
|
|
655
|
+
profile?: RepositoryProfile;
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Describes the message api.v1.GetRepositoryProfileResponse.
|
|
660
|
+
* Use `create(GetRepositoryProfileResponseSchema)` to create a new message.
|
|
661
|
+
*/
|
|
662
|
+
export declare const GetRepositoryProfileResponseSchema: GenMessage<GetRepositoryProfileResponse>;
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* ReadinessAnalysisStatus is a per-PR analysis lifecycle event broadcast live
|
|
666
|
+
* over SSE (OPS-108): queued -> running -> succeeded | failed. It is ephemeral
|
|
667
|
+
* (not persisted); on a terminal event the dashboard refetches the report list.
|
|
668
|
+
*
|
|
669
|
+
* @generated from message api.v1.ReadinessAnalysisStatus
|
|
670
|
+
*/
|
|
671
|
+
export declare type ReadinessAnalysisStatus = Message<"api.v1.ReadinessAnalysisStatus"> & {
|
|
672
|
+
/**
|
|
673
|
+
* @generated from field: uint32 project_id = 1;
|
|
674
|
+
*/
|
|
675
|
+
projectId: number;
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* @generated from field: uint32 project_repository_id = 2;
|
|
679
|
+
*/
|
|
680
|
+
projectRepositoryId: number;
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* @generated from field: int32 pr_number = 3;
|
|
684
|
+
*/
|
|
685
|
+
prNumber: number;
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* @generated from field: string head_sha = 4;
|
|
689
|
+
*/
|
|
690
|
+
headSha: string;
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* "queued" | "running" | "succeeded" | "failed"
|
|
694
|
+
*
|
|
695
|
+
* @generated from field: string status = 5;
|
|
696
|
+
*/
|
|
697
|
+
status: string;
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* @generated from field: google.protobuf.Timestamp occurred_at = 6;
|
|
701
|
+
*/
|
|
702
|
+
occurredAt?: Timestamp;
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Describes the message api.v1.ReadinessAnalysisStatus.
|
|
707
|
+
* Use `create(ReadinessAnalysisStatusSchema)` to create a new message.
|
|
708
|
+
*/
|
|
709
|
+
export declare const ReadinessAnalysisStatusSchema: GenMessage<ReadinessAnalysisStatus>;
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* @generated from message api.v1.StreamReadinessAnalysisRequest
|
|
713
|
+
*/
|
|
714
|
+
export declare type StreamReadinessAnalysisRequest = Message<"api.v1.StreamReadinessAnalysisRequest"> & {
|
|
715
|
+
/**
|
|
716
|
+
* @generated from field: uint32 project_id = 1;
|
|
717
|
+
*/
|
|
718
|
+
projectId: number;
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Describes the message api.v1.StreamReadinessAnalysisRequest.
|
|
723
|
+
* Use `create(StreamReadinessAnalysisRequestSchema)` to create a new message.
|
|
724
|
+
*/
|
|
725
|
+
export declare const StreamReadinessAnalysisRequestSchema: GenMessage<StreamReadinessAnalysisRequest>;
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* ReadinessService exposes readiness reports (read, OPS-102), the org-level
|
|
729
|
+
* default Readiness Policy (read/write, OPS-103), per-repository Readiness
|
|
730
|
+
* enablement (read/write, OPS-101), per-repository contextual profiles
|
|
731
|
+
* (read, OPS-107), and a live per-PR analysis status stream (OPS-108). All RPCs
|
|
732
|
+
* are company-scoped and authenticated; reports are produced by the
|
|
733
|
+
* deterministic webhook pipeline and are read-only.
|
|
734
|
+
*
|
|
735
|
+
* @generated from service api.v1.ReadinessService
|
|
736
|
+
*/
|
|
737
|
+
export declare const ReadinessService: GenService<{
|
|
738
|
+
/**
|
|
739
|
+
* @generated from rpc api.v1.ReadinessService.ListReadinessReports
|
|
740
|
+
*/
|
|
741
|
+
listReadinessReports: {
|
|
742
|
+
methodKind: "unary";
|
|
743
|
+
input: typeof ListReadinessReportsRequestSchema;
|
|
744
|
+
output: typeof ListReadinessReportsResponseSchema;
|
|
745
|
+
},
|
|
746
|
+
/**
|
|
747
|
+
* @generated from rpc api.v1.ReadinessService.GetReadinessReport
|
|
748
|
+
*/
|
|
749
|
+
getReadinessReport: {
|
|
750
|
+
methodKind: "unary";
|
|
751
|
+
input: typeof GetReadinessReportRequestSchema;
|
|
752
|
+
output: typeof GetReadinessReportResponseSchema;
|
|
753
|
+
},
|
|
754
|
+
/**
|
|
755
|
+
* GetReadinessOrgDefaultPolicy returns the caller company's org-default policy
|
|
756
|
+
* (Admin/Owner only). Returns configured=false with an empty policy when unset.
|
|
757
|
+
*
|
|
758
|
+
* @generated from rpc api.v1.ReadinessService.GetReadinessOrgDefaultPolicy
|
|
759
|
+
*/
|
|
760
|
+
getReadinessOrgDefaultPolicy: {
|
|
761
|
+
methodKind: "unary";
|
|
762
|
+
input: typeof GetReadinessOrgDefaultPolicyRequestSchema;
|
|
763
|
+
output: typeof GetReadinessOrgDefaultPolicyResponseSchema;
|
|
764
|
+
},
|
|
765
|
+
/**
|
|
766
|
+
* UpdateReadinessOrgDefaultPolicy upserts the caller company's org-default
|
|
767
|
+
* policy (Admin/Owner only).
|
|
768
|
+
*
|
|
769
|
+
* @generated from rpc api.v1.ReadinessService.UpdateReadinessOrgDefaultPolicy
|
|
770
|
+
*/
|
|
771
|
+
updateReadinessOrgDefaultPolicy: {
|
|
772
|
+
methodKind: "unary";
|
|
773
|
+
input: typeof UpdateReadinessOrgDefaultPolicyRequestSchema;
|
|
774
|
+
output: typeof UpdateReadinessOrgDefaultPolicyResponseSchema;
|
|
775
|
+
},
|
|
776
|
+
/**
|
|
777
|
+
* ListReadinessRepositories lists the project's connected repositories with
|
|
778
|
+
* their Readiness-enabled flag (Admin/Owner/User).
|
|
779
|
+
*
|
|
780
|
+
* @generated from rpc api.v1.ReadinessService.ListReadinessRepositories
|
|
781
|
+
*/
|
|
782
|
+
listReadinessRepositories: {
|
|
783
|
+
methodKind: "unary";
|
|
784
|
+
input: typeof ListReadinessRepositoriesRequestSchema;
|
|
785
|
+
output: typeof ListReadinessRepositoriesResponseSchema;
|
|
786
|
+
},
|
|
787
|
+
/**
|
|
788
|
+
* SetRepositoryReadiness enables or disables Readiness analysis on a single
|
|
789
|
+
* connected repository (Admin/Owner only).
|
|
790
|
+
*
|
|
791
|
+
* @generated from rpc api.v1.ReadinessService.SetRepositoryReadiness
|
|
792
|
+
*/
|
|
793
|
+
setRepositoryReadiness: {
|
|
794
|
+
methodKind: "unary";
|
|
795
|
+
input: typeof SetRepositoryReadinessRequestSchema;
|
|
796
|
+
output: typeof SetRepositoryReadinessResponseSchema;
|
|
797
|
+
},
|
|
798
|
+
/**
|
|
799
|
+
* GetRepositoryProfile returns the contextual profile for a connected
|
|
800
|
+
* repository (Admin/Owner/User); configured=false when none built yet.
|
|
801
|
+
*
|
|
802
|
+
* @generated from rpc api.v1.ReadinessService.GetRepositoryProfile
|
|
803
|
+
*/
|
|
804
|
+
getRepositoryProfile: {
|
|
805
|
+
methodKind: "unary";
|
|
806
|
+
input: typeof GetRepositoryProfileRequestSchema;
|
|
807
|
+
output: typeof GetRepositoryProfileResponseSchema;
|
|
808
|
+
},
|
|
809
|
+
/**
|
|
810
|
+
* RebuildRepositoryProfile re-enqueues the repo-understanding job to rebuild a
|
|
811
|
+
* connected repository's profile from current HEAD (e.g. after a force-push or
|
|
812
|
+
* CODEOWNERS change). Asynchronous; clients poll GetRepositoryProfile.
|
|
813
|
+
*
|
|
814
|
+
* @generated from rpc api.v1.ReadinessService.RebuildRepositoryProfile
|
|
815
|
+
*/
|
|
816
|
+
rebuildRepositoryProfile: {
|
|
817
|
+
methodKind: "unary";
|
|
818
|
+
input: typeof RebuildRepositoryProfileRequestSchema;
|
|
819
|
+
output: typeof RebuildRepositoryProfileResponseSchema;
|
|
820
|
+
},
|
|
821
|
+
/**
|
|
822
|
+
* StreamReadinessAnalysis streams per-PR analysis lifecycle events for a
|
|
823
|
+
* project's Readiness dashboard (Admin/Owner/Manager/User). Server-streaming,
|
|
824
|
+
* ephemeral; backed by the project-scoped SSE channel.
|
|
825
|
+
*
|
|
826
|
+
* @generated from rpc api.v1.ReadinessService.StreamReadinessAnalysis
|
|
827
|
+
*/
|
|
828
|
+
streamReadinessAnalysis: {
|
|
829
|
+
methodKind: "server_streaming";
|
|
830
|
+
input: typeof StreamReadinessAnalysisRequestSchema;
|
|
831
|
+
output: typeof ReadinessAnalysisStatusSchema;
|
|
832
|
+
},
|
|
833
|
+
}>;
|
|
834
|
+
|