gitd-client 0.0.0-stage → 0.7.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/convert.d.ts +12 -0
- package/dist/convert.js +80 -0
- package/dist/errors.d.ts +13 -0
- package/dist/errors.js +30 -0
- package/dist/gen/gitd/v1/gitd_pb.d.ts +1258 -0
- package/dist/gen/gitd/v1/gitd_pb.js +336 -0
- package/dist/gitd.d.ts +36 -0
- package/dist/gitd.js +115 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -0
- package/dist/types.d.ts +126 -0
- package/dist/types.js +1 -0
- package/package.json +50 -4
|
@@ -0,0 +1,1258 @@
|
|
|
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
|
+
/**
|
|
260
|
+
* Describes the enum gitd.v1.GitFailure.Reason.
|
|
261
|
+
*/
|
|
262
|
+
export declare const GitFailure_ReasonSchema: GenEnum<GitFailure_Reason>;
|
|
263
|
+
/**
|
|
264
|
+
* @generated from message gitd.v1.PrepareRequest
|
|
265
|
+
*/
|
|
266
|
+
export type PrepareRequest = Message<"gitd.v1.PrepareRequest"> & {
|
|
267
|
+
/**
|
|
268
|
+
* The repository: `https://host/owner/[group/…]name`, `user@host:owner/name` or
|
|
269
|
+
* `ssh://user@host[:port]/owner/name`, with or without `.git`.
|
|
270
|
+
*
|
|
271
|
+
* @generated from field: string url = 1;
|
|
272
|
+
*/
|
|
273
|
+
url: string;
|
|
274
|
+
/**
|
|
275
|
+
* An absolute path inside one of the roots gitd is configured with.
|
|
276
|
+
*
|
|
277
|
+
* @generated from field: string path = 2;
|
|
278
|
+
*/
|
|
279
|
+
path: string;
|
|
280
|
+
/**
|
|
281
|
+
* @generated from field: gitd.v1.Revision revision = 3;
|
|
282
|
+
*/
|
|
283
|
+
revision?: Revision | undefined;
|
|
284
|
+
/**
|
|
285
|
+
* @generated from field: bool with_submodules = 4;
|
|
286
|
+
*/
|
|
287
|
+
withSubmodules: boolean;
|
|
288
|
+
/**
|
|
289
|
+
* @generated from field: repeated gitd.v1.Credential credentials = 5;
|
|
290
|
+
*/
|
|
291
|
+
credentials: Credential[];
|
|
292
|
+
/**
|
|
293
|
+
* The repository's whole history, for `git log` and `git blame` to go back as far as in
|
|
294
|
+
* a clone; later updates keep it.
|
|
295
|
+
* Otherwise only what is checked out, without the history behind it; submodules are
|
|
296
|
+
* always so.
|
|
297
|
+
*
|
|
298
|
+
* @generated from field: bool full_history = 6;
|
|
299
|
+
*/
|
|
300
|
+
fullHistory: boolean;
|
|
301
|
+
/**
|
|
302
|
+
* How to make it, when there is a preference: STRATEGY_COPY writes every file even where
|
|
303
|
+
* an overlay could be mounted. Unspecified is gitd's choice, the fastest this machine
|
|
304
|
+
* allows. A strategy that cannot run here falls back to copy; the result says which ran.
|
|
305
|
+
*
|
|
306
|
+
* @generated from field: gitd.v1.Strategy strategy = 7;
|
|
307
|
+
*/
|
|
308
|
+
strategy: Strategy;
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* Describes the message gitd.v1.PrepareRequest.
|
|
312
|
+
* Use `create(PrepareRequestSchema)` to create a new message.
|
|
313
|
+
*/
|
|
314
|
+
export declare const PrepareRequestSchema: GenMessage<PrepareRequest>;
|
|
315
|
+
/**
|
|
316
|
+
* The directories of an overlay workspace: the template below, read only, and the
|
|
317
|
+
* workspace's own layer above.
|
|
318
|
+
*
|
|
319
|
+
* @generated from message gitd.v1.Layers
|
|
320
|
+
*/
|
|
321
|
+
export type Layers = Message<"gitd.v1.Layers"> & {
|
|
322
|
+
/**
|
|
323
|
+
* @generated from field: string lower = 1;
|
|
324
|
+
*/
|
|
325
|
+
lower: string;
|
|
326
|
+
/**
|
|
327
|
+
* @generated from field: string upper = 2;
|
|
328
|
+
*/
|
|
329
|
+
upper: string;
|
|
330
|
+
/**
|
|
331
|
+
* @generated from field: string work = 3;
|
|
332
|
+
*/
|
|
333
|
+
work: string;
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* Describes the message gitd.v1.Layers.
|
|
337
|
+
* Use `create(LayersSchema)` to create a new message.
|
|
338
|
+
*/
|
|
339
|
+
export declare const LayersSchema: GenMessage<Layers>;
|
|
340
|
+
/**
|
|
341
|
+
* @generated from message gitd.v1.PrepareResponse
|
|
342
|
+
*/
|
|
343
|
+
export type PrepareResponse = Message<"gitd.v1.PrepareResponse"> & {
|
|
344
|
+
/**
|
|
345
|
+
* @generated from oneof gitd.v1.PrepareResponse.event
|
|
346
|
+
*/
|
|
347
|
+
event: {
|
|
348
|
+
/**
|
|
349
|
+
* @generated from field: gitd.v1.Progress progress = 1;
|
|
350
|
+
*/
|
|
351
|
+
value: Progress;
|
|
352
|
+
case: "progress";
|
|
353
|
+
} | {
|
|
354
|
+
/**
|
|
355
|
+
* @generated from field: gitd.v1.WorkspaceResult result = 2;
|
|
356
|
+
*/
|
|
357
|
+
value: WorkspaceResult;
|
|
358
|
+
case: "result";
|
|
359
|
+
} | {
|
|
360
|
+
case: undefined;
|
|
361
|
+
value?: undefined;
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
/**
|
|
365
|
+
* Describes the message gitd.v1.PrepareResponse.
|
|
366
|
+
* Use `create(PrepareResponseSchema)` to create a new message.
|
|
367
|
+
*/
|
|
368
|
+
export declare const PrepareResponseSchema: GenMessage<PrepareResponse>;
|
|
369
|
+
/**
|
|
370
|
+
* @generated from message gitd.v1.WorkspaceResult
|
|
371
|
+
*/
|
|
372
|
+
export type WorkspaceResult = Message<"gitd.v1.WorkspaceResult"> & {
|
|
373
|
+
/**
|
|
374
|
+
* @generated from field: string commit = 1;
|
|
375
|
+
*/
|
|
376
|
+
commit: string;
|
|
377
|
+
/**
|
|
378
|
+
* @generated from field: string branch = 2;
|
|
379
|
+
*/
|
|
380
|
+
branch: string;
|
|
381
|
+
/**
|
|
382
|
+
* @generated from field: repeated gitd.v1.PendingSubmodule pending_submodules = 3;
|
|
383
|
+
*/
|
|
384
|
+
pendingSubmodules: PendingSubmodule[];
|
|
385
|
+
/**
|
|
386
|
+
* How the workspace was made, and its layers when by overlay.
|
|
387
|
+
*
|
|
388
|
+
* @generated from field: gitd.v1.Strategy strategy = 4;
|
|
389
|
+
*/
|
|
390
|
+
strategy: Strategy;
|
|
391
|
+
/**
|
|
392
|
+
* @generated from field: gitd.v1.Layers layers = 5;
|
|
393
|
+
*/
|
|
394
|
+
layers?: Layers | undefined;
|
|
395
|
+
/**
|
|
396
|
+
* The patterns the repository's .gitattributes sends to git LFS, e.g. "*.onnx": those files
|
|
397
|
+
* are pointers in the workspace, as gitd does not download LFS objects. Empty when the
|
|
398
|
+
* repository uses no LFS.
|
|
399
|
+
*
|
|
400
|
+
* @generated from field: repeated string lfs_patterns = 6;
|
|
401
|
+
*/
|
|
402
|
+
lfsPatterns: string[];
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* Describes the message gitd.v1.WorkspaceResult.
|
|
406
|
+
* Use `create(WorkspaceResultSchema)` to create a new message.
|
|
407
|
+
*/
|
|
408
|
+
export declare const WorkspaceResultSchema: GenMessage<WorkspaceResult>;
|
|
409
|
+
/**
|
|
410
|
+
* @generated from message gitd.v1.UpdateRequest
|
|
411
|
+
*/
|
|
412
|
+
export type UpdateRequest = Message<"gitd.v1.UpdateRequest"> & {
|
|
413
|
+
/**
|
|
414
|
+
* @generated from field: string path = 1;
|
|
415
|
+
*/
|
|
416
|
+
path: string;
|
|
417
|
+
/**
|
|
418
|
+
* Empty means the branch the workspace follows, also after a rollback left it detached.
|
|
419
|
+
*
|
|
420
|
+
* @generated from field: string branch = 2;
|
|
421
|
+
*/
|
|
422
|
+
branch: string;
|
|
423
|
+
/**
|
|
424
|
+
* @generated from field: bool with_submodules = 3;
|
|
425
|
+
*/
|
|
426
|
+
withSubmodules: boolean;
|
|
427
|
+
/**
|
|
428
|
+
* @generated from field: repeated gitd.v1.Credential credentials = 4;
|
|
429
|
+
*/
|
|
430
|
+
credentials: Credential[];
|
|
431
|
+
};
|
|
432
|
+
/**
|
|
433
|
+
* Describes the message gitd.v1.UpdateRequest.
|
|
434
|
+
* Use `create(UpdateRequestSchema)` to create a new message.
|
|
435
|
+
*/
|
|
436
|
+
export declare const UpdateRequestSchema: GenMessage<UpdateRequest>;
|
|
437
|
+
/**
|
|
438
|
+
* @generated from message gitd.v1.UpdateResponse
|
|
439
|
+
*/
|
|
440
|
+
export type UpdateResponse = Message<"gitd.v1.UpdateResponse"> & {
|
|
441
|
+
/**
|
|
442
|
+
* @generated from oneof gitd.v1.UpdateResponse.event
|
|
443
|
+
*/
|
|
444
|
+
event: {
|
|
445
|
+
/**
|
|
446
|
+
* @generated from field: gitd.v1.Progress progress = 1;
|
|
447
|
+
*/
|
|
448
|
+
value: Progress;
|
|
449
|
+
case: "progress";
|
|
450
|
+
} | {
|
|
451
|
+
/**
|
|
452
|
+
* @generated from field: gitd.v1.WorkspaceResult result = 2;
|
|
453
|
+
*/
|
|
454
|
+
value: WorkspaceResult;
|
|
455
|
+
case: "result";
|
|
456
|
+
} | {
|
|
457
|
+
case: undefined;
|
|
458
|
+
value?: undefined;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
/**
|
|
462
|
+
* Describes the message gitd.v1.UpdateResponse.
|
|
463
|
+
* Use `create(UpdateResponseSchema)` to create a new message.
|
|
464
|
+
*/
|
|
465
|
+
export declare const UpdateResponseSchema: GenMessage<UpdateResponse>;
|
|
466
|
+
/**
|
|
467
|
+
* @generated from message gitd.v1.CheckoutRequest
|
|
468
|
+
*/
|
|
469
|
+
export type CheckoutRequest = Message<"gitd.v1.CheckoutRequest"> & {
|
|
470
|
+
/**
|
|
471
|
+
* @generated from field: string path = 1;
|
|
472
|
+
*/
|
|
473
|
+
path: string;
|
|
474
|
+
/**
|
|
475
|
+
* Required: the commit to move to.
|
|
476
|
+
*
|
|
477
|
+
* @generated from field: string commit = 2;
|
|
478
|
+
*/
|
|
479
|
+
commit: string;
|
|
480
|
+
/**
|
|
481
|
+
* @generated from field: bool with_submodules = 3;
|
|
482
|
+
*/
|
|
483
|
+
withSubmodules: boolean;
|
|
484
|
+
/**
|
|
485
|
+
* @generated from field: repeated gitd.v1.Credential credentials = 4;
|
|
486
|
+
*/
|
|
487
|
+
credentials: Credential[];
|
|
488
|
+
};
|
|
489
|
+
/**
|
|
490
|
+
* Describes the message gitd.v1.CheckoutRequest.
|
|
491
|
+
* Use `create(CheckoutRequestSchema)` to create a new message.
|
|
492
|
+
*/
|
|
493
|
+
export declare const CheckoutRequestSchema: GenMessage<CheckoutRequest>;
|
|
494
|
+
/**
|
|
495
|
+
* @generated from message gitd.v1.CheckoutResponse
|
|
496
|
+
*/
|
|
497
|
+
export type CheckoutResponse = Message<"gitd.v1.CheckoutResponse"> & {
|
|
498
|
+
/**
|
|
499
|
+
* @generated from oneof gitd.v1.CheckoutResponse.event
|
|
500
|
+
*/
|
|
501
|
+
event: {
|
|
502
|
+
/**
|
|
503
|
+
* @generated from field: gitd.v1.Progress progress = 1;
|
|
504
|
+
*/
|
|
505
|
+
value: Progress;
|
|
506
|
+
case: "progress";
|
|
507
|
+
} | {
|
|
508
|
+
/**
|
|
509
|
+
* @generated from field: gitd.v1.WorkspaceResult result = 2;
|
|
510
|
+
*/
|
|
511
|
+
value: WorkspaceResult;
|
|
512
|
+
case: "result";
|
|
513
|
+
} | {
|
|
514
|
+
case: undefined;
|
|
515
|
+
value?: undefined;
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
/**
|
|
519
|
+
* Describes the message gitd.v1.CheckoutResponse.
|
|
520
|
+
* Use `create(CheckoutResponseSchema)` to create a new message.
|
|
521
|
+
*/
|
|
522
|
+
export declare const CheckoutResponseSchema: GenMessage<CheckoutResponse>;
|
|
523
|
+
/**
|
|
524
|
+
* @generated from message gitd.v1.SyncSubmodulesRequest
|
|
525
|
+
*/
|
|
526
|
+
export type SyncSubmodulesRequest = Message<"gitd.v1.SyncSubmodulesRequest"> & {
|
|
527
|
+
/**
|
|
528
|
+
* @generated from field: string path = 1;
|
|
529
|
+
*/
|
|
530
|
+
path: string;
|
|
531
|
+
/**
|
|
532
|
+
* Only this submodule, by repository URL. Empty means all of them.
|
|
533
|
+
*
|
|
534
|
+
* @generated from field: string only_url = 2;
|
|
535
|
+
*/
|
|
536
|
+
onlyUrl: string;
|
|
537
|
+
/**
|
|
538
|
+
* @generated from field: repeated gitd.v1.Credential credentials = 3;
|
|
539
|
+
*/
|
|
540
|
+
credentials: Credential[];
|
|
541
|
+
};
|
|
542
|
+
/**
|
|
543
|
+
* Describes the message gitd.v1.SyncSubmodulesRequest.
|
|
544
|
+
* Use `create(SyncSubmodulesRequestSchema)` to create a new message.
|
|
545
|
+
*/
|
|
546
|
+
export declare const SyncSubmodulesRequestSchema: GenMessage<SyncSubmodulesRequest>;
|
|
547
|
+
/**
|
|
548
|
+
* @generated from message gitd.v1.SyncSubmodulesResponse
|
|
549
|
+
*/
|
|
550
|
+
export type SyncSubmodulesResponse = Message<"gitd.v1.SyncSubmodulesResponse"> & {
|
|
551
|
+
/**
|
|
552
|
+
* @generated from oneof gitd.v1.SyncSubmodulesResponse.event
|
|
553
|
+
*/
|
|
554
|
+
event: {
|
|
555
|
+
/**
|
|
556
|
+
* @generated from field: gitd.v1.Progress progress = 1;
|
|
557
|
+
*/
|
|
558
|
+
value: Progress;
|
|
559
|
+
case: "progress";
|
|
560
|
+
} | {
|
|
561
|
+
/**
|
|
562
|
+
* @generated from field: gitd.v1.SyncSubmodulesResult result = 2;
|
|
563
|
+
*/
|
|
564
|
+
value: SyncSubmodulesResult;
|
|
565
|
+
case: "result";
|
|
566
|
+
} | {
|
|
567
|
+
case: undefined;
|
|
568
|
+
value?: undefined;
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
/**
|
|
572
|
+
* Describes the message gitd.v1.SyncSubmodulesResponse.
|
|
573
|
+
* Use `create(SyncSubmodulesResponseSchema)` to create a new message.
|
|
574
|
+
*/
|
|
575
|
+
export declare const SyncSubmodulesResponseSchema: GenMessage<SyncSubmodulesResponse>;
|
|
576
|
+
/**
|
|
577
|
+
* @generated from message gitd.v1.SyncSubmodulesResult
|
|
578
|
+
*/
|
|
579
|
+
export type SyncSubmodulesResult = Message<"gitd.v1.SyncSubmodulesResult"> & {
|
|
580
|
+
/**
|
|
581
|
+
* @generated from field: repeated gitd.v1.SubmoduleState submodules = 1;
|
|
582
|
+
*/
|
|
583
|
+
submodules: SubmoduleState[];
|
|
584
|
+
/**
|
|
585
|
+
* @generated from field: repeated gitd.v1.PendingSubmodule pending_submodules = 2;
|
|
586
|
+
*/
|
|
587
|
+
pendingSubmodules: PendingSubmodule[];
|
|
588
|
+
};
|
|
589
|
+
/**
|
|
590
|
+
* Describes the message gitd.v1.SyncSubmodulesResult.
|
|
591
|
+
* Use `create(SyncSubmodulesResultSchema)` to create a new message.
|
|
592
|
+
*/
|
|
593
|
+
export declare const SyncSubmodulesResultSchema: GenMessage<SyncSubmodulesResult>;
|
|
594
|
+
/**
|
|
595
|
+
* @generated from message gitd.v1.DescribeRequest
|
|
596
|
+
*/
|
|
597
|
+
export type DescribeRequest = Message<"gitd.v1.DescribeRequest"> & {
|
|
598
|
+
/**
|
|
599
|
+
* @generated from field: string path = 1;
|
|
600
|
+
*/
|
|
601
|
+
path: string;
|
|
602
|
+
};
|
|
603
|
+
/**
|
|
604
|
+
* Describes the message gitd.v1.DescribeRequest.
|
|
605
|
+
* Use `create(DescribeRequestSchema)` to create a new message.
|
|
606
|
+
*/
|
|
607
|
+
export declare const DescribeRequestSchema: GenMessage<DescribeRequest>;
|
|
608
|
+
/**
|
|
609
|
+
* @generated from message gitd.v1.DescribeResponse
|
|
610
|
+
*/
|
|
611
|
+
export type DescribeResponse = Message<"gitd.v1.DescribeResponse"> & {
|
|
612
|
+
/**
|
|
613
|
+
* @generated from field: string url = 1;
|
|
614
|
+
*/
|
|
615
|
+
url: string;
|
|
616
|
+
/**
|
|
617
|
+
* @generated from field: string commit = 2;
|
|
618
|
+
*/
|
|
619
|
+
commit: string;
|
|
620
|
+
/**
|
|
621
|
+
* @generated from field: string branch = 3;
|
|
622
|
+
*/
|
|
623
|
+
branch: string;
|
|
624
|
+
/**
|
|
625
|
+
* Whether something on disk differs from the commit, as somebody running git in it may
|
|
626
|
+
* leave it.
|
|
627
|
+
*
|
|
628
|
+
* @generated from field: bool modified = 4;
|
|
629
|
+
*/
|
|
630
|
+
modified: boolean;
|
|
631
|
+
/**
|
|
632
|
+
* @generated from field: repeated gitd.v1.SubmoduleState submodules = 5;
|
|
633
|
+
*/
|
|
634
|
+
submodules: SubmoduleState[];
|
|
635
|
+
/**
|
|
636
|
+
* How the workspace was made, and its layers when by overlay. Workspaces made before
|
|
637
|
+
* gitd said so read as STRATEGY_COPY.
|
|
638
|
+
*
|
|
639
|
+
* @generated from field: gitd.v1.Strategy strategy = 6;
|
|
640
|
+
*/
|
|
641
|
+
strategy: Strategy;
|
|
642
|
+
/**
|
|
643
|
+
* @generated from field: gitd.v1.Layers layers = 7;
|
|
644
|
+
*/
|
|
645
|
+
layers?: Layers | undefined;
|
|
646
|
+
/**
|
|
647
|
+
* The patterns its .gitattributes sends to git LFS, whose files are pointers here.
|
|
648
|
+
*
|
|
649
|
+
* @generated from field: repeated string lfs_patterns = 8;
|
|
650
|
+
*/
|
|
651
|
+
lfsPatterns: string[];
|
|
652
|
+
};
|
|
653
|
+
/**
|
|
654
|
+
* Describes the message gitd.v1.DescribeResponse.
|
|
655
|
+
* Use `create(DescribeResponseSchema)` to create a new message.
|
|
656
|
+
*/
|
|
657
|
+
export declare const DescribeResponseSchema: GenMessage<DescribeResponse>;
|
|
658
|
+
/**
|
|
659
|
+
* @generated from message gitd.v1.RemoveRequest
|
|
660
|
+
*/
|
|
661
|
+
export type RemoveRequest = Message<"gitd.v1.RemoveRequest"> & {
|
|
662
|
+
/**
|
|
663
|
+
* @generated from field: string path = 1;
|
|
664
|
+
*/
|
|
665
|
+
path: string;
|
|
666
|
+
};
|
|
667
|
+
/**
|
|
668
|
+
* Describes the message gitd.v1.RemoveRequest.
|
|
669
|
+
* Use `create(RemoveRequestSchema)` to create a new message.
|
|
670
|
+
*/
|
|
671
|
+
export declare const RemoveRequestSchema: GenMessage<RemoveRequest>;
|
|
672
|
+
/**
|
|
673
|
+
* @generated from message gitd.v1.RemoveResponse
|
|
674
|
+
*/
|
|
675
|
+
export type RemoveResponse = Message<"gitd.v1.RemoveResponse"> & {};
|
|
676
|
+
/**
|
|
677
|
+
* Describes the message gitd.v1.RemoveResponse.
|
|
678
|
+
* Use `create(RemoveResponseSchema)` to create a new message.
|
|
679
|
+
*/
|
|
680
|
+
export declare const RemoveResponseSchema: GenMessage<RemoveResponse>;
|
|
681
|
+
/**
|
|
682
|
+
* @generated from message gitd.v1.AdoptRequest
|
|
683
|
+
*/
|
|
684
|
+
export type AdoptRequest = Message<"gitd.v1.AdoptRequest"> & {
|
|
685
|
+
/**
|
|
686
|
+
* @generated from field: string path = 1;
|
|
687
|
+
*/
|
|
688
|
+
path: string;
|
|
689
|
+
};
|
|
690
|
+
/**
|
|
691
|
+
* Describes the message gitd.v1.AdoptRequest.
|
|
692
|
+
* Use `create(AdoptRequestSchema)` to create a new message.
|
|
693
|
+
*/
|
|
694
|
+
export declare const AdoptRequestSchema: GenMessage<AdoptRequest>;
|
|
695
|
+
/**
|
|
696
|
+
* @generated from message gitd.v1.AdoptResponse
|
|
697
|
+
*/
|
|
698
|
+
export type AdoptResponse = Message<"gitd.v1.AdoptResponse"> & {
|
|
699
|
+
/**
|
|
700
|
+
* @generated from oneof gitd.v1.AdoptResponse.event
|
|
701
|
+
*/
|
|
702
|
+
event: {
|
|
703
|
+
/**
|
|
704
|
+
* @generated from field: gitd.v1.Progress progress = 1;
|
|
705
|
+
*/
|
|
706
|
+
value: Progress;
|
|
707
|
+
case: "progress";
|
|
708
|
+
} | {
|
|
709
|
+
/**
|
|
710
|
+
* @generated from field: gitd.v1.AdoptResult result = 2;
|
|
711
|
+
*/
|
|
712
|
+
value: AdoptResult;
|
|
713
|
+
case: "result";
|
|
714
|
+
} | {
|
|
715
|
+
case: undefined;
|
|
716
|
+
value?: undefined;
|
|
717
|
+
};
|
|
718
|
+
};
|
|
719
|
+
/**
|
|
720
|
+
* Describes the message gitd.v1.AdoptResponse.
|
|
721
|
+
* Use `create(AdoptResponseSchema)` to create a new message.
|
|
722
|
+
*/
|
|
723
|
+
export declare const AdoptResponseSchema: GenMessage<AdoptResponse>;
|
|
724
|
+
/**
|
|
725
|
+
* @generated from message gitd.v1.AdoptResult
|
|
726
|
+
*/
|
|
727
|
+
export type AdoptResult = Message<"gitd.v1.AdoptResult"> & {
|
|
728
|
+
/**
|
|
729
|
+
* Disk the workspace no longer holds because its pool does.
|
|
730
|
+
*
|
|
731
|
+
* @generated from field: int64 bytes_released = 1;
|
|
732
|
+
*/
|
|
733
|
+
bytesReleased: bigint;
|
|
734
|
+
};
|
|
735
|
+
/**
|
|
736
|
+
* Describes the message gitd.v1.AdoptResult.
|
|
737
|
+
* Use `create(AdoptResultSchema)` to create a new message.
|
|
738
|
+
*/
|
|
739
|
+
export declare const AdoptResultSchema: GenMessage<AdoptResult>;
|
|
740
|
+
/**
|
|
741
|
+
* @generated from message gitd.v1.PublishRequest
|
|
742
|
+
*/
|
|
743
|
+
export type PublishRequest = Message<"gitd.v1.PublishRequest"> & {
|
|
744
|
+
/**
|
|
745
|
+
* @generated from field: string path = 1;
|
|
746
|
+
*/
|
|
747
|
+
path: string;
|
|
748
|
+
/**
|
|
749
|
+
* A branch that does not exist yet: nothing is ever pushed over one that does. It must
|
|
750
|
+
* start with `[publish] branch_prefix`, when the configuration sets one.
|
|
751
|
+
*
|
|
752
|
+
* @generated from field: string branch = 2;
|
|
753
|
+
*/
|
|
754
|
+
branch: string;
|
|
755
|
+
/**
|
|
756
|
+
* @generated from field: repeated gitd.v1.Credential credentials = 3;
|
|
757
|
+
*/
|
|
758
|
+
credentials: Credential[];
|
|
759
|
+
};
|
|
760
|
+
/**
|
|
761
|
+
* Describes the message gitd.v1.PublishRequest.
|
|
762
|
+
* Use `create(PublishRequestSchema)` to create a new message.
|
|
763
|
+
*/
|
|
764
|
+
export declare const PublishRequestSchema: GenMessage<PublishRequest>;
|
|
765
|
+
/**
|
|
766
|
+
* @generated from message gitd.v1.PublishedRepository
|
|
767
|
+
*/
|
|
768
|
+
export type PublishedRepository = Message<"gitd.v1.PublishedRepository"> & {
|
|
769
|
+
/**
|
|
770
|
+
* @generated from field: string url = 1;
|
|
771
|
+
*/
|
|
772
|
+
url: string;
|
|
773
|
+
/**
|
|
774
|
+
* Where it is in the workspace: empty for the workspace's own repository.
|
|
775
|
+
*
|
|
776
|
+
* @generated from field: string path = 2;
|
|
777
|
+
*/
|
|
778
|
+
path: string;
|
|
779
|
+
/**
|
|
780
|
+
* @generated from field: string commit = 3;
|
|
781
|
+
*/
|
|
782
|
+
commit: string;
|
|
783
|
+
/**
|
|
784
|
+
* The subjects of the commits it brings, newest first: what a pull request is about.
|
|
785
|
+
*
|
|
786
|
+
* @generated from field: repeated string subjects = 4;
|
|
787
|
+
*/
|
|
788
|
+
subjects: string[];
|
|
789
|
+
};
|
|
790
|
+
/**
|
|
791
|
+
* Describes the message gitd.v1.PublishedRepository.
|
|
792
|
+
* Use `create(PublishedRepositorySchema)` to create a new message.
|
|
793
|
+
*/
|
|
794
|
+
export declare const PublishedRepositorySchema: GenMessage<PublishedRepository>;
|
|
795
|
+
/**
|
|
796
|
+
* @generated from message gitd.v1.PublishResponse
|
|
797
|
+
*/
|
|
798
|
+
export type PublishResponse = Message<"gitd.v1.PublishResponse"> & {
|
|
799
|
+
/**
|
|
800
|
+
* @generated from field: string branch = 1;
|
|
801
|
+
*/
|
|
802
|
+
branch: string;
|
|
803
|
+
/**
|
|
804
|
+
* @generated from field: gitd.v1.PublishedRepository repository = 2;
|
|
805
|
+
*/
|
|
806
|
+
repository?: PublishedRepository | undefined;
|
|
807
|
+
/**
|
|
808
|
+
* @generated from field: repeated gitd.v1.PublishedRepository submodules = 3;
|
|
809
|
+
*/
|
|
810
|
+
submodules: PublishedRepository[];
|
|
811
|
+
};
|
|
812
|
+
/**
|
|
813
|
+
* Describes the message gitd.v1.PublishResponse.
|
|
814
|
+
* Use `create(PublishResponseSchema)` to create a new message.
|
|
815
|
+
*/
|
|
816
|
+
export declare const PublishResponseSchema: GenMessage<PublishResponse>;
|
|
817
|
+
/**
|
|
818
|
+
* @generated from message gitd.v1.ProbeRequest
|
|
819
|
+
*/
|
|
820
|
+
export type ProbeRequest = Message<"gitd.v1.ProbeRequest"> & {
|
|
821
|
+
/**
|
|
822
|
+
* @generated from field: string url = 1;
|
|
823
|
+
*/
|
|
824
|
+
url: string;
|
|
825
|
+
/**
|
|
826
|
+
* @generated from field: repeated gitd.v1.Credential credentials = 2;
|
|
827
|
+
*/
|
|
828
|
+
credentials: Credential[];
|
|
829
|
+
};
|
|
830
|
+
/**
|
|
831
|
+
* Describes the message gitd.v1.ProbeRequest.
|
|
832
|
+
* Use `create(ProbeRequestSchema)` to create a new message.
|
|
833
|
+
*/
|
|
834
|
+
export declare const ProbeRequestSchema: GenMessage<ProbeRequest>;
|
|
835
|
+
/**
|
|
836
|
+
* @generated from message gitd.v1.ProbeResponse
|
|
837
|
+
*/
|
|
838
|
+
export type ProbeResponse = Message<"gitd.v1.ProbeResponse"> & {
|
|
839
|
+
/**
|
|
840
|
+
* @generated from field: gitd.v1.ProbeResponse.Access access = 1;
|
|
841
|
+
*/
|
|
842
|
+
access: ProbeResponse_Access;
|
|
843
|
+
/**
|
|
844
|
+
* @generated from field: repeated string branches = 2;
|
|
845
|
+
*/
|
|
846
|
+
branches: string[];
|
|
847
|
+
/**
|
|
848
|
+
* The branch the repository's HEAD points at.
|
|
849
|
+
*
|
|
850
|
+
* @generated from field: string default_branch = 3;
|
|
851
|
+
*/
|
|
852
|
+
defaultBranch: string;
|
|
853
|
+
/**
|
|
854
|
+
* @generated from field: gitd.v1.GitFailure failure = 4;
|
|
855
|
+
*/
|
|
856
|
+
failure?: GitFailure | undefined;
|
|
857
|
+
/**
|
|
858
|
+
* The commit each branch points at, by branch: what a submodule's gitlink is set to.
|
|
859
|
+
*
|
|
860
|
+
* @generated from field: map<string, string> commits = 5;
|
|
861
|
+
*/
|
|
862
|
+
commits: {
|
|
863
|
+
[key: string]: string;
|
|
864
|
+
};
|
|
865
|
+
};
|
|
866
|
+
/**
|
|
867
|
+
* Describes the message gitd.v1.ProbeResponse.
|
|
868
|
+
* Use `create(ProbeResponseSchema)` to create a new message.
|
|
869
|
+
*/
|
|
870
|
+
export declare const ProbeResponseSchema: GenMessage<ProbeResponse>;
|
|
871
|
+
/**
|
|
872
|
+
* @generated from enum gitd.v1.ProbeResponse.Access
|
|
873
|
+
*/
|
|
874
|
+
export declare enum ProbeResponse_Access {
|
|
875
|
+
/**
|
|
876
|
+
* @generated from enum value: ACCESS_UNSPECIFIED = 0;
|
|
877
|
+
*/
|
|
878
|
+
UNSPECIFIED = 0,
|
|
879
|
+
/**
|
|
880
|
+
* Read with nothing.
|
|
881
|
+
*
|
|
882
|
+
* @generated from enum value: ACCESS_PUBLIC = 1;
|
|
883
|
+
*/
|
|
884
|
+
PUBLIC = 1,
|
|
885
|
+
/**
|
|
886
|
+
* Read with the credentials given.
|
|
887
|
+
*
|
|
888
|
+
* @generated from enum value: ACCESS_REACHABLE = 2;
|
|
889
|
+
*/
|
|
890
|
+
REACHABLE = 2,
|
|
891
|
+
/**
|
|
892
|
+
* Not readable with what was given.
|
|
893
|
+
*
|
|
894
|
+
* @generated from enum value: ACCESS_DENIED = 3;
|
|
895
|
+
*/
|
|
896
|
+
DENIED = 3
|
|
897
|
+
}
|
|
898
|
+
/**
|
|
899
|
+
* Describes the enum gitd.v1.ProbeResponse.Access.
|
|
900
|
+
*/
|
|
901
|
+
export declare const ProbeResponse_AccessSchema: GenEnum<ProbeResponse_Access>;
|
|
902
|
+
/**
|
|
903
|
+
* @generated from message gitd.v1.RetireRequest
|
|
904
|
+
*/
|
|
905
|
+
export type RetireRequest = Message<"gitd.v1.RetireRequest"> & {
|
|
906
|
+
/**
|
|
907
|
+
* At least a day: a pool used moments ago is likely to be wanted again.
|
|
908
|
+
*
|
|
909
|
+
* @generated from field: int64 unused_for_seconds = 1;
|
|
910
|
+
*/
|
|
911
|
+
unusedForSeconds: bigint;
|
|
912
|
+
};
|
|
913
|
+
/**
|
|
914
|
+
* Describes the message gitd.v1.RetireRequest.
|
|
915
|
+
* Use `create(RetireRequestSchema)` to create a new message.
|
|
916
|
+
*/
|
|
917
|
+
export declare const RetireRequestSchema: GenMessage<RetireRequest>;
|
|
918
|
+
/**
|
|
919
|
+
* @generated from message gitd.v1.RetireResponse
|
|
920
|
+
*/
|
|
921
|
+
export type RetireResponse = Message<"gitd.v1.RetireResponse"> & {
|
|
922
|
+
/**
|
|
923
|
+
* @generated from field: int32 retired = 1;
|
|
924
|
+
*/
|
|
925
|
+
retired: number;
|
|
926
|
+
/**
|
|
927
|
+
* @generated from field: int64 freed_bytes = 2;
|
|
928
|
+
*/
|
|
929
|
+
freedBytes: bigint;
|
|
930
|
+
};
|
|
931
|
+
/**
|
|
932
|
+
* Describes the message gitd.v1.RetireResponse.
|
|
933
|
+
* Use `create(RetireResponseSchema)` to create a new message.
|
|
934
|
+
*/
|
|
935
|
+
export declare const RetireResponseSchema: GenMessage<RetireResponse>;
|
|
936
|
+
/**
|
|
937
|
+
* @generated from message gitd.v1.InfoRequest
|
|
938
|
+
*/
|
|
939
|
+
export type InfoRequest = Message<"gitd.v1.InfoRequest"> & {};
|
|
940
|
+
/**
|
|
941
|
+
* Describes the message gitd.v1.InfoRequest.
|
|
942
|
+
* Use `create(InfoRequestSchema)` to create a new message.
|
|
943
|
+
*/
|
|
944
|
+
export declare const InfoRequestSchema: GenMessage<InfoRequest>;
|
|
945
|
+
/**
|
|
946
|
+
* @generated from message gitd.v1.InfoResponse
|
|
947
|
+
*/
|
|
948
|
+
export type InfoResponse = Message<"gitd.v1.InfoResponse"> & {
|
|
949
|
+
/**
|
|
950
|
+
* @generated from field: string version = 1;
|
|
951
|
+
*/
|
|
952
|
+
version: string;
|
|
953
|
+
/**
|
|
954
|
+
* What `git version` says, e.g. "git version 2.48.1".
|
|
955
|
+
*
|
|
956
|
+
* @generated from field: string git_version = 2;
|
|
957
|
+
*/
|
|
958
|
+
gitVersion: string;
|
|
959
|
+
/**
|
|
960
|
+
* How many pools there are and the disk they take, as of the last maintenance round.
|
|
961
|
+
*
|
|
962
|
+
* @generated from field: int32 pools = 3;
|
|
963
|
+
*/
|
|
964
|
+
pools: number;
|
|
965
|
+
/**
|
|
966
|
+
* @generated from field: int64 pools_bytes = 4;
|
|
967
|
+
*/
|
|
968
|
+
poolsBytes: bigint;
|
|
969
|
+
/**
|
|
970
|
+
* How new workspaces are made on this machine, and why: what gitd detected at start.
|
|
971
|
+
*
|
|
972
|
+
* @generated from field: gitd.v1.Strategy strategy = 5;
|
|
973
|
+
*/
|
|
974
|
+
strategy: Strategy;
|
|
975
|
+
/**
|
|
976
|
+
* @generated from field: string strategy_reason = 6;
|
|
977
|
+
*/
|
|
978
|
+
strategyReason: string;
|
|
979
|
+
/**
|
|
980
|
+
* How many templates there are and the disk they take, as of the last maintenance round.
|
|
981
|
+
*
|
|
982
|
+
* @generated from field: int32 templates = 7;
|
|
983
|
+
*/
|
|
984
|
+
templates: number;
|
|
985
|
+
/**
|
|
986
|
+
* @generated from field: int64 templates_bytes = 8;
|
|
987
|
+
*/
|
|
988
|
+
templatesBytes: bigint;
|
|
989
|
+
};
|
|
990
|
+
/**
|
|
991
|
+
* Describes the message gitd.v1.InfoResponse.
|
|
992
|
+
* Use `create(InfoResponseSchema)` to create a new message.
|
|
993
|
+
*/
|
|
994
|
+
export declare const InfoResponseSchema: GenMessage<InfoResponse>;
|
|
995
|
+
/**
|
|
996
|
+
* @generated from message gitd.v1.AuditRequest
|
|
997
|
+
*/
|
|
998
|
+
export type AuditRequest = Message<"gitd.v1.AuditRequest"> & {
|
|
999
|
+
/**
|
|
1000
|
+
* Only the entries from this time on; all of them when unset.
|
|
1001
|
+
*
|
|
1002
|
+
* @generated from field: google.protobuf.Timestamp since = 1;
|
|
1003
|
+
*/
|
|
1004
|
+
since?: Timestamp | undefined;
|
|
1005
|
+
/**
|
|
1006
|
+
* Only the publishes of this repository, as its URL is written in the entries.
|
|
1007
|
+
*
|
|
1008
|
+
* @generated from field: string url = 2;
|
|
1009
|
+
*/
|
|
1010
|
+
url: string;
|
|
1011
|
+
/**
|
|
1012
|
+
* At most this many, newest first: 100 when unset, never more than 1000.
|
|
1013
|
+
*
|
|
1014
|
+
* @generated from field: int32 limit = 3;
|
|
1015
|
+
*/
|
|
1016
|
+
limit: number;
|
|
1017
|
+
};
|
|
1018
|
+
/**
|
|
1019
|
+
* Describes the message gitd.v1.AuditRequest.
|
|
1020
|
+
* Use `create(AuditRequestSchema)` to create a new message.
|
|
1021
|
+
*/
|
|
1022
|
+
export declare const AuditRequestSchema: GenMessage<AuditRequest>;
|
|
1023
|
+
/**
|
|
1024
|
+
* @generated from message gitd.v1.AuditResponse
|
|
1025
|
+
*/
|
|
1026
|
+
export type AuditResponse = Message<"gitd.v1.AuditResponse"> & {
|
|
1027
|
+
/**
|
|
1028
|
+
* @generated from field: repeated gitd.v1.AuditEntry entries = 1;
|
|
1029
|
+
*/
|
|
1030
|
+
entries: AuditEntry[];
|
|
1031
|
+
};
|
|
1032
|
+
/**
|
|
1033
|
+
* Describes the message gitd.v1.AuditResponse.
|
|
1034
|
+
* Use `create(AuditResponseSchema)` to create a new message.
|
|
1035
|
+
*/
|
|
1036
|
+
export declare const AuditResponseSchema: GenMessage<AuditResponse>;
|
|
1037
|
+
/**
|
|
1038
|
+
* One publish, done or refused, as the audit log keeps it: one per line of the log file,
|
|
1039
|
+
* in this message's JSON form.
|
|
1040
|
+
*
|
|
1041
|
+
* @generated from message gitd.v1.AuditEntry
|
|
1042
|
+
*/
|
|
1043
|
+
export type AuditEntry = Message<"gitd.v1.AuditEntry"> & {
|
|
1044
|
+
/**
|
|
1045
|
+
* @generated from field: google.protobuf.Timestamp time = 1;
|
|
1046
|
+
*/
|
|
1047
|
+
time?: Timestamp | undefined;
|
|
1048
|
+
/**
|
|
1049
|
+
* The workspace's path, as the caller gave it.
|
|
1050
|
+
*
|
|
1051
|
+
* @generated from field: string workspace = 2;
|
|
1052
|
+
*/
|
|
1053
|
+
workspace: string;
|
|
1054
|
+
/**
|
|
1055
|
+
* The workspace's repository; empty when the workspace could not be opened.
|
|
1056
|
+
*
|
|
1057
|
+
* @generated from field: string url = 3;
|
|
1058
|
+
*/
|
|
1059
|
+
url: string;
|
|
1060
|
+
/**
|
|
1061
|
+
* @generated from field: string branch = 4;
|
|
1062
|
+
*/
|
|
1063
|
+
branch: string;
|
|
1064
|
+
/**
|
|
1065
|
+
* What was pushed: the workspace's repository, then each submodule. Unset when refused.
|
|
1066
|
+
*
|
|
1067
|
+
* @generated from field: gitd.v1.PublishedRepository repository = 5;
|
|
1068
|
+
*/
|
|
1069
|
+
repository?: PublishedRepository | undefined;
|
|
1070
|
+
/**
|
|
1071
|
+
* @generated from field: repeated gitd.v1.PublishedRepository submodules = 6;
|
|
1072
|
+
*/
|
|
1073
|
+
submodules: PublishedRepository[];
|
|
1074
|
+
/**
|
|
1075
|
+
* Why it was refused. Unset when it was published.
|
|
1076
|
+
*
|
|
1077
|
+
* @generated from field: gitd.v1.GitFailure refusal = 7;
|
|
1078
|
+
*/
|
|
1079
|
+
refusal?: GitFailure | undefined;
|
|
1080
|
+
};
|
|
1081
|
+
/**
|
|
1082
|
+
* Describes the message gitd.v1.AuditEntry.
|
|
1083
|
+
* Use `create(AuditEntrySchema)` to create a new message.
|
|
1084
|
+
*/
|
|
1085
|
+
export declare const AuditEntrySchema: GenMessage<AuditEntry>;
|
|
1086
|
+
/**
|
|
1087
|
+
* How a workspace was made.
|
|
1088
|
+
*
|
|
1089
|
+
* @generated from enum gitd.v1.Strategy
|
|
1090
|
+
*/
|
|
1091
|
+
export declare enum Strategy {
|
|
1092
|
+
/**
|
|
1093
|
+
* @generated from enum value: STRATEGY_UNSPECIFIED = 0;
|
|
1094
|
+
*/
|
|
1095
|
+
UNSPECIFIED = 0,
|
|
1096
|
+
/**
|
|
1097
|
+
* Every file written.
|
|
1098
|
+
*
|
|
1099
|
+
* @generated from enum value: STRATEGY_COPY = 1;
|
|
1100
|
+
*/
|
|
1101
|
+
COPY = 1,
|
|
1102
|
+
/**
|
|
1103
|
+
* A layer of its own mounted on a shared template, read only: milliseconds, and only
|
|
1104
|
+
* what changes takes disk.
|
|
1105
|
+
*
|
|
1106
|
+
* @generated from enum value: STRATEGY_OVERLAY = 2;
|
|
1107
|
+
*/
|
|
1108
|
+
OVERLAY = 2,
|
|
1109
|
+
/**
|
|
1110
|
+
* The template cloned block by block: almost no disk.
|
|
1111
|
+
*
|
|
1112
|
+
* @generated from enum value: STRATEGY_REFLINK = 3;
|
|
1113
|
+
*/
|
|
1114
|
+
REFLINK = 3
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Describes the enum gitd.v1.Strategy.
|
|
1118
|
+
*/
|
|
1119
|
+
export declare const StrategySchema: GenEnum<Strategy>;
|
|
1120
|
+
/**
|
|
1121
|
+
* @generated from service gitd.v1.WorkspaceService
|
|
1122
|
+
*/
|
|
1123
|
+
export declare const WorkspaceService: GenService<{
|
|
1124
|
+
/**
|
|
1125
|
+
* Create a workspace at a path, from the repository's pool, at a branch or a commit.
|
|
1126
|
+
*
|
|
1127
|
+
* @generated from rpc gitd.v1.WorkspaceService.Prepare
|
|
1128
|
+
*/
|
|
1129
|
+
prepare: {
|
|
1130
|
+
methodKind: "server_streaming";
|
|
1131
|
+
input: typeof PrepareRequestSchema;
|
|
1132
|
+
output: typeof PrepareResponseSchema;
|
|
1133
|
+
};
|
|
1134
|
+
/**
|
|
1135
|
+
* Bring a workspace to the tip of its branch.
|
|
1136
|
+
*
|
|
1137
|
+
* @generated from rpc gitd.v1.WorkspaceService.Update
|
|
1138
|
+
*/
|
|
1139
|
+
update: {
|
|
1140
|
+
methodKind: "server_streaming";
|
|
1141
|
+
input: typeof UpdateRequestSchema;
|
|
1142
|
+
output: typeof UpdateResponseSchema;
|
|
1143
|
+
};
|
|
1144
|
+
/**
|
|
1145
|
+
* Move a workspace to a commit, as a rollback does; the pool fetches it when it lacks it.
|
|
1146
|
+
*
|
|
1147
|
+
* @generated from rpc gitd.v1.WorkspaceService.Checkout
|
|
1148
|
+
*/
|
|
1149
|
+
checkout: {
|
|
1150
|
+
methodKind: "server_streaming";
|
|
1151
|
+
input: typeof CheckoutRequestSchema;
|
|
1152
|
+
output: typeof CheckoutResponseSchema;
|
|
1153
|
+
};
|
|
1154
|
+
/**
|
|
1155
|
+
* Check out every submodule the workspace declares, or one.
|
|
1156
|
+
*
|
|
1157
|
+
* @generated from rpc gitd.v1.WorkspaceService.SyncSubmodules
|
|
1158
|
+
*/
|
|
1159
|
+
syncSubmodules: {
|
|
1160
|
+
methodKind: "server_streaming";
|
|
1161
|
+
input: typeof SyncSubmodulesRequestSchema;
|
|
1162
|
+
output: typeof SyncSubmodulesResponseSchema;
|
|
1163
|
+
};
|
|
1164
|
+
/**
|
|
1165
|
+
* What the workspace is on disk right now, without the network.
|
|
1166
|
+
*
|
|
1167
|
+
* @generated from rpc gitd.v1.WorkspaceService.Describe
|
|
1168
|
+
*/
|
|
1169
|
+
describe: {
|
|
1170
|
+
methodKind: "unary";
|
|
1171
|
+
input: typeof DescribeRequestSchema;
|
|
1172
|
+
output: typeof DescribeResponseSchema;
|
|
1173
|
+
};
|
|
1174
|
+
/**
|
|
1175
|
+
* Delete a workspace. Its pool stays.
|
|
1176
|
+
*
|
|
1177
|
+
* @generated from rpc gitd.v1.WorkspaceService.Remove
|
|
1178
|
+
*/
|
|
1179
|
+
remove: {
|
|
1180
|
+
methodKind: "unary";
|
|
1181
|
+
input: typeof RemoveRequestSchema;
|
|
1182
|
+
output: typeof RemoveResponseSchema;
|
|
1183
|
+
};
|
|
1184
|
+
/**
|
|
1185
|
+
* Take an existing clone in, linking it to a pool without fetching anything.
|
|
1186
|
+
*
|
|
1187
|
+
* @generated from rpc gitd.v1.WorkspaceService.Adopt
|
|
1188
|
+
*/
|
|
1189
|
+
adopt: {
|
|
1190
|
+
methodKind: "server_streaming";
|
|
1191
|
+
input: typeof AdoptRequestSchema;
|
|
1192
|
+
output: typeof AdoptResponseSchema;
|
|
1193
|
+
};
|
|
1194
|
+
/**
|
|
1195
|
+
* Push what was committed in a workspace to a new branch, with a token, so a pull or merge
|
|
1196
|
+
* request can be opened from it. New commits of its submodules go first, each to a
|
|
1197
|
+
* branch of the same name in its own repository. The branch must start with the
|
|
1198
|
+
* configured prefix, if there is one; every publish, done or refused, is in the audit log.
|
|
1199
|
+
*
|
|
1200
|
+
* @generated from rpc gitd.v1.WorkspaceService.Publish
|
|
1201
|
+
*/
|
|
1202
|
+
publish: {
|
|
1203
|
+
methodKind: "unary";
|
|
1204
|
+
input: typeof PublishRequestSchema;
|
|
1205
|
+
output: typeof PublishResponseSchema;
|
|
1206
|
+
};
|
|
1207
|
+
}>;
|
|
1208
|
+
/**
|
|
1209
|
+
* @generated from service gitd.v1.RepositoryService
|
|
1210
|
+
*/
|
|
1211
|
+
export declare const RepositoryService: GenService<{
|
|
1212
|
+
/**
|
|
1213
|
+
* Whether a repository can be read with these credentials, and its branches.
|
|
1214
|
+
*
|
|
1215
|
+
* @generated from rpc gitd.v1.RepositoryService.Probe
|
|
1216
|
+
*/
|
|
1217
|
+
probe: {
|
|
1218
|
+
methodKind: "unary";
|
|
1219
|
+
input: typeof ProbeRequestSchema;
|
|
1220
|
+
output: typeof ProbeResponseSchema;
|
|
1221
|
+
};
|
|
1222
|
+
}>;
|
|
1223
|
+
/**
|
|
1224
|
+
* @generated from service gitd.v1.ServerService
|
|
1225
|
+
*/
|
|
1226
|
+
export declare const ServerService: GenService<{
|
|
1227
|
+
/**
|
|
1228
|
+
* Which gitd answers, and on which git, so a client can tell whether it may use it.
|
|
1229
|
+
*
|
|
1230
|
+
* @generated from rpc gitd.v1.ServerService.Info
|
|
1231
|
+
*/
|
|
1232
|
+
info: {
|
|
1233
|
+
methodKind: "unary";
|
|
1234
|
+
input: typeof InfoRequestSchema;
|
|
1235
|
+
output: typeof InfoResponseSchema;
|
|
1236
|
+
};
|
|
1237
|
+
/**
|
|
1238
|
+
* Remove now the pools no workspace borrows from and nothing has used for at least
|
|
1239
|
+
* `unused_for_seconds`, as the maintenance round does after `retire_after`.
|
|
1240
|
+
*
|
|
1241
|
+
* @generated from rpc gitd.v1.ServerService.Retire
|
|
1242
|
+
*/
|
|
1243
|
+
retire: {
|
|
1244
|
+
methodKind: "unary";
|
|
1245
|
+
input: typeof RetireRequestSchema;
|
|
1246
|
+
output: typeof RetireResponseSchema;
|
|
1247
|
+
};
|
|
1248
|
+
/**
|
|
1249
|
+
* The audit log: every publish, done or refused, newest first.
|
|
1250
|
+
*
|
|
1251
|
+
* @generated from rpc gitd.v1.ServerService.Audit
|
|
1252
|
+
*/
|
|
1253
|
+
audit: {
|
|
1254
|
+
methodKind: "unary";
|
|
1255
|
+
input: typeof AuditRequestSchema;
|
|
1256
|
+
output: typeof AuditResponseSchema;
|
|
1257
|
+
};
|
|
1258
|
+
}>;
|