gitd-client 0.0.0-stage → 0.8.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/README.md +46 -2
- package/dist/calls.d.ts +19 -0
- package/dist/calls.js +32 -0
- package/dist/compare-convert.d.ts +6 -0
- package/dist/compare-convert.js +33 -0
- package/dist/convert.d.ts +16 -0
- package/dist/convert.js +128 -0
- package/dist/credential-convert.d.ts +3 -0
- package/dist/credential-convert.js +27 -0
- package/dist/credential-types.d.ts +57 -0
- package/dist/credential-types.js +1 -0
- package/dist/credentials.d.ts +27 -0
- package/dist/credentials.js +66 -0
- package/dist/errors.d.ts +13 -0
- package/dist/errors.js +30 -0
- package/dist/gen/gitd/v1/gitd_pb.d.ts +3023 -0
- package/dist/gen/gitd/v1/gitd_pb.js +826 -0
- package/dist/gitd.d.ts +65 -0
- package/dist/gitd.js +206 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +5 -0
- package/dist/publishing-convert.d.ts +8 -0
- package/dist/publishing-convert.js +74 -0
- package/dist/publishing-types.d.ts +70 -0
- package/dist/publishing-types.js +1 -0
- package/dist/publishing.d.ts +23 -0
- package/dist/publishing.js +40 -0
- package/dist/types.d.ts +232 -0
- package/dist/types.js +1 -0
- package/dist/warm-convert.d.ts +4 -0
- package/dist/warm-convert.js +12 -0
- package/package.json +50 -4
|
@@ -0,0 +1,3023 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file gitd/v1/gitd.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_gitd_v1_gitd: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* What opens repositories whose address starts with `url_prefix`, on any host:
|
|
10
|
+
* e.g. `https://github.com/acme/` or `https://gitlab.example.com/acme/tools/`. A port in
|
|
11
|
+
* it is ignored, as it is in a repository's address: ports are the host's (gitd.toml).
|
|
12
|
+
*
|
|
13
|
+
* @generated from message gitd.v1.Credential
|
|
14
|
+
*/
|
|
15
|
+
export type Credential = Message<"gitd.v1.Credential"> & {
|
|
16
|
+
/**
|
|
17
|
+
* @generated from field: string url_prefix = 1;
|
|
18
|
+
*/
|
|
19
|
+
urlPrefix: string;
|
|
20
|
+
/**
|
|
21
|
+
* @generated from oneof gitd.v1.Credential.secret
|
|
22
|
+
*/
|
|
23
|
+
secret: {
|
|
24
|
+
/**
|
|
25
|
+
* Sent as `Authorization: Basic <https_user>:<token>`. A repository this opens is
|
|
26
|
+
* read over HTTPS even when it was written as `git@` or `ssh://`.
|
|
27
|
+
*
|
|
28
|
+
* @generated from field: string https_token = 2;
|
|
29
|
+
*/
|
|
30
|
+
value: string;
|
|
31
|
+
case: "httpsToken";
|
|
32
|
+
} | {
|
|
33
|
+
/**
|
|
34
|
+
* A private key that is already on this server.
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: string ssh_key_path = 3;
|
|
37
|
+
*/
|
|
38
|
+
value: string;
|
|
39
|
+
case: "sshKeyPath";
|
|
40
|
+
} | {
|
|
41
|
+
case: undefined;
|
|
42
|
+
value?: undefined;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* The user name that goes with `https_token`. Empty is the one the host expects for a
|
|
46
|
+
* token: `oauth2` on gitlab.com, `x-token-auth` on bitbucket.org and `x-access-token`
|
|
47
|
+
* anywhere else (GitHub, and Gitea and Forgejo, which take any name). A self-hosted
|
|
48
|
+
* GitLab wants `oauth2`, and a Bitbucket app password the account's own name.
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: string https_user = 4;
|
|
51
|
+
*/
|
|
52
|
+
httpsUser: string;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Describes the message gitd.v1.Credential.
|
|
56
|
+
* Use `create(CredentialSchema)` to create a new message.
|
|
57
|
+
*/
|
|
58
|
+
export declare const CredentialSchema: GenMessage<Credential>;
|
|
59
|
+
/**
|
|
60
|
+
* Where a workspace points: a branch, or a commit, or the repository's default branch.
|
|
61
|
+
*
|
|
62
|
+
* @generated from message gitd.v1.Revision
|
|
63
|
+
*/
|
|
64
|
+
export type Revision = Message<"gitd.v1.Revision"> & {
|
|
65
|
+
/**
|
|
66
|
+
* @generated from oneof gitd.v1.Revision.target
|
|
67
|
+
*/
|
|
68
|
+
target: {
|
|
69
|
+
/**
|
|
70
|
+
* @generated from field: string branch = 1;
|
|
71
|
+
*/
|
|
72
|
+
value: string;
|
|
73
|
+
case: "branch";
|
|
74
|
+
} | {
|
|
75
|
+
/**
|
|
76
|
+
* @generated from field: string commit = 2;
|
|
77
|
+
*/
|
|
78
|
+
value: string;
|
|
79
|
+
case: "commit";
|
|
80
|
+
} | {
|
|
81
|
+
case: undefined;
|
|
82
|
+
value?: undefined;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Describes the message gitd.v1.Revision.
|
|
87
|
+
* Use `create(RevisionSchema)` to create a new message.
|
|
88
|
+
*/
|
|
89
|
+
export declare const RevisionSchema: GenMessage<Revision>;
|
|
90
|
+
/**
|
|
91
|
+
* @generated from message gitd.v1.Progress
|
|
92
|
+
*/
|
|
93
|
+
export type Progress = Message<"gitd.v1.Progress"> & {
|
|
94
|
+
/**
|
|
95
|
+
* What git is doing: "Receiving objects", "Resolving deltas", "Submodule vendor/web".
|
|
96
|
+
*
|
|
97
|
+
* @generated from field: string phase = 1;
|
|
98
|
+
*/
|
|
99
|
+
phase: string;
|
|
100
|
+
/**
|
|
101
|
+
* 0 to 100, or -1 when git does not say.
|
|
102
|
+
*
|
|
103
|
+
* @generated from field: int32 percent = 2;
|
|
104
|
+
*/
|
|
105
|
+
percent: number;
|
|
106
|
+
/**
|
|
107
|
+
* Which repository it is about, for an operation that touches several.
|
|
108
|
+
*
|
|
109
|
+
* @generated from field: string repository = 3;
|
|
110
|
+
*/
|
|
111
|
+
repository: string;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Describes the message gitd.v1.Progress.
|
|
115
|
+
* Use `create(ProgressSchema)` to create a new message.
|
|
116
|
+
*/
|
|
117
|
+
export declare const ProgressSchema: GenMessage<Progress>;
|
|
118
|
+
/**
|
|
119
|
+
* @generated from message gitd.v1.SubmoduleState
|
|
120
|
+
*/
|
|
121
|
+
export type SubmoduleState = Message<"gitd.v1.SubmoduleState"> & {
|
|
122
|
+
/**
|
|
123
|
+
* @generated from field: string path = 1;
|
|
124
|
+
*/
|
|
125
|
+
path: string;
|
|
126
|
+
/**
|
|
127
|
+
* @generated from field: string url = 2;
|
|
128
|
+
*/
|
|
129
|
+
url: string;
|
|
130
|
+
/**
|
|
131
|
+
* @generated from field: string commit = 3;
|
|
132
|
+
*/
|
|
133
|
+
commit: string;
|
|
134
|
+
/**
|
|
135
|
+
* @generated from field: bool checked_out = 4;
|
|
136
|
+
*/
|
|
137
|
+
checkedOut: boolean;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Describes the message gitd.v1.SubmoduleState.
|
|
141
|
+
* Use `create(SubmoduleStateSchema)` to create a new message.
|
|
142
|
+
*/
|
|
143
|
+
export declare const SubmoduleStateSchema: GenMessage<SubmoduleState>;
|
|
144
|
+
/**
|
|
145
|
+
* A submodule that could not be brought in, and why. The rest of the operation went on.
|
|
146
|
+
*
|
|
147
|
+
* @generated from message gitd.v1.PendingSubmodule
|
|
148
|
+
*/
|
|
149
|
+
export type PendingSubmodule = Message<"gitd.v1.PendingSubmodule"> & {
|
|
150
|
+
/**
|
|
151
|
+
* @generated from field: string url = 1;
|
|
152
|
+
*/
|
|
153
|
+
url: string;
|
|
154
|
+
/**
|
|
155
|
+
* @generated from field: string path = 2;
|
|
156
|
+
*/
|
|
157
|
+
path: string;
|
|
158
|
+
/**
|
|
159
|
+
* @generated from field: gitd.v1.GitFailure failure = 3;
|
|
160
|
+
*/
|
|
161
|
+
failure?: GitFailure | undefined;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Describes the message gitd.v1.PendingSubmodule.
|
|
165
|
+
* Use `create(PendingSubmoduleSchema)` to create a new message.
|
|
166
|
+
*/
|
|
167
|
+
export declare const PendingSubmoduleSchema: GenMessage<PendingSubmodule>;
|
|
168
|
+
/**
|
|
169
|
+
* Attached to every error as a detail.
|
|
170
|
+
*
|
|
171
|
+
* @generated from message gitd.v1.GitFailure
|
|
172
|
+
*/
|
|
173
|
+
export type GitFailure = Message<"gitd.v1.GitFailure"> & {
|
|
174
|
+
/**
|
|
175
|
+
* @generated from field: gitd.v1.GitFailure.Reason reason = 1;
|
|
176
|
+
*/
|
|
177
|
+
reason: GitFailure_Reason;
|
|
178
|
+
/**
|
|
179
|
+
* The last useful line git wrote, e.g. "remote: Repository not found.".
|
|
180
|
+
*
|
|
181
|
+
* @generated from field: string git_said = 2;
|
|
182
|
+
*/
|
|
183
|
+
gitSaid: string;
|
|
184
|
+
/**
|
|
185
|
+
* The repository the failure is about.
|
|
186
|
+
*
|
|
187
|
+
* @generated from field: string repository = 3;
|
|
188
|
+
*/
|
|
189
|
+
repository: string;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Describes the message gitd.v1.GitFailure.
|
|
193
|
+
* Use `create(GitFailureSchema)` to create a new message.
|
|
194
|
+
*/
|
|
195
|
+
export declare const GitFailureSchema: GenMessage<GitFailure>;
|
|
196
|
+
/**
|
|
197
|
+
* @generated from enum gitd.v1.GitFailure.Reason
|
|
198
|
+
*/
|
|
199
|
+
export declare enum GitFailure_Reason {
|
|
200
|
+
/**
|
|
201
|
+
* @generated from enum value: REASON_UNSPECIFIED = 0;
|
|
202
|
+
*/
|
|
203
|
+
UNSPECIFIED = 0,
|
|
204
|
+
/**
|
|
205
|
+
* @generated from enum value: REASON_AUTH_REQUIRED = 1;
|
|
206
|
+
*/
|
|
207
|
+
AUTH_REQUIRED = 1,
|
|
208
|
+
/**
|
|
209
|
+
* @generated from enum value: REASON_AUTH_REFUSED = 2;
|
|
210
|
+
*/
|
|
211
|
+
AUTH_REFUSED = 2,
|
|
212
|
+
/**
|
|
213
|
+
* @generated from enum value: REASON_NOT_FOUND = 3;
|
|
214
|
+
*/
|
|
215
|
+
NOT_FOUND = 3,
|
|
216
|
+
/**
|
|
217
|
+
* @generated from enum value: REASON_BAD_ADDRESS = 4;
|
|
218
|
+
*/
|
|
219
|
+
BAD_ADDRESS = 4,
|
|
220
|
+
/**
|
|
221
|
+
* @generated from enum value: REASON_PATH_REFUSED = 5;
|
|
222
|
+
*/
|
|
223
|
+
PATH_REFUSED = 5,
|
|
224
|
+
/**
|
|
225
|
+
* @generated from enum value: REASON_BUSY = 6;
|
|
226
|
+
*/
|
|
227
|
+
BUSY = 6,
|
|
228
|
+
/**
|
|
229
|
+
* @generated from enum value: REASON_TIMEOUT = 7;
|
|
230
|
+
*/
|
|
231
|
+
TIMEOUT = 7,
|
|
232
|
+
/**
|
|
233
|
+
* @generated from enum value: REASON_CORRUPT = 8;
|
|
234
|
+
*/
|
|
235
|
+
CORRUPT = 8,
|
|
236
|
+
/**
|
|
237
|
+
* @generated from enum value: REASON_GIT_FAILED = 9;
|
|
238
|
+
*/
|
|
239
|
+
GIT_FAILED = 9,
|
|
240
|
+
/**
|
|
241
|
+
* @generated from enum value: REASON_NOTHING_NEW = 10;
|
|
242
|
+
*/
|
|
243
|
+
NOTHING_NEW = 10,
|
|
244
|
+
/**
|
|
245
|
+
* The branch is outside the prefix publishing is limited to.
|
|
246
|
+
*
|
|
247
|
+
* @generated from enum value: REASON_BRANCH_REFUSED = 11;
|
|
248
|
+
*/
|
|
249
|
+
BRANCH_REFUSED = 11,
|
|
250
|
+
/**
|
|
251
|
+
* The workspace's git configuration sets something gitd does not run git under, such
|
|
252
|
+
* as a filter or a hook path: whoever writes in the workspace could otherwise have gitd
|
|
253
|
+
* run a command of theirs.
|
|
254
|
+
*
|
|
255
|
+
* @generated from enum value: REASON_CONFIG_REFUSED = 12;
|
|
256
|
+
*/
|
|
257
|
+
CONFIG_REFUSED = 12,
|
|
258
|
+
/**
|
|
259
|
+
* What a publish brings breaks a publishing rule: a protected path changed, a kept
|
|
260
|
+
* path deleted, or too many files changed. Nothing was pushed.
|
|
261
|
+
*
|
|
262
|
+
* @generated from enum value: REASON_POLICY_REFUSED = 13;
|
|
263
|
+
*/
|
|
264
|
+
POLICY_REFUSED = 13,
|
|
265
|
+
/**
|
|
266
|
+
* What was asked cannot be done with this host, such as a pull request where gitd does
|
|
267
|
+
* not know the host's API.
|
|
268
|
+
*
|
|
269
|
+
* @generated from enum value: REASON_UNSUPPORTED = 14;
|
|
270
|
+
*/
|
|
271
|
+
UNSUPPORTED = 14
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Describes the enum gitd.v1.GitFailure.Reason.
|
|
275
|
+
*/
|
|
276
|
+
export declare const GitFailure_ReasonSchema: GenEnum<GitFailure_Reason>;
|
|
277
|
+
/**
|
|
278
|
+
* @generated from message gitd.v1.PrepareRequest
|
|
279
|
+
*/
|
|
280
|
+
export type PrepareRequest = Message<"gitd.v1.PrepareRequest"> & {
|
|
281
|
+
/**
|
|
282
|
+
* The repository: `https://host/owner/[group/…]name`, `user@host:owner/name` or
|
|
283
|
+
* `ssh://user@host[:port]/owner/name`, with or without `.git`.
|
|
284
|
+
*
|
|
285
|
+
* @generated from field: string url = 1;
|
|
286
|
+
*/
|
|
287
|
+
url: string;
|
|
288
|
+
/**
|
|
289
|
+
* An absolute path inside one of the roots gitd is configured with.
|
|
290
|
+
*
|
|
291
|
+
* @generated from field: string path = 2;
|
|
292
|
+
*/
|
|
293
|
+
path: string;
|
|
294
|
+
/**
|
|
295
|
+
* @generated from field: gitd.v1.Revision revision = 3;
|
|
296
|
+
*/
|
|
297
|
+
revision?: Revision | undefined;
|
|
298
|
+
/**
|
|
299
|
+
* @generated from field: bool with_submodules = 4;
|
|
300
|
+
*/
|
|
301
|
+
withSubmodules: boolean;
|
|
302
|
+
/**
|
|
303
|
+
* @generated from field: repeated gitd.v1.Credential credentials = 5;
|
|
304
|
+
*/
|
|
305
|
+
credentials: Credential[];
|
|
306
|
+
/**
|
|
307
|
+
* The repository's whole history, for `git log` and `git blame` to go back as far as in
|
|
308
|
+
* a clone; later updates keep it.
|
|
309
|
+
* Otherwise only what is checked out, without the history behind it; submodules are
|
|
310
|
+
* always so.
|
|
311
|
+
*
|
|
312
|
+
* @generated from field: bool full_history = 6;
|
|
313
|
+
*/
|
|
314
|
+
fullHistory: boolean;
|
|
315
|
+
/**
|
|
316
|
+
* How to make it, when there is a preference: STRATEGY_COPY writes every file even where
|
|
317
|
+
* an overlay could be mounted. Unspecified is gitd's choice, the fastest this machine
|
|
318
|
+
* allows. A strategy that cannot run here falls back to copy; the result says which ran.
|
|
319
|
+
*
|
|
320
|
+
* @generated from field: gitd.v1.Strategy strategy = 7;
|
|
321
|
+
*/
|
|
322
|
+
strategy: Strategy;
|
|
323
|
+
/**
|
|
324
|
+
* A warm layer of the repository to stand on, between the template and the workspace's
|
|
325
|
+
* own layer: its dependencies are there already. The workspace must be at the commit the
|
|
326
|
+
* layer was sealed at, and be made by overlay.
|
|
327
|
+
*
|
|
328
|
+
* @generated from field: string warm = 8;
|
|
329
|
+
*/
|
|
330
|
+
warm: string;
|
|
331
|
+
};
|
|
332
|
+
/**
|
|
333
|
+
* Describes the message gitd.v1.PrepareRequest.
|
|
334
|
+
* Use `create(PrepareRequestSchema)` to create a new message.
|
|
335
|
+
*/
|
|
336
|
+
export declare const PrepareRequestSchema: GenMessage<PrepareRequest>;
|
|
337
|
+
/**
|
|
338
|
+
* The directories of an overlay workspace: the template below, read only, and the
|
|
339
|
+
* workspace's own layer above.
|
|
340
|
+
*
|
|
341
|
+
* @generated from message gitd.v1.Layers
|
|
342
|
+
*/
|
|
343
|
+
export type Layers = Message<"gitd.v1.Layers"> & {
|
|
344
|
+
/**
|
|
345
|
+
* @generated from field: string lower = 1;
|
|
346
|
+
*/
|
|
347
|
+
lower: string;
|
|
348
|
+
/**
|
|
349
|
+
* @generated from field: string upper = 2;
|
|
350
|
+
*/
|
|
351
|
+
upper: string;
|
|
352
|
+
/**
|
|
353
|
+
* @generated from field: string work = 3;
|
|
354
|
+
*/
|
|
355
|
+
work: string;
|
|
356
|
+
/**
|
|
357
|
+
* The warm layer between the template and the workspace's own, when it stands on one.
|
|
358
|
+
*
|
|
359
|
+
* @generated from field: string warm = 4;
|
|
360
|
+
*/
|
|
361
|
+
warm: string;
|
|
362
|
+
};
|
|
363
|
+
/**
|
|
364
|
+
* Describes the message gitd.v1.Layers.
|
|
365
|
+
* Use `create(LayersSchema)` to create a new message.
|
|
366
|
+
*/
|
|
367
|
+
export declare const LayersSchema: GenMessage<Layers>;
|
|
368
|
+
/**
|
|
369
|
+
* @generated from message gitd.v1.PrepareResponse
|
|
370
|
+
*/
|
|
371
|
+
export type PrepareResponse = Message<"gitd.v1.PrepareResponse"> & {
|
|
372
|
+
/**
|
|
373
|
+
* @generated from oneof gitd.v1.PrepareResponse.event
|
|
374
|
+
*/
|
|
375
|
+
event: {
|
|
376
|
+
/**
|
|
377
|
+
* @generated from field: gitd.v1.Progress progress = 1;
|
|
378
|
+
*/
|
|
379
|
+
value: Progress;
|
|
380
|
+
case: "progress";
|
|
381
|
+
} | {
|
|
382
|
+
/**
|
|
383
|
+
* @generated from field: gitd.v1.WorkspaceResult result = 2;
|
|
384
|
+
*/
|
|
385
|
+
value: WorkspaceResult;
|
|
386
|
+
case: "result";
|
|
387
|
+
} | {
|
|
388
|
+
case: undefined;
|
|
389
|
+
value?: undefined;
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
/**
|
|
393
|
+
* Describes the message gitd.v1.PrepareResponse.
|
|
394
|
+
* Use `create(PrepareResponseSchema)` to create a new message.
|
|
395
|
+
*/
|
|
396
|
+
export declare const PrepareResponseSchema: GenMessage<PrepareResponse>;
|
|
397
|
+
/**
|
|
398
|
+
* @generated from message gitd.v1.WorkspaceResult
|
|
399
|
+
*/
|
|
400
|
+
export type WorkspaceResult = Message<"gitd.v1.WorkspaceResult"> & {
|
|
401
|
+
/**
|
|
402
|
+
* @generated from field: string commit = 1;
|
|
403
|
+
*/
|
|
404
|
+
commit: string;
|
|
405
|
+
/**
|
|
406
|
+
* @generated from field: string branch = 2;
|
|
407
|
+
*/
|
|
408
|
+
branch: string;
|
|
409
|
+
/**
|
|
410
|
+
* @generated from field: repeated gitd.v1.PendingSubmodule pending_submodules = 3;
|
|
411
|
+
*/
|
|
412
|
+
pendingSubmodules: PendingSubmodule[];
|
|
413
|
+
/**
|
|
414
|
+
* How the workspace was made, and its layers when by overlay.
|
|
415
|
+
*
|
|
416
|
+
* @generated from field: gitd.v1.Strategy strategy = 4;
|
|
417
|
+
*/
|
|
418
|
+
strategy: Strategy;
|
|
419
|
+
/**
|
|
420
|
+
* @generated from field: gitd.v1.Layers layers = 5;
|
|
421
|
+
*/
|
|
422
|
+
layers?: Layers | undefined;
|
|
423
|
+
/**
|
|
424
|
+
* The patterns the repository's .gitattributes sends to git LFS, e.g. "*.onnx": those files
|
|
425
|
+
* are pointers in the workspace, as gitd does not download LFS objects. Empty when the
|
|
426
|
+
* repository uses no LFS.
|
|
427
|
+
*
|
|
428
|
+
* @generated from field: repeated string lfs_patterns = 6;
|
|
429
|
+
*/
|
|
430
|
+
lfsPatterns: string[];
|
|
431
|
+
};
|
|
432
|
+
/**
|
|
433
|
+
* Describes the message gitd.v1.WorkspaceResult.
|
|
434
|
+
* Use `create(WorkspaceResultSchema)` to create a new message.
|
|
435
|
+
*/
|
|
436
|
+
export declare const WorkspaceResultSchema: GenMessage<WorkspaceResult>;
|
|
437
|
+
/**
|
|
438
|
+
* @generated from message gitd.v1.UpdateRequest
|
|
439
|
+
*/
|
|
440
|
+
export type UpdateRequest = Message<"gitd.v1.UpdateRequest"> & {
|
|
441
|
+
/**
|
|
442
|
+
* @generated from field: string path = 1;
|
|
443
|
+
*/
|
|
444
|
+
path: string;
|
|
445
|
+
/**
|
|
446
|
+
* Empty means the branch the workspace follows, also after a rollback left it detached.
|
|
447
|
+
*
|
|
448
|
+
* @generated from field: string branch = 2;
|
|
449
|
+
*/
|
|
450
|
+
branch: string;
|
|
451
|
+
/**
|
|
452
|
+
* @generated from field: bool with_submodules = 3;
|
|
453
|
+
*/
|
|
454
|
+
withSubmodules: boolean;
|
|
455
|
+
/**
|
|
456
|
+
* @generated from field: repeated gitd.v1.Credential credentials = 4;
|
|
457
|
+
*/
|
|
458
|
+
credentials: Credential[];
|
|
459
|
+
};
|
|
460
|
+
/**
|
|
461
|
+
* Describes the message gitd.v1.UpdateRequest.
|
|
462
|
+
* Use `create(UpdateRequestSchema)` to create a new message.
|
|
463
|
+
*/
|
|
464
|
+
export declare const UpdateRequestSchema: GenMessage<UpdateRequest>;
|
|
465
|
+
/**
|
|
466
|
+
* @generated from message gitd.v1.UpdateResponse
|
|
467
|
+
*/
|
|
468
|
+
export type UpdateResponse = Message<"gitd.v1.UpdateResponse"> & {
|
|
469
|
+
/**
|
|
470
|
+
* @generated from oneof gitd.v1.UpdateResponse.event
|
|
471
|
+
*/
|
|
472
|
+
event: {
|
|
473
|
+
/**
|
|
474
|
+
* @generated from field: gitd.v1.Progress progress = 1;
|
|
475
|
+
*/
|
|
476
|
+
value: Progress;
|
|
477
|
+
case: "progress";
|
|
478
|
+
} | {
|
|
479
|
+
/**
|
|
480
|
+
* @generated from field: gitd.v1.WorkspaceResult result = 2;
|
|
481
|
+
*/
|
|
482
|
+
value: WorkspaceResult;
|
|
483
|
+
case: "result";
|
|
484
|
+
} | {
|
|
485
|
+
case: undefined;
|
|
486
|
+
value?: undefined;
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
/**
|
|
490
|
+
* Describes the message gitd.v1.UpdateResponse.
|
|
491
|
+
* Use `create(UpdateResponseSchema)` to create a new message.
|
|
492
|
+
*/
|
|
493
|
+
export declare const UpdateResponseSchema: GenMessage<UpdateResponse>;
|
|
494
|
+
/**
|
|
495
|
+
* @generated from message gitd.v1.CheckoutRequest
|
|
496
|
+
*/
|
|
497
|
+
export type CheckoutRequest = Message<"gitd.v1.CheckoutRequest"> & {
|
|
498
|
+
/**
|
|
499
|
+
* @generated from field: string path = 1;
|
|
500
|
+
*/
|
|
501
|
+
path: string;
|
|
502
|
+
/**
|
|
503
|
+
* Required: the commit to move to.
|
|
504
|
+
*
|
|
505
|
+
* @generated from field: string commit = 2;
|
|
506
|
+
*/
|
|
507
|
+
commit: string;
|
|
508
|
+
/**
|
|
509
|
+
* @generated from field: bool with_submodules = 3;
|
|
510
|
+
*/
|
|
511
|
+
withSubmodules: boolean;
|
|
512
|
+
/**
|
|
513
|
+
* @generated from field: repeated gitd.v1.Credential credentials = 4;
|
|
514
|
+
*/
|
|
515
|
+
credentials: Credential[];
|
|
516
|
+
};
|
|
517
|
+
/**
|
|
518
|
+
* Describes the message gitd.v1.CheckoutRequest.
|
|
519
|
+
* Use `create(CheckoutRequestSchema)` to create a new message.
|
|
520
|
+
*/
|
|
521
|
+
export declare const CheckoutRequestSchema: GenMessage<CheckoutRequest>;
|
|
522
|
+
/**
|
|
523
|
+
* @generated from message gitd.v1.CheckoutResponse
|
|
524
|
+
*/
|
|
525
|
+
export type CheckoutResponse = Message<"gitd.v1.CheckoutResponse"> & {
|
|
526
|
+
/**
|
|
527
|
+
* @generated from oneof gitd.v1.CheckoutResponse.event
|
|
528
|
+
*/
|
|
529
|
+
event: {
|
|
530
|
+
/**
|
|
531
|
+
* @generated from field: gitd.v1.Progress progress = 1;
|
|
532
|
+
*/
|
|
533
|
+
value: Progress;
|
|
534
|
+
case: "progress";
|
|
535
|
+
} | {
|
|
536
|
+
/**
|
|
537
|
+
* @generated from field: gitd.v1.WorkspaceResult result = 2;
|
|
538
|
+
*/
|
|
539
|
+
value: WorkspaceResult;
|
|
540
|
+
case: "result";
|
|
541
|
+
} | {
|
|
542
|
+
case: undefined;
|
|
543
|
+
value?: undefined;
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
/**
|
|
547
|
+
* Describes the message gitd.v1.CheckoutResponse.
|
|
548
|
+
* Use `create(CheckoutResponseSchema)` to create a new message.
|
|
549
|
+
*/
|
|
550
|
+
export declare const CheckoutResponseSchema: GenMessage<CheckoutResponse>;
|
|
551
|
+
/**
|
|
552
|
+
* @generated from message gitd.v1.SyncSubmodulesRequest
|
|
553
|
+
*/
|
|
554
|
+
export type SyncSubmodulesRequest = Message<"gitd.v1.SyncSubmodulesRequest"> & {
|
|
555
|
+
/**
|
|
556
|
+
* @generated from field: string path = 1;
|
|
557
|
+
*/
|
|
558
|
+
path: string;
|
|
559
|
+
/**
|
|
560
|
+
* Only this submodule, by repository URL. Empty means all of them.
|
|
561
|
+
*
|
|
562
|
+
* @generated from field: string only_url = 2;
|
|
563
|
+
*/
|
|
564
|
+
onlyUrl: string;
|
|
565
|
+
/**
|
|
566
|
+
* @generated from field: repeated gitd.v1.Credential credentials = 3;
|
|
567
|
+
*/
|
|
568
|
+
credentials: Credential[];
|
|
569
|
+
};
|
|
570
|
+
/**
|
|
571
|
+
* Describes the message gitd.v1.SyncSubmodulesRequest.
|
|
572
|
+
* Use `create(SyncSubmodulesRequestSchema)` to create a new message.
|
|
573
|
+
*/
|
|
574
|
+
export declare const SyncSubmodulesRequestSchema: GenMessage<SyncSubmodulesRequest>;
|
|
575
|
+
/**
|
|
576
|
+
* @generated from message gitd.v1.SyncSubmodulesResponse
|
|
577
|
+
*/
|
|
578
|
+
export type SyncSubmodulesResponse = Message<"gitd.v1.SyncSubmodulesResponse"> & {
|
|
579
|
+
/**
|
|
580
|
+
* @generated from oneof gitd.v1.SyncSubmodulesResponse.event
|
|
581
|
+
*/
|
|
582
|
+
event: {
|
|
583
|
+
/**
|
|
584
|
+
* @generated from field: gitd.v1.Progress progress = 1;
|
|
585
|
+
*/
|
|
586
|
+
value: Progress;
|
|
587
|
+
case: "progress";
|
|
588
|
+
} | {
|
|
589
|
+
/**
|
|
590
|
+
* @generated from field: gitd.v1.SyncSubmodulesResult result = 2;
|
|
591
|
+
*/
|
|
592
|
+
value: SyncSubmodulesResult;
|
|
593
|
+
case: "result";
|
|
594
|
+
} | {
|
|
595
|
+
case: undefined;
|
|
596
|
+
value?: undefined;
|
|
597
|
+
};
|
|
598
|
+
};
|
|
599
|
+
/**
|
|
600
|
+
* Describes the message gitd.v1.SyncSubmodulesResponse.
|
|
601
|
+
* Use `create(SyncSubmodulesResponseSchema)` to create a new message.
|
|
602
|
+
*/
|
|
603
|
+
export declare const SyncSubmodulesResponseSchema: GenMessage<SyncSubmodulesResponse>;
|
|
604
|
+
/**
|
|
605
|
+
* @generated from message gitd.v1.SyncSubmodulesResult
|
|
606
|
+
*/
|
|
607
|
+
export type SyncSubmodulesResult = Message<"gitd.v1.SyncSubmodulesResult"> & {
|
|
608
|
+
/**
|
|
609
|
+
* @generated from field: repeated gitd.v1.SubmoduleState submodules = 1;
|
|
610
|
+
*/
|
|
611
|
+
submodules: SubmoduleState[];
|
|
612
|
+
/**
|
|
613
|
+
* @generated from field: repeated gitd.v1.PendingSubmodule pending_submodules = 2;
|
|
614
|
+
*/
|
|
615
|
+
pendingSubmodules: PendingSubmodule[];
|
|
616
|
+
};
|
|
617
|
+
/**
|
|
618
|
+
* Describes the message gitd.v1.SyncSubmodulesResult.
|
|
619
|
+
* Use `create(SyncSubmodulesResultSchema)` to create a new message.
|
|
620
|
+
*/
|
|
621
|
+
export declare const SyncSubmodulesResultSchema: GenMessage<SyncSubmodulesResult>;
|
|
622
|
+
/**
|
|
623
|
+
* @generated from message gitd.v1.DescribeRequest
|
|
624
|
+
*/
|
|
625
|
+
export type DescribeRequest = Message<"gitd.v1.DescribeRequest"> & {
|
|
626
|
+
/**
|
|
627
|
+
* @generated from field: string path = 1;
|
|
628
|
+
*/
|
|
629
|
+
path: string;
|
|
630
|
+
};
|
|
631
|
+
/**
|
|
632
|
+
* Describes the message gitd.v1.DescribeRequest.
|
|
633
|
+
* Use `create(DescribeRequestSchema)` to create a new message.
|
|
634
|
+
*/
|
|
635
|
+
export declare const DescribeRequestSchema: GenMessage<DescribeRequest>;
|
|
636
|
+
/**
|
|
637
|
+
* @generated from message gitd.v1.DescribeResponse
|
|
638
|
+
*/
|
|
639
|
+
export type DescribeResponse = Message<"gitd.v1.DescribeResponse"> & {
|
|
640
|
+
/**
|
|
641
|
+
* @generated from field: string url = 1;
|
|
642
|
+
*/
|
|
643
|
+
url: string;
|
|
644
|
+
/**
|
|
645
|
+
* @generated from field: string commit = 2;
|
|
646
|
+
*/
|
|
647
|
+
commit: string;
|
|
648
|
+
/**
|
|
649
|
+
* @generated from field: string branch = 3;
|
|
650
|
+
*/
|
|
651
|
+
branch: string;
|
|
652
|
+
/**
|
|
653
|
+
* Whether something on disk differs from the commit, as somebody running git in it may
|
|
654
|
+
* leave it.
|
|
655
|
+
*
|
|
656
|
+
* @generated from field: bool modified = 4;
|
|
657
|
+
*/
|
|
658
|
+
modified: boolean;
|
|
659
|
+
/**
|
|
660
|
+
* @generated from field: repeated gitd.v1.SubmoduleState submodules = 5;
|
|
661
|
+
*/
|
|
662
|
+
submodules: SubmoduleState[];
|
|
663
|
+
/**
|
|
664
|
+
* How the workspace was made, and its layers when by overlay. Workspaces made before
|
|
665
|
+
* gitd said so read as STRATEGY_COPY.
|
|
666
|
+
*
|
|
667
|
+
* @generated from field: gitd.v1.Strategy strategy = 6;
|
|
668
|
+
*/
|
|
669
|
+
strategy: Strategy;
|
|
670
|
+
/**
|
|
671
|
+
* @generated from field: gitd.v1.Layers layers = 7;
|
|
672
|
+
*/
|
|
673
|
+
layers?: Layers | undefined;
|
|
674
|
+
/**
|
|
675
|
+
* The patterns its .gitattributes sends to git LFS, whose files are pointers here.
|
|
676
|
+
*
|
|
677
|
+
* @generated from field: repeated string lfs_patterns = 8;
|
|
678
|
+
*/
|
|
679
|
+
lfsPatterns: string[];
|
|
680
|
+
};
|
|
681
|
+
/**
|
|
682
|
+
* Describes the message gitd.v1.DescribeResponse.
|
|
683
|
+
* Use `create(DescribeResponseSchema)` to create a new message.
|
|
684
|
+
*/
|
|
685
|
+
export declare const DescribeResponseSchema: GenMessage<DescribeResponse>;
|
|
686
|
+
/**
|
|
687
|
+
* @generated from message gitd.v1.RemoveRequest
|
|
688
|
+
*/
|
|
689
|
+
export type RemoveRequest = Message<"gitd.v1.RemoveRequest"> & {
|
|
690
|
+
/**
|
|
691
|
+
* @generated from field: string path = 1;
|
|
692
|
+
*/
|
|
693
|
+
path: string;
|
|
694
|
+
};
|
|
695
|
+
/**
|
|
696
|
+
* Describes the message gitd.v1.RemoveRequest.
|
|
697
|
+
* Use `create(RemoveRequestSchema)` to create a new message.
|
|
698
|
+
*/
|
|
699
|
+
export declare const RemoveRequestSchema: GenMessage<RemoveRequest>;
|
|
700
|
+
/**
|
|
701
|
+
* @generated from message gitd.v1.RemoveResponse
|
|
702
|
+
*/
|
|
703
|
+
export type RemoveResponse = Message<"gitd.v1.RemoveResponse"> & {};
|
|
704
|
+
/**
|
|
705
|
+
* Describes the message gitd.v1.RemoveResponse.
|
|
706
|
+
* Use `create(RemoveResponseSchema)` to create a new message.
|
|
707
|
+
*/
|
|
708
|
+
export declare const RemoveResponseSchema: GenMessage<RemoveResponse>;
|
|
709
|
+
/**
|
|
710
|
+
* @generated from message gitd.v1.SealRequest
|
|
711
|
+
*/
|
|
712
|
+
export type SealRequest = Message<"gitd.v1.SealRequest"> & {
|
|
713
|
+
/**
|
|
714
|
+
* An overlay workspace, not itself standing on a warm layer.
|
|
715
|
+
*
|
|
716
|
+
* @generated from field: string path = 1;
|
|
717
|
+
*/
|
|
718
|
+
path: string;
|
|
719
|
+
/**
|
|
720
|
+
* What to call the layer: lowercase letters, digits, dots, dashes and underscores, 64 at
|
|
721
|
+
* most. Sealing a name again replaces the layer, once no workspace stands on it.
|
|
722
|
+
*
|
|
723
|
+
* @generated from field: string name = 2;
|
|
724
|
+
*/
|
|
725
|
+
name: string;
|
|
726
|
+
};
|
|
727
|
+
/**
|
|
728
|
+
* Describes the message gitd.v1.SealRequest.
|
|
729
|
+
* Use `create(SealRequestSchema)` to create a new message.
|
|
730
|
+
*/
|
|
731
|
+
export declare const SealRequestSchema: GenMessage<SealRequest>;
|
|
732
|
+
/**
|
|
733
|
+
* @generated from message gitd.v1.SealResponse
|
|
734
|
+
*/
|
|
735
|
+
export type SealResponse = Message<"gitd.v1.SealResponse"> & {
|
|
736
|
+
/**
|
|
737
|
+
* @generated from field: gitd.v1.WarmLayer warm = 1;
|
|
738
|
+
*/
|
|
739
|
+
warm?: WarmLayer | undefined;
|
|
740
|
+
};
|
|
741
|
+
/**
|
|
742
|
+
* Describes the message gitd.v1.SealResponse.
|
|
743
|
+
* Use `create(SealResponseSchema)` to create a new message.
|
|
744
|
+
*/
|
|
745
|
+
export declare const SealResponseSchema: GenMessage<SealResponse>;
|
|
746
|
+
/**
|
|
747
|
+
* A layer sealed from a workspace, that later workspaces stand on.
|
|
748
|
+
*
|
|
749
|
+
* @generated from message gitd.v1.WarmLayer
|
|
750
|
+
*/
|
|
751
|
+
export type WarmLayer = Message<"gitd.v1.WarmLayer"> & {
|
|
752
|
+
/**
|
|
753
|
+
* @generated from field: string url = 1;
|
|
754
|
+
*/
|
|
755
|
+
url: string;
|
|
756
|
+
/**
|
|
757
|
+
* @generated from field: string name = 2;
|
|
758
|
+
*/
|
|
759
|
+
name: string;
|
|
760
|
+
/**
|
|
761
|
+
* The commit it was sealed at: workspaces stand on it at that commit only.
|
|
762
|
+
*
|
|
763
|
+
* @generated from field: string commit = 3;
|
|
764
|
+
*/
|
|
765
|
+
commit: string;
|
|
766
|
+
/**
|
|
767
|
+
* When it was sealed, in seconds since the epoch, and from which workspace.
|
|
768
|
+
*
|
|
769
|
+
* @generated from field: int64 sealed_at = 4;
|
|
770
|
+
*/
|
|
771
|
+
sealedAt: bigint;
|
|
772
|
+
/**
|
|
773
|
+
* @generated from field: string sealed_from = 5;
|
|
774
|
+
*/
|
|
775
|
+
sealedFrom: string;
|
|
776
|
+
/**
|
|
777
|
+
* How many files it changes that git does not ignore, e.g. a lock file rewritten.
|
|
778
|
+
*
|
|
779
|
+
* @generated from field: int32 changed_files = 6;
|
|
780
|
+
*/
|
|
781
|
+
changedFiles: number;
|
|
782
|
+
/**
|
|
783
|
+
* How many workspaces stand on it now.
|
|
784
|
+
*
|
|
785
|
+
* @generated from field: int32 users = 7;
|
|
786
|
+
*/
|
|
787
|
+
users: number;
|
|
788
|
+
};
|
|
789
|
+
/**
|
|
790
|
+
* Describes the message gitd.v1.WarmLayer.
|
|
791
|
+
* Use `create(WarmLayerSchema)` to create a new message.
|
|
792
|
+
*/
|
|
793
|
+
export declare const WarmLayerSchema: GenMessage<WarmLayer>;
|
|
794
|
+
/**
|
|
795
|
+
* @generated from message gitd.v1.ListWarmRequest
|
|
796
|
+
*/
|
|
797
|
+
export type ListWarmRequest = Message<"gitd.v1.ListWarmRequest"> & {
|
|
798
|
+
/**
|
|
799
|
+
* @generated from field: string url = 1;
|
|
800
|
+
*/
|
|
801
|
+
url: string;
|
|
802
|
+
};
|
|
803
|
+
/**
|
|
804
|
+
* Describes the message gitd.v1.ListWarmRequest.
|
|
805
|
+
* Use `create(ListWarmRequestSchema)` to create a new message.
|
|
806
|
+
*/
|
|
807
|
+
export declare const ListWarmRequestSchema: GenMessage<ListWarmRequest>;
|
|
808
|
+
/**
|
|
809
|
+
* @generated from message gitd.v1.ListWarmResponse
|
|
810
|
+
*/
|
|
811
|
+
export type ListWarmResponse = Message<"gitd.v1.ListWarmResponse"> & {
|
|
812
|
+
/**
|
|
813
|
+
* @generated from field: repeated gitd.v1.WarmLayer warm = 1;
|
|
814
|
+
*/
|
|
815
|
+
warm: WarmLayer[];
|
|
816
|
+
};
|
|
817
|
+
/**
|
|
818
|
+
* Describes the message gitd.v1.ListWarmResponse.
|
|
819
|
+
* Use `create(ListWarmResponseSchema)` to create a new message.
|
|
820
|
+
*/
|
|
821
|
+
export declare const ListWarmResponseSchema: GenMessage<ListWarmResponse>;
|
|
822
|
+
/**
|
|
823
|
+
* @generated from message gitd.v1.AdoptRequest
|
|
824
|
+
*/
|
|
825
|
+
export type AdoptRequest = Message<"gitd.v1.AdoptRequest"> & {
|
|
826
|
+
/**
|
|
827
|
+
* @generated from field: string path = 1;
|
|
828
|
+
*/
|
|
829
|
+
path: string;
|
|
830
|
+
};
|
|
831
|
+
/**
|
|
832
|
+
* Describes the message gitd.v1.AdoptRequest.
|
|
833
|
+
* Use `create(AdoptRequestSchema)` to create a new message.
|
|
834
|
+
*/
|
|
835
|
+
export declare const AdoptRequestSchema: GenMessage<AdoptRequest>;
|
|
836
|
+
/**
|
|
837
|
+
* @generated from message gitd.v1.AdoptResponse
|
|
838
|
+
*/
|
|
839
|
+
export type AdoptResponse = Message<"gitd.v1.AdoptResponse"> & {
|
|
840
|
+
/**
|
|
841
|
+
* @generated from oneof gitd.v1.AdoptResponse.event
|
|
842
|
+
*/
|
|
843
|
+
event: {
|
|
844
|
+
/**
|
|
845
|
+
* @generated from field: gitd.v1.Progress progress = 1;
|
|
846
|
+
*/
|
|
847
|
+
value: Progress;
|
|
848
|
+
case: "progress";
|
|
849
|
+
} | {
|
|
850
|
+
/**
|
|
851
|
+
* @generated from field: gitd.v1.AdoptResult result = 2;
|
|
852
|
+
*/
|
|
853
|
+
value: AdoptResult;
|
|
854
|
+
case: "result";
|
|
855
|
+
} | {
|
|
856
|
+
case: undefined;
|
|
857
|
+
value?: undefined;
|
|
858
|
+
};
|
|
859
|
+
};
|
|
860
|
+
/**
|
|
861
|
+
* Describes the message gitd.v1.AdoptResponse.
|
|
862
|
+
* Use `create(AdoptResponseSchema)` to create a new message.
|
|
863
|
+
*/
|
|
864
|
+
export declare const AdoptResponseSchema: GenMessage<AdoptResponse>;
|
|
865
|
+
/**
|
|
866
|
+
* @generated from message gitd.v1.AdoptResult
|
|
867
|
+
*/
|
|
868
|
+
export type AdoptResult = Message<"gitd.v1.AdoptResult"> & {
|
|
869
|
+
/**
|
|
870
|
+
* Disk the workspace no longer holds because its pool does.
|
|
871
|
+
*
|
|
872
|
+
* @generated from field: int64 bytes_released = 1;
|
|
873
|
+
*/
|
|
874
|
+
bytesReleased: bigint;
|
|
875
|
+
};
|
|
876
|
+
/**
|
|
877
|
+
* Describes the message gitd.v1.AdoptResult.
|
|
878
|
+
* Use `create(AdoptResultSchema)` to create a new message.
|
|
879
|
+
*/
|
|
880
|
+
export declare const AdoptResultSchema: GenMessage<AdoptResult>;
|
|
881
|
+
/**
|
|
882
|
+
* @generated from message gitd.v1.PublishRequest
|
|
883
|
+
*/
|
|
884
|
+
export type PublishRequest = Message<"gitd.v1.PublishRequest"> & {
|
|
885
|
+
/**
|
|
886
|
+
* @generated from field: string path = 1;
|
|
887
|
+
*/
|
|
888
|
+
path: string;
|
|
889
|
+
/**
|
|
890
|
+
* A branch that does not exist yet: nothing is ever pushed over one that does. It must
|
|
891
|
+
* start with `[publish] branch_prefix`, when the configuration sets one.
|
|
892
|
+
*
|
|
893
|
+
* @generated from field: string branch = 2;
|
|
894
|
+
*/
|
|
895
|
+
branch: string;
|
|
896
|
+
/**
|
|
897
|
+
* @generated from field: repeated gitd.v1.Credential credentials = 3;
|
|
898
|
+
*/
|
|
899
|
+
credentials: Credential[];
|
|
900
|
+
/**
|
|
901
|
+
* Who asked for the work, as their account on the git host, e.g. `josue`: written in the
|
|
902
|
+
* pull request and the audit log, and asked to review when the settings say so. gitd
|
|
903
|
+
* records it as told.
|
|
904
|
+
*
|
|
905
|
+
* @generated from field: string requested_by = 4;
|
|
906
|
+
*/
|
|
907
|
+
requestedBy: string;
|
|
908
|
+
/**
|
|
909
|
+
* This publish's pull request, beyond what the settings say.
|
|
910
|
+
*
|
|
911
|
+
* @generated from field: gitd.v1.PullRequestOptions pull_request = 5;
|
|
912
|
+
*/
|
|
913
|
+
pullRequest?: PullRequestOptions | undefined;
|
|
914
|
+
/**
|
|
915
|
+
* Where the work came from, written in the pull request and the audit log as told.
|
|
916
|
+
*
|
|
917
|
+
* @generated from field: gitd.v1.Provenance provenance = 6;
|
|
918
|
+
*/
|
|
919
|
+
provenance?: Provenance | undefined;
|
|
920
|
+
};
|
|
921
|
+
/**
|
|
922
|
+
* Describes the message gitd.v1.PublishRequest.
|
|
923
|
+
* Use `create(PublishRequestSchema)` to create a new message.
|
|
924
|
+
*/
|
|
925
|
+
export declare const PublishRequestSchema: GenMessage<PublishRequest>;
|
|
926
|
+
/**
|
|
927
|
+
* Where a publish's work came from, as the platform says: gitd records it and never checks
|
|
928
|
+
* it, nor writes it into a commit. Each field is one line of at most 200 characters, never
|
|
929
|
+
* a secret; task_url is an https address.
|
|
930
|
+
*
|
|
931
|
+
* @generated from message gitd.v1.Provenance
|
|
932
|
+
*/
|
|
933
|
+
export type Provenance = Message<"gitd.v1.Provenance"> & {
|
|
934
|
+
/**
|
|
935
|
+
* The agent, e.g. `claude-code` or `openhands`.
|
|
936
|
+
*
|
|
937
|
+
* @generated from field: string agent = 1;
|
|
938
|
+
*/
|
|
939
|
+
agent: string;
|
|
940
|
+
/**
|
|
941
|
+
* The model it ran on.
|
|
942
|
+
*
|
|
943
|
+
* @generated from field: string model = 2;
|
|
944
|
+
*/
|
|
945
|
+
model: string;
|
|
946
|
+
/**
|
|
947
|
+
* The platform's name for the session or run.
|
|
948
|
+
*
|
|
949
|
+
* @generated from field: string session = 3;
|
|
950
|
+
*/
|
|
951
|
+
session: string;
|
|
952
|
+
/**
|
|
953
|
+
* Where the task is: an issue, a ticket.
|
|
954
|
+
*
|
|
955
|
+
* @generated from field: string task_url = 4;
|
|
956
|
+
*/
|
|
957
|
+
taskUrl: string;
|
|
958
|
+
};
|
|
959
|
+
/**
|
|
960
|
+
* Describes the message gitd.v1.Provenance.
|
|
961
|
+
* Use `create(ProvenanceSchema)` to create a new message.
|
|
962
|
+
*/
|
|
963
|
+
export declare const ProvenanceSchema: GenMessage<Provenance>;
|
|
964
|
+
/**
|
|
965
|
+
* A publish's own say on its pull request. Unset fields take the settings'.
|
|
966
|
+
*
|
|
967
|
+
* @generated from message gitd.v1.PullRequestOptions
|
|
968
|
+
*/
|
|
969
|
+
export type PullRequestOptions = Message<"gitd.v1.PullRequestOptions"> & {
|
|
970
|
+
/**
|
|
971
|
+
* Open one even when the settings open them only when asked.
|
|
972
|
+
*
|
|
973
|
+
* @generated from field: bool open = 1;
|
|
974
|
+
*/
|
|
975
|
+
open: boolean;
|
|
976
|
+
/**
|
|
977
|
+
* Empty: the subject of the newest commit.
|
|
978
|
+
*
|
|
979
|
+
* @generated from field: string title = 2;
|
|
980
|
+
*/
|
|
981
|
+
title: string;
|
|
982
|
+
/**
|
|
983
|
+
* The platform's text; gitd's account of what it checked follows it.
|
|
984
|
+
*
|
|
985
|
+
* @generated from field: string body = 3;
|
|
986
|
+
*/
|
|
987
|
+
body: string;
|
|
988
|
+
/**
|
|
989
|
+
* The branch it asks to merge into. Empty: the repository's default branch.
|
|
990
|
+
*
|
|
991
|
+
* @generated from field: string base = 4;
|
|
992
|
+
*/
|
|
993
|
+
base: string;
|
|
994
|
+
/**
|
|
995
|
+
* @generated from field: optional bool draft = 5;
|
|
996
|
+
*/
|
|
997
|
+
draft?: boolean | undefined;
|
|
998
|
+
};
|
|
999
|
+
/**
|
|
1000
|
+
* Describes the message gitd.v1.PullRequestOptions.
|
|
1001
|
+
* Use `create(PullRequestOptionsSchema)` to create a new message.
|
|
1002
|
+
*/
|
|
1003
|
+
export declare const PullRequestOptionsSchema: GenMessage<PullRequestOptions>;
|
|
1004
|
+
/**
|
|
1005
|
+
* A pull request gitd opened.
|
|
1006
|
+
*
|
|
1007
|
+
* @generated from message gitd.v1.OpenedPullRequest
|
|
1008
|
+
*/
|
|
1009
|
+
export type OpenedPullRequest = Message<"gitd.v1.OpenedPullRequest"> & {
|
|
1010
|
+
/**
|
|
1011
|
+
* @generated from field: string url = 1;
|
|
1012
|
+
*/
|
|
1013
|
+
url: string;
|
|
1014
|
+
/**
|
|
1015
|
+
* @generated from field: int64 number = 2;
|
|
1016
|
+
*/
|
|
1017
|
+
number: bigint;
|
|
1018
|
+
};
|
|
1019
|
+
/**
|
|
1020
|
+
* Describes the message gitd.v1.OpenedPullRequest.
|
|
1021
|
+
* Use `create(OpenedPullRequestSchema)` to create a new message.
|
|
1022
|
+
*/
|
|
1023
|
+
export declare const OpenedPullRequestSchema: GenMessage<OpenedPullRequest>;
|
|
1024
|
+
/**
|
|
1025
|
+
* @generated from message gitd.v1.PublishedRepository
|
|
1026
|
+
*/
|
|
1027
|
+
export type PublishedRepository = Message<"gitd.v1.PublishedRepository"> & {
|
|
1028
|
+
/**
|
|
1029
|
+
* @generated from field: string url = 1;
|
|
1030
|
+
*/
|
|
1031
|
+
url: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* Where it is in the workspace: empty for the workspace's own repository.
|
|
1034
|
+
*
|
|
1035
|
+
* @generated from field: string path = 2;
|
|
1036
|
+
*/
|
|
1037
|
+
path: string;
|
|
1038
|
+
/**
|
|
1039
|
+
* @generated from field: string commit = 3;
|
|
1040
|
+
*/
|
|
1041
|
+
commit: string;
|
|
1042
|
+
/**
|
|
1043
|
+
* The subjects of the commits it brings, newest first: what a pull request is about.
|
|
1044
|
+
*
|
|
1045
|
+
* @generated from field: repeated string subjects = 4;
|
|
1046
|
+
*/
|
|
1047
|
+
subjects: string[];
|
|
1048
|
+
};
|
|
1049
|
+
/**
|
|
1050
|
+
* Describes the message gitd.v1.PublishedRepository.
|
|
1051
|
+
* Use `create(PublishedRepositorySchema)` to create a new message.
|
|
1052
|
+
*/
|
|
1053
|
+
export declare const PublishedRepositorySchema: GenMessage<PublishedRepository>;
|
|
1054
|
+
/**
|
|
1055
|
+
* @generated from message gitd.v1.PublishResponse
|
|
1056
|
+
*/
|
|
1057
|
+
export type PublishResponse = Message<"gitd.v1.PublishResponse"> & {
|
|
1058
|
+
/**
|
|
1059
|
+
* @generated from field: string branch = 1;
|
|
1060
|
+
*/
|
|
1061
|
+
branch: string;
|
|
1062
|
+
/**
|
|
1063
|
+
* @generated from field: gitd.v1.PublishedRepository repository = 2;
|
|
1064
|
+
*/
|
|
1065
|
+
repository?: PublishedRepository | undefined;
|
|
1066
|
+
/**
|
|
1067
|
+
* @generated from field: repeated gitd.v1.PublishedRepository submodules = 3;
|
|
1068
|
+
*/
|
|
1069
|
+
submodules: PublishedRepository[];
|
|
1070
|
+
/**
|
|
1071
|
+
* The pull request opened, when one was.
|
|
1072
|
+
*
|
|
1073
|
+
* @generated from field: gitd.v1.OpenedPullRequest pull_request = 4;
|
|
1074
|
+
*/
|
|
1075
|
+
pullRequest?: OpenedPullRequest | undefined;
|
|
1076
|
+
/**
|
|
1077
|
+
* Why the pull request could not be opened, when it was to be. The branch is published
|
|
1078
|
+
* all the same.
|
|
1079
|
+
*
|
|
1080
|
+
* @generated from field: gitd.v1.GitFailure pull_request_failure = 5;
|
|
1081
|
+
*/
|
|
1082
|
+
pullRequestFailure?: GitFailure | undefined;
|
|
1083
|
+
};
|
|
1084
|
+
/**
|
|
1085
|
+
* Describes the message gitd.v1.PublishResponse.
|
|
1086
|
+
* Use `create(PublishResponseSchema)` to create a new message.
|
|
1087
|
+
*/
|
|
1088
|
+
export declare const PublishResponseSchema: GenMessage<PublishResponse>;
|
|
1089
|
+
/**
|
|
1090
|
+
* @generated from message gitd.v1.ChangesRequest
|
|
1091
|
+
*/
|
|
1092
|
+
export type ChangesRequest = Message<"gitd.v1.ChangesRequest"> & {
|
|
1093
|
+
/**
|
|
1094
|
+
* @generated from field: string path = 1;
|
|
1095
|
+
*/
|
|
1096
|
+
path: string;
|
|
1097
|
+
/**
|
|
1098
|
+
* Files the base commit's .gitignore ignores, such as node_modules, are left out unless
|
|
1099
|
+
* asked for.
|
|
1100
|
+
*
|
|
1101
|
+
* @generated from field: bool include_ignored = 2;
|
|
1102
|
+
*/
|
|
1103
|
+
includeIgnored: boolean;
|
|
1104
|
+
};
|
|
1105
|
+
/**
|
|
1106
|
+
* Describes the message gitd.v1.ChangesRequest.
|
|
1107
|
+
* Use `create(ChangesRequestSchema)` to create a new message.
|
|
1108
|
+
*/
|
|
1109
|
+
export declare const ChangesRequestSchema: GenMessage<ChangesRequest>;
|
|
1110
|
+
/**
|
|
1111
|
+
* @generated from message gitd.v1.ChangedFile
|
|
1112
|
+
*/
|
|
1113
|
+
export type ChangedFile = Message<"gitd.v1.ChangedFile"> & {
|
|
1114
|
+
/**
|
|
1115
|
+
* Relative to the workspace, with `/`.
|
|
1116
|
+
*
|
|
1117
|
+
* @generated from field: string path = 1;
|
|
1118
|
+
*/
|
|
1119
|
+
path: string;
|
|
1120
|
+
/**
|
|
1121
|
+
* @generated from field: gitd.v1.ChangedFile.Kind kind = 2;
|
|
1122
|
+
*/
|
|
1123
|
+
kind: ChangedFile_Kind;
|
|
1124
|
+
/**
|
|
1125
|
+
* @generated from field: int32 added_lines = 3;
|
|
1126
|
+
*/
|
|
1127
|
+
addedLines: number;
|
|
1128
|
+
/**
|
|
1129
|
+
* @generated from field: int32 removed_lines = 4;
|
|
1130
|
+
*/
|
|
1131
|
+
removedLines: number;
|
|
1132
|
+
/**
|
|
1133
|
+
* A binary file, whose lines are not counted.
|
|
1134
|
+
*
|
|
1135
|
+
* @generated from field: bool binary = 5;
|
|
1136
|
+
*/
|
|
1137
|
+
binary: boolean;
|
|
1138
|
+
};
|
|
1139
|
+
/**
|
|
1140
|
+
* Describes the message gitd.v1.ChangedFile.
|
|
1141
|
+
* Use `create(ChangedFileSchema)` to create a new message.
|
|
1142
|
+
*/
|
|
1143
|
+
export declare const ChangedFileSchema: GenMessage<ChangedFile>;
|
|
1144
|
+
/**
|
|
1145
|
+
* @generated from enum gitd.v1.ChangedFile.Kind
|
|
1146
|
+
*/
|
|
1147
|
+
export declare enum ChangedFile_Kind {
|
|
1148
|
+
/**
|
|
1149
|
+
* @generated from enum value: KIND_UNSPECIFIED = 0;
|
|
1150
|
+
*/
|
|
1151
|
+
UNSPECIFIED = 0,
|
|
1152
|
+
/**
|
|
1153
|
+
* @generated from enum value: KIND_ADDED = 1;
|
|
1154
|
+
*/
|
|
1155
|
+
ADDED = 1,
|
|
1156
|
+
/**
|
|
1157
|
+
* @generated from enum value: KIND_MODIFIED = 2;
|
|
1158
|
+
*/
|
|
1159
|
+
MODIFIED = 2,
|
|
1160
|
+
/**
|
|
1161
|
+
* @generated from enum value: KIND_DELETED = 3;
|
|
1162
|
+
*/
|
|
1163
|
+
DELETED = 3
|
|
1164
|
+
}
|
|
1165
|
+
/**
|
|
1166
|
+
* Describes the enum gitd.v1.ChangedFile.Kind.
|
|
1167
|
+
*/
|
|
1168
|
+
export declare const ChangedFile_KindSchema: GenEnum<ChangedFile_Kind>;
|
|
1169
|
+
/**
|
|
1170
|
+
* @generated from message gitd.v1.ChangesResponse
|
|
1171
|
+
*/
|
|
1172
|
+
export type ChangesResponse = Message<"gitd.v1.ChangesResponse"> & {
|
|
1173
|
+
/**
|
|
1174
|
+
* The commit gitd last put the workspace on, which the changes are read against.
|
|
1175
|
+
*
|
|
1176
|
+
* @generated from field: string base = 1;
|
|
1177
|
+
*/
|
|
1178
|
+
base: string;
|
|
1179
|
+
/**
|
|
1180
|
+
* @generated from field: repeated gitd.v1.ChangedFile files = 2;
|
|
1181
|
+
*/
|
|
1182
|
+
files: ChangedFile[];
|
|
1183
|
+
/**
|
|
1184
|
+
* Read from the agent's own layer, with no git run in the workspace; otherwise read by
|
|
1185
|
+
* git in the workspace, which its sandbox should not be writing meanwhile.
|
|
1186
|
+
*
|
|
1187
|
+
* @generated from field: bool from_layer = 3;
|
|
1188
|
+
*/
|
|
1189
|
+
fromLayer: boolean;
|
|
1190
|
+
};
|
|
1191
|
+
/**
|
|
1192
|
+
* Describes the message gitd.v1.ChangesResponse.
|
|
1193
|
+
* Use `create(ChangesResponseSchema)` to create a new message.
|
|
1194
|
+
*/
|
|
1195
|
+
export declare const ChangesResponseSchema: GenMessage<ChangesResponse>;
|
|
1196
|
+
/**
|
|
1197
|
+
* @generated from message gitd.v1.DiffRequest
|
|
1198
|
+
*/
|
|
1199
|
+
export type DiffRequest = Message<"gitd.v1.DiffRequest"> & {
|
|
1200
|
+
/**
|
|
1201
|
+
* @generated from field: string path = 1;
|
|
1202
|
+
*/
|
|
1203
|
+
path: string;
|
|
1204
|
+
/**
|
|
1205
|
+
* Only these files, relative to the workspace; all the changes when empty.
|
|
1206
|
+
*
|
|
1207
|
+
* @generated from field: repeated string files = 2;
|
|
1208
|
+
*/
|
|
1209
|
+
files: string[];
|
|
1210
|
+
/**
|
|
1211
|
+
* At most this many bytes of diff: 512 KiB when unset, never more than 8 MiB.
|
|
1212
|
+
*
|
|
1213
|
+
* @generated from field: int64 max_bytes = 3;
|
|
1214
|
+
*/
|
|
1215
|
+
maxBytes: bigint;
|
|
1216
|
+
/**
|
|
1217
|
+
* @generated from field: bool include_ignored = 4;
|
|
1218
|
+
*/
|
|
1219
|
+
includeIgnored: boolean;
|
|
1220
|
+
};
|
|
1221
|
+
/**
|
|
1222
|
+
* Describes the message gitd.v1.DiffRequest.
|
|
1223
|
+
* Use `create(DiffRequestSchema)` to create a new message.
|
|
1224
|
+
*/
|
|
1225
|
+
export declare const DiffRequestSchema: GenMessage<DiffRequest>;
|
|
1226
|
+
/**
|
|
1227
|
+
* @generated from message gitd.v1.DiffResponse
|
|
1228
|
+
*/
|
|
1229
|
+
export type DiffResponse = Message<"gitd.v1.DiffResponse"> & {
|
|
1230
|
+
/**
|
|
1231
|
+
* @generated from field: string base = 1;
|
|
1232
|
+
*/
|
|
1233
|
+
base: string;
|
|
1234
|
+
/**
|
|
1235
|
+
* The unified diff, with `a/` and `b/` before each path, as git writes it.
|
|
1236
|
+
*
|
|
1237
|
+
* @generated from field: string diff = 2;
|
|
1238
|
+
*/
|
|
1239
|
+
diff: string;
|
|
1240
|
+
/**
|
|
1241
|
+
* Cut short at max_bytes.
|
|
1242
|
+
*
|
|
1243
|
+
* @generated from field: bool truncated = 3;
|
|
1244
|
+
*/
|
|
1245
|
+
truncated: boolean;
|
|
1246
|
+
};
|
|
1247
|
+
/**
|
|
1248
|
+
* Describes the message gitd.v1.DiffResponse.
|
|
1249
|
+
* Use `create(DiffResponseSchema)` to create a new message.
|
|
1250
|
+
*/
|
|
1251
|
+
export declare const DiffResponseSchema: GenMessage<DiffResponse>;
|
|
1252
|
+
/**
|
|
1253
|
+
* One work to compare: a workspace, by its path, or a branch gitd published — or any
|
|
1254
|
+
* branch its pool holds — by its name.
|
|
1255
|
+
*
|
|
1256
|
+
* @generated from message gitd.v1.Side
|
|
1257
|
+
*/
|
|
1258
|
+
export type Side = Message<"gitd.v1.Side"> & {
|
|
1259
|
+
/**
|
|
1260
|
+
* @generated from oneof gitd.v1.Side.of
|
|
1261
|
+
*/
|
|
1262
|
+
of: {
|
|
1263
|
+
/**
|
|
1264
|
+
* @generated from field: string workspace = 1;
|
|
1265
|
+
*/
|
|
1266
|
+
value: string;
|
|
1267
|
+
case: "workspace";
|
|
1268
|
+
} | {
|
|
1269
|
+
/**
|
|
1270
|
+
* @generated from field: string branch = 2;
|
|
1271
|
+
*/
|
|
1272
|
+
value: string;
|
|
1273
|
+
case: "branch";
|
|
1274
|
+
} | {
|
|
1275
|
+
case: undefined;
|
|
1276
|
+
value?: undefined;
|
|
1277
|
+
};
|
|
1278
|
+
};
|
|
1279
|
+
/**
|
|
1280
|
+
* Describes the message gitd.v1.Side.
|
|
1281
|
+
* Use `create(SideSchema)` to create a new message.
|
|
1282
|
+
*/
|
|
1283
|
+
export declare const SideSchema: GenMessage<Side>;
|
|
1284
|
+
/**
|
|
1285
|
+
* @generated from message gitd.v1.CompareRequest
|
|
1286
|
+
*/
|
|
1287
|
+
export type CompareRequest = Message<"gitd.v1.CompareRequest"> & {
|
|
1288
|
+
/**
|
|
1289
|
+
* @generated from field: gitd.v1.Side first = 1;
|
|
1290
|
+
*/
|
|
1291
|
+
first?: Side | undefined;
|
|
1292
|
+
/**
|
|
1293
|
+
* @generated from field: gitd.v1.Side second = 2;
|
|
1294
|
+
*/
|
|
1295
|
+
second?: Side | undefined;
|
|
1296
|
+
/**
|
|
1297
|
+
* The repository, when both sides are branches; a workspace says its own, and every side
|
|
1298
|
+
* must be of the same repository.
|
|
1299
|
+
*
|
|
1300
|
+
* @generated from field: string url = 3;
|
|
1301
|
+
*/
|
|
1302
|
+
url: string;
|
|
1303
|
+
/**
|
|
1304
|
+
* @generated from field: bool include_ignored = 4;
|
|
1305
|
+
*/
|
|
1306
|
+
includeIgnored: boolean;
|
|
1307
|
+
/**
|
|
1308
|
+
* The unified diff too, from first to second, cut short at max_bytes (512 KiB unless
|
|
1309
|
+
* said, never more than 8 MiB).
|
|
1310
|
+
*
|
|
1311
|
+
* @generated from field: bool with_diff = 5;
|
|
1312
|
+
*/
|
|
1313
|
+
withDiff: boolean;
|
|
1314
|
+
/**
|
|
1315
|
+
* @generated from field: int64 max_bytes = 6;
|
|
1316
|
+
*/
|
|
1317
|
+
maxBytes: bigint;
|
|
1318
|
+
};
|
|
1319
|
+
/**
|
|
1320
|
+
* Describes the message gitd.v1.CompareRequest.
|
|
1321
|
+
* Use `create(CompareRequestSchema)` to create a new message.
|
|
1322
|
+
*/
|
|
1323
|
+
export declare const CompareRequestSchema: GenMessage<CompareRequest>;
|
|
1324
|
+
/**
|
|
1325
|
+
* @generated from message gitd.v1.CompareResponse
|
|
1326
|
+
*/
|
|
1327
|
+
export type CompareResponse = Message<"gitd.v1.CompareResponse"> & {
|
|
1328
|
+
/**
|
|
1329
|
+
* From first to second: added is in second only, deleted in first only.
|
|
1330
|
+
*
|
|
1331
|
+
* @generated from field: repeated gitd.v1.ChangedFile files = 1;
|
|
1332
|
+
*/
|
|
1333
|
+
files: ChangedFile[];
|
|
1334
|
+
/**
|
|
1335
|
+
* @generated from field: string diff = 2;
|
|
1336
|
+
*/
|
|
1337
|
+
diff: string;
|
|
1338
|
+
/**
|
|
1339
|
+
* @generated from field: bool truncated = 3;
|
|
1340
|
+
*/
|
|
1341
|
+
truncated: boolean;
|
|
1342
|
+
};
|
|
1343
|
+
/**
|
|
1344
|
+
* Describes the message gitd.v1.CompareResponse.
|
|
1345
|
+
* Use `create(CompareResponseSchema)` to create a new message.
|
|
1346
|
+
*/
|
|
1347
|
+
export declare const CompareResponseSchema: GenMessage<CompareResponse>;
|
|
1348
|
+
/**
|
|
1349
|
+
* @generated from message gitd.v1.ConflictsRequest
|
|
1350
|
+
*/
|
|
1351
|
+
export type ConflictsRequest = Message<"gitd.v1.ConflictsRequest"> & {
|
|
1352
|
+
/**
|
|
1353
|
+
* At least two; a workspace stands for what it committed, which gitd brings into the pool
|
|
1354
|
+
* as publishing does, so its sandbox should not be writing meanwhile.
|
|
1355
|
+
*
|
|
1356
|
+
* @generated from field: repeated gitd.v1.Side sides = 1;
|
|
1357
|
+
*/
|
|
1358
|
+
sides: Side[];
|
|
1359
|
+
/**
|
|
1360
|
+
* @generated from field: string url = 2;
|
|
1361
|
+
*/
|
|
1362
|
+
url: string;
|
|
1363
|
+
};
|
|
1364
|
+
/**
|
|
1365
|
+
* Describes the message gitd.v1.ConflictsRequest.
|
|
1366
|
+
* Use `create(ConflictsRequestSchema)` to create a new message.
|
|
1367
|
+
*/
|
|
1368
|
+
export declare const ConflictsRequestSchema: GenMessage<ConflictsRequest>;
|
|
1369
|
+
/**
|
|
1370
|
+
* Two works that do not merge cleanly, and the files they conflict on.
|
|
1371
|
+
*
|
|
1372
|
+
* @generated from message gitd.v1.Conflict
|
|
1373
|
+
*/
|
|
1374
|
+
export type Conflict = Message<"gitd.v1.Conflict"> & {
|
|
1375
|
+
/**
|
|
1376
|
+
* @generated from field: gitd.v1.Side first = 1;
|
|
1377
|
+
*/
|
|
1378
|
+
first?: Side | undefined;
|
|
1379
|
+
/**
|
|
1380
|
+
* @generated from field: gitd.v1.Side second = 2;
|
|
1381
|
+
*/
|
|
1382
|
+
second?: Side | undefined;
|
|
1383
|
+
/**
|
|
1384
|
+
* @generated from field: repeated string paths = 3;
|
|
1385
|
+
*/
|
|
1386
|
+
paths: string[];
|
|
1387
|
+
};
|
|
1388
|
+
/**
|
|
1389
|
+
* Describes the message gitd.v1.Conflict.
|
|
1390
|
+
* Use `create(ConflictSchema)` to create a new message.
|
|
1391
|
+
*/
|
|
1392
|
+
export declare const ConflictSchema: GenMessage<Conflict>;
|
|
1393
|
+
/**
|
|
1394
|
+
* @generated from message gitd.v1.ConflictsResponse
|
|
1395
|
+
*/
|
|
1396
|
+
export type ConflictsResponse = Message<"gitd.v1.ConflictsResponse"> & {
|
|
1397
|
+
/**
|
|
1398
|
+
* Every pair that does not merge cleanly; none when all do.
|
|
1399
|
+
*
|
|
1400
|
+
* @generated from field: repeated gitd.v1.Conflict conflicts = 1;
|
|
1401
|
+
*/
|
|
1402
|
+
conflicts: Conflict[];
|
|
1403
|
+
};
|
|
1404
|
+
/**
|
|
1405
|
+
* Describes the message gitd.v1.ConflictsResponse.
|
|
1406
|
+
* Use `create(ConflictsResponseSchema)` to create a new message.
|
|
1407
|
+
*/
|
|
1408
|
+
export declare const ConflictsResponseSchema: GenMessage<ConflictsResponse>;
|
|
1409
|
+
/**
|
|
1410
|
+
* @generated from message gitd.v1.WatchRequest
|
|
1411
|
+
*/
|
|
1412
|
+
export type WatchRequest = Message<"gitd.v1.WatchRequest"> & {
|
|
1413
|
+
/**
|
|
1414
|
+
* Only these workspaces; every workspace when empty.
|
|
1415
|
+
*
|
|
1416
|
+
* @generated from field: repeated string paths = 1;
|
|
1417
|
+
*/
|
|
1418
|
+
paths: string[];
|
|
1419
|
+
};
|
|
1420
|
+
/**
|
|
1421
|
+
* Describes the message gitd.v1.WatchRequest.
|
|
1422
|
+
* Use `create(WatchRequestSchema)` to create a new message.
|
|
1423
|
+
*/
|
|
1424
|
+
export declare const WatchRequestSchema: GenMessage<WatchRequest>;
|
|
1425
|
+
/**
|
|
1426
|
+
* @generated from message gitd.v1.WatchResponse
|
|
1427
|
+
*/
|
|
1428
|
+
export type WatchResponse = Message<"gitd.v1.WatchResponse"> & {
|
|
1429
|
+
/**
|
|
1430
|
+
* @generated from field: gitd.v1.WatchResponse.Kind kind = 1;
|
|
1431
|
+
*/
|
|
1432
|
+
kind: WatchResponse_Kind;
|
|
1433
|
+
/**
|
|
1434
|
+
* @generated from field: string path = 2;
|
|
1435
|
+
*/
|
|
1436
|
+
path: string;
|
|
1437
|
+
/**
|
|
1438
|
+
* @generated from field: google.protobuf.Timestamp time = 3;
|
|
1439
|
+
*/
|
|
1440
|
+
time?: Timestamp | undefined;
|
|
1441
|
+
/**
|
|
1442
|
+
* The branch, for a publish done or refused.
|
|
1443
|
+
*
|
|
1444
|
+
* @generated from field: string branch = 4;
|
|
1445
|
+
*/
|
|
1446
|
+
branch: string;
|
|
1447
|
+
/**
|
|
1448
|
+
* The pull request opened, or why a publish was refused.
|
|
1449
|
+
*
|
|
1450
|
+
* @generated from field: string detail = 5;
|
|
1451
|
+
*/
|
|
1452
|
+
detail: string;
|
|
1453
|
+
};
|
|
1454
|
+
/**
|
|
1455
|
+
* Describes the message gitd.v1.WatchResponse.
|
|
1456
|
+
* Use `create(WatchResponseSchema)` to create a new message.
|
|
1457
|
+
*/
|
|
1458
|
+
export declare const WatchResponseSchema: GenMessage<WatchResponse>;
|
|
1459
|
+
/**
|
|
1460
|
+
* @generated from enum gitd.v1.WatchResponse.Kind
|
|
1461
|
+
*/
|
|
1462
|
+
export declare enum WatchResponse_Kind {
|
|
1463
|
+
/**
|
|
1464
|
+
* @generated from enum value: KIND_UNSPECIFIED = 0;
|
|
1465
|
+
*/
|
|
1466
|
+
UNSPECIFIED = 0,
|
|
1467
|
+
/**
|
|
1468
|
+
* @generated from enum value: KIND_MADE = 1;
|
|
1469
|
+
*/
|
|
1470
|
+
MADE = 1,
|
|
1471
|
+
/**
|
|
1472
|
+
* Something in the workspace changed: seen in the agent's layer of an overlay workspace,
|
|
1473
|
+
* within a couple of seconds, and coalesced.
|
|
1474
|
+
*
|
|
1475
|
+
* @generated from enum value: KIND_CHANGED = 2;
|
|
1476
|
+
*/
|
|
1477
|
+
CHANGED = 2,
|
|
1478
|
+
/**
|
|
1479
|
+
* @generated from enum value: KIND_PUBLISHED = 3;
|
|
1480
|
+
*/
|
|
1481
|
+
PUBLISHED = 3,
|
|
1482
|
+
/**
|
|
1483
|
+
* @generated from enum value: KIND_REFUSED = 4;
|
|
1484
|
+
*/
|
|
1485
|
+
REFUSED = 4,
|
|
1486
|
+
/**
|
|
1487
|
+
* @generated from enum value: KIND_REMOVED = 5;
|
|
1488
|
+
*/
|
|
1489
|
+
REMOVED = 5
|
|
1490
|
+
}
|
|
1491
|
+
/**
|
|
1492
|
+
* Describes the enum gitd.v1.WatchResponse.Kind.
|
|
1493
|
+
*/
|
|
1494
|
+
export declare const WatchResponse_KindSchema: GenEnum<WatchResponse_Kind>;
|
|
1495
|
+
/**
|
|
1496
|
+
* @generated from message gitd.v1.ProbeRequest
|
|
1497
|
+
*/
|
|
1498
|
+
export type ProbeRequest = Message<"gitd.v1.ProbeRequest"> & {
|
|
1499
|
+
/**
|
|
1500
|
+
* @generated from field: string url = 1;
|
|
1501
|
+
*/
|
|
1502
|
+
url: string;
|
|
1503
|
+
/**
|
|
1504
|
+
* @generated from field: repeated gitd.v1.Credential credentials = 2;
|
|
1505
|
+
*/
|
|
1506
|
+
credentials: Credential[];
|
|
1507
|
+
};
|
|
1508
|
+
/**
|
|
1509
|
+
* Describes the message gitd.v1.ProbeRequest.
|
|
1510
|
+
* Use `create(ProbeRequestSchema)` to create a new message.
|
|
1511
|
+
*/
|
|
1512
|
+
export declare const ProbeRequestSchema: GenMessage<ProbeRequest>;
|
|
1513
|
+
/**
|
|
1514
|
+
* @generated from message gitd.v1.ProbeResponse
|
|
1515
|
+
*/
|
|
1516
|
+
export type ProbeResponse = Message<"gitd.v1.ProbeResponse"> & {
|
|
1517
|
+
/**
|
|
1518
|
+
* @generated from field: gitd.v1.ProbeResponse.Access access = 1;
|
|
1519
|
+
*/
|
|
1520
|
+
access: ProbeResponse_Access;
|
|
1521
|
+
/**
|
|
1522
|
+
* @generated from field: repeated string branches = 2;
|
|
1523
|
+
*/
|
|
1524
|
+
branches: string[];
|
|
1525
|
+
/**
|
|
1526
|
+
* The branch the repository's HEAD points at.
|
|
1527
|
+
*
|
|
1528
|
+
* @generated from field: string default_branch = 3;
|
|
1529
|
+
*/
|
|
1530
|
+
defaultBranch: string;
|
|
1531
|
+
/**
|
|
1532
|
+
* @generated from field: gitd.v1.GitFailure failure = 4;
|
|
1533
|
+
*/
|
|
1534
|
+
failure?: GitFailure | undefined;
|
|
1535
|
+
/**
|
|
1536
|
+
* The commit each branch points at, by branch: what a submodule's gitlink is set to.
|
|
1537
|
+
*
|
|
1538
|
+
* @generated from field: map<string, string> commits = 5;
|
|
1539
|
+
*/
|
|
1540
|
+
commits: {
|
|
1541
|
+
[key: string]: string;
|
|
1542
|
+
};
|
|
1543
|
+
};
|
|
1544
|
+
/**
|
|
1545
|
+
* Describes the message gitd.v1.ProbeResponse.
|
|
1546
|
+
* Use `create(ProbeResponseSchema)` to create a new message.
|
|
1547
|
+
*/
|
|
1548
|
+
export declare const ProbeResponseSchema: GenMessage<ProbeResponse>;
|
|
1549
|
+
/**
|
|
1550
|
+
* @generated from enum gitd.v1.ProbeResponse.Access
|
|
1551
|
+
*/
|
|
1552
|
+
export declare enum ProbeResponse_Access {
|
|
1553
|
+
/**
|
|
1554
|
+
* @generated from enum value: ACCESS_UNSPECIFIED = 0;
|
|
1555
|
+
*/
|
|
1556
|
+
UNSPECIFIED = 0,
|
|
1557
|
+
/**
|
|
1558
|
+
* Read with nothing.
|
|
1559
|
+
*
|
|
1560
|
+
* @generated from enum value: ACCESS_PUBLIC = 1;
|
|
1561
|
+
*/
|
|
1562
|
+
PUBLIC = 1,
|
|
1563
|
+
/**
|
|
1564
|
+
* Read with the credentials given.
|
|
1565
|
+
*
|
|
1566
|
+
* @generated from enum value: ACCESS_REACHABLE = 2;
|
|
1567
|
+
*/
|
|
1568
|
+
REACHABLE = 2,
|
|
1569
|
+
/**
|
|
1570
|
+
* Not readable with what was given.
|
|
1571
|
+
*
|
|
1572
|
+
* @generated from enum value: ACCESS_DENIED = 3;
|
|
1573
|
+
*/
|
|
1574
|
+
DENIED = 3
|
|
1575
|
+
}
|
|
1576
|
+
/**
|
|
1577
|
+
* Describes the enum gitd.v1.ProbeResponse.Access.
|
|
1578
|
+
*/
|
|
1579
|
+
export declare const ProbeResponse_AccessSchema: GenEnum<ProbeResponse_Access>;
|
|
1580
|
+
/**
|
|
1581
|
+
* @generated from message gitd.v1.RetireRequest
|
|
1582
|
+
*/
|
|
1583
|
+
export type RetireRequest = Message<"gitd.v1.RetireRequest"> & {
|
|
1584
|
+
/**
|
|
1585
|
+
* At least a day: a pool used moments ago is likely to be wanted again.
|
|
1586
|
+
*
|
|
1587
|
+
* @generated from field: int64 unused_for_seconds = 1;
|
|
1588
|
+
*/
|
|
1589
|
+
unusedForSeconds: bigint;
|
|
1590
|
+
};
|
|
1591
|
+
/**
|
|
1592
|
+
* Describes the message gitd.v1.RetireRequest.
|
|
1593
|
+
* Use `create(RetireRequestSchema)` to create a new message.
|
|
1594
|
+
*/
|
|
1595
|
+
export declare const RetireRequestSchema: GenMessage<RetireRequest>;
|
|
1596
|
+
/**
|
|
1597
|
+
* @generated from message gitd.v1.RetireResponse
|
|
1598
|
+
*/
|
|
1599
|
+
export type RetireResponse = Message<"gitd.v1.RetireResponse"> & {
|
|
1600
|
+
/**
|
|
1601
|
+
* @generated from field: int32 retired = 1;
|
|
1602
|
+
*/
|
|
1603
|
+
retired: number;
|
|
1604
|
+
/**
|
|
1605
|
+
* @generated from field: int64 freed_bytes = 2;
|
|
1606
|
+
*/
|
|
1607
|
+
freedBytes: bigint;
|
|
1608
|
+
};
|
|
1609
|
+
/**
|
|
1610
|
+
* Describes the message gitd.v1.RetireResponse.
|
|
1611
|
+
* Use `create(RetireResponseSchema)` to create a new message.
|
|
1612
|
+
*/
|
|
1613
|
+
export declare const RetireResponseSchema: GenMessage<RetireResponse>;
|
|
1614
|
+
/**
|
|
1615
|
+
* @generated from message gitd.v1.InfoRequest
|
|
1616
|
+
*/
|
|
1617
|
+
export type InfoRequest = Message<"gitd.v1.InfoRequest"> & {};
|
|
1618
|
+
/**
|
|
1619
|
+
* Describes the message gitd.v1.InfoRequest.
|
|
1620
|
+
* Use `create(InfoRequestSchema)` to create a new message.
|
|
1621
|
+
*/
|
|
1622
|
+
export declare const InfoRequestSchema: GenMessage<InfoRequest>;
|
|
1623
|
+
/**
|
|
1624
|
+
* @generated from message gitd.v1.InfoResponse
|
|
1625
|
+
*/
|
|
1626
|
+
export type InfoResponse = Message<"gitd.v1.InfoResponse"> & {
|
|
1627
|
+
/**
|
|
1628
|
+
* @generated from field: string version = 1;
|
|
1629
|
+
*/
|
|
1630
|
+
version: string;
|
|
1631
|
+
/**
|
|
1632
|
+
* What `git version` says, e.g. "git version 2.48.1".
|
|
1633
|
+
*
|
|
1634
|
+
* @generated from field: string git_version = 2;
|
|
1635
|
+
*/
|
|
1636
|
+
gitVersion: string;
|
|
1637
|
+
/**
|
|
1638
|
+
* How many pools there are and the disk they take, as of the last maintenance round.
|
|
1639
|
+
*
|
|
1640
|
+
* @generated from field: int32 pools = 3;
|
|
1641
|
+
*/
|
|
1642
|
+
pools: number;
|
|
1643
|
+
/**
|
|
1644
|
+
* @generated from field: int64 pools_bytes = 4;
|
|
1645
|
+
*/
|
|
1646
|
+
poolsBytes: bigint;
|
|
1647
|
+
/**
|
|
1648
|
+
* How new workspaces are made on this machine, and why: what gitd detected at start.
|
|
1649
|
+
*
|
|
1650
|
+
* @generated from field: gitd.v1.Strategy strategy = 5;
|
|
1651
|
+
*/
|
|
1652
|
+
strategy: Strategy;
|
|
1653
|
+
/**
|
|
1654
|
+
* @generated from field: string strategy_reason = 6;
|
|
1655
|
+
*/
|
|
1656
|
+
strategyReason: string;
|
|
1657
|
+
/**
|
|
1658
|
+
* How many templates there are and the disk they take, as of the last maintenance round.
|
|
1659
|
+
*
|
|
1660
|
+
* @generated from field: int32 templates = 7;
|
|
1661
|
+
*/
|
|
1662
|
+
templates: number;
|
|
1663
|
+
/**
|
|
1664
|
+
* @generated from field: int64 templates_bytes = 8;
|
|
1665
|
+
*/
|
|
1666
|
+
templatesBytes: bigint;
|
|
1667
|
+
};
|
|
1668
|
+
/**
|
|
1669
|
+
* Describes the message gitd.v1.InfoResponse.
|
|
1670
|
+
* Use `create(InfoResponseSchema)` to create a new message.
|
|
1671
|
+
*/
|
|
1672
|
+
export declare const InfoResponseSchema: GenMessage<InfoResponse>;
|
|
1673
|
+
/**
|
|
1674
|
+
* @generated from message gitd.v1.AuditRequest
|
|
1675
|
+
*/
|
|
1676
|
+
export type AuditRequest = Message<"gitd.v1.AuditRequest"> & {
|
|
1677
|
+
/**
|
|
1678
|
+
* Only the entries from this time on; all of them when unset.
|
|
1679
|
+
*
|
|
1680
|
+
* @generated from field: google.protobuf.Timestamp since = 1;
|
|
1681
|
+
*/
|
|
1682
|
+
since?: Timestamp | undefined;
|
|
1683
|
+
/**
|
|
1684
|
+
* Only the entries of this repository, as its URL is written in them.
|
|
1685
|
+
*
|
|
1686
|
+
* @generated from field: string url = 2;
|
|
1687
|
+
*/
|
|
1688
|
+
url: string;
|
|
1689
|
+
/**
|
|
1690
|
+
* At most this many, newest first: 100 when unset, never more than 1000.
|
|
1691
|
+
*
|
|
1692
|
+
* @generated from field: int32 limit = 3;
|
|
1693
|
+
*/
|
|
1694
|
+
limit: number;
|
|
1695
|
+
};
|
|
1696
|
+
/**
|
|
1697
|
+
* Describes the message gitd.v1.AuditRequest.
|
|
1698
|
+
* Use `create(AuditRequestSchema)` to create a new message.
|
|
1699
|
+
*/
|
|
1700
|
+
export declare const AuditRequestSchema: GenMessage<AuditRequest>;
|
|
1701
|
+
/**
|
|
1702
|
+
* @generated from message gitd.v1.AuditResponse
|
|
1703
|
+
*/
|
|
1704
|
+
export type AuditResponse = Message<"gitd.v1.AuditResponse"> & {
|
|
1705
|
+
/**
|
|
1706
|
+
* @generated from field: repeated gitd.v1.AuditEntry entries = 1;
|
|
1707
|
+
*/
|
|
1708
|
+
entries: AuditEntry[];
|
|
1709
|
+
};
|
|
1710
|
+
/**
|
|
1711
|
+
* Describes the message gitd.v1.AuditResponse.
|
|
1712
|
+
* Use `create(AuditResponseSchema)` to create a new message.
|
|
1713
|
+
*/
|
|
1714
|
+
export declare const AuditResponseSchema: GenMessage<AuditResponse>;
|
|
1715
|
+
/**
|
|
1716
|
+
* One publish, done or refused, or one change to connections or publishing settings, as
|
|
1717
|
+
* the audit log keeps it: one per line of the log file, in this message's JSON form.
|
|
1718
|
+
*
|
|
1719
|
+
* @generated from message gitd.v1.AuditEntry
|
|
1720
|
+
*/
|
|
1721
|
+
export type AuditEntry = Message<"gitd.v1.AuditEntry"> & {
|
|
1722
|
+
/**
|
|
1723
|
+
* @generated from field: google.protobuf.Timestamp time = 1;
|
|
1724
|
+
*/
|
|
1725
|
+
time?: Timestamp | undefined;
|
|
1726
|
+
/**
|
|
1727
|
+
* The workspace's path, as the caller gave it.
|
|
1728
|
+
*
|
|
1729
|
+
* @generated from field: string workspace = 2;
|
|
1730
|
+
*/
|
|
1731
|
+
workspace: string;
|
|
1732
|
+
/**
|
|
1733
|
+
* The workspace's repository; empty when the workspace could not be opened.
|
|
1734
|
+
*
|
|
1735
|
+
* @generated from field: string url = 3;
|
|
1736
|
+
*/
|
|
1737
|
+
url: string;
|
|
1738
|
+
/**
|
|
1739
|
+
* @generated from field: string branch = 4;
|
|
1740
|
+
*/
|
|
1741
|
+
branch: string;
|
|
1742
|
+
/**
|
|
1743
|
+
* What was pushed: the workspace's repository, then each submodule. Unset when refused.
|
|
1744
|
+
*
|
|
1745
|
+
* @generated from field: gitd.v1.PublishedRepository repository = 5;
|
|
1746
|
+
*/
|
|
1747
|
+
repository?: PublishedRepository | undefined;
|
|
1748
|
+
/**
|
|
1749
|
+
* @generated from field: repeated gitd.v1.PublishedRepository submodules = 6;
|
|
1750
|
+
*/
|
|
1751
|
+
submodules: PublishedRepository[];
|
|
1752
|
+
/**
|
|
1753
|
+
* Why it was refused. Unset when it was published.
|
|
1754
|
+
*
|
|
1755
|
+
* @generated from field: gitd.v1.GitFailure refusal = 7;
|
|
1756
|
+
*/
|
|
1757
|
+
refusal?: GitFailure | undefined;
|
|
1758
|
+
/**
|
|
1759
|
+
* Who asked for the work, as the publish said.
|
|
1760
|
+
*
|
|
1761
|
+
* @generated from field: string requested_by = 8;
|
|
1762
|
+
*/
|
|
1763
|
+
requestedBy: string;
|
|
1764
|
+
/**
|
|
1765
|
+
* The pull request opened, or why it could not be.
|
|
1766
|
+
*
|
|
1767
|
+
* @generated from field: gitd.v1.OpenedPullRequest pull_request = 9;
|
|
1768
|
+
*/
|
|
1769
|
+
pullRequest?: OpenedPullRequest | undefined;
|
|
1770
|
+
/**
|
|
1771
|
+
* @generated from field: gitd.v1.GitFailure pull_request_failure = 10;
|
|
1772
|
+
*/
|
|
1773
|
+
pullRequestFailure?: GitFailure | undefined;
|
|
1774
|
+
/**
|
|
1775
|
+
* A change to connections or publishing settings; the other fields are then unset.
|
|
1776
|
+
*
|
|
1777
|
+
* @generated from field: gitd.v1.ConfigurationChange change = 11;
|
|
1778
|
+
*/
|
|
1779
|
+
change?: ConfigurationChange | undefined;
|
|
1780
|
+
/**
|
|
1781
|
+
* Where the work came from, as the publish said.
|
|
1782
|
+
*
|
|
1783
|
+
* @generated from field: gitd.v1.Provenance provenance = 12;
|
|
1784
|
+
*/
|
|
1785
|
+
provenance?: Provenance | undefined;
|
|
1786
|
+
};
|
|
1787
|
+
/**
|
|
1788
|
+
* Describes the message gitd.v1.AuditEntry.
|
|
1789
|
+
* Use `create(AuditEntrySchema)` to create a new message.
|
|
1790
|
+
*/
|
|
1791
|
+
export declare const AuditEntrySchema: GenMessage<AuditEntry>;
|
|
1792
|
+
/**
|
|
1793
|
+
* A connection added or removed, or the settings of a prefix set or removed.
|
|
1794
|
+
*
|
|
1795
|
+
* @generated from message gitd.v1.ConfigurationChange
|
|
1796
|
+
*/
|
|
1797
|
+
export type ConfigurationChange = Message<"gitd.v1.ConfigurationChange"> & {
|
|
1798
|
+
/**
|
|
1799
|
+
* @generated from field: gitd.v1.ConfigurationChange.Action action = 1;
|
|
1800
|
+
*/
|
|
1801
|
+
action: ConfigurationChange_Action;
|
|
1802
|
+
/**
|
|
1803
|
+
* The connection's ID, the settings' prefix, or the preset's name.
|
|
1804
|
+
*
|
|
1805
|
+
* @generated from field: string subject = 2;
|
|
1806
|
+
*/
|
|
1807
|
+
subject: string;
|
|
1808
|
+
/**
|
|
1809
|
+
* What it opens or applies to, e.g. `https://github.com/acme`.
|
|
1810
|
+
*
|
|
1811
|
+
* @generated from field: string url_prefix = 3;
|
|
1812
|
+
*/
|
|
1813
|
+
urlPrefix: string;
|
|
1814
|
+
};
|
|
1815
|
+
/**
|
|
1816
|
+
* Describes the message gitd.v1.ConfigurationChange.
|
|
1817
|
+
* Use `create(ConfigurationChangeSchema)` to create a new message.
|
|
1818
|
+
*/
|
|
1819
|
+
export declare const ConfigurationChangeSchema: GenMessage<ConfigurationChange>;
|
|
1820
|
+
/**
|
|
1821
|
+
* @generated from enum gitd.v1.ConfigurationChange.Action
|
|
1822
|
+
*/
|
|
1823
|
+
export declare enum ConfigurationChange_Action {
|
|
1824
|
+
/**
|
|
1825
|
+
* @generated from enum value: ACTION_UNSPECIFIED = 0;
|
|
1826
|
+
*/
|
|
1827
|
+
UNSPECIFIED = 0,
|
|
1828
|
+
/**
|
|
1829
|
+
* @generated from enum value: ACTION_CONNECTION_ADDED = 1;
|
|
1830
|
+
*/
|
|
1831
|
+
CONNECTION_ADDED = 1,
|
|
1832
|
+
/**
|
|
1833
|
+
* @generated from enum value: ACTION_CONNECTION_REMOVED = 2;
|
|
1834
|
+
*/
|
|
1835
|
+
CONNECTION_REMOVED = 2,
|
|
1836
|
+
/**
|
|
1837
|
+
* @generated from enum value: ACTION_SETTINGS_SET = 3;
|
|
1838
|
+
*/
|
|
1839
|
+
SETTINGS_SET = 3,
|
|
1840
|
+
/**
|
|
1841
|
+
* @generated from enum value: ACTION_SETTINGS_REMOVED = 4;
|
|
1842
|
+
*/
|
|
1843
|
+
SETTINGS_REMOVED = 4,
|
|
1844
|
+
/**
|
|
1845
|
+
* @generated from enum value: ACTION_PRESET_SET = 5;
|
|
1846
|
+
*/
|
|
1847
|
+
PRESET_SET = 5,
|
|
1848
|
+
/**
|
|
1849
|
+
* @generated from enum value: ACTION_PRESET_REMOVED = 6;
|
|
1850
|
+
*/
|
|
1851
|
+
PRESET_REMOVED = 6
|
|
1852
|
+
}
|
|
1853
|
+
/**
|
|
1854
|
+
* Describes the enum gitd.v1.ConfigurationChange.Action.
|
|
1855
|
+
*/
|
|
1856
|
+
export declare const ConfigurationChange_ActionSchema: GenEnum<ConfigurationChange_Action>;
|
|
1857
|
+
/**
|
|
1858
|
+
* One credential gitd keeps.
|
|
1859
|
+
*
|
|
1860
|
+
* @generated from message gitd.v1.Connection
|
|
1861
|
+
*/
|
|
1862
|
+
export type Connection = Message<"gitd.v1.Connection"> & {
|
|
1863
|
+
/**
|
|
1864
|
+
* gitd's name for it, to remove it by.
|
|
1865
|
+
*
|
|
1866
|
+
* @generated from field: string id = 1;
|
|
1867
|
+
*/
|
|
1868
|
+
id: string;
|
|
1869
|
+
/**
|
|
1870
|
+
* @generated from field: gitd.v1.Connection.Kind kind = 2;
|
|
1871
|
+
*/
|
|
1872
|
+
kind: Connection_Kind;
|
|
1873
|
+
/**
|
|
1874
|
+
* The repositories it opens: those whose address starts with this.
|
|
1875
|
+
*
|
|
1876
|
+
* @generated from field: string url_prefix = 3;
|
|
1877
|
+
*/
|
|
1878
|
+
urlPrefix: string;
|
|
1879
|
+
/**
|
|
1880
|
+
* Whom it acts as: the App's bot (`acme-agents[bot]`) or the person (`josue`). Empty for
|
|
1881
|
+
* a token or a key.
|
|
1882
|
+
*
|
|
1883
|
+
* @generated from field: string acts_as = 4;
|
|
1884
|
+
*/
|
|
1885
|
+
actsAs: string;
|
|
1886
|
+
/**
|
|
1887
|
+
* For an App: its ID, and where its installations are managed.
|
|
1888
|
+
*
|
|
1889
|
+
* @generated from field: int64 app_id = 5;
|
|
1890
|
+
*/
|
|
1891
|
+
appId: bigint;
|
|
1892
|
+
/**
|
|
1893
|
+
* @generated from field: string manage_url = 6;
|
|
1894
|
+
*/
|
|
1895
|
+
manageUrl: string;
|
|
1896
|
+
/**
|
|
1897
|
+
* When it stops working unless renewed: a sign-in's renewal ends then.
|
|
1898
|
+
*
|
|
1899
|
+
* @generated from field: google.protobuf.Timestamp expires = 7;
|
|
1900
|
+
*/
|
|
1901
|
+
expires?: Timestamp | undefined;
|
|
1902
|
+
/**
|
|
1903
|
+
* From the configuration file: shown, never changed through the API.
|
|
1904
|
+
*
|
|
1905
|
+
* @generated from field: bool from_file = 8;
|
|
1906
|
+
*/
|
|
1907
|
+
fromFile: boolean;
|
|
1908
|
+
/**
|
|
1909
|
+
* @generated from field: google.protobuf.Timestamp created = 9;
|
|
1910
|
+
*/
|
|
1911
|
+
created?: Timestamp | undefined;
|
|
1912
|
+
};
|
|
1913
|
+
/**
|
|
1914
|
+
* Describes the message gitd.v1.Connection.
|
|
1915
|
+
* Use `create(ConnectionSchema)` to create a new message.
|
|
1916
|
+
*/
|
|
1917
|
+
export declare const ConnectionSchema: GenMessage<Connection>;
|
|
1918
|
+
/**
|
|
1919
|
+
* @generated from enum gitd.v1.Connection.Kind
|
|
1920
|
+
*/
|
|
1921
|
+
export declare enum Connection_Kind {
|
|
1922
|
+
/**
|
|
1923
|
+
* @generated from enum value: KIND_UNSPECIFIED = 0;
|
|
1924
|
+
*/
|
|
1925
|
+
UNSPECIFIED = 0,
|
|
1926
|
+
/**
|
|
1927
|
+
* @generated from enum value: KIND_TOKEN = 1;
|
|
1928
|
+
*/
|
|
1929
|
+
TOKEN = 1,
|
|
1930
|
+
/**
|
|
1931
|
+
* @generated from enum value: KIND_SSH_KEY = 2;
|
|
1932
|
+
*/
|
|
1933
|
+
SSH_KEY = 2,
|
|
1934
|
+
/**
|
|
1935
|
+
* A GitHub App: its installation tokens open one repository each, for an hour.
|
|
1936
|
+
*
|
|
1937
|
+
* @generated from enum value: KIND_GITHUB_APP = 3;
|
|
1938
|
+
*/
|
|
1939
|
+
GITHUB_APP = 3,
|
|
1940
|
+
/**
|
|
1941
|
+
* A person signed in through gitd's public App: their tokens, renewed by gitd.
|
|
1942
|
+
*
|
|
1943
|
+
* @generated from enum value: KIND_GITHUB_LOGIN = 4;
|
|
1944
|
+
*/
|
|
1945
|
+
GITHUB_LOGIN = 4
|
|
1946
|
+
}
|
|
1947
|
+
/**
|
|
1948
|
+
* Describes the enum gitd.v1.Connection.Kind.
|
|
1949
|
+
*/
|
|
1950
|
+
export declare const Connection_KindSchema: GenEnum<Connection_Kind>;
|
|
1951
|
+
/**
|
|
1952
|
+
* @generated from message gitd.v1.BeginGitHubAppRequest
|
|
1953
|
+
*/
|
|
1954
|
+
export type BeginGitHubAppRequest = Message<"gitd.v1.BeginGitHubAppRequest"> & {
|
|
1955
|
+
/**
|
|
1956
|
+
* The GitHub host: empty for github.com, or a GitHub Enterprise Server's.
|
|
1957
|
+
*
|
|
1958
|
+
* @generated from field: string host = 1;
|
|
1959
|
+
*/
|
|
1960
|
+
host: string;
|
|
1961
|
+
/**
|
|
1962
|
+
* The organisation that owns the App. Empty: the account of the person creating it.
|
|
1963
|
+
*
|
|
1964
|
+
* @generated from field: string organization = 2;
|
|
1965
|
+
*/
|
|
1966
|
+
organization: string;
|
|
1967
|
+
/**
|
|
1968
|
+
* The App's name on GitHub, e.g. `acme-agents`; its bot is `acme-agents[bot]`.
|
|
1969
|
+
*
|
|
1970
|
+
* @generated from field: string name = 3;
|
|
1971
|
+
*/
|
|
1972
|
+
name: string;
|
|
1973
|
+
/**
|
|
1974
|
+
* Where GitHub sends the person once the App is created: the platform's page, which
|
|
1975
|
+
* hands the code and state to CompleteGitHubApp.
|
|
1976
|
+
*
|
|
1977
|
+
* @generated from field: string redirect_url = 4;
|
|
1978
|
+
*/
|
|
1979
|
+
redirectUrl: string;
|
|
1980
|
+
};
|
|
1981
|
+
/**
|
|
1982
|
+
* Describes the message gitd.v1.BeginGitHubAppRequest.
|
|
1983
|
+
* Use `create(BeginGitHubAppRequestSchema)` to create a new message.
|
|
1984
|
+
*/
|
|
1985
|
+
export declare const BeginGitHubAppRequestSchema: GenMessage<BeginGitHubAppRequest>;
|
|
1986
|
+
/**
|
|
1987
|
+
* @generated from message gitd.v1.BeginGitHubAppResponse
|
|
1988
|
+
*/
|
|
1989
|
+
export type BeginGitHubAppResponse = Message<"gitd.v1.BeginGitHubAppResponse"> & {
|
|
1990
|
+
/**
|
|
1991
|
+
* Where the person's browser posts the manifest, as a form field named `manifest`.
|
|
1992
|
+
*
|
|
1993
|
+
* @generated from field: string form_action = 1;
|
|
1994
|
+
*/
|
|
1995
|
+
formAction: string;
|
|
1996
|
+
/**
|
|
1997
|
+
* The manifest, in JSON: the App's name, its permissions (contents and pull requests,
|
|
1998
|
+
* read and write; metadata, read), no webhook.
|
|
1999
|
+
*
|
|
2000
|
+
* @generated from field: string manifest = 2;
|
|
2001
|
+
*/
|
|
2002
|
+
manifest: string;
|
|
2003
|
+
/**
|
|
2004
|
+
* Ties GitHub's answer to this request; expires in an hour.
|
|
2005
|
+
*
|
|
2006
|
+
* @generated from field: string state = 3;
|
|
2007
|
+
*/
|
|
2008
|
+
state: string;
|
|
2009
|
+
};
|
|
2010
|
+
/**
|
|
2011
|
+
* Describes the message gitd.v1.BeginGitHubAppResponse.
|
|
2012
|
+
* Use `create(BeginGitHubAppResponseSchema)` to create a new message.
|
|
2013
|
+
*/
|
|
2014
|
+
export declare const BeginGitHubAppResponseSchema: GenMessage<BeginGitHubAppResponse>;
|
|
2015
|
+
/**
|
|
2016
|
+
* @generated from message gitd.v1.CompleteGitHubAppRequest
|
|
2017
|
+
*/
|
|
2018
|
+
export type CompleteGitHubAppRequest = Message<"gitd.v1.CompleteGitHubAppRequest"> & {
|
|
2019
|
+
/**
|
|
2020
|
+
* @generated from field: string code = 1;
|
|
2021
|
+
*/
|
|
2022
|
+
code: string;
|
|
2023
|
+
/**
|
|
2024
|
+
* @generated from field: string state = 2;
|
|
2025
|
+
*/
|
|
2026
|
+
state: string;
|
|
2027
|
+
};
|
|
2028
|
+
/**
|
|
2029
|
+
* Describes the message gitd.v1.CompleteGitHubAppRequest.
|
|
2030
|
+
* Use `create(CompleteGitHubAppRequestSchema)` to create a new message.
|
|
2031
|
+
*/
|
|
2032
|
+
export declare const CompleteGitHubAppRequestSchema: GenMessage<CompleteGitHubAppRequest>;
|
|
2033
|
+
/**
|
|
2034
|
+
* @generated from message gitd.v1.CompleteGitHubAppResponse
|
|
2035
|
+
*/
|
|
2036
|
+
export type CompleteGitHubAppResponse = Message<"gitd.v1.CompleteGitHubAppResponse"> & {
|
|
2037
|
+
/**
|
|
2038
|
+
* @generated from field: gitd.v1.Connection connection = 1;
|
|
2039
|
+
*/
|
|
2040
|
+
connection?: Connection | undefined;
|
|
2041
|
+
/**
|
|
2042
|
+
* Where the person installs the App on the repositories it may reach.
|
|
2043
|
+
*
|
|
2044
|
+
* @generated from field: string install_url = 2;
|
|
2045
|
+
*/
|
|
2046
|
+
installUrl: string;
|
|
2047
|
+
};
|
|
2048
|
+
/**
|
|
2049
|
+
* Describes the message gitd.v1.CompleteGitHubAppResponse.
|
|
2050
|
+
* Use `create(CompleteGitHubAppResponseSchema)` to create a new message.
|
|
2051
|
+
*/
|
|
2052
|
+
export declare const CompleteGitHubAppResponseSchema: GenMessage<CompleteGitHubAppResponse>;
|
|
2053
|
+
/**
|
|
2054
|
+
* @generated from message gitd.v1.StartGitHubLoginRequest
|
|
2055
|
+
*/
|
|
2056
|
+
export type StartGitHubLoginRequest = Message<"gitd.v1.StartGitHubLoginRequest"> & {
|
|
2057
|
+
/**
|
|
2058
|
+
* The GitHub host: empty for github.com.
|
|
2059
|
+
*
|
|
2060
|
+
* @generated from field: string host = 1;
|
|
2061
|
+
*/
|
|
2062
|
+
host: string;
|
|
2063
|
+
};
|
|
2064
|
+
/**
|
|
2065
|
+
* Describes the message gitd.v1.StartGitHubLoginRequest.
|
|
2066
|
+
* Use `create(StartGitHubLoginRequestSchema)` to create a new message.
|
|
2067
|
+
*/
|
|
2068
|
+
export declare const StartGitHubLoginRequestSchema: GenMessage<StartGitHubLoginRequest>;
|
|
2069
|
+
/**
|
|
2070
|
+
* @generated from message gitd.v1.StartGitHubLoginResponse
|
|
2071
|
+
*/
|
|
2072
|
+
export type StartGitHubLoginResponse = Message<"gitd.v1.StartGitHubLoginResponse"> & {
|
|
2073
|
+
/**
|
|
2074
|
+
* What the person enters at `verification_url`.
|
|
2075
|
+
*
|
|
2076
|
+
* @generated from field: string user_code = 1;
|
|
2077
|
+
*/
|
|
2078
|
+
userCode: string;
|
|
2079
|
+
/**
|
|
2080
|
+
* @generated from field: string verification_url = 2;
|
|
2081
|
+
*/
|
|
2082
|
+
verificationUrl: string;
|
|
2083
|
+
/**
|
|
2084
|
+
* Hands this sign-in to FinishGitHubLogin.
|
|
2085
|
+
*
|
|
2086
|
+
* @generated from field: string login_id = 3;
|
|
2087
|
+
*/
|
|
2088
|
+
loginId: string;
|
|
2089
|
+
/**
|
|
2090
|
+
* How long the code is good for.
|
|
2091
|
+
*
|
|
2092
|
+
* @generated from field: int32 expires_in_seconds = 4;
|
|
2093
|
+
*/
|
|
2094
|
+
expiresInSeconds: number;
|
|
2095
|
+
};
|
|
2096
|
+
/**
|
|
2097
|
+
* Describes the message gitd.v1.StartGitHubLoginResponse.
|
|
2098
|
+
* Use `create(StartGitHubLoginResponseSchema)` to create a new message.
|
|
2099
|
+
*/
|
|
2100
|
+
export declare const StartGitHubLoginResponseSchema: GenMessage<StartGitHubLoginResponse>;
|
|
2101
|
+
/**
|
|
2102
|
+
* @generated from message gitd.v1.FinishGitHubLoginRequest
|
|
2103
|
+
*/
|
|
2104
|
+
export type FinishGitHubLoginRequest = Message<"gitd.v1.FinishGitHubLoginRequest"> & {
|
|
2105
|
+
/**
|
|
2106
|
+
* @generated from field: string login_id = 1;
|
|
2107
|
+
*/
|
|
2108
|
+
loginId: string;
|
|
2109
|
+
};
|
|
2110
|
+
/**
|
|
2111
|
+
* Describes the message gitd.v1.FinishGitHubLoginRequest.
|
|
2112
|
+
* Use `create(FinishGitHubLoginRequestSchema)` to create a new message.
|
|
2113
|
+
*/
|
|
2114
|
+
export declare const FinishGitHubLoginRequestSchema: GenMessage<FinishGitHubLoginRequest>;
|
|
2115
|
+
/**
|
|
2116
|
+
* @generated from message gitd.v1.FinishGitHubLoginResponse
|
|
2117
|
+
*/
|
|
2118
|
+
export type FinishGitHubLoginResponse = Message<"gitd.v1.FinishGitHubLoginResponse"> & {
|
|
2119
|
+
/**
|
|
2120
|
+
* @generated from field: gitd.v1.Connection connection = 1;
|
|
2121
|
+
*/
|
|
2122
|
+
connection?: Connection | undefined;
|
|
2123
|
+
/**
|
|
2124
|
+
* Where the person installs gitd's App on the repositories it may reach, if not yet.
|
|
2125
|
+
*
|
|
2126
|
+
* @generated from field: string install_url = 2;
|
|
2127
|
+
*/
|
|
2128
|
+
installUrl: string;
|
|
2129
|
+
};
|
|
2130
|
+
/**
|
|
2131
|
+
* Describes the message gitd.v1.FinishGitHubLoginResponse.
|
|
2132
|
+
* Use `create(FinishGitHubLoginResponseSchema)` to create a new message.
|
|
2133
|
+
*/
|
|
2134
|
+
export declare const FinishGitHubLoginResponseSchema: GenMessage<FinishGitHubLoginResponse>;
|
|
2135
|
+
/**
|
|
2136
|
+
* @generated from message gitd.v1.AddGitHubAppRequest
|
|
2137
|
+
*/
|
|
2138
|
+
export type AddGitHubAppRequest = Message<"gitd.v1.AddGitHubAppRequest"> & {
|
|
2139
|
+
/**
|
|
2140
|
+
* The GitHub host: empty for github.com.
|
|
2141
|
+
*
|
|
2142
|
+
* @generated from field: string host = 1;
|
|
2143
|
+
*/
|
|
2144
|
+
host: string;
|
|
2145
|
+
/**
|
|
2146
|
+
* @generated from field: int64 app_id = 2;
|
|
2147
|
+
*/
|
|
2148
|
+
appId: bigint;
|
|
2149
|
+
/**
|
|
2150
|
+
* The App's private key, in PEM.
|
|
2151
|
+
*
|
|
2152
|
+
* @generated from field: string private_key = 3;
|
|
2153
|
+
*/
|
|
2154
|
+
privateKey: string;
|
|
2155
|
+
/**
|
|
2156
|
+
* The repositories it opens. Empty: every repository on the host its installations reach.
|
|
2157
|
+
*
|
|
2158
|
+
* @generated from field: string url_prefix = 4;
|
|
2159
|
+
*/
|
|
2160
|
+
urlPrefix: string;
|
|
2161
|
+
};
|
|
2162
|
+
/**
|
|
2163
|
+
* Describes the message gitd.v1.AddGitHubAppRequest.
|
|
2164
|
+
* Use `create(AddGitHubAppRequestSchema)` to create a new message.
|
|
2165
|
+
*/
|
|
2166
|
+
export declare const AddGitHubAppRequestSchema: GenMessage<AddGitHubAppRequest>;
|
|
2167
|
+
/**
|
|
2168
|
+
* @generated from message gitd.v1.AddGitHubAppResponse
|
|
2169
|
+
*/
|
|
2170
|
+
export type AddGitHubAppResponse = Message<"gitd.v1.AddGitHubAppResponse"> & {
|
|
2171
|
+
/**
|
|
2172
|
+
* @generated from field: gitd.v1.Connection connection = 1;
|
|
2173
|
+
*/
|
|
2174
|
+
connection?: Connection | undefined;
|
|
2175
|
+
};
|
|
2176
|
+
/**
|
|
2177
|
+
* Describes the message gitd.v1.AddGitHubAppResponse.
|
|
2178
|
+
* Use `create(AddGitHubAppResponseSchema)` to create a new message.
|
|
2179
|
+
*/
|
|
2180
|
+
export declare const AddGitHubAppResponseSchema: GenMessage<AddGitHubAppResponse>;
|
|
2181
|
+
/**
|
|
2182
|
+
* @generated from message gitd.v1.AddTokenRequest
|
|
2183
|
+
*/
|
|
2184
|
+
export type AddTokenRequest = Message<"gitd.v1.AddTokenRequest"> & {
|
|
2185
|
+
/**
|
|
2186
|
+
* Must name the host, e.g. `https://gitlab.example.com/acme`.
|
|
2187
|
+
*
|
|
2188
|
+
* @generated from field: string url_prefix = 1;
|
|
2189
|
+
*/
|
|
2190
|
+
urlPrefix: string;
|
|
2191
|
+
/**
|
|
2192
|
+
* @generated from field: string token = 2;
|
|
2193
|
+
*/
|
|
2194
|
+
token: string;
|
|
2195
|
+
/**
|
|
2196
|
+
* As `Credential.https_user`.
|
|
2197
|
+
*
|
|
2198
|
+
* @generated from field: string user = 3;
|
|
2199
|
+
*/
|
|
2200
|
+
user: string;
|
|
2201
|
+
};
|
|
2202
|
+
/**
|
|
2203
|
+
* Describes the message gitd.v1.AddTokenRequest.
|
|
2204
|
+
* Use `create(AddTokenRequestSchema)` to create a new message.
|
|
2205
|
+
*/
|
|
2206
|
+
export declare const AddTokenRequestSchema: GenMessage<AddTokenRequest>;
|
|
2207
|
+
/**
|
|
2208
|
+
* @generated from message gitd.v1.AddTokenResponse
|
|
2209
|
+
*/
|
|
2210
|
+
export type AddTokenResponse = Message<"gitd.v1.AddTokenResponse"> & {
|
|
2211
|
+
/**
|
|
2212
|
+
* @generated from field: gitd.v1.Connection connection = 1;
|
|
2213
|
+
*/
|
|
2214
|
+
connection?: Connection | undefined;
|
|
2215
|
+
};
|
|
2216
|
+
/**
|
|
2217
|
+
* Describes the message gitd.v1.AddTokenResponse.
|
|
2218
|
+
* Use `create(AddTokenResponseSchema)` to create a new message.
|
|
2219
|
+
*/
|
|
2220
|
+
export declare const AddTokenResponseSchema: GenMessage<AddTokenResponse>;
|
|
2221
|
+
/**
|
|
2222
|
+
* @generated from message gitd.v1.ListConnectionsRequest
|
|
2223
|
+
*/
|
|
2224
|
+
export type ListConnectionsRequest = Message<"gitd.v1.ListConnectionsRequest"> & {};
|
|
2225
|
+
/**
|
|
2226
|
+
* Describes the message gitd.v1.ListConnectionsRequest.
|
|
2227
|
+
* Use `create(ListConnectionsRequestSchema)` to create a new message.
|
|
2228
|
+
*/
|
|
2229
|
+
export declare const ListConnectionsRequestSchema: GenMessage<ListConnectionsRequest>;
|
|
2230
|
+
/**
|
|
2231
|
+
* @generated from message gitd.v1.ListConnectionsResponse
|
|
2232
|
+
*/
|
|
2233
|
+
export type ListConnectionsResponse = Message<"gitd.v1.ListConnectionsResponse"> & {
|
|
2234
|
+
/**
|
|
2235
|
+
* @generated from field: repeated gitd.v1.Connection connections = 1;
|
|
2236
|
+
*/
|
|
2237
|
+
connections: Connection[];
|
|
2238
|
+
};
|
|
2239
|
+
/**
|
|
2240
|
+
* Describes the message gitd.v1.ListConnectionsResponse.
|
|
2241
|
+
* Use `create(ListConnectionsResponseSchema)` to create a new message.
|
|
2242
|
+
*/
|
|
2243
|
+
export declare const ListConnectionsResponseSchema: GenMessage<ListConnectionsResponse>;
|
|
2244
|
+
/**
|
|
2245
|
+
* @generated from message gitd.v1.RemoveConnectionRequest
|
|
2246
|
+
*/
|
|
2247
|
+
export type RemoveConnectionRequest = Message<"gitd.v1.RemoveConnectionRequest"> & {
|
|
2248
|
+
/**
|
|
2249
|
+
* @generated from field: string id = 1;
|
|
2250
|
+
*/
|
|
2251
|
+
id: string;
|
|
2252
|
+
};
|
|
2253
|
+
/**
|
|
2254
|
+
* Describes the message gitd.v1.RemoveConnectionRequest.
|
|
2255
|
+
* Use `create(RemoveConnectionRequestSchema)` to create a new message.
|
|
2256
|
+
*/
|
|
2257
|
+
export declare const RemoveConnectionRequestSchema: GenMessage<RemoveConnectionRequest>;
|
|
2258
|
+
/**
|
|
2259
|
+
* @generated from message gitd.v1.RemoveConnectionResponse
|
|
2260
|
+
*/
|
|
2261
|
+
export type RemoveConnectionResponse = Message<"gitd.v1.RemoveConnectionResponse"> & {};
|
|
2262
|
+
/**
|
|
2263
|
+
* Describes the message gitd.v1.RemoveConnectionResponse.
|
|
2264
|
+
* Use `create(RemoveConnectionResponseSchema)` to create a new message.
|
|
2265
|
+
*/
|
|
2266
|
+
export declare const RemoveConnectionResponseSchema: GenMessage<RemoveConnectionResponse>;
|
|
2267
|
+
/**
|
|
2268
|
+
* The rules publishing follows for the repositories under a prefix.
|
|
2269
|
+
*
|
|
2270
|
+
* Every setting whose prefix opens a repository applies to it: their paths add up and the
|
|
2271
|
+
* smallest file limit wins, so a narrower setting never loosens a broader one. A branch
|
|
2272
|
+
* prefix and pull request choices are the most specific setting's, and a narrower branch
|
|
2273
|
+
* prefix must start with every broader one.
|
|
2274
|
+
*
|
|
2275
|
+
* @generated from message gitd.v1.PublishSettings
|
|
2276
|
+
*/
|
|
2277
|
+
export type PublishSettings = Message<"gitd.v1.PublishSettings"> & {
|
|
2278
|
+
/**
|
|
2279
|
+
* The repositories these apply to; empty for every repository.
|
|
2280
|
+
*
|
|
2281
|
+
* @generated from field: string url_prefix = 1;
|
|
2282
|
+
*/
|
|
2283
|
+
urlPrefix: string;
|
|
2284
|
+
/**
|
|
2285
|
+
* The name of a preset whose rules these take, and which the fields below add to.
|
|
2286
|
+
*
|
|
2287
|
+
* @generated from field: string preset = 2;
|
|
2288
|
+
*/
|
|
2289
|
+
preset: string;
|
|
2290
|
+
/**
|
|
2291
|
+
* Paths a publish may not change, as git's glob pathspecs, e.g. `.github/workflows/**`.
|
|
2292
|
+
*
|
|
2293
|
+
* @generated from field: repeated string protected_paths = 3;
|
|
2294
|
+
*/
|
|
2295
|
+
protectedPaths: string[];
|
|
2296
|
+
/**
|
|
2297
|
+
* Paths a publish may change but not delete or rename away, e.g. `tests/**`.
|
|
2298
|
+
*
|
|
2299
|
+
* @generated from field: repeated string kept_paths = 4;
|
|
2300
|
+
*/
|
|
2301
|
+
keptPaths: string[];
|
|
2302
|
+
/**
|
|
2303
|
+
* At most this many files changed; unset for the preset's, or no limit.
|
|
2304
|
+
*
|
|
2305
|
+
* @generated from field: optional int32 max_changed_files = 5;
|
|
2306
|
+
*/
|
|
2307
|
+
maxChangedFiles?: number | undefined;
|
|
2308
|
+
/**
|
|
2309
|
+
* What every published branch must start with, e.g. `agents/`.
|
|
2310
|
+
*
|
|
2311
|
+
* @generated from field: string branch_prefix = 6;
|
|
2312
|
+
*/
|
|
2313
|
+
branchPrefix: string;
|
|
2314
|
+
/**
|
|
2315
|
+
* @generated from field: gitd.v1.PullRequestSettings pull_requests = 7;
|
|
2316
|
+
*/
|
|
2317
|
+
pullRequests?: PullRequestSettings | undefined;
|
|
2318
|
+
/**
|
|
2319
|
+
* From the configuration file: shown, never changed through the API.
|
|
2320
|
+
*
|
|
2321
|
+
* @generated from field: bool from_file = 8;
|
|
2322
|
+
*/
|
|
2323
|
+
fromFile: boolean;
|
|
2324
|
+
/**
|
|
2325
|
+
* Paths these settings' own rules — their preset's and their own — leave free, as glob
|
|
2326
|
+
* pathspecs, e.g. `.gitmodules` under `recommended`. They never free what another
|
|
2327
|
+
* setting protects or keeps.
|
|
2328
|
+
*
|
|
2329
|
+
* @generated from field: repeated string allowed_paths = 9;
|
|
2330
|
+
*/
|
|
2331
|
+
allowedPaths: string[];
|
|
2332
|
+
};
|
|
2333
|
+
/**
|
|
2334
|
+
* Describes the message gitd.v1.PublishSettings.
|
|
2335
|
+
* Use `create(PublishSettingsSchema)` to create a new message.
|
|
2336
|
+
*/
|
|
2337
|
+
export declare const PublishSettingsSchema: GenMessage<PublishSettings>;
|
|
2338
|
+
/**
|
|
2339
|
+
* A named set of rules settings take. gitd has its own `recommended`: it protects
|
|
2340
|
+
* `.github/workflows/**`, `.gitlab-ci.yml`, `CODEOWNERS` and `.gitmodules`, keeps tests
|
|
2341
|
+
* (`**\/*_test.*`, `**\/*.test.*`, `**\/test/**`, `**\/tests/**`, `**\/__tests__/**`) and
|
|
2342
|
+
* allows at most 200 files changed; a preset of that name replaces it.
|
|
2343
|
+
*
|
|
2344
|
+
* @generated from message gitd.v1.Preset
|
|
2345
|
+
*/
|
|
2346
|
+
export type Preset = Message<"gitd.v1.Preset"> & {
|
|
2347
|
+
/**
|
|
2348
|
+
* Lowercase letters, digits, `-`, `_` and `.`, up to 64.
|
|
2349
|
+
*
|
|
2350
|
+
* @generated from field: string name = 1;
|
|
2351
|
+
*/
|
|
2352
|
+
name: string;
|
|
2353
|
+
/**
|
|
2354
|
+
* @generated from field: repeated string protected_paths = 2;
|
|
2355
|
+
*/
|
|
2356
|
+
protectedPaths: string[];
|
|
2357
|
+
/**
|
|
2358
|
+
* @generated from field: repeated string kept_paths = 3;
|
|
2359
|
+
*/
|
|
2360
|
+
keptPaths: string[];
|
|
2361
|
+
/**
|
|
2362
|
+
* @generated from field: optional int32 max_changed_files = 4;
|
|
2363
|
+
*/
|
|
2364
|
+
maxChangedFiles?: number | undefined;
|
|
2365
|
+
/**
|
|
2366
|
+
* @generated from field: gitd.v1.Preset.Origin origin = 5;
|
|
2367
|
+
*/
|
|
2368
|
+
origin: Preset_Origin;
|
|
2369
|
+
};
|
|
2370
|
+
/**
|
|
2371
|
+
* Describes the message gitd.v1.Preset.
|
|
2372
|
+
* Use `create(PresetSchema)` to create a new message.
|
|
2373
|
+
*/
|
|
2374
|
+
export declare const PresetSchema: GenMessage<Preset>;
|
|
2375
|
+
/**
|
|
2376
|
+
* Where it comes from: gitd's own, the configuration file, or the API.
|
|
2377
|
+
*
|
|
2378
|
+
* @generated from enum gitd.v1.Preset.Origin
|
|
2379
|
+
*/
|
|
2380
|
+
export declare enum Preset_Origin {
|
|
2381
|
+
/**
|
|
2382
|
+
* @generated from enum value: ORIGIN_UNSPECIFIED = 0;
|
|
2383
|
+
*/
|
|
2384
|
+
UNSPECIFIED = 0,
|
|
2385
|
+
/**
|
|
2386
|
+
* @generated from enum value: ORIGIN_BUILT_IN = 1;
|
|
2387
|
+
*/
|
|
2388
|
+
BUILT_IN = 1,
|
|
2389
|
+
/**
|
|
2390
|
+
* @generated from enum value: ORIGIN_FILE = 2;
|
|
2391
|
+
*/
|
|
2392
|
+
FILE = 2,
|
|
2393
|
+
/**
|
|
2394
|
+
* @generated from enum value: ORIGIN_API = 3;
|
|
2395
|
+
*/
|
|
2396
|
+
API = 3
|
|
2397
|
+
}
|
|
2398
|
+
/**
|
|
2399
|
+
* Describes the enum gitd.v1.Preset.Origin.
|
|
2400
|
+
*/
|
|
2401
|
+
export declare const Preset_OriginSchema: GenEnum<Preset_Origin>;
|
|
2402
|
+
/**
|
|
2403
|
+
* How publishes open pull requests.
|
|
2404
|
+
*
|
|
2405
|
+
* @generated from message gitd.v1.PullRequestSettings
|
|
2406
|
+
*/
|
|
2407
|
+
export type PullRequestSettings = Message<"gitd.v1.PullRequestSettings"> & {
|
|
2408
|
+
/**
|
|
2409
|
+
* @generated from field: gitd.v1.PullRequestSettings.Open open = 1;
|
|
2410
|
+
*/
|
|
2411
|
+
open: PullRequestSettings_Open;
|
|
2412
|
+
/**
|
|
2413
|
+
* @generated from field: bool draft = 2;
|
|
2414
|
+
*/
|
|
2415
|
+
draft: boolean;
|
|
2416
|
+
/**
|
|
2417
|
+
* @generated from field: repeated string labels = 3;
|
|
2418
|
+
*/
|
|
2419
|
+
labels: string[];
|
|
2420
|
+
/**
|
|
2421
|
+
* Ask the person the publish names in `requested_by` to review it.
|
|
2422
|
+
*
|
|
2423
|
+
* @generated from field: bool request_review_from_requester = 4;
|
|
2424
|
+
*/
|
|
2425
|
+
requestReviewFromRequester: boolean;
|
|
2426
|
+
};
|
|
2427
|
+
/**
|
|
2428
|
+
* Describes the message gitd.v1.PullRequestSettings.
|
|
2429
|
+
* Use `create(PullRequestSettingsSchema)` to create a new message.
|
|
2430
|
+
*/
|
|
2431
|
+
export declare const PullRequestSettingsSchema: GenMessage<PullRequestSettings>;
|
|
2432
|
+
/**
|
|
2433
|
+
* @generated from enum gitd.v1.PullRequestSettings.Open
|
|
2434
|
+
*/
|
|
2435
|
+
export declare enum PullRequestSettings_Open {
|
|
2436
|
+
/**
|
|
2437
|
+
* @generated from enum value: OPEN_UNSPECIFIED = 0;
|
|
2438
|
+
*/
|
|
2439
|
+
UNSPECIFIED = 0,
|
|
2440
|
+
/**
|
|
2441
|
+
* Only when the publish asks (`PullRequestOptions.open`).
|
|
2442
|
+
*
|
|
2443
|
+
* @generated from enum value: OPEN_WHEN_ASKED = 1;
|
|
2444
|
+
*/
|
|
2445
|
+
WHEN_ASKED = 1,
|
|
2446
|
+
/**
|
|
2447
|
+
* @generated from enum value: OPEN_ALWAYS = 2;
|
|
2448
|
+
*/
|
|
2449
|
+
ALWAYS = 2
|
|
2450
|
+
}
|
|
2451
|
+
/**
|
|
2452
|
+
* Describes the enum gitd.v1.PullRequestSettings.Open.
|
|
2453
|
+
*/
|
|
2454
|
+
export declare const PullRequestSettings_OpenSchema: GenEnum<PullRequestSettings_Open>;
|
|
2455
|
+
/**
|
|
2456
|
+
* @generated from message gitd.v1.GetSettingsRequest
|
|
2457
|
+
*/
|
|
2458
|
+
export type GetSettingsRequest = Message<"gitd.v1.GetSettingsRequest"> & {};
|
|
2459
|
+
/**
|
|
2460
|
+
* Describes the message gitd.v1.GetSettingsRequest.
|
|
2461
|
+
* Use `create(GetSettingsRequestSchema)` to create a new message.
|
|
2462
|
+
*/
|
|
2463
|
+
export declare const GetSettingsRequestSchema: GenMessage<GetSettingsRequest>;
|
|
2464
|
+
/**
|
|
2465
|
+
* @generated from message gitd.v1.GetSettingsResponse
|
|
2466
|
+
*/
|
|
2467
|
+
export type GetSettingsResponse = Message<"gitd.v1.GetSettingsResponse"> & {
|
|
2468
|
+
/**
|
|
2469
|
+
* @generated from field: repeated gitd.v1.PublishSettings settings = 1;
|
|
2470
|
+
*/
|
|
2471
|
+
settings: PublishSettings[];
|
|
2472
|
+
};
|
|
2473
|
+
/**
|
|
2474
|
+
* Describes the message gitd.v1.GetSettingsResponse.
|
|
2475
|
+
* Use `create(GetSettingsResponseSchema)` to create a new message.
|
|
2476
|
+
*/
|
|
2477
|
+
export declare const GetSettingsResponseSchema: GenMessage<GetSettingsResponse>;
|
|
2478
|
+
/**
|
|
2479
|
+
* @generated from message gitd.v1.SetSettingsRequest
|
|
2480
|
+
*/
|
|
2481
|
+
export type SetSettingsRequest = Message<"gitd.v1.SetSettingsRequest"> & {
|
|
2482
|
+
/**
|
|
2483
|
+
* @generated from field: gitd.v1.PublishSettings settings = 1;
|
|
2484
|
+
*/
|
|
2485
|
+
settings?: PublishSettings | undefined;
|
|
2486
|
+
};
|
|
2487
|
+
/**
|
|
2488
|
+
* Describes the message gitd.v1.SetSettingsRequest.
|
|
2489
|
+
* Use `create(SetSettingsRequestSchema)` to create a new message.
|
|
2490
|
+
*/
|
|
2491
|
+
export declare const SetSettingsRequestSchema: GenMessage<SetSettingsRequest>;
|
|
2492
|
+
/**
|
|
2493
|
+
* @generated from message gitd.v1.SetSettingsResponse
|
|
2494
|
+
*/
|
|
2495
|
+
export type SetSettingsResponse = Message<"gitd.v1.SetSettingsResponse"> & {
|
|
2496
|
+
/**
|
|
2497
|
+
* @generated from field: gitd.v1.PublishSettings settings = 1;
|
|
2498
|
+
*/
|
|
2499
|
+
settings?: PublishSettings | undefined;
|
|
2500
|
+
};
|
|
2501
|
+
/**
|
|
2502
|
+
* Describes the message gitd.v1.SetSettingsResponse.
|
|
2503
|
+
* Use `create(SetSettingsResponseSchema)` to create a new message.
|
|
2504
|
+
*/
|
|
2505
|
+
export declare const SetSettingsResponseSchema: GenMessage<SetSettingsResponse>;
|
|
2506
|
+
/**
|
|
2507
|
+
* @generated from message gitd.v1.RemoveSettingsRequest
|
|
2508
|
+
*/
|
|
2509
|
+
export type RemoveSettingsRequest = Message<"gitd.v1.RemoveSettingsRequest"> & {
|
|
2510
|
+
/**
|
|
2511
|
+
* @generated from field: string url_prefix = 1;
|
|
2512
|
+
*/
|
|
2513
|
+
urlPrefix: string;
|
|
2514
|
+
};
|
|
2515
|
+
/**
|
|
2516
|
+
* Describes the message gitd.v1.RemoveSettingsRequest.
|
|
2517
|
+
* Use `create(RemoveSettingsRequestSchema)` to create a new message.
|
|
2518
|
+
*/
|
|
2519
|
+
export declare const RemoveSettingsRequestSchema: GenMessage<RemoveSettingsRequest>;
|
|
2520
|
+
/**
|
|
2521
|
+
* @generated from message gitd.v1.RemoveSettingsResponse
|
|
2522
|
+
*/
|
|
2523
|
+
export type RemoveSettingsResponse = Message<"gitd.v1.RemoveSettingsResponse"> & {};
|
|
2524
|
+
/**
|
|
2525
|
+
* Describes the message gitd.v1.RemoveSettingsResponse.
|
|
2526
|
+
* Use `create(RemoveSettingsResponseSchema)` to create a new message.
|
|
2527
|
+
*/
|
|
2528
|
+
export declare const RemoveSettingsResponseSchema: GenMessage<RemoveSettingsResponse>;
|
|
2529
|
+
/**
|
|
2530
|
+
* @generated from message gitd.v1.ListPresetsRequest
|
|
2531
|
+
*/
|
|
2532
|
+
export type ListPresetsRequest = Message<"gitd.v1.ListPresetsRequest"> & {};
|
|
2533
|
+
/**
|
|
2534
|
+
* Describes the message gitd.v1.ListPresetsRequest.
|
|
2535
|
+
* Use `create(ListPresetsRequestSchema)` to create a new message.
|
|
2536
|
+
*/
|
|
2537
|
+
export declare const ListPresetsRequestSchema: GenMessage<ListPresetsRequest>;
|
|
2538
|
+
/**
|
|
2539
|
+
* @generated from message gitd.v1.ListPresetsResponse
|
|
2540
|
+
*/
|
|
2541
|
+
export type ListPresetsResponse = Message<"gitd.v1.ListPresetsResponse"> & {
|
|
2542
|
+
/**
|
|
2543
|
+
* @generated from field: repeated gitd.v1.Preset presets = 1;
|
|
2544
|
+
*/
|
|
2545
|
+
presets: Preset[];
|
|
2546
|
+
};
|
|
2547
|
+
/**
|
|
2548
|
+
* Describes the message gitd.v1.ListPresetsResponse.
|
|
2549
|
+
* Use `create(ListPresetsResponseSchema)` to create a new message.
|
|
2550
|
+
*/
|
|
2551
|
+
export declare const ListPresetsResponseSchema: GenMessage<ListPresetsResponse>;
|
|
2552
|
+
/**
|
|
2553
|
+
* @generated from message gitd.v1.SetPresetRequest
|
|
2554
|
+
*/
|
|
2555
|
+
export type SetPresetRequest = Message<"gitd.v1.SetPresetRequest"> & {
|
|
2556
|
+
/**
|
|
2557
|
+
* @generated from field: gitd.v1.Preset preset = 1;
|
|
2558
|
+
*/
|
|
2559
|
+
preset?: Preset | undefined;
|
|
2560
|
+
};
|
|
2561
|
+
/**
|
|
2562
|
+
* Describes the message gitd.v1.SetPresetRequest.
|
|
2563
|
+
* Use `create(SetPresetRequestSchema)` to create a new message.
|
|
2564
|
+
*/
|
|
2565
|
+
export declare const SetPresetRequestSchema: GenMessage<SetPresetRequest>;
|
|
2566
|
+
/**
|
|
2567
|
+
* @generated from message gitd.v1.SetPresetResponse
|
|
2568
|
+
*/
|
|
2569
|
+
export type SetPresetResponse = Message<"gitd.v1.SetPresetResponse"> & {
|
|
2570
|
+
/**
|
|
2571
|
+
* @generated from field: gitd.v1.Preset preset = 1;
|
|
2572
|
+
*/
|
|
2573
|
+
preset?: Preset | undefined;
|
|
2574
|
+
};
|
|
2575
|
+
/**
|
|
2576
|
+
* Describes the message gitd.v1.SetPresetResponse.
|
|
2577
|
+
* Use `create(SetPresetResponseSchema)` to create a new message.
|
|
2578
|
+
*/
|
|
2579
|
+
export declare const SetPresetResponseSchema: GenMessage<SetPresetResponse>;
|
|
2580
|
+
/**
|
|
2581
|
+
* @generated from message gitd.v1.RemovePresetRequest
|
|
2582
|
+
*/
|
|
2583
|
+
export type RemovePresetRequest = Message<"gitd.v1.RemovePresetRequest"> & {
|
|
2584
|
+
/**
|
|
2585
|
+
* @generated from field: string name = 1;
|
|
2586
|
+
*/
|
|
2587
|
+
name: string;
|
|
2588
|
+
};
|
|
2589
|
+
/**
|
|
2590
|
+
* Describes the message gitd.v1.RemovePresetRequest.
|
|
2591
|
+
* Use `create(RemovePresetRequestSchema)` to create a new message.
|
|
2592
|
+
*/
|
|
2593
|
+
export declare const RemovePresetRequestSchema: GenMessage<RemovePresetRequest>;
|
|
2594
|
+
/**
|
|
2595
|
+
* @generated from message gitd.v1.RemovePresetResponse
|
|
2596
|
+
*/
|
|
2597
|
+
export type RemovePresetResponse = Message<"gitd.v1.RemovePresetResponse"> & {};
|
|
2598
|
+
/**
|
|
2599
|
+
* Describes the message gitd.v1.RemovePresetResponse.
|
|
2600
|
+
* Use `create(RemovePresetResponseSchema)` to create a new message.
|
|
2601
|
+
*/
|
|
2602
|
+
export declare const RemovePresetResponseSchema: GenMessage<RemovePresetResponse>;
|
|
2603
|
+
/**
|
|
2604
|
+
* How a workspace was made.
|
|
2605
|
+
*
|
|
2606
|
+
* @generated from enum gitd.v1.Strategy
|
|
2607
|
+
*/
|
|
2608
|
+
export declare enum Strategy {
|
|
2609
|
+
/**
|
|
2610
|
+
* @generated from enum value: STRATEGY_UNSPECIFIED = 0;
|
|
2611
|
+
*/
|
|
2612
|
+
UNSPECIFIED = 0,
|
|
2613
|
+
/**
|
|
2614
|
+
* Every file written.
|
|
2615
|
+
*
|
|
2616
|
+
* @generated from enum value: STRATEGY_COPY = 1;
|
|
2617
|
+
*/
|
|
2618
|
+
COPY = 1,
|
|
2619
|
+
/**
|
|
2620
|
+
* A layer of its own mounted on a shared template, read only: milliseconds, and only
|
|
2621
|
+
* what changes takes disk.
|
|
2622
|
+
*
|
|
2623
|
+
* @generated from enum value: STRATEGY_OVERLAY = 2;
|
|
2624
|
+
*/
|
|
2625
|
+
OVERLAY = 2,
|
|
2626
|
+
/**
|
|
2627
|
+
* The template cloned block by block: almost no disk.
|
|
2628
|
+
*
|
|
2629
|
+
* @generated from enum value: STRATEGY_REFLINK = 3;
|
|
2630
|
+
*/
|
|
2631
|
+
REFLINK = 3
|
|
2632
|
+
}
|
|
2633
|
+
/**
|
|
2634
|
+
* Describes the enum gitd.v1.Strategy.
|
|
2635
|
+
*/
|
|
2636
|
+
export declare const StrategySchema: GenEnum<Strategy>;
|
|
2637
|
+
/**
|
|
2638
|
+
* @generated from service gitd.v1.WorkspaceService
|
|
2639
|
+
*/
|
|
2640
|
+
export declare const WorkspaceService: GenService<{
|
|
2641
|
+
/**
|
|
2642
|
+
* Create a workspace at a path, from the repository's pool, at a branch or a commit.
|
|
2643
|
+
*
|
|
2644
|
+
* @generated from rpc gitd.v1.WorkspaceService.Prepare
|
|
2645
|
+
*/
|
|
2646
|
+
prepare: {
|
|
2647
|
+
methodKind: "server_streaming";
|
|
2648
|
+
input: typeof PrepareRequestSchema;
|
|
2649
|
+
output: typeof PrepareResponseSchema;
|
|
2650
|
+
};
|
|
2651
|
+
/**
|
|
2652
|
+
* Bring a workspace to the tip of its branch.
|
|
2653
|
+
*
|
|
2654
|
+
* @generated from rpc gitd.v1.WorkspaceService.Update
|
|
2655
|
+
*/
|
|
2656
|
+
update: {
|
|
2657
|
+
methodKind: "server_streaming";
|
|
2658
|
+
input: typeof UpdateRequestSchema;
|
|
2659
|
+
output: typeof UpdateResponseSchema;
|
|
2660
|
+
};
|
|
2661
|
+
/**
|
|
2662
|
+
* Move a workspace to a commit, as a rollback does; the pool fetches it when it lacks it.
|
|
2663
|
+
*
|
|
2664
|
+
* @generated from rpc gitd.v1.WorkspaceService.Checkout
|
|
2665
|
+
*/
|
|
2666
|
+
checkout: {
|
|
2667
|
+
methodKind: "server_streaming";
|
|
2668
|
+
input: typeof CheckoutRequestSchema;
|
|
2669
|
+
output: typeof CheckoutResponseSchema;
|
|
2670
|
+
};
|
|
2671
|
+
/**
|
|
2672
|
+
* Check out every submodule the workspace declares, or one.
|
|
2673
|
+
*
|
|
2674
|
+
* @generated from rpc gitd.v1.WorkspaceService.SyncSubmodules
|
|
2675
|
+
*/
|
|
2676
|
+
syncSubmodules: {
|
|
2677
|
+
methodKind: "server_streaming";
|
|
2678
|
+
input: typeof SyncSubmodulesRequestSchema;
|
|
2679
|
+
output: typeof SyncSubmodulesResponseSchema;
|
|
2680
|
+
};
|
|
2681
|
+
/**
|
|
2682
|
+
* What the workspace is on disk right now, without the network.
|
|
2683
|
+
*
|
|
2684
|
+
* @generated from rpc gitd.v1.WorkspaceService.Describe
|
|
2685
|
+
*/
|
|
2686
|
+
describe: {
|
|
2687
|
+
methodKind: "unary";
|
|
2688
|
+
input: typeof DescribeRequestSchema;
|
|
2689
|
+
output: typeof DescribeResponseSchema;
|
|
2690
|
+
};
|
|
2691
|
+
/**
|
|
2692
|
+
* Delete a workspace. Its pool stays.
|
|
2693
|
+
*
|
|
2694
|
+
* @generated from rpc gitd.v1.WorkspaceService.Remove
|
|
2695
|
+
*/
|
|
2696
|
+
remove: {
|
|
2697
|
+
methodKind: "unary";
|
|
2698
|
+
input: typeof RemoveRequestSchema;
|
|
2699
|
+
output: typeof RemoveResponseSchema;
|
|
2700
|
+
};
|
|
2701
|
+
/**
|
|
2702
|
+
* Take an existing clone in, linking it to a pool without fetching anything.
|
|
2703
|
+
*
|
|
2704
|
+
* @generated from rpc gitd.v1.WorkspaceService.Adopt
|
|
2705
|
+
*/
|
|
2706
|
+
adopt: {
|
|
2707
|
+
methodKind: "server_streaming";
|
|
2708
|
+
input: typeof AdoptRequestSchema;
|
|
2709
|
+
output: typeof AdoptResponseSchema;
|
|
2710
|
+
};
|
|
2711
|
+
/**
|
|
2712
|
+
* Push what was committed in a workspace to a new branch, with a token, so a pull or merge
|
|
2713
|
+
* request can be opened from it. New commits of its submodules go first, each to a
|
|
2714
|
+
* branch of the same name in its own repository. The branch must start with the
|
|
2715
|
+
* configured prefix, if there is one; every publish, done or refused, is in the audit log.
|
|
2716
|
+
*
|
|
2717
|
+
* @generated from rpc gitd.v1.WorkspaceService.Publish
|
|
2718
|
+
*/
|
|
2719
|
+
publish: {
|
|
2720
|
+
methodKind: "unary";
|
|
2721
|
+
input: typeof PublishRequestSchema;
|
|
2722
|
+
output: typeof PublishResponseSchema;
|
|
2723
|
+
};
|
|
2724
|
+
/**
|
|
2725
|
+
* What was changed in a workspace since gitd last put it on a commit — committed or not:
|
|
2726
|
+
* each file added, modified or deleted, with its lines. On an overlay workspace it is read
|
|
2727
|
+
* from the agent's own layer, and no git runs in the workspace.
|
|
2728
|
+
*
|
|
2729
|
+
* @generated from rpc gitd.v1.WorkspaceService.Changes
|
|
2730
|
+
*/
|
|
2731
|
+
changes: {
|
|
2732
|
+
methodKind: "unary";
|
|
2733
|
+
input: typeof ChangesRequestSchema;
|
|
2734
|
+
output: typeof ChangesResponseSchema;
|
|
2735
|
+
};
|
|
2736
|
+
/**
|
|
2737
|
+
* The unified diff of a workspace's changes, of some files or all, cut short at a size.
|
|
2738
|
+
*
|
|
2739
|
+
* @generated from rpc gitd.v1.WorkspaceService.Diff
|
|
2740
|
+
*/
|
|
2741
|
+
diff: {
|
|
2742
|
+
methodKind: "unary";
|
|
2743
|
+
input: typeof DiffRequestSchema;
|
|
2744
|
+
output: typeof DiffResponseSchema;
|
|
2745
|
+
};
|
|
2746
|
+
/**
|
|
2747
|
+
* How two works differ — two workspaces, two published branches, or one of each — file by
|
|
2748
|
+
* file, with their lines and, when asked, their diff: what choosing between attempts at
|
|
2749
|
+
* one task needs.
|
|
2750
|
+
*
|
|
2751
|
+
* @generated from rpc gitd.v1.WorkspaceService.Compare
|
|
2752
|
+
*/
|
|
2753
|
+
compare: {
|
|
2754
|
+
methodKind: "unary";
|
|
2755
|
+
input: typeof CompareRequestSchema;
|
|
2756
|
+
output: typeof CompareResponseSchema;
|
|
2757
|
+
};
|
|
2758
|
+
/**
|
|
2759
|
+
* Whether the committed work of several workspaces or published branches merges cleanly,
|
|
2760
|
+
* pair by pair, and on which files it does not. Read with git merge-tree in the pool,
|
|
2761
|
+
* running none of the repository's code.
|
|
2762
|
+
*
|
|
2763
|
+
* @generated from rpc gitd.v1.WorkspaceService.Conflicts
|
|
2764
|
+
*/
|
|
2765
|
+
conflicts: {
|
|
2766
|
+
methodKind: "unary";
|
|
2767
|
+
input: typeof ConflictsRequestSchema;
|
|
2768
|
+
output: typeof ConflictsResponseSchema;
|
|
2769
|
+
};
|
|
2770
|
+
/**
|
|
2771
|
+
* What happens to workspaces as it happens: made, changed, published, refused, removed.
|
|
2772
|
+
*
|
|
2773
|
+
* @generated from rpc gitd.v1.WorkspaceService.Watch
|
|
2774
|
+
*/
|
|
2775
|
+
watch: {
|
|
2776
|
+
methodKind: "server_streaming";
|
|
2777
|
+
input: typeof WatchRequestSchema;
|
|
2778
|
+
output: typeof WatchResponseSchema;
|
|
2779
|
+
};
|
|
2780
|
+
/**
|
|
2781
|
+
* Seal an overlay workspace's own layer — what installing its dependencies wrote — as a
|
|
2782
|
+
* warm layer of its repository, named, for later workspaces at the same commit to stand
|
|
2783
|
+
* on (PrepareRequest.warm) instead of installing again. The workspace is removed: its
|
|
2784
|
+
* layer is moved, not copied.
|
|
2785
|
+
*
|
|
2786
|
+
* @generated from rpc gitd.v1.WorkspaceService.Seal
|
|
2787
|
+
*/
|
|
2788
|
+
seal: {
|
|
2789
|
+
methodKind: "unary";
|
|
2790
|
+
input: typeof SealRequestSchema;
|
|
2791
|
+
output: typeof SealResponseSchema;
|
|
2792
|
+
};
|
|
2793
|
+
/**
|
|
2794
|
+
* The warm layers of a repository.
|
|
2795
|
+
*
|
|
2796
|
+
* @generated from rpc gitd.v1.WorkspaceService.ListWarm
|
|
2797
|
+
*/
|
|
2798
|
+
listWarm: {
|
|
2799
|
+
methodKind: "unary";
|
|
2800
|
+
input: typeof ListWarmRequestSchema;
|
|
2801
|
+
output: typeof ListWarmResponseSchema;
|
|
2802
|
+
};
|
|
2803
|
+
}>;
|
|
2804
|
+
/**
|
|
2805
|
+
* @generated from service gitd.v1.RepositoryService
|
|
2806
|
+
*/
|
|
2807
|
+
export declare const RepositoryService: GenService<{
|
|
2808
|
+
/**
|
|
2809
|
+
* Whether a repository can be read with these credentials, and its branches.
|
|
2810
|
+
*
|
|
2811
|
+
* @generated from rpc gitd.v1.RepositoryService.Probe
|
|
2812
|
+
*/
|
|
2813
|
+
probe: {
|
|
2814
|
+
methodKind: "unary";
|
|
2815
|
+
input: typeof ProbeRequestSchema;
|
|
2816
|
+
output: typeof ProbeResponseSchema;
|
|
2817
|
+
};
|
|
2818
|
+
}>;
|
|
2819
|
+
/**
|
|
2820
|
+
* @generated from service gitd.v1.ServerService
|
|
2821
|
+
*/
|
|
2822
|
+
export declare const ServerService: GenService<{
|
|
2823
|
+
/**
|
|
2824
|
+
* Which gitd answers, and on which git, so a client can tell whether it may use it.
|
|
2825
|
+
*
|
|
2826
|
+
* @generated from rpc gitd.v1.ServerService.Info
|
|
2827
|
+
*/
|
|
2828
|
+
info: {
|
|
2829
|
+
methodKind: "unary";
|
|
2830
|
+
input: typeof InfoRequestSchema;
|
|
2831
|
+
output: typeof InfoResponseSchema;
|
|
2832
|
+
};
|
|
2833
|
+
/**
|
|
2834
|
+
* Remove now the pools no workspace borrows from and nothing has used for at least
|
|
2835
|
+
* `unused_for_seconds`, as the maintenance round does after `retire_after`.
|
|
2836
|
+
*
|
|
2837
|
+
* @generated from rpc gitd.v1.ServerService.Retire
|
|
2838
|
+
*/
|
|
2839
|
+
retire: {
|
|
2840
|
+
methodKind: "unary";
|
|
2841
|
+
input: typeof RetireRequestSchema;
|
|
2842
|
+
output: typeof RetireResponseSchema;
|
|
2843
|
+
};
|
|
2844
|
+
/**
|
|
2845
|
+
* The audit log: every publish, done or refused, and every change to connections and
|
|
2846
|
+
* publishing settings, newest first.
|
|
2847
|
+
*
|
|
2848
|
+
* @generated from rpc gitd.v1.ServerService.Audit
|
|
2849
|
+
*/
|
|
2850
|
+
audit: {
|
|
2851
|
+
methodKind: "unary";
|
|
2852
|
+
input: typeof AuditRequestSchema;
|
|
2853
|
+
output: typeof AuditResponseSchema;
|
|
2854
|
+
};
|
|
2855
|
+
}>;
|
|
2856
|
+
/**
|
|
2857
|
+
* The credentials gitd keeps, managed by a platform from its own pages instead of a file:
|
|
2858
|
+
* GitHub connected through the organisation's own App, by signing in, or through an App
|
|
2859
|
+
* the platform already has; and tokens for any host. gitd keeps them under its state
|
|
2860
|
+
* directory, applies them at once, and never answers with a secret. None of this is
|
|
2861
|
+
* offered to agents through MCP.
|
|
2862
|
+
*
|
|
2863
|
+
* @generated from service gitd.v1.ConnectionService
|
|
2864
|
+
*/
|
|
2865
|
+
export declare const ConnectionService: GenService<{
|
|
2866
|
+
/**
|
|
2867
|
+
* Start creating the organisation's own GitHub App from a manifest: the answer says
|
|
2868
|
+
* where the person's browser posts the manifest. GitHub then sends the person to
|
|
2869
|
+
* `redirect_url` with a code and the state, for CompleteGitHubApp.
|
|
2870
|
+
*
|
|
2871
|
+
* @generated from rpc gitd.v1.ConnectionService.BeginGitHubApp
|
|
2872
|
+
*/
|
|
2873
|
+
beginGitHubApp: {
|
|
2874
|
+
methodKind: "unary";
|
|
2875
|
+
input: typeof BeginGitHubAppRequestSchema;
|
|
2876
|
+
output: typeof BeginGitHubAppResponseSchema;
|
|
2877
|
+
};
|
|
2878
|
+
/**
|
|
2879
|
+
* Finish creating the App: gitd exchanges the code for the App's ID and private key and
|
|
2880
|
+
* keeps them. The person then installs the App on the repositories it may reach.
|
|
2881
|
+
*
|
|
2882
|
+
* @generated from rpc gitd.v1.ConnectionService.CompleteGitHubApp
|
|
2883
|
+
*/
|
|
2884
|
+
completeGitHubApp: {
|
|
2885
|
+
methodKind: "unary";
|
|
2886
|
+
input: typeof CompleteGitHubAppRequestSchema;
|
|
2887
|
+
output: typeof CompleteGitHubAppResponseSchema;
|
|
2888
|
+
};
|
|
2889
|
+
/**
|
|
2890
|
+
* Start signing in to GitHub with gitd's public App (GitHub's device flow): the answer
|
|
2891
|
+
* has the code the person enters at GitHub.
|
|
2892
|
+
*
|
|
2893
|
+
* @generated from rpc gitd.v1.ConnectionService.StartGitHubLogin
|
|
2894
|
+
*/
|
|
2895
|
+
startGitHubLogin: {
|
|
2896
|
+
methodKind: "unary";
|
|
2897
|
+
input: typeof StartGitHubLoginRequestSchema;
|
|
2898
|
+
output: typeof StartGitHubLoginResponseSchema;
|
|
2899
|
+
};
|
|
2900
|
+
/**
|
|
2901
|
+
* Wait until the person has entered the code, and keep the sign-in. Pull requests then
|
|
2902
|
+
* appear as that person.
|
|
2903
|
+
*
|
|
2904
|
+
* @generated from rpc gitd.v1.ConnectionService.FinishGitHubLogin
|
|
2905
|
+
*/
|
|
2906
|
+
finishGitHubLogin: {
|
|
2907
|
+
methodKind: "unary";
|
|
2908
|
+
input: typeof FinishGitHubLoginRequestSchema;
|
|
2909
|
+
output: typeof FinishGitHubLoginResponseSchema;
|
|
2910
|
+
};
|
|
2911
|
+
/**
|
|
2912
|
+
* Keep a GitHub App the platform already has, by its ID and private key.
|
|
2913
|
+
*
|
|
2914
|
+
* @generated from rpc gitd.v1.ConnectionService.AddGitHubApp
|
|
2915
|
+
*/
|
|
2916
|
+
addGitHubApp: {
|
|
2917
|
+
methodKind: "unary";
|
|
2918
|
+
input: typeof AddGitHubAppRequestSchema;
|
|
2919
|
+
output: typeof AddGitHubAppResponseSchema;
|
|
2920
|
+
};
|
|
2921
|
+
/**
|
|
2922
|
+
* Keep a token for the repositories under a prefix, on any host.
|
|
2923
|
+
*
|
|
2924
|
+
* @generated from rpc gitd.v1.ConnectionService.AddToken
|
|
2925
|
+
*/
|
|
2926
|
+
addToken: {
|
|
2927
|
+
methodKind: "unary";
|
|
2928
|
+
input: typeof AddTokenRequestSchema;
|
|
2929
|
+
output: typeof AddTokenResponseSchema;
|
|
2930
|
+
};
|
|
2931
|
+
/**
|
|
2932
|
+
* The connections gitd keeps, those of the configuration file included, never a secret.
|
|
2933
|
+
*
|
|
2934
|
+
* @generated from rpc gitd.v1.ConnectionService.ListConnections
|
|
2935
|
+
*/
|
|
2936
|
+
listConnections: {
|
|
2937
|
+
methodKind: "unary";
|
|
2938
|
+
input: typeof ListConnectionsRequestSchema;
|
|
2939
|
+
output: typeof ListConnectionsResponseSchema;
|
|
2940
|
+
};
|
|
2941
|
+
/**
|
|
2942
|
+
* Forget a connection made through the API. One from the configuration file is refused.
|
|
2943
|
+
*
|
|
2944
|
+
* @generated from rpc gitd.v1.ConnectionService.RemoveConnection
|
|
2945
|
+
*/
|
|
2946
|
+
removeConnection: {
|
|
2947
|
+
methodKind: "unary";
|
|
2948
|
+
input: typeof RemoveConnectionRequestSchema;
|
|
2949
|
+
output: typeof RemoveConnectionResponseSchema;
|
|
2950
|
+
};
|
|
2951
|
+
}>;
|
|
2952
|
+
/**
|
|
2953
|
+
* The rules publishing follows, per repository prefix, managed by a platform from its own
|
|
2954
|
+
* pages instead of a file: which paths a publish may not change or delete, how many files
|
|
2955
|
+
* it may change, the branch prefix, and how pull requests are opened; and the presets,
|
|
2956
|
+
* named sets of rules that settings use.
|
|
2957
|
+
*
|
|
2958
|
+
* @generated from service gitd.v1.PublishingService
|
|
2959
|
+
*/
|
|
2960
|
+
export declare const PublishingService: GenService<{
|
|
2961
|
+
/**
|
|
2962
|
+
* Every setting, those of the configuration file included.
|
|
2963
|
+
*
|
|
2964
|
+
* @generated from rpc gitd.v1.PublishingService.GetSettings
|
|
2965
|
+
*/
|
|
2966
|
+
getSettings: {
|
|
2967
|
+
methodKind: "unary";
|
|
2968
|
+
input: typeof GetSettingsRequestSchema;
|
|
2969
|
+
output: typeof GetSettingsResponseSchema;
|
|
2970
|
+
};
|
|
2971
|
+
/**
|
|
2972
|
+
* Keep the settings of a prefix, replacing those it had.
|
|
2973
|
+
*
|
|
2974
|
+
* @generated from rpc gitd.v1.PublishingService.SetSettings
|
|
2975
|
+
*/
|
|
2976
|
+
setSettings: {
|
|
2977
|
+
methodKind: "unary";
|
|
2978
|
+
input: typeof SetSettingsRequestSchema;
|
|
2979
|
+
output: typeof SetSettingsResponseSchema;
|
|
2980
|
+
};
|
|
2981
|
+
/**
|
|
2982
|
+
* Forget the settings of a prefix. Those of the configuration file are refused.
|
|
2983
|
+
*
|
|
2984
|
+
* @generated from rpc gitd.v1.PublishingService.RemoveSettings
|
|
2985
|
+
*/
|
|
2986
|
+
removeSettings: {
|
|
2987
|
+
methodKind: "unary";
|
|
2988
|
+
input: typeof RemoveSettingsRequestSchema;
|
|
2989
|
+
output: typeof RemoveSettingsResponseSchema;
|
|
2990
|
+
};
|
|
2991
|
+
/**
|
|
2992
|
+
* Every preset: gitd's own (`recommended`), the configuration file's and those set
|
|
2993
|
+
* through the API, as they apply.
|
|
2994
|
+
*
|
|
2995
|
+
* @generated from rpc gitd.v1.PublishingService.ListPresets
|
|
2996
|
+
*/
|
|
2997
|
+
listPresets: {
|
|
2998
|
+
methodKind: "unary";
|
|
2999
|
+
input: typeof ListPresetsRequestSchema;
|
|
3000
|
+
output: typeof ListPresetsResponseSchema;
|
|
3001
|
+
};
|
|
3002
|
+
/**
|
|
3003
|
+
* Keep a preset, replacing one of the same name; one named `recommended` replaces gitd's.
|
|
3004
|
+
*
|
|
3005
|
+
* @generated from rpc gitd.v1.PublishingService.SetPreset
|
|
3006
|
+
*/
|
|
3007
|
+
setPreset: {
|
|
3008
|
+
methodKind: "unary";
|
|
3009
|
+
input: typeof SetPresetRequestSchema;
|
|
3010
|
+
output: typeof SetPresetResponseSchema;
|
|
3011
|
+
};
|
|
3012
|
+
/**
|
|
3013
|
+
* Forget a preset set through the API: refused while settings use it, unless gitd has its
|
|
3014
|
+
* own of that name, which then applies again.
|
|
3015
|
+
*
|
|
3016
|
+
* @generated from rpc gitd.v1.PublishingService.RemovePreset
|
|
3017
|
+
*/
|
|
3018
|
+
removePreset: {
|
|
3019
|
+
methodKind: "unary";
|
|
3020
|
+
input: typeof RemovePresetRequestSchema;
|
|
3021
|
+
output: typeof RemovePresetResponseSchema;
|
|
3022
|
+
};
|
|
3023
|
+
}>;
|