gitd-client 0.7.0 → 0.9.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/dist/compare-convert.d.ts +6 -0
- package/dist/compare-convert.js +33 -0
- package/dist/convert.d.ts +6 -2
- package/dist/convert.js +54 -6
- 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/endpoint-types.d.ts +28 -0
- package/dist/endpoint-types.js +1 -0
- package/dist/endpoint.d.ts +18 -0
- package/dist/endpoint.js +49 -0
- package/dist/gen/gitd/v1/gitd_pb.d.ts +2154 -151
- package/dist/gen/gitd/v1/gitd_pb.js +565 -17
- package/dist/gitd.d.ts +46 -5
- package/dist/gitd.js +137 -11
- package/dist/index.d.ts +6 -0
- package/dist/index.js +3 -0
- package/dist/publishing-convert.d.ts +8 -0
- package/dist/publishing-convert.js +74 -0
- package/dist/publishing-types.d.ts +72 -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 +113 -7
- package/dist/warm-convert.d.ts +4 -0
- package/dist/warm-convert.js +12 -0
- package/package.json +1 -1
|
@@ -254,7 +254,27 @@ export declare enum GitFailure_Reason {
|
|
|
254
254
|
*
|
|
255
255
|
* @generated from enum value: REASON_CONFIG_REFUSED = 12;
|
|
256
256
|
*/
|
|
257
|
-
CONFIG_REFUSED = 12
|
|
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
|
+
* A limit of the tenant is reached: its workspaces, its disk or its tokens.
|
|
274
|
+
*
|
|
275
|
+
* @generated from enum value: REASON_LIMIT_REACHED = 15;
|
|
276
|
+
*/
|
|
277
|
+
LIMIT_REACHED = 15
|
|
258
278
|
}
|
|
259
279
|
/**
|
|
260
280
|
* Describes the enum gitd.v1.GitFailure.Reason.
|
|
@@ -306,6 +326,23 @@ export type PrepareRequest = Message<"gitd.v1.PrepareRequest"> & {
|
|
|
306
326
|
* @generated from field: gitd.v1.Strategy strategy = 7;
|
|
307
327
|
*/
|
|
308
328
|
strategy: Strategy;
|
|
329
|
+
/**
|
|
330
|
+
* A warm layer of the repository to stand on, between the template and the workspace's
|
|
331
|
+
* own layer: its dependencies are there already. The workspace must be at the commit the
|
|
332
|
+
* layer was sealed at, and be made by overlay.
|
|
333
|
+
*
|
|
334
|
+
* @generated from field: string warm = 8;
|
|
335
|
+
*/
|
|
336
|
+
warm: string;
|
|
337
|
+
/**
|
|
338
|
+
* The workspace names its pool by a path inside itself, `.git/gitd-pool`, where whoever
|
|
339
|
+
* mounts the workspace elsewhere — the CSI driver into a pod — mounts the pool's objects
|
|
340
|
+
* read-only (WorkspaceResult.pool_objects), so that it works wherever it is mounted. gitd
|
|
341
|
+
* accepts it only while that is truly the pool's objects directory, mounted there.
|
|
342
|
+
*
|
|
343
|
+
* @generated from field: bool pool_inside = 9;
|
|
344
|
+
*/
|
|
345
|
+
poolInside: boolean;
|
|
309
346
|
};
|
|
310
347
|
/**
|
|
311
348
|
* Describes the message gitd.v1.PrepareRequest.
|
|
@@ -331,6 +368,12 @@ export type Layers = Message<"gitd.v1.Layers"> & {
|
|
|
331
368
|
* @generated from field: string work = 3;
|
|
332
369
|
*/
|
|
333
370
|
work: string;
|
|
371
|
+
/**
|
|
372
|
+
* The warm layer between the template and the workspace's own, when it stands on one.
|
|
373
|
+
*
|
|
374
|
+
* @generated from field: string warm = 4;
|
|
375
|
+
*/
|
|
376
|
+
warm: string;
|
|
334
377
|
};
|
|
335
378
|
/**
|
|
336
379
|
* Describes the message gitd.v1.Layers.
|
|
@@ -400,6 +443,13 @@ export type WorkspaceResult = Message<"gitd.v1.WorkspaceResult"> & {
|
|
|
400
443
|
* @generated from field: repeated string lfs_patterns = 6;
|
|
401
444
|
*/
|
|
402
445
|
lfsPatterns: string[];
|
|
446
|
+
/**
|
|
447
|
+
* With pool_inside: the pool's objects directory, to mount read-only at the workspace's
|
|
448
|
+
* `.git/gitd-pool`.
|
|
449
|
+
*
|
|
450
|
+
* @generated from field: string pool_objects = 7;
|
|
451
|
+
*/
|
|
452
|
+
poolObjects: string;
|
|
403
453
|
};
|
|
404
454
|
/**
|
|
405
455
|
* Describes the message gitd.v1.WorkspaceResult.
|
|
@@ -678,6 +728,119 @@ export type RemoveResponse = Message<"gitd.v1.RemoveResponse"> & {};
|
|
|
678
728
|
* Use `create(RemoveResponseSchema)` to create a new message.
|
|
679
729
|
*/
|
|
680
730
|
export declare const RemoveResponseSchema: GenMessage<RemoveResponse>;
|
|
731
|
+
/**
|
|
732
|
+
* @generated from message gitd.v1.SealRequest
|
|
733
|
+
*/
|
|
734
|
+
export type SealRequest = Message<"gitd.v1.SealRequest"> & {
|
|
735
|
+
/**
|
|
736
|
+
* An overlay workspace, not itself standing on a warm layer.
|
|
737
|
+
*
|
|
738
|
+
* @generated from field: string path = 1;
|
|
739
|
+
*/
|
|
740
|
+
path: string;
|
|
741
|
+
/**
|
|
742
|
+
* What to call the layer: lowercase letters, digits, dots, dashes and underscores, 64 at
|
|
743
|
+
* most. Sealing a name again replaces the layer, once no workspace stands on it.
|
|
744
|
+
*
|
|
745
|
+
* @generated from field: string name = 2;
|
|
746
|
+
*/
|
|
747
|
+
name: string;
|
|
748
|
+
};
|
|
749
|
+
/**
|
|
750
|
+
* Describes the message gitd.v1.SealRequest.
|
|
751
|
+
* Use `create(SealRequestSchema)` to create a new message.
|
|
752
|
+
*/
|
|
753
|
+
export declare const SealRequestSchema: GenMessage<SealRequest>;
|
|
754
|
+
/**
|
|
755
|
+
* @generated from message gitd.v1.SealResponse
|
|
756
|
+
*/
|
|
757
|
+
export type SealResponse = Message<"gitd.v1.SealResponse"> & {
|
|
758
|
+
/**
|
|
759
|
+
* @generated from field: gitd.v1.WarmLayer warm = 1;
|
|
760
|
+
*/
|
|
761
|
+
warm?: WarmLayer | undefined;
|
|
762
|
+
};
|
|
763
|
+
/**
|
|
764
|
+
* Describes the message gitd.v1.SealResponse.
|
|
765
|
+
* Use `create(SealResponseSchema)` to create a new message.
|
|
766
|
+
*/
|
|
767
|
+
export declare const SealResponseSchema: GenMessage<SealResponse>;
|
|
768
|
+
/**
|
|
769
|
+
* A layer sealed from a workspace, that later workspaces stand on.
|
|
770
|
+
*
|
|
771
|
+
* @generated from message gitd.v1.WarmLayer
|
|
772
|
+
*/
|
|
773
|
+
export type WarmLayer = Message<"gitd.v1.WarmLayer"> & {
|
|
774
|
+
/**
|
|
775
|
+
* @generated from field: string url = 1;
|
|
776
|
+
*/
|
|
777
|
+
url: string;
|
|
778
|
+
/**
|
|
779
|
+
* @generated from field: string name = 2;
|
|
780
|
+
*/
|
|
781
|
+
name: string;
|
|
782
|
+
/**
|
|
783
|
+
* The commit it was sealed at: workspaces stand on it at that commit only.
|
|
784
|
+
*
|
|
785
|
+
* @generated from field: string commit = 3;
|
|
786
|
+
*/
|
|
787
|
+
commit: string;
|
|
788
|
+
/**
|
|
789
|
+
* When it was sealed, in seconds since the epoch, and from which workspace.
|
|
790
|
+
*
|
|
791
|
+
* @generated from field: int64 sealed_at = 4;
|
|
792
|
+
*/
|
|
793
|
+
sealedAt: bigint;
|
|
794
|
+
/**
|
|
795
|
+
* @generated from field: string sealed_from = 5;
|
|
796
|
+
*/
|
|
797
|
+
sealedFrom: string;
|
|
798
|
+
/**
|
|
799
|
+
* How many files it changes that git does not ignore, e.g. a lock file rewritten.
|
|
800
|
+
*
|
|
801
|
+
* @generated from field: int32 changed_files = 6;
|
|
802
|
+
*/
|
|
803
|
+
changedFiles: number;
|
|
804
|
+
/**
|
|
805
|
+
* How many workspaces stand on it now.
|
|
806
|
+
*
|
|
807
|
+
* @generated from field: int32 users = 7;
|
|
808
|
+
*/
|
|
809
|
+
users: number;
|
|
810
|
+
};
|
|
811
|
+
/**
|
|
812
|
+
* Describes the message gitd.v1.WarmLayer.
|
|
813
|
+
* Use `create(WarmLayerSchema)` to create a new message.
|
|
814
|
+
*/
|
|
815
|
+
export declare const WarmLayerSchema: GenMessage<WarmLayer>;
|
|
816
|
+
/**
|
|
817
|
+
* @generated from message gitd.v1.ListWarmRequest
|
|
818
|
+
*/
|
|
819
|
+
export type ListWarmRequest = Message<"gitd.v1.ListWarmRequest"> & {
|
|
820
|
+
/**
|
|
821
|
+
* @generated from field: string url = 1;
|
|
822
|
+
*/
|
|
823
|
+
url: string;
|
|
824
|
+
};
|
|
825
|
+
/**
|
|
826
|
+
* Describes the message gitd.v1.ListWarmRequest.
|
|
827
|
+
* Use `create(ListWarmRequestSchema)` to create a new message.
|
|
828
|
+
*/
|
|
829
|
+
export declare const ListWarmRequestSchema: GenMessage<ListWarmRequest>;
|
|
830
|
+
/**
|
|
831
|
+
* @generated from message gitd.v1.ListWarmResponse
|
|
832
|
+
*/
|
|
833
|
+
export type ListWarmResponse = Message<"gitd.v1.ListWarmResponse"> & {
|
|
834
|
+
/**
|
|
835
|
+
* @generated from field: repeated gitd.v1.WarmLayer warm = 1;
|
|
836
|
+
*/
|
|
837
|
+
warm: WarmLayer[];
|
|
838
|
+
};
|
|
839
|
+
/**
|
|
840
|
+
* Describes the message gitd.v1.ListWarmResponse.
|
|
841
|
+
* Use `create(ListWarmResponseSchema)` to create a new message.
|
|
842
|
+
*/
|
|
843
|
+
export declare const ListWarmResponseSchema: GenMessage<ListWarmResponse>;
|
|
681
844
|
/**
|
|
682
845
|
* @generated from message gitd.v1.AdoptRequest
|
|
683
846
|
*/
|
|
@@ -756,12 +919,138 @@ export type PublishRequest = Message<"gitd.v1.PublishRequest"> & {
|
|
|
756
919
|
* @generated from field: repeated gitd.v1.Credential credentials = 3;
|
|
757
920
|
*/
|
|
758
921
|
credentials: Credential[];
|
|
922
|
+
/**
|
|
923
|
+
* Who asked for the work, as their account on the git host, e.g. `josue`: written in the
|
|
924
|
+
* pull request and the audit log, and asked to review when the settings say so. gitd
|
|
925
|
+
* records it as told.
|
|
926
|
+
*
|
|
927
|
+
* @generated from field: string requested_by = 4;
|
|
928
|
+
*/
|
|
929
|
+
requestedBy: string;
|
|
930
|
+
/**
|
|
931
|
+
* This publish's pull request, beyond what the settings say.
|
|
932
|
+
*
|
|
933
|
+
* @generated from field: gitd.v1.PullRequestOptions pull_request = 5;
|
|
934
|
+
*/
|
|
935
|
+
pullRequest?: PullRequestOptions | undefined;
|
|
936
|
+
/**
|
|
937
|
+
* Where the work came from, written in the pull request and the audit log as told.
|
|
938
|
+
*
|
|
939
|
+
* @generated from field: gitd.v1.Provenance provenance = 6;
|
|
940
|
+
*/
|
|
941
|
+
provenance?: Provenance | undefined;
|
|
942
|
+
/**
|
|
943
|
+
* Publish what a sandbox pushed through the endpoint instead of a workspace: the ID of
|
|
944
|
+
* its sandbox repository, with path left empty. branch names the branch it pushed there,
|
|
945
|
+
* published under the same name.
|
|
946
|
+
*
|
|
947
|
+
* @generated from field: string sandbox = 7;
|
|
948
|
+
*/
|
|
949
|
+
sandbox: string;
|
|
759
950
|
};
|
|
760
951
|
/**
|
|
761
952
|
* Describes the message gitd.v1.PublishRequest.
|
|
762
953
|
* Use `create(PublishRequestSchema)` to create a new message.
|
|
763
954
|
*/
|
|
764
955
|
export declare const PublishRequestSchema: GenMessage<PublishRequest>;
|
|
956
|
+
/**
|
|
957
|
+
* Where a publish's work came from, as the platform says: gitd records it and never checks
|
|
958
|
+
* it, nor writes it into a commit. Each field is one line of at most 200 characters, never
|
|
959
|
+
* a secret; task_url is an https address.
|
|
960
|
+
*
|
|
961
|
+
* @generated from message gitd.v1.Provenance
|
|
962
|
+
*/
|
|
963
|
+
export type Provenance = Message<"gitd.v1.Provenance"> & {
|
|
964
|
+
/**
|
|
965
|
+
* The agent, e.g. `claude-code` or `openhands`.
|
|
966
|
+
*
|
|
967
|
+
* @generated from field: string agent = 1;
|
|
968
|
+
*/
|
|
969
|
+
agent: string;
|
|
970
|
+
/**
|
|
971
|
+
* The model it ran on.
|
|
972
|
+
*
|
|
973
|
+
* @generated from field: string model = 2;
|
|
974
|
+
*/
|
|
975
|
+
model: string;
|
|
976
|
+
/**
|
|
977
|
+
* The platform's name for the session or run.
|
|
978
|
+
*
|
|
979
|
+
* @generated from field: string session = 3;
|
|
980
|
+
*/
|
|
981
|
+
session: string;
|
|
982
|
+
/**
|
|
983
|
+
* Where the task is: an issue, a ticket.
|
|
984
|
+
*
|
|
985
|
+
* @generated from field: string task_url = 4;
|
|
986
|
+
*/
|
|
987
|
+
taskUrl: string;
|
|
988
|
+
};
|
|
989
|
+
/**
|
|
990
|
+
* Describes the message gitd.v1.Provenance.
|
|
991
|
+
* Use `create(ProvenanceSchema)` to create a new message.
|
|
992
|
+
*/
|
|
993
|
+
export declare const ProvenanceSchema: GenMessage<Provenance>;
|
|
994
|
+
/**
|
|
995
|
+
* A publish's own say on its pull request. Unset fields take the settings'.
|
|
996
|
+
*
|
|
997
|
+
* @generated from message gitd.v1.PullRequestOptions
|
|
998
|
+
*/
|
|
999
|
+
export type PullRequestOptions = Message<"gitd.v1.PullRequestOptions"> & {
|
|
1000
|
+
/**
|
|
1001
|
+
* Open one even when the settings open them only when asked.
|
|
1002
|
+
*
|
|
1003
|
+
* @generated from field: bool open = 1;
|
|
1004
|
+
*/
|
|
1005
|
+
open: boolean;
|
|
1006
|
+
/**
|
|
1007
|
+
* Empty: the subject of the newest commit.
|
|
1008
|
+
*
|
|
1009
|
+
* @generated from field: string title = 2;
|
|
1010
|
+
*/
|
|
1011
|
+
title: string;
|
|
1012
|
+
/**
|
|
1013
|
+
* The platform's text; gitd's account of what it checked follows it.
|
|
1014
|
+
*
|
|
1015
|
+
* @generated from field: string body = 3;
|
|
1016
|
+
*/
|
|
1017
|
+
body: string;
|
|
1018
|
+
/**
|
|
1019
|
+
* The branch it asks to merge into. Empty: the repository's default branch.
|
|
1020
|
+
*
|
|
1021
|
+
* @generated from field: string base = 4;
|
|
1022
|
+
*/
|
|
1023
|
+
base: string;
|
|
1024
|
+
/**
|
|
1025
|
+
* @generated from field: optional bool draft = 5;
|
|
1026
|
+
*/
|
|
1027
|
+
draft?: boolean | undefined;
|
|
1028
|
+
};
|
|
1029
|
+
/**
|
|
1030
|
+
* Describes the message gitd.v1.PullRequestOptions.
|
|
1031
|
+
* Use `create(PullRequestOptionsSchema)` to create a new message.
|
|
1032
|
+
*/
|
|
1033
|
+
export declare const PullRequestOptionsSchema: GenMessage<PullRequestOptions>;
|
|
1034
|
+
/**
|
|
1035
|
+
* A pull request gitd opened.
|
|
1036
|
+
*
|
|
1037
|
+
* @generated from message gitd.v1.OpenedPullRequest
|
|
1038
|
+
*/
|
|
1039
|
+
export type OpenedPullRequest = Message<"gitd.v1.OpenedPullRequest"> & {
|
|
1040
|
+
/**
|
|
1041
|
+
* @generated from field: string url = 1;
|
|
1042
|
+
*/
|
|
1043
|
+
url: string;
|
|
1044
|
+
/**
|
|
1045
|
+
* @generated from field: int64 number = 2;
|
|
1046
|
+
*/
|
|
1047
|
+
number: bigint;
|
|
1048
|
+
};
|
|
1049
|
+
/**
|
|
1050
|
+
* Describes the message gitd.v1.OpenedPullRequest.
|
|
1051
|
+
* Use `create(OpenedPullRequestSchema)` to create a new message.
|
|
1052
|
+
*/
|
|
1053
|
+
export declare const OpenedPullRequestSchema: GenMessage<OpenedPullRequest>;
|
|
765
1054
|
/**
|
|
766
1055
|
* @generated from message gitd.v1.PublishedRepository
|
|
767
1056
|
*/
|
|
@@ -808,6 +1097,19 @@ export type PublishResponse = Message<"gitd.v1.PublishResponse"> & {
|
|
|
808
1097
|
* @generated from field: repeated gitd.v1.PublishedRepository submodules = 3;
|
|
809
1098
|
*/
|
|
810
1099
|
submodules: PublishedRepository[];
|
|
1100
|
+
/**
|
|
1101
|
+
* The pull request opened, when one was.
|
|
1102
|
+
*
|
|
1103
|
+
* @generated from field: gitd.v1.OpenedPullRequest pull_request = 4;
|
|
1104
|
+
*/
|
|
1105
|
+
pullRequest?: OpenedPullRequest | undefined;
|
|
1106
|
+
/**
|
|
1107
|
+
* Why the pull request could not be opened, when it was to be. The branch is published
|
|
1108
|
+
* all the same.
|
|
1109
|
+
*
|
|
1110
|
+
* @generated from field: gitd.v1.GitFailure pull_request_failure = 5;
|
|
1111
|
+
*/
|
|
1112
|
+
pullRequestFailure?: GitFailure | undefined;
|
|
811
1113
|
};
|
|
812
1114
|
/**
|
|
813
1115
|
* Describes the message gitd.v1.PublishResponse.
|
|
@@ -815,274 +1117,1686 @@ export type PublishResponse = Message<"gitd.v1.PublishResponse"> & {
|
|
|
815
1117
|
*/
|
|
816
1118
|
export declare const PublishResponseSchema: GenMessage<PublishResponse>;
|
|
817
1119
|
/**
|
|
818
|
-
* @generated from message gitd.v1.
|
|
1120
|
+
* @generated from message gitd.v1.ChangesRequest
|
|
819
1121
|
*/
|
|
820
|
-
export type
|
|
1122
|
+
export type ChangesRequest = Message<"gitd.v1.ChangesRequest"> & {
|
|
821
1123
|
/**
|
|
822
|
-
* @generated from field: string
|
|
1124
|
+
* @generated from field: string path = 1;
|
|
823
1125
|
*/
|
|
824
|
-
|
|
1126
|
+
path: string;
|
|
825
1127
|
/**
|
|
826
|
-
*
|
|
1128
|
+
* Files the base commit's .gitignore ignores, such as node_modules, are left out unless
|
|
1129
|
+
* asked for.
|
|
1130
|
+
*
|
|
1131
|
+
* @generated from field: bool include_ignored = 2;
|
|
827
1132
|
*/
|
|
828
|
-
|
|
1133
|
+
includeIgnored: boolean;
|
|
829
1134
|
};
|
|
830
1135
|
/**
|
|
831
|
-
* Describes the message gitd.v1.
|
|
832
|
-
* Use `create(
|
|
1136
|
+
* Describes the message gitd.v1.ChangesRequest.
|
|
1137
|
+
* Use `create(ChangesRequestSchema)` to create a new message.
|
|
833
1138
|
*/
|
|
834
|
-
export declare const
|
|
1139
|
+
export declare const ChangesRequestSchema: GenMessage<ChangesRequest>;
|
|
835
1140
|
/**
|
|
836
|
-
* @generated from message gitd.v1.
|
|
1141
|
+
* @generated from message gitd.v1.ChangedFile
|
|
837
1142
|
*/
|
|
838
|
-
export type
|
|
1143
|
+
export type ChangedFile = Message<"gitd.v1.ChangedFile"> & {
|
|
839
1144
|
/**
|
|
840
|
-
*
|
|
1145
|
+
* Relative to the workspace, with `/`.
|
|
1146
|
+
*
|
|
1147
|
+
* @generated from field: string path = 1;
|
|
841
1148
|
*/
|
|
842
|
-
|
|
1149
|
+
path: string;
|
|
843
1150
|
/**
|
|
844
|
-
* @generated from field:
|
|
1151
|
+
* @generated from field: gitd.v1.ChangedFile.Kind kind = 2;
|
|
845
1152
|
*/
|
|
846
|
-
|
|
1153
|
+
kind: ChangedFile_Kind;
|
|
847
1154
|
/**
|
|
848
|
-
*
|
|
849
|
-
*
|
|
850
|
-
* @generated from field: string default_branch = 3;
|
|
1155
|
+
* @generated from field: int32 added_lines = 3;
|
|
851
1156
|
*/
|
|
852
|
-
|
|
1157
|
+
addedLines: number;
|
|
853
1158
|
/**
|
|
854
|
-
* @generated from field:
|
|
1159
|
+
* @generated from field: int32 removed_lines = 4;
|
|
855
1160
|
*/
|
|
856
|
-
|
|
1161
|
+
removedLines: number;
|
|
857
1162
|
/**
|
|
858
|
-
*
|
|
1163
|
+
* A binary file, whose lines are not counted.
|
|
859
1164
|
*
|
|
860
|
-
* @generated from field:
|
|
1165
|
+
* @generated from field: bool binary = 5;
|
|
861
1166
|
*/
|
|
862
|
-
|
|
863
|
-
[key: string]: string;
|
|
864
|
-
};
|
|
1167
|
+
binary: boolean;
|
|
865
1168
|
};
|
|
866
1169
|
/**
|
|
867
|
-
* Describes the message gitd.v1.
|
|
868
|
-
* Use `create(
|
|
1170
|
+
* Describes the message gitd.v1.ChangedFile.
|
|
1171
|
+
* Use `create(ChangedFileSchema)` to create a new message.
|
|
869
1172
|
*/
|
|
870
|
-
export declare const
|
|
1173
|
+
export declare const ChangedFileSchema: GenMessage<ChangedFile>;
|
|
871
1174
|
/**
|
|
872
|
-
* @generated from enum gitd.v1.
|
|
1175
|
+
* @generated from enum gitd.v1.ChangedFile.Kind
|
|
873
1176
|
*/
|
|
874
|
-
export declare enum
|
|
1177
|
+
export declare enum ChangedFile_Kind {
|
|
875
1178
|
/**
|
|
876
|
-
* @generated from enum value:
|
|
1179
|
+
* @generated from enum value: KIND_UNSPECIFIED = 0;
|
|
877
1180
|
*/
|
|
878
1181
|
UNSPECIFIED = 0,
|
|
879
1182
|
/**
|
|
880
|
-
*
|
|
881
|
-
*
|
|
882
|
-
* @generated from enum value: ACCESS_PUBLIC = 1;
|
|
1183
|
+
* @generated from enum value: KIND_ADDED = 1;
|
|
883
1184
|
*/
|
|
884
|
-
|
|
1185
|
+
ADDED = 1,
|
|
885
1186
|
/**
|
|
886
|
-
*
|
|
887
|
-
*
|
|
888
|
-
* @generated from enum value: ACCESS_REACHABLE = 2;
|
|
1187
|
+
* @generated from enum value: KIND_MODIFIED = 2;
|
|
889
1188
|
*/
|
|
890
|
-
|
|
1189
|
+
MODIFIED = 2,
|
|
891
1190
|
/**
|
|
892
|
-
*
|
|
893
|
-
*
|
|
894
|
-
* @generated from enum value: ACCESS_DENIED = 3;
|
|
1191
|
+
* @generated from enum value: KIND_DELETED = 3;
|
|
895
1192
|
*/
|
|
896
|
-
|
|
1193
|
+
DELETED = 3
|
|
897
1194
|
}
|
|
898
1195
|
/**
|
|
899
|
-
* Describes the enum gitd.v1.
|
|
1196
|
+
* Describes the enum gitd.v1.ChangedFile.Kind.
|
|
900
1197
|
*/
|
|
901
|
-
export declare const
|
|
1198
|
+
export declare const ChangedFile_KindSchema: GenEnum<ChangedFile_Kind>;
|
|
902
1199
|
/**
|
|
903
|
-
* @generated from message gitd.v1.
|
|
1200
|
+
* @generated from message gitd.v1.ChangesResponse
|
|
904
1201
|
*/
|
|
905
|
-
export type
|
|
1202
|
+
export type ChangesResponse = Message<"gitd.v1.ChangesResponse"> & {
|
|
906
1203
|
/**
|
|
907
|
-
*
|
|
1204
|
+
* The commit gitd last put the workspace on, which the changes are read against.
|
|
908
1205
|
*
|
|
909
|
-
* @generated from field:
|
|
1206
|
+
* @generated from field: string base = 1;
|
|
910
1207
|
*/
|
|
911
|
-
|
|
1208
|
+
base: string;
|
|
1209
|
+
/**
|
|
1210
|
+
* @generated from field: repeated gitd.v1.ChangedFile files = 2;
|
|
1211
|
+
*/
|
|
1212
|
+
files: ChangedFile[];
|
|
1213
|
+
/**
|
|
1214
|
+
* Read from the agent's own layer, with no git run in the workspace; otherwise read by
|
|
1215
|
+
* git in the workspace, which its sandbox should not be writing meanwhile.
|
|
1216
|
+
*
|
|
1217
|
+
* @generated from field: bool from_layer = 3;
|
|
1218
|
+
*/
|
|
1219
|
+
fromLayer: boolean;
|
|
912
1220
|
};
|
|
913
1221
|
/**
|
|
914
|
-
* Describes the message gitd.v1.
|
|
915
|
-
* Use `create(
|
|
1222
|
+
* Describes the message gitd.v1.ChangesResponse.
|
|
1223
|
+
* Use `create(ChangesResponseSchema)` to create a new message.
|
|
916
1224
|
*/
|
|
917
|
-
export declare const
|
|
1225
|
+
export declare const ChangesResponseSchema: GenMessage<ChangesResponse>;
|
|
918
1226
|
/**
|
|
919
|
-
* @generated from message gitd.v1.
|
|
1227
|
+
* @generated from message gitd.v1.DiffRequest
|
|
920
1228
|
*/
|
|
921
|
-
export type
|
|
1229
|
+
export type DiffRequest = Message<"gitd.v1.DiffRequest"> & {
|
|
922
1230
|
/**
|
|
923
|
-
* @generated from field:
|
|
1231
|
+
* @generated from field: string path = 1;
|
|
924
1232
|
*/
|
|
925
|
-
|
|
1233
|
+
path: string;
|
|
926
1234
|
/**
|
|
927
|
-
*
|
|
1235
|
+
* Only these files, relative to the workspace; all the changes when empty.
|
|
1236
|
+
*
|
|
1237
|
+
* @generated from field: repeated string files = 2;
|
|
928
1238
|
*/
|
|
929
|
-
|
|
1239
|
+
files: string[];
|
|
1240
|
+
/**
|
|
1241
|
+
* At most this many bytes of diff: 512 KiB when unset, never more than 8 MiB.
|
|
1242
|
+
*
|
|
1243
|
+
* @generated from field: int64 max_bytes = 3;
|
|
1244
|
+
*/
|
|
1245
|
+
maxBytes: bigint;
|
|
1246
|
+
/**
|
|
1247
|
+
* @generated from field: bool include_ignored = 4;
|
|
1248
|
+
*/
|
|
1249
|
+
includeIgnored: boolean;
|
|
930
1250
|
};
|
|
931
1251
|
/**
|
|
932
|
-
* Describes the message gitd.v1.
|
|
933
|
-
* Use `create(
|
|
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.
|
|
1252
|
+
* Describes the message gitd.v1.DiffRequest.
|
|
1253
|
+
* Use `create(DiffRequestSchema)` to create a new message.
|
|
943
1254
|
*/
|
|
944
|
-
export declare const
|
|
1255
|
+
export declare const DiffRequestSchema: GenMessage<DiffRequest>;
|
|
945
1256
|
/**
|
|
946
|
-
* @generated from message gitd.v1.
|
|
1257
|
+
* @generated from message gitd.v1.DiffResponse
|
|
947
1258
|
*/
|
|
948
|
-
export type
|
|
1259
|
+
export type DiffResponse = Message<"gitd.v1.DiffResponse"> & {
|
|
949
1260
|
/**
|
|
950
|
-
* @generated from field: string
|
|
1261
|
+
* @generated from field: string base = 1;
|
|
951
1262
|
*/
|
|
952
|
-
|
|
1263
|
+
base: string;
|
|
953
1264
|
/**
|
|
954
|
-
*
|
|
1265
|
+
* The unified diff, with `a/` and `b/` before each path, as git writes it.
|
|
955
1266
|
*
|
|
956
|
-
* @generated from field: string
|
|
1267
|
+
* @generated from field: string diff = 2;
|
|
957
1268
|
*/
|
|
958
|
-
|
|
1269
|
+
diff: string;
|
|
959
1270
|
/**
|
|
960
|
-
*
|
|
1271
|
+
* Cut short at max_bytes.
|
|
961
1272
|
*
|
|
962
|
-
* @generated from field:
|
|
1273
|
+
* @generated from field: bool truncated = 3;
|
|
963
1274
|
*/
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
1275
|
+
truncated: boolean;
|
|
1276
|
+
};
|
|
1277
|
+
/**
|
|
1278
|
+
* Describes the message gitd.v1.DiffResponse.
|
|
1279
|
+
* Use `create(DiffResponseSchema)` to create a new message.
|
|
1280
|
+
*/
|
|
1281
|
+
export declare const DiffResponseSchema: GenMessage<DiffResponse>;
|
|
1282
|
+
/**
|
|
1283
|
+
* One work to compare: a workspace, by its path, or a branch gitd published — or any
|
|
1284
|
+
* branch its pool holds — by its name.
|
|
1285
|
+
*
|
|
1286
|
+
* @generated from message gitd.v1.Side
|
|
1287
|
+
*/
|
|
1288
|
+
export type Side = Message<"gitd.v1.Side"> & {
|
|
1289
|
+
/**
|
|
1290
|
+
* @generated from oneof gitd.v1.Side.of
|
|
1291
|
+
*/
|
|
1292
|
+
of: {
|
|
1293
|
+
/**
|
|
1294
|
+
* @generated from field: string workspace = 1;
|
|
1295
|
+
*/
|
|
1296
|
+
value: string;
|
|
1297
|
+
case: "workspace";
|
|
1298
|
+
} | {
|
|
1299
|
+
/**
|
|
1300
|
+
* @generated from field: string branch = 2;
|
|
1301
|
+
*/
|
|
1302
|
+
value: string;
|
|
1303
|
+
case: "branch";
|
|
1304
|
+
} | {
|
|
1305
|
+
case: undefined;
|
|
1306
|
+
value?: undefined;
|
|
1307
|
+
};
|
|
1308
|
+
};
|
|
1309
|
+
/**
|
|
1310
|
+
* Describes the message gitd.v1.Side.
|
|
1311
|
+
* Use `create(SideSchema)` to create a new message.
|
|
1312
|
+
*/
|
|
1313
|
+
export declare const SideSchema: GenMessage<Side>;
|
|
1314
|
+
/**
|
|
1315
|
+
* @generated from message gitd.v1.CompareRequest
|
|
1316
|
+
*/
|
|
1317
|
+
export type CompareRequest = Message<"gitd.v1.CompareRequest"> & {
|
|
1318
|
+
/**
|
|
1319
|
+
* @generated from field: gitd.v1.Side first = 1;
|
|
1320
|
+
*/
|
|
1321
|
+
first?: Side | undefined;
|
|
1322
|
+
/**
|
|
1323
|
+
* @generated from field: gitd.v1.Side second = 2;
|
|
1324
|
+
*/
|
|
1325
|
+
second?: Side | undefined;
|
|
1326
|
+
/**
|
|
1327
|
+
* The repository, when both sides are branches; a workspace says its own, and every side
|
|
1328
|
+
* must be of the same repository.
|
|
1329
|
+
*
|
|
1330
|
+
* @generated from field: string url = 3;
|
|
1331
|
+
*/
|
|
1332
|
+
url: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* @generated from field: bool include_ignored = 4;
|
|
1335
|
+
*/
|
|
1336
|
+
includeIgnored: boolean;
|
|
1337
|
+
/**
|
|
1338
|
+
* The unified diff too, from first to second, cut short at max_bytes (512 KiB unless
|
|
1339
|
+
* said, never more than 8 MiB).
|
|
1340
|
+
*
|
|
1341
|
+
* @generated from field: bool with_diff = 5;
|
|
1342
|
+
*/
|
|
1343
|
+
withDiff: boolean;
|
|
1344
|
+
/**
|
|
1345
|
+
* @generated from field: int64 max_bytes = 6;
|
|
1346
|
+
*/
|
|
1347
|
+
maxBytes: bigint;
|
|
1348
|
+
};
|
|
1349
|
+
/**
|
|
1350
|
+
* Describes the message gitd.v1.CompareRequest.
|
|
1351
|
+
* Use `create(CompareRequestSchema)` to create a new message.
|
|
1352
|
+
*/
|
|
1353
|
+
export declare const CompareRequestSchema: GenMessage<CompareRequest>;
|
|
1354
|
+
/**
|
|
1355
|
+
* @generated from message gitd.v1.CompareResponse
|
|
1356
|
+
*/
|
|
1357
|
+
export type CompareResponse = Message<"gitd.v1.CompareResponse"> & {
|
|
1358
|
+
/**
|
|
1359
|
+
* From first to second: added is in second only, deleted in first only.
|
|
1360
|
+
*
|
|
1361
|
+
* @generated from field: repeated gitd.v1.ChangedFile files = 1;
|
|
1362
|
+
*/
|
|
1363
|
+
files: ChangedFile[];
|
|
1364
|
+
/**
|
|
1365
|
+
* @generated from field: string diff = 2;
|
|
1366
|
+
*/
|
|
1367
|
+
diff: string;
|
|
1368
|
+
/**
|
|
1369
|
+
* @generated from field: bool truncated = 3;
|
|
1370
|
+
*/
|
|
1371
|
+
truncated: boolean;
|
|
1372
|
+
};
|
|
1373
|
+
/**
|
|
1374
|
+
* Describes the message gitd.v1.CompareResponse.
|
|
1375
|
+
* Use `create(CompareResponseSchema)` to create a new message.
|
|
1376
|
+
*/
|
|
1377
|
+
export declare const CompareResponseSchema: GenMessage<CompareResponse>;
|
|
1378
|
+
/**
|
|
1379
|
+
* @generated from message gitd.v1.ConflictsRequest
|
|
1380
|
+
*/
|
|
1381
|
+
export type ConflictsRequest = Message<"gitd.v1.ConflictsRequest"> & {
|
|
1382
|
+
/**
|
|
1383
|
+
* At least two; a workspace stands for what it committed, which gitd brings into the pool
|
|
1384
|
+
* as publishing does, so its sandbox should not be writing meanwhile.
|
|
1385
|
+
*
|
|
1386
|
+
* @generated from field: repeated gitd.v1.Side sides = 1;
|
|
1387
|
+
*/
|
|
1388
|
+
sides: Side[];
|
|
1389
|
+
/**
|
|
1390
|
+
* @generated from field: string url = 2;
|
|
1391
|
+
*/
|
|
1392
|
+
url: string;
|
|
1393
|
+
};
|
|
1394
|
+
/**
|
|
1395
|
+
* Describes the message gitd.v1.ConflictsRequest.
|
|
1396
|
+
* Use `create(ConflictsRequestSchema)` to create a new message.
|
|
1397
|
+
*/
|
|
1398
|
+
export declare const ConflictsRequestSchema: GenMessage<ConflictsRequest>;
|
|
1399
|
+
/**
|
|
1400
|
+
* Two works that do not merge cleanly, and the files they conflict on.
|
|
1401
|
+
*
|
|
1402
|
+
* @generated from message gitd.v1.Conflict
|
|
1403
|
+
*/
|
|
1404
|
+
export type Conflict = Message<"gitd.v1.Conflict"> & {
|
|
1405
|
+
/**
|
|
1406
|
+
* @generated from field: gitd.v1.Side first = 1;
|
|
1407
|
+
*/
|
|
1408
|
+
first?: Side | undefined;
|
|
1409
|
+
/**
|
|
1410
|
+
* @generated from field: gitd.v1.Side second = 2;
|
|
1411
|
+
*/
|
|
1412
|
+
second?: Side | undefined;
|
|
1413
|
+
/**
|
|
1414
|
+
* @generated from field: repeated string paths = 3;
|
|
1415
|
+
*/
|
|
1416
|
+
paths: string[];
|
|
1417
|
+
};
|
|
1418
|
+
/**
|
|
1419
|
+
* Describes the message gitd.v1.Conflict.
|
|
1420
|
+
* Use `create(ConflictSchema)` to create a new message.
|
|
1421
|
+
*/
|
|
1422
|
+
export declare const ConflictSchema: GenMessage<Conflict>;
|
|
1423
|
+
/**
|
|
1424
|
+
* @generated from message gitd.v1.ConflictsResponse
|
|
1425
|
+
*/
|
|
1426
|
+
export type ConflictsResponse = Message<"gitd.v1.ConflictsResponse"> & {
|
|
1427
|
+
/**
|
|
1428
|
+
* Every pair that does not merge cleanly; none when all do.
|
|
1429
|
+
*
|
|
1430
|
+
* @generated from field: repeated gitd.v1.Conflict conflicts = 1;
|
|
1431
|
+
*/
|
|
1432
|
+
conflicts: Conflict[];
|
|
1433
|
+
};
|
|
1434
|
+
/**
|
|
1435
|
+
* Describes the message gitd.v1.ConflictsResponse.
|
|
1436
|
+
* Use `create(ConflictsResponseSchema)` to create a new message.
|
|
1437
|
+
*/
|
|
1438
|
+
export declare const ConflictsResponseSchema: GenMessage<ConflictsResponse>;
|
|
1439
|
+
/**
|
|
1440
|
+
* @generated from message gitd.v1.WatchRequest
|
|
1441
|
+
*/
|
|
1442
|
+
export type WatchRequest = Message<"gitd.v1.WatchRequest"> & {
|
|
1443
|
+
/**
|
|
1444
|
+
* Only these workspaces; every workspace when empty.
|
|
1445
|
+
*
|
|
1446
|
+
* @generated from field: repeated string paths = 1;
|
|
1447
|
+
*/
|
|
1448
|
+
paths: string[];
|
|
1449
|
+
};
|
|
1450
|
+
/**
|
|
1451
|
+
* Describes the message gitd.v1.WatchRequest.
|
|
1452
|
+
* Use `create(WatchRequestSchema)` to create a new message.
|
|
1453
|
+
*/
|
|
1454
|
+
export declare const WatchRequestSchema: GenMessage<WatchRequest>;
|
|
1455
|
+
/**
|
|
1456
|
+
* @generated from message gitd.v1.WatchResponse
|
|
1457
|
+
*/
|
|
1458
|
+
export type WatchResponse = Message<"gitd.v1.WatchResponse"> & {
|
|
1459
|
+
/**
|
|
1460
|
+
* @generated from field: gitd.v1.WatchResponse.Kind kind = 1;
|
|
1461
|
+
*/
|
|
1462
|
+
kind: WatchResponse_Kind;
|
|
1463
|
+
/**
|
|
1464
|
+
* @generated from field: string path = 2;
|
|
1465
|
+
*/
|
|
1466
|
+
path: string;
|
|
1467
|
+
/**
|
|
1468
|
+
* @generated from field: google.protobuf.Timestamp time = 3;
|
|
1469
|
+
*/
|
|
1470
|
+
time?: Timestamp | undefined;
|
|
1471
|
+
/**
|
|
1472
|
+
* The branch, for a publish done or refused.
|
|
1473
|
+
*
|
|
1474
|
+
* @generated from field: string branch = 4;
|
|
1475
|
+
*/
|
|
1476
|
+
branch: string;
|
|
1477
|
+
/**
|
|
1478
|
+
* The pull request opened, or why a publish was refused.
|
|
1479
|
+
*
|
|
1480
|
+
* @generated from field: string detail = 5;
|
|
1481
|
+
*/
|
|
1482
|
+
detail: string;
|
|
1483
|
+
};
|
|
1484
|
+
/**
|
|
1485
|
+
* Describes the message gitd.v1.WatchResponse.
|
|
1486
|
+
* Use `create(WatchResponseSchema)` to create a new message.
|
|
1487
|
+
*/
|
|
1488
|
+
export declare const WatchResponseSchema: GenMessage<WatchResponse>;
|
|
1489
|
+
/**
|
|
1490
|
+
* @generated from enum gitd.v1.WatchResponse.Kind
|
|
1491
|
+
*/
|
|
1492
|
+
export declare enum WatchResponse_Kind {
|
|
1493
|
+
/**
|
|
1494
|
+
* @generated from enum value: KIND_UNSPECIFIED = 0;
|
|
1495
|
+
*/
|
|
1496
|
+
UNSPECIFIED = 0,
|
|
1497
|
+
/**
|
|
1498
|
+
* @generated from enum value: KIND_MADE = 1;
|
|
1499
|
+
*/
|
|
1500
|
+
MADE = 1,
|
|
1501
|
+
/**
|
|
1502
|
+
* Something in the workspace changed: seen in the agent's layer of an overlay workspace,
|
|
1503
|
+
* within a couple of seconds, and coalesced.
|
|
1504
|
+
*
|
|
1505
|
+
* @generated from enum value: KIND_CHANGED = 2;
|
|
1506
|
+
*/
|
|
1507
|
+
CHANGED = 2,
|
|
1508
|
+
/**
|
|
1509
|
+
* @generated from enum value: KIND_PUBLISHED = 3;
|
|
1510
|
+
*/
|
|
1511
|
+
PUBLISHED = 3,
|
|
1512
|
+
/**
|
|
1513
|
+
* @generated from enum value: KIND_REFUSED = 4;
|
|
1514
|
+
*/
|
|
1515
|
+
REFUSED = 4,
|
|
1516
|
+
/**
|
|
1517
|
+
* @generated from enum value: KIND_REMOVED = 5;
|
|
1518
|
+
*/
|
|
1519
|
+
REMOVED = 5
|
|
1520
|
+
}
|
|
1521
|
+
/**
|
|
1522
|
+
* Describes the enum gitd.v1.WatchResponse.Kind.
|
|
1523
|
+
*/
|
|
1524
|
+
export declare const WatchResponse_KindSchema: GenEnum<WatchResponse_Kind>;
|
|
1525
|
+
/**
|
|
1526
|
+
* @generated from message gitd.v1.ProbeRequest
|
|
1527
|
+
*/
|
|
1528
|
+
export type ProbeRequest = Message<"gitd.v1.ProbeRequest"> & {
|
|
1529
|
+
/**
|
|
1530
|
+
* @generated from field: string url = 1;
|
|
1531
|
+
*/
|
|
1532
|
+
url: string;
|
|
1533
|
+
/**
|
|
1534
|
+
* @generated from field: repeated gitd.v1.Credential credentials = 2;
|
|
1535
|
+
*/
|
|
1536
|
+
credentials: Credential[];
|
|
1537
|
+
};
|
|
1538
|
+
/**
|
|
1539
|
+
* Describes the message gitd.v1.ProbeRequest.
|
|
1540
|
+
* Use `create(ProbeRequestSchema)` to create a new message.
|
|
1541
|
+
*/
|
|
1542
|
+
export declare const ProbeRequestSchema: GenMessage<ProbeRequest>;
|
|
1543
|
+
/**
|
|
1544
|
+
* @generated from message gitd.v1.ProbeResponse
|
|
1545
|
+
*/
|
|
1546
|
+
export type ProbeResponse = Message<"gitd.v1.ProbeResponse"> & {
|
|
1547
|
+
/**
|
|
1548
|
+
* @generated from field: gitd.v1.ProbeResponse.Access access = 1;
|
|
1549
|
+
*/
|
|
1550
|
+
access: ProbeResponse_Access;
|
|
1551
|
+
/**
|
|
1552
|
+
* @generated from field: repeated string branches = 2;
|
|
1553
|
+
*/
|
|
1554
|
+
branches: string[];
|
|
1555
|
+
/**
|
|
1556
|
+
* The branch the repository's HEAD points at.
|
|
1557
|
+
*
|
|
1558
|
+
* @generated from field: string default_branch = 3;
|
|
1559
|
+
*/
|
|
1560
|
+
defaultBranch: string;
|
|
1561
|
+
/**
|
|
1562
|
+
* @generated from field: gitd.v1.GitFailure failure = 4;
|
|
1563
|
+
*/
|
|
1564
|
+
failure?: GitFailure | undefined;
|
|
1565
|
+
/**
|
|
1566
|
+
* The commit each branch points at, by branch: what a submodule's gitlink is set to.
|
|
1567
|
+
*
|
|
1568
|
+
* @generated from field: map<string, string> commits = 5;
|
|
1569
|
+
*/
|
|
1570
|
+
commits: {
|
|
1571
|
+
[key: string]: string;
|
|
1572
|
+
};
|
|
1573
|
+
};
|
|
1574
|
+
/**
|
|
1575
|
+
* Describes the message gitd.v1.ProbeResponse.
|
|
1576
|
+
* Use `create(ProbeResponseSchema)` to create a new message.
|
|
1577
|
+
*/
|
|
1578
|
+
export declare const ProbeResponseSchema: GenMessage<ProbeResponse>;
|
|
1579
|
+
/**
|
|
1580
|
+
* @generated from enum gitd.v1.ProbeResponse.Access
|
|
1581
|
+
*/
|
|
1582
|
+
export declare enum ProbeResponse_Access {
|
|
1583
|
+
/**
|
|
1584
|
+
* @generated from enum value: ACCESS_UNSPECIFIED = 0;
|
|
1585
|
+
*/
|
|
1586
|
+
UNSPECIFIED = 0,
|
|
1587
|
+
/**
|
|
1588
|
+
* Read with nothing.
|
|
1589
|
+
*
|
|
1590
|
+
* @generated from enum value: ACCESS_PUBLIC = 1;
|
|
1591
|
+
*/
|
|
1592
|
+
PUBLIC = 1,
|
|
1593
|
+
/**
|
|
1594
|
+
* Read with the credentials given.
|
|
1595
|
+
*
|
|
1596
|
+
* @generated from enum value: ACCESS_REACHABLE = 2;
|
|
1597
|
+
*/
|
|
1598
|
+
REACHABLE = 2,
|
|
1599
|
+
/**
|
|
1600
|
+
* Not readable with what was given.
|
|
1601
|
+
*
|
|
1602
|
+
* @generated from enum value: ACCESS_DENIED = 3;
|
|
1603
|
+
*/
|
|
1604
|
+
DENIED = 3
|
|
1605
|
+
}
|
|
1606
|
+
/**
|
|
1607
|
+
* Describes the enum gitd.v1.ProbeResponse.Access.
|
|
1608
|
+
*/
|
|
1609
|
+
export declare const ProbeResponse_AccessSchema: GenEnum<ProbeResponse_Access>;
|
|
1610
|
+
/**
|
|
1611
|
+
* @generated from message gitd.v1.RetireRequest
|
|
1612
|
+
*/
|
|
1613
|
+
export type RetireRequest = Message<"gitd.v1.RetireRequest"> & {
|
|
1614
|
+
/**
|
|
1615
|
+
* At least a day: a pool used moments ago is likely to be wanted again.
|
|
1616
|
+
*
|
|
1617
|
+
* @generated from field: int64 unused_for_seconds = 1;
|
|
1618
|
+
*/
|
|
1619
|
+
unusedForSeconds: bigint;
|
|
1620
|
+
};
|
|
1621
|
+
/**
|
|
1622
|
+
* Describes the message gitd.v1.RetireRequest.
|
|
1623
|
+
* Use `create(RetireRequestSchema)` to create a new message.
|
|
1624
|
+
*/
|
|
1625
|
+
export declare const RetireRequestSchema: GenMessage<RetireRequest>;
|
|
1626
|
+
/**
|
|
1627
|
+
* @generated from message gitd.v1.RetireResponse
|
|
1628
|
+
*/
|
|
1629
|
+
export type RetireResponse = Message<"gitd.v1.RetireResponse"> & {
|
|
1630
|
+
/**
|
|
1631
|
+
* @generated from field: int32 retired = 1;
|
|
1632
|
+
*/
|
|
1633
|
+
retired: number;
|
|
1634
|
+
/**
|
|
1635
|
+
* @generated from field: int64 freed_bytes = 2;
|
|
1636
|
+
*/
|
|
1637
|
+
freedBytes: bigint;
|
|
1638
|
+
};
|
|
1639
|
+
/**
|
|
1640
|
+
* Describes the message gitd.v1.RetireResponse.
|
|
1641
|
+
* Use `create(RetireResponseSchema)` to create a new message.
|
|
1642
|
+
*/
|
|
1643
|
+
export declare const RetireResponseSchema: GenMessage<RetireResponse>;
|
|
1644
|
+
/**
|
|
1645
|
+
* @generated from message gitd.v1.InfoRequest
|
|
1646
|
+
*/
|
|
1647
|
+
export type InfoRequest = Message<"gitd.v1.InfoRequest"> & {};
|
|
1648
|
+
/**
|
|
1649
|
+
* Describes the message gitd.v1.InfoRequest.
|
|
1650
|
+
* Use `create(InfoRequestSchema)` to create a new message.
|
|
1651
|
+
*/
|
|
1652
|
+
export declare const InfoRequestSchema: GenMessage<InfoRequest>;
|
|
1653
|
+
/**
|
|
1654
|
+
* @generated from message gitd.v1.InfoResponse
|
|
1655
|
+
*/
|
|
1656
|
+
export type InfoResponse = Message<"gitd.v1.InfoResponse"> & {
|
|
1657
|
+
/**
|
|
1658
|
+
* @generated from field: string version = 1;
|
|
1659
|
+
*/
|
|
1660
|
+
version: string;
|
|
1661
|
+
/**
|
|
1662
|
+
* What `git version` says, e.g. "git version 2.48.1".
|
|
1663
|
+
*
|
|
1664
|
+
* @generated from field: string git_version = 2;
|
|
1665
|
+
*/
|
|
1666
|
+
gitVersion: string;
|
|
1667
|
+
/**
|
|
1668
|
+
* How many pools there are and the disk they take, as of the last maintenance round.
|
|
1669
|
+
*
|
|
1670
|
+
* @generated from field: int32 pools = 3;
|
|
1671
|
+
*/
|
|
1672
|
+
pools: number;
|
|
1673
|
+
/**
|
|
1674
|
+
* @generated from field: int64 pools_bytes = 4;
|
|
1675
|
+
*/
|
|
1676
|
+
poolsBytes: bigint;
|
|
1677
|
+
/**
|
|
1678
|
+
* How new workspaces are made on this machine, and why: what gitd detected at start.
|
|
1679
|
+
*
|
|
1680
|
+
* @generated from field: gitd.v1.Strategy strategy = 5;
|
|
1681
|
+
*/
|
|
1682
|
+
strategy: Strategy;
|
|
1683
|
+
/**
|
|
1684
|
+
* @generated from field: string strategy_reason = 6;
|
|
1685
|
+
*/
|
|
1686
|
+
strategyReason: string;
|
|
1687
|
+
/**
|
|
1688
|
+
* How many templates there are and the disk they take, as of the last maintenance round.
|
|
1689
|
+
*
|
|
1690
|
+
* @generated from field: int32 templates = 7;
|
|
1691
|
+
*/
|
|
1692
|
+
templates: number;
|
|
1693
|
+
/**
|
|
1694
|
+
* @generated from field: int64 templates_bytes = 8;
|
|
1695
|
+
*/
|
|
1696
|
+
templatesBytes: bigint;
|
|
1697
|
+
};
|
|
1698
|
+
/**
|
|
1699
|
+
* Describes the message gitd.v1.InfoResponse.
|
|
1700
|
+
* Use `create(InfoResponseSchema)` to create a new message.
|
|
1701
|
+
*/
|
|
1702
|
+
export declare const InfoResponseSchema: GenMessage<InfoResponse>;
|
|
1703
|
+
/**
|
|
1704
|
+
* @generated from message gitd.v1.AuditRequest
|
|
1705
|
+
*/
|
|
1706
|
+
export type AuditRequest = Message<"gitd.v1.AuditRequest"> & {
|
|
1707
|
+
/**
|
|
1708
|
+
* Only the entries from this time on; all of them when unset.
|
|
1709
|
+
*
|
|
1710
|
+
* @generated from field: google.protobuf.Timestamp since = 1;
|
|
1711
|
+
*/
|
|
1712
|
+
since?: Timestamp | undefined;
|
|
1713
|
+
/**
|
|
1714
|
+
* Only the entries of this repository, as its URL is written in them.
|
|
1715
|
+
*
|
|
1716
|
+
* @generated from field: string url = 2;
|
|
1717
|
+
*/
|
|
1718
|
+
url: string;
|
|
1719
|
+
/**
|
|
1720
|
+
* At most this many, newest first: 100 when unset, never more than 1000.
|
|
1721
|
+
*
|
|
1722
|
+
* @generated from field: int32 limit = 3;
|
|
1723
|
+
*/
|
|
1724
|
+
limit: number;
|
|
1725
|
+
};
|
|
1726
|
+
/**
|
|
1727
|
+
* Describes the message gitd.v1.AuditRequest.
|
|
1728
|
+
* Use `create(AuditRequestSchema)` to create a new message.
|
|
1729
|
+
*/
|
|
1730
|
+
export declare const AuditRequestSchema: GenMessage<AuditRequest>;
|
|
1731
|
+
/**
|
|
1732
|
+
* @generated from message gitd.v1.AuditResponse
|
|
1733
|
+
*/
|
|
1734
|
+
export type AuditResponse = Message<"gitd.v1.AuditResponse"> & {
|
|
1735
|
+
/**
|
|
1736
|
+
* @generated from field: repeated gitd.v1.AuditEntry entries = 1;
|
|
1737
|
+
*/
|
|
1738
|
+
entries: AuditEntry[];
|
|
1739
|
+
};
|
|
1740
|
+
/**
|
|
1741
|
+
* Describes the message gitd.v1.AuditResponse.
|
|
1742
|
+
* Use `create(AuditResponseSchema)` to create a new message.
|
|
1743
|
+
*/
|
|
1744
|
+
export declare const AuditResponseSchema: GenMessage<AuditResponse>;
|
|
1745
|
+
/**
|
|
1746
|
+
* One publish, done or refused, or one change to connections or publishing settings, as
|
|
1747
|
+
* the audit log keeps it: one per line of the log file, in this message's JSON form.
|
|
1748
|
+
*
|
|
1749
|
+
* @generated from message gitd.v1.AuditEntry
|
|
1750
|
+
*/
|
|
1751
|
+
export type AuditEntry = Message<"gitd.v1.AuditEntry"> & {
|
|
1752
|
+
/**
|
|
1753
|
+
* @generated from field: google.protobuf.Timestamp time = 1;
|
|
1754
|
+
*/
|
|
1755
|
+
time?: Timestamp | undefined;
|
|
1756
|
+
/**
|
|
1757
|
+
* The workspace's path, as the caller gave it.
|
|
1758
|
+
*
|
|
1759
|
+
* @generated from field: string workspace = 2;
|
|
1760
|
+
*/
|
|
1761
|
+
workspace: string;
|
|
1762
|
+
/**
|
|
1763
|
+
* The workspace's repository; empty when the workspace could not be opened.
|
|
1764
|
+
*
|
|
1765
|
+
* @generated from field: string url = 3;
|
|
1766
|
+
*/
|
|
1767
|
+
url: string;
|
|
1768
|
+
/**
|
|
1769
|
+
* @generated from field: string branch = 4;
|
|
1770
|
+
*/
|
|
1771
|
+
branch: string;
|
|
1772
|
+
/**
|
|
1773
|
+
* What was pushed: the workspace's repository, then each submodule. Unset when refused.
|
|
1774
|
+
*
|
|
1775
|
+
* @generated from field: gitd.v1.PublishedRepository repository = 5;
|
|
1776
|
+
*/
|
|
1777
|
+
repository?: PublishedRepository | undefined;
|
|
1778
|
+
/**
|
|
1779
|
+
* @generated from field: repeated gitd.v1.PublishedRepository submodules = 6;
|
|
1780
|
+
*/
|
|
1781
|
+
submodules: PublishedRepository[];
|
|
1782
|
+
/**
|
|
1783
|
+
* Why it was refused. Unset when it was published.
|
|
1784
|
+
*
|
|
1785
|
+
* @generated from field: gitd.v1.GitFailure refusal = 7;
|
|
1786
|
+
*/
|
|
1787
|
+
refusal?: GitFailure | undefined;
|
|
1788
|
+
/**
|
|
1789
|
+
* Who asked for the work, as the publish said.
|
|
1790
|
+
*
|
|
1791
|
+
* @generated from field: string requested_by = 8;
|
|
1792
|
+
*/
|
|
1793
|
+
requestedBy: string;
|
|
1794
|
+
/**
|
|
1795
|
+
* The pull request opened, or why it could not be.
|
|
1796
|
+
*
|
|
1797
|
+
* @generated from field: gitd.v1.OpenedPullRequest pull_request = 9;
|
|
1798
|
+
*/
|
|
1799
|
+
pullRequest?: OpenedPullRequest | undefined;
|
|
1800
|
+
/**
|
|
1801
|
+
* @generated from field: gitd.v1.GitFailure pull_request_failure = 10;
|
|
1802
|
+
*/
|
|
1803
|
+
pullRequestFailure?: GitFailure | undefined;
|
|
1804
|
+
/**
|
|
1805
|
+
* A change to connections or publishing settings; the other fields are then unset.
|
|
1806
|
+
*
|
|
1807
|
+
* @generated from field: gitd.v1.ConfigurationChange change = 11;
|
|
1808
|
+
*/
|
|
1809
|
+
change?: ConfigurationChange | undefined;
|
|
1810
|
+
/**
|
|
1811
|
+
* Where the work came from, as the publish said.
|
|
1812
|
+
*
|
|
1813
|
+
* @generated from field: gitd.v1.Provenance provenance = 12;
|
|
1814
|
+
*/
|
|
1815
|
+
provenance?: Provenance | undefined;
|
|
1816
|
+
/**
|
|
1817
|
+
* The sandbox repository published from, when it was not a workspace.
|
|
1818
|
+
*
|
|
1819
|
+
* @generated from field: string sandbox = 13;
|
|
1820
|
+
*/
|
|
1821
|
+
sandbox: string;
|
|
1822
|
+
};
|
|
1823
|
+
/**
|
|
1824
|
+
* Describes the message gitd.v1.AuditEntry.
|
|
1825
|
+
* Use `create(AuditEntrySchema)` to create a new message.
|
|
1826
|
+
*/
|
|
1827
|
+
export declare const AuditEntrySchema: GenMessage<AuditEntry>;
|
|
1828
|
+
/**
|
|
1829
|
+
* A connection added or removed, or the settings of a prefix set or removed.
|
|
1830
|
+
*
|
|
1831
|
+
* @generated from message gitd.v1.ConfigurationChange
|
|
1832
|
+
*/
|
|
1833
|
+
export type ConfigurationChange = Message<"gitd.v1.ConfigurationChange"> & {
|
|
1834
|
+
/**
|
|
1835
|
+
* @generated from field: gitd.v1.ConfigurationChange.Action action = 1;
|
|
1836
|
+
*/
|
|
1837
|
+
action: ConfigurationChange_Action;
|
|
1838
|
+
/**
|
|
1839
|
+
* The connection's ID, the settings' prefix, the preset's name, or the token's ID.
|
|
1840
|
+
*
|
|
1841
|
+
* @generated from field: string subject = 2;
|
|
1842
|
+
*/
|
|
1843
|
+
subject: string;
|
|
1844
|
+
/**
|
|
1845
|
+
* What it opens or applies to, e.g. `https://github.com/acme`.
|
|
1846
|
+
*
|
|
1847
|
+
* @generated from field: string url_prefix = 3;
|
|
1848
|
+
*/
|
|
1849
|
+
urlPrefix: string;
|
|
1850
|
+
};
|
|
1851
|
+
/**
|
|
1852
|
+
* Describes the message gitd.v1.ConfigurationChange.
|
|
1853
|
+
* Use `create(ConfigurationChangeSchema)` to create a new message.
|
|
1854
|
+
*/
|
|
1855
|
+
export declare const ConfigurationChangeSchema: GenMessage<ConfigurationChange>;
|
|
1856
|
+
/**
|
|
1857
|
+
* @generated from enum gitd.v1.ConfigurationChange.Action
|
|
1858
|
+
*/
|
|
1859
|
+
export declare enum ConfigurationChange_Action {
|
|
1860
|
+
/**
|
|
1861
|
+
* @generated from enum value: ACTION_UNSPECIFIED = 0;
|
|
1862
|
+
*/
|
|
1863
|
+
UNSPECIFIED = 0,
|
|
1864
|
+
/**
|
|
1865
|
+
* @generated from enum value: ACTION_CONNECTION_ADDED = 1;
|
|
1866
|
+
*/
|
|
1867
|
+
CONNECTION_ADDED = 1,
|
|
1868
|
+
/**
|
|
1869
|
+
* @generated from enum value: ACTION_CONNECTION_REMOVED = 2;
|
|
1870
|
+
*/
|
|
1871
|
+
CONNECTION_REMOVED = 2,
|
|
1872
|
+
/**
|
|
1873
|
+
* @generated from enum value: ACTION_SETTINGS_SET = 3;
|
|
1874
|
+
*/
|
|
1875
|
+
SETTINGS_SET = 3,
|
|
1876
|
+
/**
|
|
1877
|
+
* @generated from enum value: ACTION_SETTINGS_REMOVED = 4;
|
|
1878
|
+
*/
|
|
1879
|
+
SETTINGS_REMOVED = 4,
|
|
1880
|
+
/**
|
|
1881
|
+
* @generated from enum value: ACTION_PRESET_SET = 5;
|
|
1882
|
+
*/
|
|
1883
|
+
PRESET_SET = 5,
|
|
1884
|
+
/**
|
|
1885
|
+
* @generated from enum value: ACTION_PRESET_REMOVED = 6;
|
|
1886
|
+
*/
|
|
1887
|
+
PRESET_REMOVED = 6,
|
|
1888
|
+
/**
|
|
1889
|
+
* @generated from enum value: ACTION_TOKEN_ISSUED = 7;
|
|
1890
|
+
*/
|
|
1891
|
+
TOKEN_ISSUED = 7,
|
|
1892
|
+
/**
|
|
1893
|
+
* @generated from enum value: ACTION_TOKEN_REVOKED = 8;
|
|
1894
|
+
*/
|
|
1895
|
+
TOKEN_REVOKED = 8
|
|
1896
|
+
}
|
|
1897
|
+
/**
|
|
1898
|
+
* Describes the enum gitd.v1.ConfigurationChange.Action.
|
|
1899
|
+
*/
|
|
1900
|
+
export declare const ConfigurationChange_ActionSchema: GenEnum<ConfigurationChange_Action>;
|
|
1901
|
+
/**
|
|
1902
|
+
* One credential gitd keeps.
|
|
1903
|
+
*
|
|
1904
|
+
* @generated from message gitd.v1.Connection
|
|
1905
|
+
*/
|
|
1906
|
+
export type Connection = Message<"gitd.v1.Connection"> & {
|
|
1907
|
+
/**
|
|
1908
|
+
* gitd's name for it, to remove it by.
|
|
1909
|
+
*
|
|
1910
|
+
* @generated from field: string id = 1;
|
|
1911
|
+
*/
|
|
1912
|
+
id: string;
|
|
1913
|
+
/**
|
|
1914
|
+
* @generated from field: gitd.v1.Connection.Kind kind = 2;
|
|
1915
|
+
*/
|
|
1916
|
+
kind: Connection_Kind;
|
|
1917
|
+
/**
|
|
1918
|
+
* The repositories it opens: those whose address starts with this.
|
|
1919
|
+
*
|
|
1920
|
+
* @generated from field: string url_prefix = 3;
|
|
1921
|
+
*/
|
|
1922
|
+
urlPrefix: string;
|
|
1923
|
+
/**
|
|
1924
|
+
* Whom it acts as: the App's bot (`acme-agents[bot]`) or the person (`josue`). Empty for
|
|
1925
|
+
* a token or a key.
|
|
1926
|
+
*
|
|
1927
|
+
* @generated from field: string acts_as = 4;
|
|
1928
|
+
*/
|
|
1929
|
+
actsAs: string;
|
|
1930
|
+
/**
|
|
1931
|
+
* For an App: its ID, and where its installations are managed.
|
|
1932
|
+
*
|
|
1933
|
+
* @generated from field: int64 app_id = 5;
|
|
1934
|
+
*/
|
|
1935
|
+
appId: bigint;
|
|
1936
|
+
/**
|
|
1937
|
+
* @generated from field: string manage_url = 6;
|
|
1938
|
+
*/
|
|
1939
|
+
manageUrl: string;
|
|
1940
|
+
/**
|
|
1941
|
+
* When it stops working unless renewed: a sign-in's renewal ends then.
|
|
1942
|
+
*
|
|
1943
|
+
* @generated from field: google.protobuf.Timestamp expires = 7;
|
|
1944
|
+
*/
|
|
1945
|
+
expires?: Timestamp | undefined;
|
|
1946
|
+
/**
|
|
1947
|
+
* From the configuration file: shown, never changed through the API.
|
|
1948
|
+
*
|
|
1949
|
+
* @generated from field: bool from_file = 8;
|
|
1950
|
+
*/
|
|
1951
|
+
fromFile: boolean;
|
|
1952
|
+
/**
|
|
1953
|
+
* @generated from field: google.protobuf.Timestamp created = 9;
|
|
1954
|
+
*/
|
|
1955
|
+
created?: Timestamp | undefined;
|
|
1956
|
+
};
|
|
1957
|
+
/**
|
|
1958
|
+
* Describes the message gitd.v1.Connection.
|
|
1959
|
+
* Use `create(ConnectionSchema)` to create a new message.
|
|
1960
|
+
*/
|
|
1961
|
+
export declare const ConnectionSchema: GenMessage<Connection>;
|
|
1962
|
+
/**
|
|
1963
|
+
* @generated from enum gitd.v1.Connection.Kind
|
|
1964
|
+
*/
|
|
1965
|
+
export declare enum Connection_Kind {
|
|
1966
|
+
/**
|
|
1967
|
+
* @generated from enum value: KIND_UNSPECIFIED = 0;
|
|
1968
|
+
*/
|
|
1969
|
+
UNSPECIFIED = 0,
|
|
1970
|
+
/**
|
|
1971
|
+
* @generated from enum value: KIND_TOKEN = 1;
|
|
1972
|
+
*/
|
|
1973
|
+
TOKEN = 1,
|
|
1974
|
+
/**
|
|
1975
|
+
* @generated from enum value: KIND_SSH_KEY = 2;
|
|
1976
|
+
*/
|
|
1977
|
+
SSH_KEY = 2,
|
|
1978
|
+
/**
|
|
1979
|
+
* A GitHub App: its installation tokens open one repository each, for an hour.
|
|
1980
|
+
*
|
|
1981
|
+
* @generated from enum value: KIND_GITHUB_APP = 3;
|
|
1982
|
+
*/
|
|
1983
|
+
GITHUB_APP = 3,
|
|
1984
|
+
/**
|
|
1985
|
+
* A person signed in through gitd's public App: their tokens, renewed by gitd.
|
|
1986
|
+
*
|
|
1987
|
+
* @generated from enum value: KIND_GITHUB_LOGIN = 4;
|
|
1988
|
+
*/
|
|
1989
|
+
GITHUB_LOGIN = 4
|
|
1990
|
+
}
|
|
1991
|
+
/**
|
|
1992
|
+
* Describes the enum gitd.v1.Connection.Kind.
|
|
1993
|
+
*/
|
|
1994
|
+
export declare const Connection_KindSchema: GenEnum<Connection_Kind>;
|
|
1995
|
+
/**
|
|
1996
|
+
* @generated from message gitd.v1.BeginGitHubAppRequest
|
|
1997
|
+
*/
|
|
1998
|
+
export type BeginGitHubAppRequest = Message<"gitd.v1.BeginGitHubAppRequest"> & {
|
|
1999
|
+
/**
|
|
2000
|
+
* The GitHub host: empty for github.com, or a GitHub Enterprise Server's.
|
|
2001
|
+
*
|
|
2002
|
+
* @generated from field: string host = 1;
|
|
2003
|
+
*/
|
|
2004
|
+
host: string;
|
|
2005
|
+
/**
|
|
2006
|
+
* The organisation that owns the App. Empty: the account of the person creating it.
|
|
2007
|
+
*
|
|
2008
|
+
* @generated from field: string organization = 2;
|
|
2009
|
+
*/
|
|
2010
|
+
organization: string;
|
|
2011
|
+
/**
|
|
2012
|
+
* The App's name on GitHub, e.g. `acme-agents`; its bot is `acme-agents[bot]`.
|
|
2013
|
+
*
|
|
2014
|
+
* @generated from field: string name = 3;
|
|
2015
|
+
*/
|
|
2016
|
+
name: string;
|
|
2017
|
+
/**
|
|
2018
|
+
* Where GitHub sends the person once the App is created: the platform's page, which
|
|
2019
|
+
* hands the code and state to CompleteGitHubApp.
|
|
2020
|
+
*
|
|
2021
|
+
* @generated from field: string redirect_url = 4;
|
|
2022
|
+
*/
|
|
2023
|
+
redirectUrl: string;
|
|
2024
|
+
};
|
|
2025
|
+
/**
|
|
2026
|
+
* Describes the message gitd.v1.BeginGitHubAppRequest.
|
|
2027
|
+
* Use `create(BeginGitHubAppRequestSchema)` to create a new message.
|
|
2028
|
+
*/
|
|
2029
|
+
export declare const BeginGitHubAppRequestSchema: GenMessage<BeginGitHubAppRequest>;
|
|
2030
|
+
/**
|
|
2031
|
+
* @generated from message gitd.v1.BeginGitHubAppResponse
|
|
2032
|
+
*/
|
|
2033
|
+
export type BeginGitHubAppResponse = Message<"gitd.v1.BeginGitHubAppResponse"> & {
|
|
2034
|
+
/**
|
|
2035
|
+
* Where the person's browser posts the manifest, as a form field named `manifest`.
|
|
2036
|
+
*
|
|
2037
|
+
* @generated from field: string form_action = 1;
|
|
2038
|
+
*/
|
|
2039
|
+
formAction: string;
|
|
2040
|
+
/**
|
|
2041
|
+
* The manifest, in JSON: the App's name, its permissions (contents and pull requests,
|
|
2042
|
+
* read and write; metadata, read), no webhook.
|
|
2043
|
+
*
|
|
2044
|
+
* @generated from field: string manifest = 2;
|
|
2045
|
+
*/
|
|
2046
|
+
manifest: string;
|
|
2047
|
+
/**
|
|
2048
|
+
* Ties GitHub's answer to this request; expires in an hour.
|
|
2049
|
+
*
|
|
2050
|
+
* @generated from field: string state = 3;
|
|
2051
|
+
*/
|
|
2052
|
+
state: string;
|
|
2053
|
+
};
|
|
2054
|
+
/**
|
|
2055
|
+
* Describes the message gitd.v1.BeginGitHubAppResponse.
|
|
2056
|
+
* Use `create(BeginGitHubAppResponseSchema)` to create a new message.
|
|
2057
|
+
*/
|
|
2058
|
+
export declare const BeginGitHubAppResponseSchema: GenMessage<BeginGitHubAppResponse>;
|
|
2059
|
+
/**
|
|
2060
|
+
* @generated from message gitd.v1.CompleteGitHubAppRequest
|
|
2061
|
+
*/
|
|
2062
|
+
export type CompleteGitHubAppRequest = Message<"gitd.v1.CompleteGitHubAppRequest"> & {
|
|
2063
|
+
/**
|
|
2064
|
+
* @generated from field: string code = 1;
|
|
2065
|
+
*/
|
|
2066
|
+
code: string;
|
|
2067
|
+
/**
|
|
2068
|
+
* @generated from field: string state = 2;
|
|
2069
|
+
*/
|
|
2070
|
+
state: string;
|
|
2071
|
+
};
|
|
2072
|
+
/**
|
|
2073
|
+
* Describes the message gitd.v1.CompleteGitHubAppRequest.
|
|
2074
|
+
* Use `create(CompleteGitHubAppRequestSchema)` to create a new message.
|
|
2075
|
+
*/
|
|
2076
|
+
export declare const CompleteGitHubAppRequestSchema: GenMessage<CompleteGitHubAppRequest>;
|
|
2077
|
+
/**
|
|
2078
|
+
* @generated from message gitd.v1.CompleteGitHubAppResponse
|
|
2079
|
+
*/
|
|
2080
|
+
export type CompleteGitHubAppResponse = Message<"gitd.v1.CompleteGitHubAppResponse"> & {
|
|
2081
|
+
/**
|
|
2082
|
+
* @generated from field: gitd.v1.Connection connection = 1;
|
|
967
2083
|
*/
|
|
968
|
-
|
|
2084
|
+
connection?: Connection | undefined;
|
|
2085
|
+
/**
|
|
2086
|
+
* Where the person installs the App on the repositories it may reach.
|
|
2087
|
+
*
|
|
2088
|
+
* @generated from field: string install_url = 2;
|
|
2089
|
+
*/
|
|
2090
|
+
installUrl: string;
|
|
2091
|
+
};
|
|
2092
|
+
/**
|
|
2093
|
+
* Describes the message gitd.v1.CompleteGitHubAppResponse.
|
|
2094
|
+
* Use `create(CompleteGitHubAppResponseSchema)` to create a new message.
|
|
2095
|
+
*/
|
|
2096
|
+
export declare const CompleteGitHubAppResponseSchema: GenMessage<CompleteGitHubAppResponse>;
|
|
2097
|
+
/**
|
|
2098
|
+
* @generated from message gitd.v1.StartGitHubLoginRequest
|
|
2099
|
+
*/
|
|
2100
|
+
export type StartGitHubLoginRequest = Message<"gitd.v1.StartGitHubLoginRequest"> & {
|
|
2101
|
+
/**
|
|
2102
|
+
* The GitHub host: empty for github.com.
|
|
2103
|
+
*
|
|
2104
|
+
* @generated from field: string host = 1;
|
|
2105
|
+
*/
|
|
2106
|
+
host: string;
|
|
2107
|
+
};
|
|
2108
|
+
/**
|
|
2109
|
+
* Describes the message gitd.v1.StartGitHubLoginRequest.
|
|
2110
|
+
* Use `create(StartGitHubLoginRequestSchema)` to create a new message.
|
|
2111
|
+
*/
|
|
2112
|
+
export declare const StartGitHubLoginRequestSchema: GenMessage<StartGitHubLoginRequest>;
|
|
2113
|
+
/**
|
|
2114
|
+
* @generated from message gitd.v1.StartGitHubLoginResponse
|
|
2115
|
+
*/
|
|
2116
|
+
export type StartGitHubLoginResponse = Message<"gitd.v1.StartGitHubLoginResponse"> & {
|
|
2117
|
+
/**
|
|
2118
|
+
* What the person enters at `verification_url`.
|
|
2119
|
+
*
|
|
2120
|
+
* @generated from field: string user_code = 1;
|
|
2121
|
+
*/
|
|
2122
|
+
userCode: string;
|
|
2123
|
+
/**
|
|
2124
|
+
* @generated from field: string verification_url = 2;
|
|
2125
|
+
*/
|
|
2126
|
+
verificationUrl: string;
|
|
2127
|
+
/**
|
|
2128
|
+
* Hands this sign-in to FinishGitHubLogin.
|
|
2129
|
+
*
|
|
2130
|
+
* @generated from field: string login_id = 3;
|
|
2131
|
+
*/
|
|
2132
|
+
loginId: string;
|
|
2133
|
+
/**
|
|
2134
|
+
* How long the code is good for.
|
|
2135
|
+
*
|
|
2136
|
+
* @generated from field: int32 expires_in_seconds = 4;
|
|
2137
|
+
*/
|
|
2138
|
+
expiresInSeconds: number;
|
|
2139
|
+
};
|
|
2140
|
+
/**
|
|
2141
|
+
* Describes the message gitd.v1.StartGitHubLoginResponse.
|
|
2142
|
+
* Use `create(StartGitHubLoginResponseSchema)` to create a new message.
|
|
2143
|
+
*/
|
|
2144
|
+
export declare const StartGitHubLoginResponseSchema: GenMessage<StartGitHubLoginResponse>;
|
|
2145
|
+
/**
|
|
2146
|
+
* @generated from message gitd.v1.FinishGitHubLoginRequest
|
|
2147
|
+
*/
|
|
2148
|
+
export type FinishGitHubLoginRequest = Message<"gitd.v1.FinishGitHubLoginRequest"> & {
|
|
2149
|
+
/**
|
|
2150
|
+
* @generated from field: string login_id = 1;
|
|
2151
|
+
*/
|
|
2152
|
+
loginId: string;
|
|
2153
|
+
};
|
|
2154
|
+
/**
|
|
2155
|
+
* Describes the message gitd.v1.FinishGitHubLoginRequest.
|
|
2156
|
+
* Use `create(FinishGitHubLoginRequestSchema)` to create a new message.
|
|
2157
|
+
*/
|
|
2158
|
+
export declare const FinishGitHubLoginRequestSchema: GenMessage<FinishGitHubLoginRequest>;
|
|
2159
|
+
/**
|
|
2160
|
+
* @generated from message gitd.v1.FinishGitHubLoginResponse
|
|
2161
|
+
*/
|
|
2162
|
+
export type FinishGitHubLoginResponse = Message<"gitd.v1.FinishGitHubLoginResponse"> & {
|
|
2163
|
+
/**
|
|
2164
|
+
* @generated from field: gitd.v1.Connection connection = 1;
|
|
2165
|
+
*/
|
|
2166
|
+
connection?: Connection | undefined;
|
|
2167
|
+
/**
|
|
2168
|
+
* Where the person installs gitd's App on the repositories it may reach, if not yet.
|
|
2169
|
+
*
|
|
2170
|
+
* @generated from field: string install_url = 2;
|
|
2171
|
+
*/
|
|
2172
|
+
installUrl: string;
|
|
2173
|
+
};
|
|
2174
|
+
/**
|
|
2175
|
+
* Describes the message gitd.v1.FinishGitHubLoginResponse.
|
|
2176
|
+
* Use `create(FinishGitHubLoginResponseSchema)` to create a new message.
|
|
2177
|
+
*/
|
|
2178
|
+
export declare const FinishGitHubLoginResponseSchema: GenMessage<FinishGitHubLoginResponse>;
|
|
2179
|
+
/**
|
|
2180
|
+
* @generated from message gitd.v1.AddGitHubAppRequest
|
|
2181
|
+
*/
|
|
2182
|
+
export type AddGitHubAppRequest = Message<"gitd.v1.AddGitHubAppRequest"> & {
|
|
2183
|
+
/**
|
|
2184
|
+
* The GitHub host: empty for github.com.
|
|
2185
|
+
*
|
|
2186
|
+
* @generated from field: string host = 1;
|
|
2187
|
+
*/
|
|
2188
|
+
host: string;
|
|
2189
|
+
/**
|
|
2190
|
+
* @generated from field: int64 app_id = 2;
|
|
2191
|
+
*/
|
|
2192
|
+
appId: bigint;
|
|
2193
|
+
/**
|
|
2194
|
+
* The App's private key, in PEM.
|
|
2195
|
+
*
|
|
2196
|
+
* @generated from field: string private_key = 3;
|
|
2197
|
+
*/
|
|
2198
|
+
privateKey: string;
|
|
2199
|
+
/**
|
|
2200
|
+
* The repositories it opens. Empty: every repository on the host its installations reach.
|
|
2201
|
+
*
|
|
2202
|
+
* @generated from field: string url_prefix = 4;
|
|
2203
|
+
*/
|
|
2204
|
+
urlPrefix: string;
|
|
2205
|
+
};
|
|
2206
|
+
/**
|
|
2207
|
+
* Describes the message gitd.v1.AddGitHubAppRequest.
|
|
2208
|
+
* Use `create(AddGitHubAppRequestSchema)` to create a new message.
|
|
2209
|
+
*/
|
|
2210
|
+
export declare const AddGitHubAppRequestSchema: GenMessage<AddGitHubAppRequest>;
|
|
2211
|
+
/**
|
|
2212
|
+
* @generated from message gitd.v1.AddGitHubAppResponse
|
|
2213
|
+
*/
|
|
2214
|
+
export type AddGitHubAppResponse = Message<"gitd.v1.AddGitHubAppResponse"> & {
|
|
2215
|
+
/**
|
|
2216
|
+
* @generated from field: gitd.v1.Connection connection = 1;
|
|
2217
|
+
*/
|
|
2218
|
+
connection?: Connection | undefined;
|
|
2219
|
+
};
|
|
2220
|
+
/**
|
|
2221
|
+
* Describes the message gitd.v1.AddGitHubAppResponse.
|
|
2222
|
+
* Use `create(AddGitHubAppResponseSchema)` to create a new message.
|
|
2223
|
+
*/
|
|
2224
|
+
export declare const AddGitHubAppResponseSchema: GenMessage<AddGitHubAppResponse>;
|
|
2225
|
+
/**
|
|
2226
|
+
* @generated from message gitd.v1.AddTokenRequest
|
|
2227
|
+
*/
|
|
2228
|
+
export type AddTokenRequest = Message<"gitd.v1.AddTokenRequest"> & {
|
|
2229
|
+
/**
|
|
2230
|
+
* Must name the host, e.g. `https://gitlab.example.com/acme`.
|
|
2231
|
+
*
|
|
2232
|
+
* @generated from field: string url_prefix = 1;
|
|
2233
|
+
*/
|
|
2234
|
+
urlPrefix: string;
|
|
2235
|
+
/**
|
|
2236
|
+
* @generated from field: string token = 2;
|
|
2237
|
+
*/
|
|
2238
|
+
token: string;
|
|
2239
|
+
/**
|
|
2240
|
+
* As `Credential.https_user`.
|
|
2241
|
+
*
|
|
2242
|
+
* @generated from field: string user = 3;
|
|
2243
|
+
*/
|
|
2244
|
+
user: string;
|
|
2245
|
+
};
|
|
2246
|
+
/**
|
|
2247
|
+
* Describes the message gitd.v1.AddTokenRequest.
|
|
2248
|
+
* Use `create(AddTokenRequestSchema)` to create a new message.
|
|
2249
|
+
*/
|
|
2250
|
+
export declare const AddTokenRequestSchema: GenMessage<AddTokenRequest>;
|
|
2251
|
+
/**
|
|
2252
|
+
* @generated from message gitd.v1.AddTokenResponse
|
|
2253
|
+
*/
|
|
2254
|
+
export type AddTokenResponse = Message<"gitd.v1.AddTokenResponse"> & {
|
|
2255
|
+
/**
|
|
2256
|
+
* @generated from field: gitd.v1.Connection connection = 1;
|
|
2257
|
+
*/
|
|
2258
|
+
connection?: Connection | undefined;
|
|
2259
|
+
};
|
|
2260
|
+
/**
|
|
2261
|
+
* Describes the message gitd.v1.AddTokenResponse.
|
|
2262
|
+
* Use `create(AddTokenResponseSchema)` to create a new message.
|
|
2263
|
+
*/
|
|
2264
|
+
export declare const AddTokenResponseSchema: GenMessage<AddTokenResponse>;
|
|
2265
|
+
/**
|
|
2266
|
+
* @generated from message gitd.v1.ListConnectionsRequest
|
|
2267
|
+
*/
|
|
2268
|
+
export type ListConnectionsRequest = Message<"gitd.v1.ListConnectionsRequest"> & {};
|
|
2269
|
+
/**
|
|
2270
|
+
* Describes the message gitd.v1.ListConnectionsRequest.
|
|
2271
|
+
* Use `create(ListConnectionsRequestSchema)` to create a new message.
|
|
2272
|
+
*/
|
|
2273
|
+
export declare const ListConnectionsRequestSchema: GenMessage<ListConnectionsRequest>;
|
|
2274
|
+
/**
|
|
2275
|
+
* @generated from message gitd.v1.ListConnectionsResponse
|
|
2276
|
+
*/
|
|
2277
|
+
export type ListConnectionsResponse = Message<"gitd.v1.ListConnectionsResponse"> & {
|
|
2278
|
+
/**
|
|
2279
|
+
* @generated from field: repeated gitd.v1.Connection connections = 1;
|
|
2280
|
+
*/
|
|
2281
|
+
connections: Connection[];
|
|
2282
|
+
};
|
|
2283
|
+
/**
|
|
2284
|
+
* Describes the message gitd.v1.ListConnectionsResponse.
|
|
2285
|
+
* Use `create(ListConnectionsResponseSchema)` to create a new message.
|
|
2286
|
+
*/
|
|
2287
|
+
export declare const ListConnectionsResponseSchema: GenMessage<ListConnectionsResponse>;
|
|
2288
|
+
/**
|
|
2289
|
+
* @generated from message gitd.v1.RemoveConnectionRequest
|
|
2290
|
+
*/
|
|
2291
|
+
export type RemoveConnectionRequest = Message<"gitd.v1.RemoveConnectionRequest"> & {
|
|
2292
|
+
/**
|
|
2293
|
+
* @generated from field: string id = 1;
|
|
2294
|
+
*/
|
|
2295
|
+
id: string;
|
|
2296
|
+
};
|
|
2297
|
+
/**
|
|
2298
|
+
* Describes the message gitd.v1.RemoveConnectionRequest.
|
|
2299
|
+
* Use `create(RemoveConnectionRequestSchema)` to create a new message.
|
|
2300
|
+
*/
|
|
2301
|
+
export declare const RemoveConnectionRequestSchema: GenMessage<RemoveConnectionRequest>;
|
|
2302
|
+
/**
|
|
2303
|
+
* @generated from message gitd.v1.RemoveConnectionResponse
|
|
2304
|
+
*/
|
|
2305
|
+
export type RemoveConnectionResponse = Message<"gitd.v1.RemoveConnectionResponse"> & {};
|
|
2306
|
+
/**
|
|
2307
|
+
* Describes the message gitd.v1.RemoveConnectionResponse.
|
|
2308
|
+
* Use `create(RemoveConnectionResponseSchema)` to create a new message.
|
|
2309
|
+
*/
|
|
2310
|
+
export declare const RemoveConnectionResponseSchema: GenMessage<RemoveConnectionResponse>;
|
|
2311
|
+
/**
|
|
2312
|
+
* The rules publishing follows for the repositories under a prefix.
|
|
2313
|
+
*
|
|
2314
|
+
* Every setting whose prefix opens a repository applies to it: their paths add up and the
|
|
2315
|
+
* smallest file limit wins, so a narrower setting never loosens a broader one. A branch
|
|
2316
|
+
* prefix and pull request choices are the most specific setting's, and a narrower branch
|
|
2317
|
+
* prefix must start with every broader one.
|
|
2318
|
+
*
|
|
2319
|
+
* @generated from message gitd.v1.PublishSettings
|
|
2320
|
+
*/
|
|
2321
|
+
export type PublishSettings = Message<"gitd.v1.PublishSettings"> & {
|
|
2322
|
+
/**
|
|
2323
|
+
* The repositories these apply to; empty for every repository.
|
|
2324
|
+
*
|
|
2325
|
+
* @generated from field: string url_prefix = 1;
|
|
2326
|
+
*/
|
|
2327
|
+
urlPrefix: string;
|
|
2328
|
+
/**
|
|
2329
|
+
* The name of a preset whose rules these take, and which the fields below add to.
|
|
2330
|
+
*
|
|
2331
|
+
* @generated from field: string preset = 2;
|
|
2332
|
+
*/
|
|
2333
|
+
preset: string;
|
|
2334
|
+
/**
|
|
2335
|
+
* Paths a publish may not change, as git's glob pathspecs, e.g. `.github/workflows/**`.
|
|
2336
|
+
*
|
|
2337
|
+
* @generated from field: repeated string protected_paths = 3;
|
|
2338
|
+
*/
|
|
2339
|
+
protectedPaths: string[];
|
|
2340
|
+
/**
|
|
2341
|
+
* Paths a publish may change but not delete or rename away, e.g. `tests/**`.
|
|
2342
|
+
*
|
|
2343
|
+
* @generated from field: repeated string kept_paths = 4;
|
|
2344
|
+
*/
|
|
2345
|
+
keptPaths: string[];
|
|
2346
|
+
/**
|
|
2347
|
+
* At most this many files changed; unset for the preset's, or no limit.
|
|
2348
|
+
*
|
|
2349
|
+
* @generated from field: optional int32 max_changed_files = 5;
|
|
2350
|
+
*/
|
|
2351
|
+
maxChangedFiles?: number | undefined;
|
|
2352
|
+
/**
|
|
2353
|
+
* What every published branch must start with, e.g. `agents/`.
|
|
2354
|
+
*
|
|
2355
|
+
* @generated from field: string branch_prefix = 6;
|
|
2356
|
+
*/
|
|
2357
|
+
branchPrefix: string;
|
|
2358
|
+
/**
|
|
2359
|
+
* @generated from field: gitd.v1.PullRequestSettings pull_requests = 7;
|
|
2360
|
+
*/
|
|
2361
|
+
pullRequests?: PullRequestSettings | undefined;
|
|
2362
|
+
/**
|
|
2363
|
+
* From the configuration file: shown, never changed through the API.
|
|
2364
|
+
*
|
|
2365
|
+
* @generated from field: bool from_file = 8;
|
|
2366
|
+
*/
|
|
2367
|
+
fromFile: boolean;
|
|
2368
|
+
/**
|
|
2369
|
+
* Paths these settings' own rules — their preset's and their own — leave free, as glob
|
|
2370
|
+
* pathspecs, e.g. `.gitmodules` under `recommended`. They never free what another
|
|
2371
|
+
* setting protects or keeps.
|
|
2372
|
+
*
|
|
2373
|
+
* @generated from field: repeated string allowed_paths = 9;
|
|
2374
|
+
*/
|
|
2375
|
+
allowedPaths: string[];
|
|
2376
|
+
};
|
|
2377
|
+
/**
|
|
2378
|
+
* Describes the message gitd.v1.PublishSettings.
|
|
2379
|
+
* Use `create(PublishSettingsSchema)` to create a new message.
|
|
2380
|
+
*/
|
|
2381
|
+
export declare const PublishSettingsSchema: GenMessage<PublishSettings>;
|
|
2382
|
+
/**
|
|
2383
|
+
* A named set of rules settings take. gitd has its own `recommended`: it protects
|
|
2384
|
+
* `.github/workflows/**`, `.gitlab-ci.yml`, `CODEOWNERS` and `.gitmodules`, keeps tests
|
|
2385
|
+
* (`**\/*_test.*`, `**\/*.test.*`, `**\/test/**`, `**\/tests/**`, `**\/__tests__/**`) and
|
|
2386
|
+
* allows at most 200 files changed; a preset of that name replaces it.
|
|
2387
|
+
*
|
|
2388
|
+
* @generated from message gitd.v1.Preset
|
|
2389
|
+
*/
|
|
2390
|
+
export type Preset = Message<"gitd.v1.Preset"> & {
|
|
2391
|
+
/**
|
|
2392
|
+
* Lowercase letters, digits, `-`, `_` and `.`, up to 64.
|
|
2393
|
+
*
|
|
2394
|
+
* @generated from field: string name = 1;
|
|
2395
|
+
*/
|
|
2396
|
+
name: string;
|
|
2397
|
+
/**
|
|
2398
|
+
* @generated from field: repeated string protected_paths = 2;
|
|
2399
|
+
*/
|
|
2400
|
+
protectedPaths: string[];
|
|
2401
|
+
/**
|
|
2402
|
+
* @generated from field: repeated string kept_paths = 3;
|
|
2403
|
+
*/
|
|
2404
|
+
keptPaths: string[];
|
|
2405
|
+
/**
|
|
2406
|
+
* @generated from field: optional int32 max_changed_files = 4;
|
|
2407
|
+
*/
|
|
2408
|
+
maxChangedFiles?: number | undefined;
|
|
2409
|
+
/**
|
|
2410
|
+
* @generated from field: gitd.v1.Preset.Origin origin = 5;
|
|
2411
|
+
*/
|
|
2412
|
+
origin: Preset_Origin;
|
|
2413
|
+
};
|
|
2414
|
+
/**
|
|
2415
|
+
* Describes the message gitd.v1.Preset.
|
|
2416
|
+
* Use `create(PresetSchema)` to create a new message.
|
|
2417
|
+
*/
|
|
2418
|
+
export declare const PresetSchema: GenMessage<Preset>;
|
|
2419
|
+
/**
|
|
2420
|
+
* Where it comes from: gitd's own, the configuration file, or the API.
|
|
2421
|
+
*
|
|
2422
|
+
* @generated from enum gitd.v1.Preset.Origin
|
|
2423
|
+
*/
|
|
2424
|
+
export declare enum Preset_Origin {
|
|
2425
|
+
/**
|
|
2426
|
+
* @generated from enum value: ORIGIN_UNSPECIFIED = 0;
|
|
2427
|
+
*/
|
|
2428
|
+
UNSPECIFIED = 0,
|
|
2429
|
+
/**
|
|
2430
|
+
* @generated from enum value: ORIGIN_BUILT_IN = 1;
|
|
2431
|
+
*/
|
|
2432
|
+
BUILT_IN = 1,
|
|
2433
|
+
/**
|
|
2434
|
+
* @generated from enum value: ORIGIN_FILE = 2;
|
|
2435
|
+
*/
|
|
2436
|
+
FILE = 2,
|
|
2437
|
+
/**
|
|
2438
|
+
* @generated from enum value: ORIGIN_API = 3;
|
|
2439
|
+
*/
|
|
2440
|
+
API = 3
|
|
2441
|
+
}
|
|
2442
|
+
/**
|
|
2443
|
+
* Describes the enum gitd.v1.Preset.Origin.
|
|
2444
|
+
*/
|
|
2445
|
+
export declare const Preset_OriginSchema: GenEnum<Preset_Origin>;
|
|
2446
|
+
/**
|
|
2447
|
+
* How publishes open pull requests.
|
|
2448
|
+
*
|
|
2449
|
+
* @generated from message gitd.v1.PullRequestSettings
|
|
2450
|
+
*/
|
|
2451
|
+
export type PullRequestSettings = Message<"gitd.v1.PullRequestSettings"> & {
|
|
2452
|
+
/**
|
|
2453
|
+
* @generated from field: gitd.v1.PullRequestSettings.Open open = 1;
|
|
2454
|
+
*/
|
|
2455
|
+
open: PullRequestSettings_Open;
|
|
2456
|
+
/**
|
|
2457
|
+
* @generated from field: bool draft = 2;
|
|
2458
|
+
*/
|
|
2459
|
+
draft: boolean;
|
|
2460
|
+
/**
|
|
2461
|
+
* @generated from field: repeated string labels = 3;
|
|
2462
|
+
*/
|
|
2463
|
+
labels: string[];
|
|
2464
|
+
/**
|
|
2465
|
+
* Ask the person the publish names in `requested_by` to review it.
|
|
2466
|
+
*
|
|
2467
|
+
* @generated from field: bool request_review_from_requester = 4;
|
|
2468
|
+
*/
|
|
2469
|
+
requestReviewFromRequester: boolean;
|
|
2470
|
+
};
|
|
2471
|
+
/**
|
|
2472
|
+
* Describes the message gitd.v1.PullRequestSettings.
|
|
2473
|
+
* Use `create(PullRequestSettingsSchema)` to create a new message.
|
|
2474
|
+
*/
|
|
2475
|
+
export declare const PullRequestSettingsSchema: GenMessage<PullRequestSettings>;
|
|
2476
|
+
/**
|
|
2477
|
+
* @generated from enum gitd.v1.PullRequestSettings.Open
|
|
2478
|
+
*/
|
|
2479
|
+
export declare enum PullRequestSettings_Open {
|
|
2480
|
+
/**
|
|
2481
|
+
* @generated from enum value: OPEN_UNSPECIFIED = 0;
|
|
2482
|
+
*/
|
|
2483
|
+
UNSPECIFIED = 0,
|
|
2484
|
+
/**
|
|
2485
|
+
* Only when the publish asks (`PullRequestOptions.open`).
|
|
2486
|
+
*
|
|
2487
|
+
* @generated from enum value: OPEN_WHEN_ASKED = 1;
|
|
2488
|
+
*/
|
|
2489
|
+
WHEN_ASKED = 1,
|
|
2490
|
+
/**
|
|
2491
|
+
* @generated from enum value: OPEN_ALWAYS = 2;
|
|
2492
|
+
*/
|
|
2493
|
+
ALWAYS = 2
|
|
2494
|
+
}
|
|
2495
|
+
/**
|
|
2496
|
+
* Describes the enum gitd.v1.PullRequestSettings.Open.
|
|
2497
|
+
*/
|
|
2498
|
+
export declare const PullRequestSettings_OpenSchema: GenEnum<PullRequestSettings_Open>;
|
|
2499
|
+
/**
|
|
2500
|
+
* @generated from message gitd.v1.GetSettingsRequest
|
|
2501
|
+
*/
|
|
2502
|
+
export type GetSettingsRequest = Message<"gitd.v1.GetSettingsRequest"> & {};
|
|
2503
|
+
/**
|
|
2504
|
+
* Describes the message gitd.v1.GetSettingsRequest.
|
|
2505
|
+
* Use `create(GetSettingsRequestSchema)` to create a new message.
|
|
2506
|
+
*/
|
|
2507
|
+
export declare const GetSettingsRequestSchema: GenMessage<GetSettingsRequest>;
|
|
2508
|
+
/**
|
|
2509
|
+
* @generated from message gitd.v1.GetSettingsResponse
|
|
2510
|
+
*/
|
|
2511
|
+
export type GetSettingsResponse = Message<"gitd.v1.GetSettingsResponse"> & {
|
|
2512
|
+
/**
|
|
2513
|
+
* @generated from field: repeated gitd.v1.PublishSettings settings = 1;
|
|
2514
|
+
*/
|
|
2515
|
+
settings: PublishSettings[];
|
|
2516
|
+
};
|
|
2517
|
+
/**
|
|
2518
|
+
* Describes the message gitd.v1.GetSettingsResponse.
|
|
2519
|
+
* Use `create(GetSettingsResponseSchema)` to create a new message.
|
|
2520
|
+
*/
|
|
2521
|
+
export declare const GetSettingsResponseSchema: GenMessage<GetSettingsResponse>;
|
|
2522
|
+
/**
|
|
2523
|
+
* @generated from message gitd.v1.SetSettingsRequest
|
|
2524
|
+
*/
|
|
2525
|
+
export type SetSettingsRequest = Message<"gitd.v1.SetSettingsRequest"> & {
|
|
2526
|
+
/**
|
|
2527
|
+
* @generated from field: gitd.v1.PublishSettings settings = 1;
|
|
2528
|
+
*/
|
|
2529
|
+
settings?: PublishSettings | undefined;
|
|
2530
|
+
};
|
|
2531
|
+
/**
|
|
2532
|
+
* Describes the message gitd.v1.SetSettingsRequest.
|
|
2533
|
+
* Use `create(SetSettingsRequestSchema)` to create a new message.
|
|
2534
|
+
*/
|
|
2535
|
+
export declare const SetSettingsRequestSchema: GenMessage<SetSettingsRequest>;
|
|
2536
|
+
/**
|
|
2537
|
+
* @generated from message gitd.v1.SetSettingsResponse
|
|
2538
|
+
*/
|
|
2539
|
+
export type SetSettingsResponse = Message<"gitd.v1.SetSettingsResponse"> & {
|
|
2540
|
+
/**
|
|
2541
|
+
* @generated from field: gitd.v1.PublishSettings settings = 1;
|
|
2542
|
+
*/
|
|
2543
|
+
settings?: PublishSettings | undefined;
|
|
2544
|
+
};
|
|
2545
|
+
/**
|
|
2546
|
+
* Describes the message gitd.v1.SetSettingsResponse.
|
|
2547
|
+
* Use `create(SetSettingsResponseSchema)` to create a new message.
|
|
2548
|
+
*/
|
|
2549
|
+
export declare const SetSettingsResponseSchema: GenMessage<SetSettingsResponse>;
|
|
2550
|
+
/**
|
|
2551
|
+
* @generated from message gitd.v1.RemoveSettingsRequest
|
|
2552
|
+
*/
|
|
2553
|
+
export type RemoveSettingsRequest = Message<"gitd.v1.RemoveSettingsRequest"> & {
|
|
2554
|
+
/**
|
|
2555
|
+
* @generated from field: string url_prefix = 1;
|
|
2556
|
+
*/
|
|
2557
|
+
urlPrefix: string;
|
|
2558
|
+
};
|
|
2559
|
+
/**
|
|
2560
|
+
* Describes the message gitd.v1.RemoveSettingsRequest.
|
|
2561
|
+
* Use `create(RemoveSettingsRequestSchema)` to create a new message.
|
|
2562
|
+
*/
|
|
2563
|
+
export declare const RemoveSettingsRequestSchema: GenMessage<RemoveSettingsRequest>;
|
|
2564
|
+
/**
|
|
2565
|
+
* @generated from message gitd.v1.RemoveSettingsResponse
|
|
2566
|
+
*/
|
|
2567
|
+
export type RemoveSettingsResponse = Message<"gitd.v1.RemoveSettingsResponse"> & {};
|
|
2568
|
+
/**
|
|
2569
|
+
* Describes the message gitd.v1.RemoveSettingsResponse.
|
|
2570
|
+
* Use `create(RemoveSettingsResponseSchema)` to create a new message.
|
|
2571
|
+
*/
|
|
2572
|
+
export declare const RemoveSettingsResponseSchema: GenMessage<RemoveSettingsResponse>;
|
|
2573
|
+
/**
|
|
2574
|
+
* @generated from message gitd.v1.ListPresetsRequest
|
|
2575
|
+
*/
|
|
2576
|
+
export type ListPresetsRequest = Message<"gitd.v1.ListPresetsRequest"> & {};
|
|
2577
|
+
/**
|
|
2578
|
+
* Describes the message gitd.v1.ListPresetsRequest.
|
|
2579
|
+
* Use `create(ListPresetsRequestSchema)` to create a new message.
|
|
2580
|
+
*/
|
|
2581
|
+
export declare const ListPresetsRequestSchema: GenMessage<ListPresetsRequest>;
|
|
2582
|
+
/**
|
|
2583
|
+
* @generated from message gitd.v1.ListPresetsResponse
|
|
2584
|
+
*/
|
|
2585
|
+
export type ListPresetsResponse = Message<"gitd.v1.ListPresetsResponse"> & {
|
|
969
2586
|
/**
|
|
970
|
-
*
|
|
971
|
-
*
|
|
972
|
-
* @generated from field: gitd.v1.Strategy strategy = 5;
|
|
2587
|
+
* @generated from field: repeated gitd.v1.Preset presets = 1;
|
|
973
2588
|
*/
|
|
974
|
-
|
|
2589
|
+
presets: Preset[];
|
|
2590
|
+
};
|
|
2591
|
+
/**
|
|
2592
|
+
* Describes the message gitd.v1.ListPresetsResponse.
|
|
2593
|
+
* Use `create(ListPresetsResponseSchema)` to create a new message.
|
|
2594
|
+
*/
|
|
2595
|
+
export declare const ListPresetsResponseSchema: GenMessage<ListPresetsResponse>;
|
|
2596
|
+
/**
|
|
2597
|
+
* @generated from message gitd.v1.SetPresetRequest
|
|
2598
|
+
*/
|
|
2599
|
+
export type SetPresetRequest = Message<"gitd.v1.SetPresetRequest"> & {
|
|
975
2600
|
/**
|
|
976
|
-
* @generated from field:
|
|
2601
|
+
* @generated from field: gitd.v1.Preset preset = 1;
|
|
977
2602
|
*/
|
|
978
|
-
|
|
2603
|
+
preset?: Preset | undefined;
|
|
2604
|
+
};
|
|
2605
|
+
/**
|
|
2606
|
+
* Describes the message gitd.v1.SetPresetRequest.
|
|
2607
|
+
* Use `create(SetPresetRequestSchema)` to create a new message.
|
|
2608
|
+
*/
|
|
2609
|
+
export declare const SetPresetRequestSchema: GenMessage<SetPresetRequest>;
|
|
2610
|
+
/**
|
|
2611
|
+
* @generated from message gitd.v1.SetPresetResponse
|
|
2612
|
+
*/
|
|
2613
|
+
export type SetPresetResponse = Message<"gitd.v1.SetPresetResponse"> & {
|
|
979
2614
|
/**
|
|
980
|
-
*
|
|
981
|
-
*
|
|
982
|
-
* @generated from field: int32 templates = 7;
|
|
2615
|
+
* @generated from field: gitd.v1.Preset preset = 1;
|
|
983
2616
|
*/
|
|
984
|
-
|
|
2617
|
+
preset?: Preset | undefined;
|
|
2618
|
+
};
|
|
2619
|
+
/**
|
|
2620
|
+
* Describes the message gitd.v1.SetPresetResponse.
|
|
2621
|
+
* Use `create(SetPresetResponseSchema)` to create a new message.
|
|
2622
|
+
*/
|
|
2623
|
+
export declare const SetPresetResponseSchema: GenMessage<SetPresetResponse>;
|
|
2624
|
+
/**
|
|
2625
|
+
* @generated from message gitd.v1.RemovePresetRequest
|
|
2626
|
+
*/
|
|
2627
|
+
export type RemovePresetRequest = Message<"gitd.v1.RemovePresetRequest"> & {
|
|
985
2628
|
/**
|
|
986
|
-
* @generated from field:
|
|
2629
|
+
* @generated from field: string name = 1;
|
|
987
2630
|
*/
|
|
988
|
-
|
|
2631
|
+
name: string;
|
|
989
2632
|
};
|
|
990
2633
|
/**
|
|
991
|
-
* Describes the message gitd.v1.
|
|
992
|
-
* Use `create(
|
|
2634
|
+
* Describes the message gitd.v1.RemovePresetRequest.
|
|
2635
|
+
* Use `create(RemovePresetRequestSchema)` to create a new message.
|
|
993
2636
|
*/
|
|
994
|
-
export declare const
|
|
2637
|
+
export declare const RemovePresetRequestSchema: GenMessage<RemovePresetRequest>;
|
|
995
2638
|
/**
|
|
996
|
-
* @generated from message gitd.v1.
|
|
2639
|
+
* @generated from message gitd.v1.RemovePresetResponse
|
|
997
2640
|
*/
|
|
998
|
-
export type
|
|
2641
|
+
export type RemovePresetResponse = Message<"gitd.v1.RemovePresetResponse"> & {};
|
|
2642
|
+
/**
|
|
2643
|
+
* Describes the message gitd.v1.RemovePresetResponse.
|
|
2644
|
+
* Use `create(RemovePresetResponseSchema)` to create a new message.
|
|
2645
|
+
*/
|
|
2646
|
+
export declare const RemovePresetResponseSchema: GenMessage<RemovePresetResponse>;
|
|
2647
|
+
/**
|
|
2648
|
+
* @generated from message gitd.v1.IssueTokenRequest
|
|
2649
|
+
*/
|
|
2650
|
+
export type IssueTokenRequest = Message<"gitd.v1.IssueTokenRequest"> & {
|
|
999
2651
|
/**
|
|
1000
|
-
*
|
|
2652
|
+
* @generated from field: string url = 1;
|
|
2653
|
+
*/
|
|
2654
|
+
url: string;
|
|
2655
|
+
/**
|
|
2656
|
+
* The branch the sandbox starts from; empty for the repository's default branch.
|
|
1001
2657
|
*
|
|
1002
|
-
* @generated from field:
|
|
2658
|
+
* @generated from field: string branch = 2;
|
|
1003
2659
|
*/
|
|
1004
|
-
|
|
2660
|
+
branch: string;
|
|
1005
2661
|
/**
|
|
1006
|
-
*
|
|
2662
|
+
* How long the token lives: an hour when zero, a day at most.
|
|
1007
2663
|
*
|
|
1008
|
-
* @generated from field:
|
|
2664
|
+
* @generated from field: int64 lifetime_seconds = 3;
|
|
1009
2665
|
*/
|
|
1010
|
-
|
|
2666
|
+
lifetimeSeconds: bigint;
|
|
1011
2667
|
/**
|
|
1012
|
-
*
|
|
2668
|
+
* A token that clones and fetches only.
|
|
1013
2669
|
*
|
|
1014
|
-
* @generated from field:
|
|
2670
|
+
* @generated from field: bool read_only = 4;
|
|
1015
2671
|
*/
|
|
1016
|
-
|
|
2672
|
+
readOnly: boolean;
|
|
2673
|
+
/**
|
|
2674
|
+
* A sandbox repository the token writes to, from an earlier token; empty makes a new one.
|
|
2675
|
+
*
|
|
2676
|
+
* @generated from field: string sandbox = 5;
|
|
2677
|
+
*/
|
|
2678
|
+
sandbox: string;
|
|
1017
2679
|
};
|
|
1018
2680
|
/**
|
|
1019
|
-
* Describes the message gitd.v1.
|
|
1020
|
-
* Use `create(
|
|
2681
|
+
* Describes the message gitd.v1.IssueTokenRequest.
|
|
2682
|
+
* Use `create(IssueTokenRequestSchema)` to create a new message.
|
|
1021
2683
|
*/
|
|
1022
|
-
export declare const
|
|
2684
|
+
export declare const IssueTokenRequestSchema: GenMessage<IssueTokenRequest>;
|
|
1023
2685
|
/**
|
|
1024
|
-
* @generated from message gitd.v1.
|
|
2686
|
+
* @generated from message gitd.v1.IssueTokenResponse
|
|
1025
2687
|
*/
|
|
1026
|
-
export type
|
|
2688
|
+
export type IssueTokenResponse = Message<"gitd.v1.IssueTokenResponse"> & {
|
|
1027
2689
|
/**
|
|
1028
|
-
*
|
|
2690
|
+
* The token, shown this once: gitd keeps only its hash.
|
|
2691
|
+
*
|
|
2692
|
+
* @generated from field: string token = 1;
|
|
1029
2693
|
*/
|
|
1030
|
-
|
|
2694
|
+
token: string;
|
|
2695
|
+
/**
|
|
2696
|
+
* @generated from field: gitd.v1.TokenInfo info = 2;
|
|
2697
|
+
*/
|
|
2698
|
+
info?: TokenInfo | undefined;
|
|
2699
|
+
/**
|
|
2700
|
+
* Where the sandbox clones from, e.g. `https://gitd.internal:9420/git/github.com/acme/web.git`,
|
|
2701
|
+
* with the token as the password: `git clone https://x:<token>@…`.
|
|
2702
|
+
*
|
|
2703
|
+
* @generated from field: string clone_url = 3;
|
|
2704
|
+
*/
|
|
2705
|
+
cloneUrl: string;
|
|
1031
2706
|
};
|
|
1032
2707
|
/**
|
|
1033
|
-
* Describes the message gitd.v1.
|
|
1034
|
-
* Use `create(
|
|
2708
|
+
* Describes the message gitd.v1.IssueTokenResponse.
|
|
2709
|
+
* Use `create(IssueTokenResponseSchema)` to create a new message.
|
|
1035
2710
|
*/
|
|
1036
|
-
export declare const
|
|
2711
|
+
export declare const IssueTokenResponseSchema: GenMessage<IssueTokenResponse>;
|
|
1037
2712
|
/**
|
|
1038
|
-
*
|
|
1039
|
-
* in this message's JSON form.
|
|
2713
|
+
* A token as gitd shows it, never its secret.
|
|
1040
2714
|
*
|
|
1041
|
-
* @generated from message gitd.v1.
|
|
2715
|
+
* @generated from message gitd.v1.TokenInfo
|
|
1042
2716
|
*/
|
|
1043
|
-
export type
|
|
2717
|
+
export type TokenInfo = Message<"gitd.v1.TokenInfo"> & {
|
|
1044
2718
|
/**
|
|
1045
|
-
* @generated from field:
|
|
2719
|
+
* @generated from field: string id = 1;
|
|
1046
2720
|
*/
|
|
1047
|
-
|
|
2721
|
+
id: string;
|
|
1048
2722
|
/**
|
|
1049
|
-
*
|
|
1050
|
-
*
|
|
1051
|
-
* @generated from field: string workspace = 2;
|
|
2723
|
+
* @generated from field: string url = 2;
|
|
1052
2724
|
*/
|
|
1053
|
-
|
|
2725
|
+
url: string;
|
|
1054
2726
|
/**
|
|
1055
|
-
*
|
|
1056
|
-
*
|
|
1057
|
-
* @generated from field: string url = 3;
|
|
2727
|
+
* @generated from field: string sandbox = 3;
|
|
1058
2728
|
*/
|
|
1059
|
-
|
|
2729
|
+
sandbox: string;
|
|
1060
2730
|
/**
|
|
1061
|
-
* @generated from field:
|
|
2731
|
+
* @generated from field: bool writable = 4;
|
|
1062
2732
|
*/
|
|
1063
|
-
|
|
2733
|
+
writable: boolean;
|
|
1064
2734
|
/**
|
|
1065
|
-
*
|
|
1066
|
-
*
|
|
1067
|
-
* @generated from field: gitd.v1.PublishedRepository repository = 5;
|
|
2735
|
+
* @generated from field: google.protobuf.Timestamp issued_at = 5;
|
|
1068
2736
|
*/
|
|
1069
|
-
|
|
2737
|
+
issuedAt?: Timestamp | undefined;
|
|
1070
2738
|
/**
|
|
1071
|
-
* @generated from field:
|
|
2739
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 6;
|
|
1072
2740
|
*/
|
|
1073
|
-
|
|
2741
|
+
expiresAt?: Timestamp | undefined;
|
|
2742
|
+
};
|
|
2743
|
+
/**
|
|
2744
|
+
* Describes the message gitd.v1.TokenInfo.
|
|
2745
|
+
* Use `create(TokenInfoSchema)` to create a new message.
|
|
2746
|
+
*/
|
|
2747
|
+
export declare const TokenInfoSchema: GenMessage<TokenInfo>;
|
|
2748
|
+
/**
|
|
2749
|
+
* @generated from message gitd.v1.RevokeTokenRequest
|
|
2750
|
+
*/
|
|
2751
|
+
export type RevokeTokenRequest = Message<"gitd.v1.RevokeTokenRequest"> & {
|
|
1074
2752
|
/**
|
|
1075
|
-
*
|
|
2753
|
+
* @generated from field: string id = 1;
|
|
2754
|
+
*/
|
|
2755
|
+
id: string;
|
|
2756
|
+
/**
|
|
2757
|
+
* Remove its sandbox repository too, with whatever was pushed there and not published.
|
|
1076
2758
|
*
|
|
1077
|
-
* @generated from field:
|
|
2759
|
+
* @generated from field: bool remove_sandbox = 2;
|
|
1078
2760
|
*/
|
|
1079
|
-
|
|
2761
|
+
removeSandbox: boolean;
|
|
1080
2762
|
};
|
|
1081
2763
|
/**
|
|
1082
|
-
* Describes the message gitd.v1.
|
|
1083
|
-
* Use `create(
|
|
2764
|
+
* Describes the message gitd.v1.RevokeTokenRequest.
|
|
2765
|
+
* Use `create(RevokeTokenRequestSchema)` to create a new message.
|
|
1084
2766
|
*/
|
|
1085
|
-
export declare const
|
|
2767
|
+
export declare const RevokeTokenRequestSchema: GenMessage<RevokeTokenRequest>;
|
|
2768
|
+
/**
|
|
2769
|
+
* @generated from message gitd.v1.RevokeTokenResponse
|
|
2770
|
+
*/
|
|
2771
|
+
export type RevokeTokenResponse = Message<"gitd.v1.RevokeTokenResponse"> & {};
|
|
2772
|
+
/**
|
|
2773
|
+
* Describes the message gitd.v1.RevokeTokenResponse.
|
|
2774
|
+
* Use `create(RevokeTokenResponseSchema)` to create a new message.
|
|
2775
|
+
*/
|
|
2776
|
+
export declare const RevokeTokenResponseSchema: GenMessage<RevokeTokenResponse>;
|
|
2777
|
+
/**
|
|
2778
|
+
* @generated from message gitd.v1.ListTokensRequest
|
|
2779
|
+
*/
|
|
2780
|
+
export type ListTokensRequest = Message<"gitd.v1.ListTokensRequest"> & {};
|
|
2781
|
+
/**
|
|
2782
|
+
* Describes the message gitd.v1.ListTokensRequest.
|
|
2783
|
+
* Use `create(ListTokensRequestSchema)` to create a new message.
|
|
2784
|
+
*/
|
|
2785
|
+
export declare const ListTokensRequestSchema: GenMessage<ListTokensRequest>;
|
|
2786
|
+
/**
|
|
2787
|
+
* @generated from message gitd.v1.ListTokensResponse
|
|
2788
|
+
*/
|
|
2789
|
+
export type ListTokensResponse = Message<"gitd.v1.ListTokensResponse"> & {
|
|
2790
|
+
/**
|
|
2791
|
+
* @generated from field: repeated gitd.v1.TokenInfo tokens = 1;
|
|
2792
|
+
*/
|
|
2793
|
+
tokens: TokenInfo[];
|
|
2794
|
+
};
|
|
2795
|
+
/**
|
|
2796
|
+
* Describes the message gitd.v1.ListTokensResponse.
|
|
2797
|
+
* Use `create(ListTokensResponseSchema)` to create a new message.
|
|
2798
|
+
*/
|
|
2799
|
+
export declare const ListTokensResponseSchema: GenMessage<ListTokensResponse>;
|
|
1086
2800
|
/**
|
|
1087
2801
|
* How a workspace was made.
|
|
1088
2802
|
*
|
|
@@ -1204,6 +2918,85 @@ export declare const WorkspaceService: GenService<{
|
|
|
1204
2918
|
input: typeof PublishRequestSchema;
|
|
1205
2919
|
output: typeof PublishResponseSchema;
|
|
1206
2920
|
};
|
|
2921
|
+
/**
|
|
2922
|
+
* What was changed in a workspace since gitd last put it on a commit — committed or not:
|
|
2923
|
+
* each file added, modified or deleted, with its lines. On an overlay workspace it is read
|
|
2924
|
+
* from the agent's own layer, and no git runs in the workspace.
|
|
2925
|
+
*
|
|
2926
|
+
* @generated from rpc gitd.v1.WorkspaceService.Changes
|
|
2927
|
+
*/
|
|
2928
|
+
changes: {
|
|
2929
|
+
methodKind: "unary";
|
|
2930
|
+
input: typeof ChangesRequestSchema;
|
|
2931
|
+
output: typeof ChangesResponseSchema;
|
|
2932
|
+
};
|
|
2933
|
+
/**
|
|
2934
|
+
* The unified diff of a workspace's changes, of some files or all, cut short at a size.
|
|
2935
|
+
*
|
|
2936
|
+
* @generated from rpc gitd.v1.WorkspaceService.Diff
|
|
2937
|
+
*/
|
|
2938
|
+
diff: {
|
|
2939
|
+
methodKind: "unary";
|
|
2940
|
+
input: typeof DiffRequestSchema;
|
|
2941
|
+
output: typeof DiffResponseSchema;
|
|
2942
|
+
};
|
|
2943
|
+
/**
|
|
2944
|
+
* How two works differ — two workspaces, two published branches, or one of each — file by
|
|
2945
|
+
* file, with their lines and, when asked, their diff: what choosing between attempts at
|
|
2946
|
+
* one task needs.
|
|
2947
|
+
*
|
|
2948
|
+
* @generated from rpc gitd.v1.WorkspaceService.Compare
|
|
2949
|
+
*/
|
|
2950
|
+
compare: {
|
|
2951
|
+
methodKind: "unary";
|
|
2952
|
+
input: typeof CompareRequestSchema;
|
|
2953
|
+
output: typeof CompareResponseSchema;
|
|
2954
|
+
};
|
|
2955
|
+
/**
|
|
2956
|
+
* Whether the committed work of several workspaces or published branches merges cleanly,
|
|
2957
|
+
* pair by pair, and on which files it does not. Read with git merge-tree in the pool,
|
|
2958
|
+
* running none of the repository's code.
|
|
2959
|
+
*
|
|
2960
|
+
* @generated from rpc gitd.v1.WorkspaceService.Conflicts
|
|
2961
|
+
*/
|
|
2962
|
+
conflicts: {
|
|
2963
|
+
methodKind: "unary";
|
|
2964
|
+
input: typeof ConflictsRequestSchema;
|
|
2965
|
+
output: typeof ConflictsResponseSchema;
|
|
2966
|
+
};
|
|
2967
|
+
/**
|
|
2968
|
+
* What happens to workspaces as it happens: made, changed, published, refused, removed.
|
|
2969
|
+
*
|
|
2970
|
+
* @generated from rpc gitd.v1.WorkspaceService.Watch
|
|
2971
|
+
*/
|
|
2972
|
+
watch: {
|
|
2973
|
+
methodKind: "server_streaming";
|
|
2974
|
+
input: typeof WatchRequestSchema;
|
|
2975
|
+
output: typeof WatchResponseSchema;
|
|
2976
|
+
};
|
|
2977
|
+
/**
|
|
2978
|
+
* Seal an overlay workspace's own layer — what installing its dependencies wrote — as a
|
|
2979
|
+
* warm layer of its repository, named, for later workspaces at the same commit to stand
|
|
2980
|
+
* on (PrepareRequest.warm) instead of installing again. The workspace is removed: its
|
|
2981
|
+
* layer is moved, not copied.
|
|
2982
|
+
*
|
|
2983
|
+
* @generated from rpc gitd.v1.WorkspaceService.Seal
|
|
2984
|
+
*/
|
|
2985
|
+
seal: {
|
|
2986
|
+
methodKind: "unary";
|
|
2987
|
+
input: typeof SealRequestSchema;
|
|
2988
|
+
output: typeof SealResponseSchema;
|
|
2989
|
+
};
|
|
2990
|
+
/**
|
|
2991
|
+
* The warm layers of a repository.
|
|
2992
|
+
*
|
|
2993
|
+
* @generated from rpc gitd.v1.WorkspaceService.ListWarm
|
|
2994
|
+
*/
|
|
2995
|
+
listWarm: {
|
|
2996
|
+
methodKind: "unary";
|
|
2997
|
+
input: typeof ListWarmRequestSchema;
|
|
2998
|
+
output: typeof ListWarmResponseSchema;
|
|
2999
|
+
};
|
|
1207
3000
|
}>;
|
|
1208
3001
|
/**
|
|
1209
3002
|
* @generated from service gitd.v1.RepositoryService
|
|
@@ -1246,7 +3039,8 @@ export declare const ServerService: GenService<{
|
|
|
1246
3039
|
output: typeof RetireResponseSchema;
|
|
1247
3040
|
};
|
|
1248
3041
|
/**
|
|
1249
|
-
* The audit log: every publish, done or refused,
|
|
3042
|
+
* The audit log: every publish, done or refused, and every change to connections and
|
|
3043
|
+
* publishing settings, newest first.
|
|
1250
3044
|
*
|
|
1251
3045
|
* @generated from rpc gitd.v1.ServerService.Audit
|
|
1252
3046
|
*/
|
|
@@ -1256,3 +3050,212 @@ export declare const ServerService: GenService<{
|
|
|
1256
3050
|
output: typeof AuditResponseSchema;
|
|
1257
3051
|
};
|
|
1258
3052
|
}>;
|
|
3053
|
+
/**
|
|
3054
|
+
* The credentials gitd keeps, managed by a platform from its own pages instead of a file:
|
|
3055
|
+
* GitHub connected through the organisation's own App, by signing in, or through an App
|
|
3056
|
+
* the platform already has; and tokens for any host. gitd keeps them under its state
|
|
3057
|
+
* directory, applies them at once, and never answers with a secret. None of this is
|
|
3058
|
+
* offered to agents through MCP.
|
|
3059
|
+
*
|
|
3060
|
+
* @generated from service gitd.v1.ConnectionService
|
|
3061
|
+
*/
|
|
3062
|
+
export declare const ConnectionService: GenService<{
|
|
3063
|
+
/**
|
|
3064
|
+
* Start creating the organisation's own GitHub App from a manifest: the answer says
|
|
3065
|
+
* where the person's browser posts the manifest. GitHub then sends the person to
|
|
3066
|
+
* `redirect_url` with a code and the state, for CompleteGitHubApp.
|
|
3067
|
+
*
|
|
3068
|
+
* @generated from rpc gitd.v1.ConnectionService.BeginGitHubApp
|
|
3069
|
+
*/
|
|
3070
|
+
beginGitHubApp: {
|
|
3071
|
+
methodKind: "unary";
|
|
3072
|
+
input: typeof BeginGitHubAppRequestSchema;
|
|
3073
|
+
output: typeof BeginGitHubAppResponseSchema;
|
|
3074
|
+
};
|
|
3075
|
+
/**
|
|
3076
|
+
* Finish creating the App: gitd exchanges the code for the App's ID and private key and
|
|
3077
|
+
* keeps them. The person then installs the App on the repositories it may reach.
|
|
3078
|
+
*
|
|
3079
|
+
* @generated from rpc gitd.v1.ConnectionService.CompleteGitHubApp
|
|
3080
|
+
*/
|
|
3081
|
+
completeGitHubApp: {
|
|
3082
|
+
methodKind: "unary";
|
|
3083
|
+
input: typeof CompleteGitHubAppRequestSchema;
|
|
3084
|
+
output: typeof CompleteGitHubAppResponseSchema;
|
|
3085
|
+
};
|
|
3086
|
+
/**
|
|
3087
|
+
* Start signing in to GitHub with gitd's public App (GitHub's device flow): the answer
|
|
3088
|
+
* has the code the person enters at GitHub.
|
|
3089
|
+
*
|
|
3090
|
+
* @generated from rpc gitd.v1.ConnectionService.StartGitHubLogin
|
|
3091
|
+
*/
|
|
3092
|
+
startGitHubLogin: {
|
|
3093
|
+
methodKind: "unary";
|
|
3094
|
+
input: typeof StartGitHubLoginRequestSchema;
|
|
3095
|
+
output: typeof StartGitHubLoginResponseSchema;
|
|
3096
|
+
};
|
|
3097
|
+
/**
|
|
3098
|
+
* Wait until the person has entered the code, and keep the sign-in. Pull requests then
|
|
3099
|
+
* appear as that person.
|
|
3100
|
+
*
|
|
3101
|
+
* @generated from rpc gitd.v1.ConnectionService.FinishGitHubLogin
|
|
3102
|
+
*/
|
|
3103
|
+
finishGitHubLogin: {
|
|
3104
|
+
methodKind: "unary";
|
|
3105
|
+
input: typeof FinishGitHubLoginRequestSchema;
|
|
3106
|
+
output: typeof FinishGitHubLoginResponseSchema;
|
|
3107
|
+
};
|
|
3108
|
+
/**
|
|
3109
|
+
* Keep a GitHub App the platform already has, by its ID and private key.
|
|
3110
|
+
*
|
|
3111
|
+
* @generated from rpc gitd.v1.ConnectionService.AddGitHubApp
|
|
3112
|
+
*/
|
|
3113
|
+
addGitHubApp: {
|
|
3114
|
+
methodKind: "unary";
|
|
3115
|
+
input: typeof AddGitHubAppRequestSchema;
|
|
3116
|
+
output: typeof AddGitHubAppResponseSchema;
|
|
3117
|
+
};
|
|
3118
|
+
/**
|
|
3119
|
+
* Keep a token for the repositories under a prefix, on any host.
|
|
3120
|
+
*
|
|
3121
|
+
* @generated from rpc gitd.v1.ConnectionService.AddToken
|
|
3122
|
+
*/
|
|
3123
|
+
addToken: {
|
|
3124
|
+
methodKind: "unary";
|
|
3125
|
+
input: typeof AddTokenRequestSchema;
|
|
3126
|
+
output: typeof AddTokenResponseSchema;
|
|
3127
|
+
};
|
|
3128
|
+
/**
|
|
3129
|
+
* The connections gitd keeps, those of the configuration file included, never a secret.
|
|
3130
|
+
*
|
|
3131
|
+
* @generated from rpc gitd.v1.ConnectionService.ListConnections
|
|
3132
|
+
*/
|
|
3133
|
+
listConnections: {
|
|
3134
|
+
methodKind: "unary";
|
|
3135
|
+
input: typeof ListConnectionsRequestSchema;
|
|
3136
|
+
output: typeof ListConnectionsResponseSchema;
|
|
3137
|
+
};
|
|
3138
|
+
/**
|
|
3139
|
+
* Forget a connection made through the API. One from the configuration file is refused.
|
|
3140
|
+
*
|
|
3141
|
+
* @generated from rpc gitd.v1.ConnectionService.RemoveConnection
|
|
3142
|
+
*/
|
|
3143
|
+
removeConnection: {
|
|
3144
|
+
methodKind: "unary";
|
|
3145
|
+
input: typeof RemoveConnectionRequestSchema;
|
|
3146
|
+
output: typeof RemoveConnectionResponseSchema;
|
|
3147
|
+
};
|
|
3148
|
+
}>;
|
|
3149
|
+
/**
|
|
3150
|
+
* The rules publishing follows, per repository prefix, managed by a platform from its own
|
|
3151
|
+
* pages instead of a file: which paths a publish may not change or delete, how many files
|
|
3152
|
+
* it may change, the branch prefix, and how pull requests are opened; and the presets,
|
|
3153
|
+
* named sets of rules that settings use.
|
|
3154
|
+
*
|
|
3155
|
+
* @generated from service gitd.v1.PublishingService
|
|
3156
|
+
*/
|
|
3157
|
+
export declare const PublishingService: GenService<{
|
|
3158
|
+
/**
|
|
3159
|
+
* Every setting, those of the configuration file included.
|
|
3160
|
+
*
|
|
3161
|
+
* @generated from rpc gitd.v1.PublishingService.GetSettings
|
|
3162
|
+
*/
|
|
3163
|
+
getSettings: {
|
|
3164
|
+
methodKind: "unary";
|
|
3165
|
+
input: typeof GetSettingsRequestSchema;
|
|
3166
|
+
output: typeof GetSettingsResponseSchema;
|
|
3167
|
+
};
|
|
3168
|
+
/**
|
|
3169
|
+
* Keep the settings of a prefix, replacing those it had.
|
|
3170
|
+
*
|
|
3171
|
+
* @generated from rpc gitd.v1.PublishingService.SetSettings
|
|
3172
|
+
*/
|
|
3173
|
+
setSettings: {
|
|
3174
|
+
methodKind: "unary";
|
|
3175
|
+
input: typeof SetSettingsRequestSchema;
|
|
3176
|
+
output: typeof SetSettingsResponseSchema;
|
|
3177
|
+
};
|
|
3178
|
+
/**
|
|
3179
|
+
* Forget the settings of a prefix. Those of the configuration file are refused.
|
|
3180
|
+
*
|
|
3181
|
+
* @generated from rpc gitd.v1.PublishingService.RemoveSettings
|
|
3182
|
+
*/
|
|
3183
|
+
removeSettings: {
|
|
3184
|
+
methodKind: "unary";
|
|
3185
|
+
input: typeof RemoveSettingsRequestSchema;
|
|
3186
|
+
output: typeof RemoveSettingsResponseSchema;
|
|
3187
|
+
};
|
|
3188
|
+
/**
|
|
3189
|
+
* Every preset: gitd's own (`recommended`), the configuration file's and those set
|
|
3190
|
+
* through the API, as they apply.
|
|
3191
|
+
*
|
|
3192
|
+
* @generated from rpc gitd.v1.PublishingService.ListPresets
|
|
3193
|
+
*/
|
|
3194
|
+
listPresets: {
|
|
3195
|
+
methodKind: "unary";
|
|
3196
|
+
input: typeof ListPresetsRequestSchema;
|
|
3197
|
+
output: typeof ListPresetsResponseSchema;
|
|
3198
|
+
};
|
|
3199
|
+
/**
|
|
3200
|
+
* Keep a preset, replacing one of the same name; one named `recommended` replaces gitd's.
|
|
3201
|
+
*
|
|
3202
|
+
* @generated from rpc gitd.v1.PublishingService.SetPreset
|
|
3203
|
+
*/
|
|
3204
|
+
setPreset: {
|
|
3205
|
+
methodKind: "unary";
|
|
3206
|
+
input: typeof SetPresetRequestSchema;
|
|
3207
|
+
output: typeof SetPresetResponseSchema;
|
|
3208
|
+
};
|
|
3209
|
+
/**
|
|
3210
|
+
* Forget a preset set through the API: refused while settings use it, unless gitd has its
|
|
3211
|
+
* own of that name, which then applies again.
|
|
3212
|
+
*
|
|
3213
|
+
* @generated from rpc gitd.v1.PublishingService.RemovePreset
|
|
3214
|
+
*/
|
|
3215
|
+
removePreset: {
|
|
3216
|
+
methodKind: "unary";
|
|
3217
|
+
input: typeof RemovePresetRequestSchema;
|
|
3218
|
+
output: typeof RemovePresetResponseSchema;
|
|
3219
|
+
};
|
|
3220
|
+
}>;
|
|
3221
|
+
/**
|
|
3222
|
+
* gitd's git endpoint, for sandboxes that cannot mount its directories — microVMs, remote
|
|
3223
|
+
* sandboxes, CI runners elsewhere — and clone over HTTP instead. A token of gitd's own opens
|
|
3224
|
+
* one repository for reading and one sandbox repository for writing; it is never the git
|
|
3225
|
+
* host's credential. What a sandbox pushed is published with Publish and `sandbox`.
|
|
3226
|
+
*
|
|
3227
|
+
* @generated from service gitd.v1.EndpointService
|
|
3228
|
+
*/
|
|
3229
|
+
export declare const EndpointService: GenService<{
|
|
3230
|
+
/**
|
|
3231
|
+
* A token for a sandbox, with the address it clones from. The repository's pool is
|
|
3232
|
+
* synced first, with the credential gitd keeps.
|
|
3233
|
+
*
|
|
3234
|
+
* @generated from rpc gitd.v1.EndpointService.IssueToken
|
|
3235
|
+
*/
|
|
3236
|
+
issueToken: {
|
|
3237
|
+
methodKind: "unary";
|
|
3238
|
+
input: typeof IssueTokenRequestSchema;
|
|
3239
|
+
output: typeof IssueTokenResponseSchema;
|
|
3240
|
+
};
|
|
3241
|
+
/**
|
|
3242
|
+
* End a token now, and remove its sandbox repository when asked.
|
|
3243
|
+
*
|
|
3244
|
+
* @generated from rpc gitd.v1.EndpointService.RevokeToken
|
|
3245
|
+
*/
|
|
3246
|
+
revokeToken: {
|
|
3247
|
+
methodKind: "unary";
|
|
3248
|
+
input: typeof RevokeTokenRequestSchema;
|
|
3249
|
+
output: typeof RevokeTokenResponseSchema;
|
|
3250
|
+
};
|
|
3251
|
+
/**
|
|
3252
|
+
* The tokens alive, never their secrets.
|
|
3253
|
+
*
|
|
3254
|
+
* @generated from rpc gitd.v1.EndpointService.ListTokens
|
|
3255
|
+
*/
|
|
3256
|
+
listTokens: {
|
|
3257
|
+
methodKind: "unary";
|
|
3258
|
+
input: typeof ListTokensRequestSchema;
|
|
3259
|
+
output: typeof ListTokensResponseSchema;
|
|
3260
|
+
};
|
|
3261
|
+
}>;
|