@xeonr/pipelines-sdk 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +267 -2
- package/dist/auth.d.ts +72 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +139 -0
- package/dist/auth.js.map +1 -0
- package/dist/client.d.ts +118 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +101 -0
- package/dist/client.js.map +1 -0
- package/dist/errors.d.ts +77 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +72 -0
- package/dist/errors.js.map +1 -0
- package/dist/gen/buf/validate/validate_pb.d.ts +4828 -0
- package/dist/gen/buf/validate/validate_pb.d.ts.map +1 -0
- package/dist/gen/buf/validate/validate_pb.js +357 -0
- package/dist/gen/buf/validate/validate_pb.js.map +1 -0
- package/dist/gen/gnostic/openapi/v3/annotations_pb.d.ts +24 -0
- package/dist/gen/gnostic/openapi/v3/annotations_pb.d.ts.map +1 -0
- package/dist/gen/gnostic/openapi/v3/annotations_pb.js +37 -0
- package/dist/gen/gnostic/openapi/v3/annotations_pb.js.map +1 -0
- package/dist/gen/gnostic/openapi/v3/openapiv3_pb.d.ts +2245 -0
- package/dist/gen/gnostic/openapi/v3/openapiv3_pb.d.ts.map +1 -0
- package/dist/gen/gnostic/openapi/v3/openapiv3_pb.js +410 -0
- package/dist/gen/gnostic/openapi/v3/openapiv3_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.d.ts +1031 -0
- package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.js +219 -0
- package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/private/v1/runners_pb.d.ts +190 -0
- package/dist/gen/xeonr/pipelines/private/v1/runners_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/private/v1/runners_pb.js +53 -0
- package/dist/gen/xeonr/pipelines/private/v1/runners_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.d.ts +1161 -0
- package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.js +269 -0
- package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/private/v1/worker_pb.d.ts +915 -0
- package/dist/gen/xeonr/pipelines/private/v1/worker_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/private/v1/worker_pb.js +159 -0
- package/dist/gen/xeonr/pipelines/private/v1/worker_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/common_pb.d.ts +550 -0
- package/dist/gen/xeonr/pipelines/v1/common_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/common_pb.js +453 -0
- package/dist/gen/xeonr/pipelines/v1/common_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/definition_pb.d.ts +760 -0
- package/dist/gen/xeonr/pipelines/v1/definition_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/definition_pb.js +190 -0
- package/dist/gen/xeonr/pipelines/v1/definition_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/pools_pb.d.ts +800 -0
- package/dist/gen/xeonr/pipelines/v1/pools_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/pools_pb.js +247 -0
- package/dist/gen/xeonr/pipelines/v1/pools_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/registry_pb.d.ts +895 -0
- package/dist/gen/xeonr/pipelines/v1/registry_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/registry_pb.js +277 -0
- package/dist/gen/xeonr/pipelines/v1/registry_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/runs_pb.d.ts +1217 -0
- package/dist/gen/xeonr/pipelines/v1/runs_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/runs_pb.js +204 -0
- package/dist/gen/xeonr/pipelines/v1/runs_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/secrets_pb.d.ts +642 -0
- package/dist/gen/xeonr/pipelines/v1/secrets_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/secrets_pb.js +181 -0
- package/dist/gen/xeonr/pipelines/v1/secrets_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/sinks_pb.d.ts +381 -0
- package/dist/gen/xeonr/pipelines/v1/sinks_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/sinks_pb.js +145 -0
- package/dist/gen/xeonr/pipelines/v1/sinks_pb.js.map +1 -0
- package/dist/gen/xeonr/platform/v1/options_pb.d.ts +313 -0
- package/dist/gen/xeonr/platform/v1/options_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/platform/v1/options_pb.js +235 -0
- package/dist/gen/xeonr/platform/v1/options_pb.js.map +1 -0
- package/dist/handler.d.ts +94 -0
- package/dist/handler.d.ts.map +1 -0
- package/dist/handler.js +18 -0
- package/dist/handler.js.map +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/time.d.ts +8 -0
- package/dist/internal/time.d.ts.map +1 -0
- package/dist/internal/time.js +25 -0
- package/dist/internal/time.js.map +1 -0
- package/dist/logship.d.ts +67 -0
- package/dist/logship.d.ts.map +1 -0
- package/dist/logship.js +176 -0
- package/dist/logship.js.map +1 -0
- package/dist/testing/index.d.ts +202 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +909 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/transport.d.ts +43 -0
- package/dist/transport.d.ts.map +1 -0
- package/dist/transport.js +44 -0
- package/dist/transport.js.map +1 -0
- package/dist/worker.d.ts +213 -0
- package/dist/worker.d.ts.map +1 -0
- package/dist/worker.js +664 -0
- package/dist/worker.js.map +1 -0
- package/package.json +70 -3
|
@@ -0,0 +1,1031 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Duration, Timestamp, Value } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file xeonr/pipelines/private/v1/attempt.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_xeonr_pipelines_private_v1_attempt: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* Issue is a structured, non-fatal problem a step reports. The subject is
|
|
10
|
+
* free-form so that a product can deep-link to it: a file and line, a row,
|
|
11
|
+
* an item of a batch.
|
|
12
|
+
*
|
|
13
|
+
* @generated from message xeonr.pipelines.private.v1.Issue
|
|
14
|
+
*/
|
|
15
|
+
export type Issue = Message<"xeonr.pipelines.private.v1.Issue"> & {
|
|
16
|
+
/**
|
|
17
|
+
* @generated from field: xeonr.pipelines.private.v1.IssueSeverity severity = 1;
|
|
18
|
+
*/
|
|
19
|
+
severity: IssueSeverity;
|
|
20
|
+
/**
|
|
21
|
+
* SubjectKind and SubjectID say what the issue is about, in the
|
|
22
|
+
* producing step's own terms.
|
|
23
|
+
*
|
|
24
|
+
* @generated from field: string subject_kind = 2;
|
|
25
|
+
*/
|
|
26
|
+
subjectKind: string;
|
|
27
|
+
/**
|
|
28
|
+
* @generated from field: string subject_id = 3;
|
|
29
|
+
*/
|
|
30
|
+
subjectId: string;
|
|
31
|
+
/**
|
|
32
|
+
* @generated from field: string message = 4;
|
|
33
|
+
*/
|
|
34
|
+
message: string;
|
|
35
|
+
/**
|
|
36
|
+
* Detail is anything more, as JSON. At most 16 KiB encoded.
|
|
37
|
+
*
|
|
38
|
+
* @generated from field: google.protobuf.Struct detail = 5;
|
|
39
|
+
*/
|
|
40
|
+
detail?: JsonObject | undefined;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Describes the message xeonr.pipelines.private.v1.Issue.
|
|
44
|
+
* Use `create(IssueSchema)` to create a new message.
|
|
45
|
+
*/
|
|
46
|
+
export declare const IssueSchema: GenMessage<Issue>;
|
|
47
|
+
/**
|
|
48
|
+
* UploadedPart is one part of a multipart upload, as the store acknowledged
|
|
49
|
+
* it.
|
|
50
|
+
*
|
|
51
|
+
* @generated from message xeonr.pipelines.private.v1.UploadedPart
|
|
52
|
+
*/
|
|
53
|
+
export type UploadedPart = Message<"xeonr.pipelines.private.v1.UploadedPart"> & {
|
|
54
|
+
/**
|
|
55
|
+
* @generated from field: uint32 part_number = 1;
|
|
56
|
+
*/
|
|
57
|
+
partNumber: number;
|
|
58
|
+
/**
|
|
59
|
+
* Etag is the ETag the store returned for the part.
|
|
60
|
+
*
|
|
61
|
+
* @generated from field: string etag = 2;
|
|
62
|
+
*/
|
|
63
|
+
etag: string;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Describes the message xeonr.pipelines.private.v1.UploadedPart.
|
|
67
|
+
* Use `create(UploadedPartSchema)` to create a new message.
|
|
68
|
+
*/
|
|
69
|
+
export declare const UploadedPartSchema: GenMessage<UploadedPart>;
|
|
70
|
+
/**
|
|
71
|
+
* @generated from message xeonr.pipelines.private.v1.GetBlobInputRequest
|
|
72
|
+
*/
|
|
73
|
+
export type GetBlobInputRequest = Message<"xeonr.pipelines.private.v1.GetBlobInputRequest"> & {
|
|
74
|
+
/**
|
|
75
|
+
* @generated from field: string attempt_id = 1;
|
|
76
|
+
*/
|
|
77
|
+
attemptId: string;
|
|
78
|
+
/**
|
|
79
|
+
* Input and Index name the blob, as the claim's `blob_inputs` listed it.
|
|
80
|
+
*
|
|
81
|
+
* @generated from field: string input = 2;
|
|
82
|
+
*/
|
|
83
|
+
input: string;
|
|
84
|
+
/**
|
|
85
|
+
* @generated from field: uint32 index = 3;
|
|
86
|
+
*/
|
|
87
|
+
index: number;
|
|
88
|
+
/**
|
|
89
|
+
* FromArtifact selects an upstream artifact staged by a `needs` edge:
|
|
90
|
+
* `input` is then the artifact's name and `node` the node it is from.
|
|
91
|
+
*
|
|
92
|
+
* validate:skip a bool has no bounds
|
|
93
|
+
*
|
|
94
|
+
* @generated from field: bool from_artifact = 4;
|
|
95
|
+
*/
|
|
96
|
+
fromArtifact: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Node is the upstream node, with `from_artifact`; empty otherwise.
|
|
99
|
+
*
|
|
100
|
+
* @generated from field: string node = 5;
|
|
101
|
+
*/
|
|
102
|
+
node: string;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Describes the message xeonr.pipelines.private.v1.GetBlobInputRequest.
|
|
106
|
+
* Use `create(GetBlobInputRequestSchema)` to create a new message.
|
|
107
|
+
*/
|
|
108
|
+
export declare const GetBlobInputRequestSchema: GenMessage<GetBlobInputRequest>;
|
|
109
|
+
/**
|
|
110
|
+
* @generated from message xeonr.pipelines.private.v1.GetBlobInputResponse
|
|
111
|
+
*/
|
|
112
|
+
export type GetBlobInputResponse = Message<"xeonr.pipelines.private.v1.GetBlobInputResponse"> & {
|
|
113
|
+
/**
|
|
114
|
+
* URL is a presigned GET, valid until `expires_at`. It is a capability:
|
|
115
|
+
* the sidecar uses it and never passes it on.
|
|
116
|
+
*
|
|
117
|
+
* @generated from field: string url = 1;
|
|
118
|
+
*/
|
|
119
|
+
url: string;
|
|
120
|
+
/**
|
|
121
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 2;
|
|
122
|
+
*/
|
|
123
|
+
expiresAt?: Timestamp | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* @generated from field: uint64 size_bytes = 3;
|
|
126
|
+
*/
|
|
127
|
+
sizeBytes: bigint;
|
|
128
|
+
/**
|
|
129
|
+
* Sha256 is the content's digest, in hex, to verify the download against.
|
|
130
|
+
*
|
|
131
|
+
* @generated from field: string sha256 = 4;
|
|
132
|
+
*/
|
|
133
|
+
sha256: string;
|
|
134
|
+
/**
|
|
135
|
+
* @generated from field: string media_type = 5;
|
|
136
|
+
*/
|
|
137
|
+
mediaType: string;
|
|
138
|
+
/**
|
|
139
|
+
* @generated from field: string filename = 6;
|
|
140
|
+
*/
|
|
141
|
+
filename: string;
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* Describes the message xeonr.pipelines.private.v1.GetBlobInputResponse.
|
|
145
|
+
* Use `create(GetBlobInputResponseSchema)` to create a new message.
|
|
146
|
+
*/
|
|
147
|
+
export declare const GetBlobInputResponseSchema: GenMessage<GetBlobInputResponse>;
|
|
148
|
+
/**
|
|
149
|
+
* @generated from message xeonr.pipelines.private.v1.CreateBlobOutputRequest
|
|
150
|
+
*/
|
|
151
|
+
export type CreateBlobOutputRequest = Message<"xeonr.pipelines.private.v1.CreateBlobOutputRequest"> & {
|
|
152
|
+
/**
|
|
153
|
+
* @generated from field: string attempt_id = 1;
|
|
154
|
+
*/
|
|
155
|
+
attemptId: string;
|
|
156
|
+
/**
|
|
157
|
+
* Slot is the manifest blob output, or the artifact name, written to.
|
|
158
|
+
*
|
|
159
|
+
* @generated from field: string slot = 2;
|
|
160
|
+
*/
|
|
161
|
+
slot: string;
|
|
162
|
+
/**
|
|
163
|
+
* Filename distinguishes the files of a slot that holds several; empty
|
|
164
|
+
* for a slot with one blob.
|
|
165
|
+
*
|
|
166
|
+
* @generated from field: string filename = 3;
|
|
167
|
+
*/
|
|
168
|
+
filename: string;
|
|
169
|
+
/**
|
|
170
|
+
* @generated from field: string media_type = 4;
|
|
171
|
+
*/
|
|
172
|
+
mediaType: string;
|
|
173
|
+
/**
|
|
174
|
+
* SizeBytes is the exact size that will be uploaded.
|
|
175
|
+
*
|
|
176
|
+
* @generated from field: uint64 size_bytes = 5;
|
|
177
|
+
*/
|
|
178
|
+
sizeBytes: bigint;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* Describes the message xeonr.pipelines.private.v1.CreateBlobOutputRequest.
|
|
182
|
+
* Use `create(CreateBlobOutputRequestSchema)` to create a new message.
|
|
183
|
+
*/
|
|
184
|
+
export declare const CreateBlobOutputRequestSchema: GenMessage<CreateBlobOutputRequest>;
|
|
185
|
+
/**
|
|
186
|
+
* @generated from message xeonr.pipelines.private.v1.CreateBlobOutputResponse
|
|
187
|
+
*/
|
|
188
|
+
export type CreateBlobOutputResponse = Message<"xeonr.pipelines.private.v1.CreateBlobOutputResponse"> & {
|
|
189
|
+
/**
|
|
190
|
+
* UploadID names the reservation, for FinaliseBlobOutput.
|
|
191
|
+
*
|
|
192
|
+
* @generated from field: string upload_id = 1;
|
|
193
|
+
*/
|
|
194
|
+
uploadId: string;
|
|
195
|
+
/**
|
|
196
|
+
* URL is a presigned PUT, valid until `expires_at`.
|
|
197
|
+
*
|
|
198
|
+
* @generated from field: string url = 2;
|
|
199
|
+
*/
|
|
200
|
+
url: string;
|
|
201
|
+
/**
|
|
202
|
+
* Headers must be sent with the PUT exactly as given.
|
|
203
|
+
*
|
|
204
|
+
* @generated from field: map<string, string> headers = 3;
|
|
205
|
+
*/
|
|
206
|
+
headers: {
|
|
207
|
+
[key: string]: string;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 4;
|
|
211
|
+
*/
|
|
212
|
+
expiresAt?: Timestamp | undefined;
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Describes the message xeonr.pipelines.private.v1.CreateBlobOutputResponse.
|
|
216
|
+
* Use `create(CreateBlobOutputResponseSchema)` to create a new message.
|
|
217
|
+
*/
|
|
218
|
+
export declare const CreateBlobOutputResponseSchema: GenMessage<CreateBlobOutputResponse>;
|
|
219
|
+
/**
|
|
220
|
+
* @generated from message xeonr.pipelines.private.v1.CreateMultipartUploadRequest
|
|
221
|
+
*/
|
|
222
|
+
export type CreateMultipartUploadRequest = Message<"xeonr.pipelines.private.v1.CreateMultipartUploadRequest"> & {
|
|
223
|
+
/**
|
|
224
|
+
* @generated from field: string attempt_id = 1;
|
|
225
|
+
*/
|
|
226
|
+
attemptId: string;
|
|
227
|
+
/**
|
|
228
|
+
* @generated from field: string slot = 2;
|
|
229
|
+
*/
|
|
230
|
+
slot: string;
|
|
231
|
+
/**
|
|
232
|
+
* @generated from field: string filename = 3;
|
|
233
|
+
*/
|
|
234
|
+
filename: string;
|
|
235
|
+
/**
|
|
236
|
+
* @generated from field: string media_type = 4;
|
|
237
|
+
*/
|
|
238
|
+
mediaType: string;
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* Describes the message xeonr.pipelines.private.v1.CreateMultipartUploadRequest.
|
|
242
|
+
* Use `create(CreateMultipartUploadRequestSchema)` to create a new message.
|
|
243
|
+
*/
|
|
244
|
+
export declare const CreateMultipartUploadRequestSchema: GenMessage<CreateMultipartUploadRequest>;
|
|
245
|
+
/**
|
|
246
|
+
* @generated from message xeonr.pipelines.private.v1.CreateMultipartUploadResponse
|
|
247
|
+
*/
|
|
248
|
+
export type CreateMultipartUploadResponse = Message<"xeonr.pipelines.private.v1.CreateMultipartUploadResponse"> & {
|
|
249
|
+
/**
|
|
250
|
+
* @generated from field: string upload_id = 1;
|
|
251
|
+
*/
|
|
252
|
+
uploadId: string;
|
|
253
|
+
/**
|
|
254
|
+
* PartSizeBytes is the size every part but the last must have.
|
|
255
|
+
*
|
|
256
|
+
* @generated from field: uint64 part_size_bytes = 2;
|
|
257
|
+
*/
|
|
258
|
+
partSizeBytes: bigint;
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* Describes the message xeonr.pipelines.private.v1.CreateMultipartUploadResponse.
|
|
262
|
+
* Use `create(CreateMultipartUploadResponseSchema)` to create a new message.
|
|
263
|
+
*/
|
|
264
|
+
export declare const CreateMultipartUploadResponseSchema: GenMessage<CreateMultipartUploadResponse>;
|
|
265
|
+
/**
|
|
266
|
+
* @generated from message xeonr.pipelines.private.v1.SignUploadPartRequest
|
|
267
|
+
*/
|
|
268
|
+
export type SignUploadPartRequest = Message<"xeonr.pipelines.private.v1.SignUploadPartRequest"> & {
|
|
269
|
+
/**
|
|
270
|
+
* @generated from field: string attempt_id = 1;
|
|
271
|
+
*/
|
|
272
|
+
attemptId: string;
|
|
273
|
+
/**
|
|
274
|
+
* UploadID is the multipart upload CreateMultipartUpload or CreateCache
|
|
275
|
+
* returned.
|
|
276
|
+
*
|
|
277
|
+
* @generated from field: string upload_id = 2;
|
|
278
|
+
*/
|
|
279
|
+
uploadId: string;
|
|
280
|
+
/**
|
|
281
|
+
* @generated from field: uint32 part_number = 3;
|
|
282
|
+
*/
|
|
283
|
+
partNumber: number;
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* Describes the message xeonr.pipelines.private.v1.SignUploadPartRequest.
|
|
287
|
+
* Use `create(SignUploadPartRequestSchema)` to create a new message.
|
|
288
|
+
*/
|
|
289
|
+
export declare const SignUploadPartRequestSchema: GenMessage<SignUploadPartRequest>;
|
|
290
|
+
/**
|
|
291
|
+
* @generated from message xeonr.pipelines.private.v1.SignUploadPartResponse
|
|
292
|
+
*/
|
|
293
|
+
export type SignUploadPartResponse = Message<"xeonr.pipelines.private.v1.SignUploadPartResponse"> & {
|
|
294
|
+
/**
|
|
295
|
+
* URL is a presigned PUT for the part, valid until `expires_at`.
|
|
296
|
+
*
|
|
297
|
+
* @generated from field: string url = 1;
|
|
298
|
+
*/
|
|
299
|
+
url: string;
|
|
300
|
+
/**
|
|
301
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 2;
|
|
302
|
+
*/
|
|
303
|
+
expiresAt?: Timestamp | undefined;
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* Describes the message xeonr.pipelines.private.v1.SignUploadPartResponse.
|
|
307
|
+
* Use `create(SignUploadPartResponseSchema)` to create a new message.
|
|
308
|
+
*/
|
|
309
|
+
export declare const SignUploadPartResponseSchema: GenMessage<SignUploadPartResponse>;
|
|
310
|
+
/**
|
|
311
|
+
* @generated from message xeonr.pipelines.private.v1.CompleteMultipartUploadRequest
|
|
312
|
+
*/
|
|
313
|
+
export type CompleteMultipartUploadRequest = Message<"xeonr.pipelines.private.v1.CompleteMultipartUploadRequest"> & {
|
|
314
|
+
/**
|
|
315
|
+
* @generated from field: string attempt_id = 1;
|
|
316
|
+
*/
|
|
317
|
+
attemptId: string;
|
|
318
|
+
/**
|
|
319
|
+
* @generated from field: string upload_id = 2;
|
|
320
|
+
*/
|
|
321
|
+
uploadId: string;
|
|
322
|
+
/**
|
|
323
|
+
* Parts are every part uploaded, in part-number order.
|
|
324
|
+
*
|
|
325
|
+
* @generated from field: repeated xeonr.pipelines.private.v1.UploadedPart parts = 3;
|
|
326
|
+
*/
|
|
327
|
+
parts: UploadedPart[];
|
|
328
|
+
};
|
|
329
|
+
/**
|
|
330
|
+
* Describes the message xeonr.pipelines.private.v1.CompleteMultipartUploadRequest.
|
|
331
|
+
* Use `create(CompleteMultipartUploadRequestSchema)` to create a new message.
|
|
332
|
+
*/
|
|
333
|
+
export declare const CompleteMultipartUploadRequestSchema: GenMessage<CompleteMultipartUploadRequest>;
|
|
334
|
+
/**
|
|
335
|
+
* @generated from message xeonr.pipelines.private.v1.CompleteMultipartUploadResponse
|
|
336
|
+
*/
|
|
337
|
+
export type CompleteMultipartUploadResponse = Message<"xeonr.pipelines.private.v1.CompleteMultipartUploadResponse"> & {};
|
|
338
|
+
/**
|
|
339
|
+
* Describes the message xeonr.pipelines.private.v1.CompleteMultipartUploadResponse.
|
|
340
|
+
* Use `create(CompleteMultipartUploadResponseSchema)` to create a new message.
|
|
341
|
+
*/
|
|
342
|
+
export declare const CompleteMultipartUploadResponseSchema: GenMessage<CompleteMultipartUploadResponse>;
|
|
343
|
+
/**
|
|
344
|
+
* @generated from message xeonr.pipelines.private.v1.AbortMultipartUploadRequest
|
|
345
|
+
*/
|
|
346
|
+
export type AbortMultipartUploadRequest = Message<"xeonr.pipelines.private.v1.AbortMultipartUploadRequest"> & {
|
|
347
|
+
/**
|
|
348
|
+
* @generated from field: string attempt_id = 1;
|
|
349
|
+
*/
|
|
350
|
+
attemptId: string;
|
|
351
|
+
/**
|
|
352
|
+
* @generated from field: string upload_id = 2;
|
|
353
|
+
*/
|
|
354
|
+
uploadId: string;
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* Describes the message xeonr.pipelines.private.v1.AbortMultipartUploadRequest.
|
|
358
|
+
* Use `create(AbortMultipartUploadRequestSchema)` to create a new message.
|
|
359
|
+
*/
|
|
360
|
+
export declare const AbortMultipartUploadRequestSchema: GenMessage<AbortMultipartUploadRequest>;
|
|
361
|
+
/**
|
|
362
|
+
* @generated from message xeonr.pipelines.private.v1.AbortMultipartUploadResponse
|
|
363
|
+
*/
|
|
364
|
+
export type AbortMultipartUploadResponse = Message<"xeonr.pipelines.private.v1.AbortMultipartUploadResponse"> & {};
|
|
365
|
+
/**
|
|
366
|
+
* Describes the message xeonr.pipelines.private.v1.AbortMultipartUploadResponse.
|
|
367
|
+
* Use `create(AbortMultipartUploadResponseSchema)` to create a new message.
|
|
368
|
+
*/
|
|
369
|
+
export declare const AbortMultipartUploadResponseSchema: GenMessage<AbortMultipartUploadResponse>;
|
|
370
|
+
/**
|
|
371
|
+
* @generated from message xeonr.pipelines.private.v1.FinaliseBlobOutputRequest
|
|
372
|
+
*/
|
|
373
|
+
export type FinaliseBlobOutputRequest = Message<"xeonr.pipelines.private.v1.FinaliseBlobOutputRequest"> & {
|
|
374
|
+
/**
|
|
375
|
+
* @generated from field: string attempt_id = 1;
|
|
376
|
+
*/
|
|
377
|
+
attemptId: string;
|
|
378
|
+
/**
|
|
379
|
+
* UploadID is the reservation CreateBlobOutput or CreateMultipartUpload
|
|
380
|
+
* returned.
|
|
381
|
+
*
|
|
382
|
+
* @generated from field: string upload_id = 2;
|
|
383
|
+
*/
|
|
384
|
+
uploadId: string;
|
|
385
|
+
/**
|
|
386
|
+
* SizeBytes and Sha256 are what the sidecar uploaded; the platform checks
|
|
387
|
+
* the stored object against them.
|
|
388
|
+
*
|
|
389
|
+
* @generated from field: uint64 size_bytes = 3;
|
|
390
|
+
*/
|
|
391
|
+
sizeBytes: bigint;
|
|
392
|
+
/**
|
|
393
|
+
* @generated from field: string sha256 = 4;
|
|
394
|
+
*/
|
|
395
|
+
sha256: string;
|
|
396
|
+
/**
|
|
397
|
+
* ExpireIn is how long the blob is kept after the run finishes; unset is
|
|
398
|
+
* the platform's retention. The node's artifact declaration bounds it.
|
|
399
|
+
*
|
|
400
|
+
* @generated from field: google.protobuf.Duration expire_in = 5;
|
|
401
|
+
*/
|
|
402
|
+
expireIn?: Duration | undefined;
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* Describes the message xeonr.pipelines.private.v1.FinaliseBlobOutputRequest.
|
|
406
|
+
* Use `create(FinaliseBlobOutputRequestSchema)` to create a new message.
|
|
407
|
+
*/
|
|
408
|
+
export declare const FinaliseBlobOutputRequestSchema: GenMessage<FinaliseBlobOutputRequest>;
|
|
409
|
+
/**
|
|
410
|
+
* @generated from message xeonr.pipelines.private.v1.FinaliseBlobOutputResponse
|
|
411
|
+
*/
|
|
412
|
+
export type FinaliseBlobOutputResponse = Message<"xeonr.pipelines.private.v1.FinaliseBlobOutputResponse"> & {};
|
|
413
|
+
/**
|
|
414
|
+
* Describes the message xeonr.pipelines.private.v1.FinaliseBlobOutputResponse.
|
|
415
|
+
* Use `create(FinaliseBlobOutputResponseSchema)` to create a new message.
|
|
416
|
+
*/
|
|
417
|
+
export declare const FinaliseBlobOutputResponseSchema: GenMessage<FinaliseBlobOutputResponse>;
|
|
418
|
+
/**
|
|
419
|
+
* @generated from message xeonr.pipelines.private.v1.SetKVOutputRequest
|
|
420
|
+
*/
|
|
421
|
+
export type SetKVOutputRequest = Message<"xeonr.pipelines.private.v1.SetKVOutputRequest"> & {
|
|
422
|
+
/**
|
|
423
|
+
* @generated from field: string attempt_id = 1;
|
|
424
|
+
*/
|
|
425
|
+
attemptId: string;
|
|
426
|
+
/**
|
|
427
|
+
* Slot is the manifest kv output written to.
|
|
428
|
+
*
|
|
429
|
+
* @generated from field: string slot = 2;
|
|
430
|
+
*/
|
|
431
|
+
slot: string;
|
|
432
|
+
/**
|
|
433
|
+
* Value is the output. At most 256 KiB encoded.
|
|
434
|
+
*
|
|
435
|
+
* @generated from field: google.protobuf.Value value = 3;
|
|
436
|
+
*/
|
|
437
|
+
value?: Value | undefined;
|
|
438
|
+
};
|
|
439
|
+
/**
|
|
440
|
+
* Describes the message xeonr.pipelines.private.v1.SetKVOutputRequest.
|
|
441
|
+
* Use `create(SetKVOutputRequestSchema)` to create a new message.
|
|
442
|
+
*/
|
|
443
|
+
export declare const SetKVOutputRequestSchema: GenMessage<SetKVOutputRequest>;
|
|
444
|
+
/**
|
|
445
|
+
* @generated from message xeonr.pipelines.private.v1.SetKVOutputResponse
|
|
446
|
+
*/
|
|
447
|
+
export type SetKVOutputResponse = Message<"xeonr.pipelines.private.v1.SetKVOutputResponse"> & {};
|
|
448
|
+
/**
|
|
449
|
+
* Describes the message xeonr.pipelines.private.v1.SetKVOutputResponse.
|
|
450
|
+
* Use `create(SetKVOutputResponseSchema)` to create a new message.
|
|
451
|
+
*/
|
|
452
|
+
export declare const SetKVOutputResponseSchema: GenMessage<SetKVOutputResponse>;
|
|
453
|
+
/**
|
|
454
|
+
* @generated from message xeonr.pipelines.private.v1.CreateIdTokenRequest
|
|
455
|
+
*/
|
|
456
|
+
export type CreateIdTokenRequest = Message<"xeonr.pipelines.private.v1.CreateIdTokenRequest"> & {
|
|
457
|
+
/**
|
|
458
|
+
* @generated from field: string attempt_id = 1;
|
|
459
|
+
*/
|
|
460
|
+
attemptId: string;
|
|
461
|
+
/**
|
|
462
|
+
* Audience is the one audience the token is for.
|
|
463
|
+
*
|
|
464
|
+
* @generated from field: string audience = 2;
|
|
465
|
+
*/
|
|
466
|
+
audience: string;
|
|
467
|
+
};
|
|
468
|
+
/**
|
|
469
|
+
* Describes the message xeonr.pipelines.private.v1.CreateIdTokenRequest.
|
|
470
|
+
* Use `create(CreateIdTokenRequestSchema)` to create a new message.
|
|
471
|
+
*/
|
|
472
|
+
export declare const CreateIdTokenRequestSchema: GenMessage<CreateIdTokenRequest>;
|
|
473
|
+
/**
|
|
474
|
+
* @generated from message xeonr.pipelines.private.v1.CreateIdTokenResponse
|
|
475
|
+
*/
|
|
476
|
+
export type CreateIdTokenResponse = Message<"xeonr.pipelines.private.v1.CreateIdTokenResponse"> & {
|
|
477
|
+
/**
|
|
478
|
+
* IDTokenSecret is the job identity token. It is returned here and is not
|
|
479
|
+
* stored: ask again for another.
|
|
480
|
+
*
|
|
481
|
+
* @generated from field: string id_token_secret = 1;
|
|
482
|
+
*/
|
|
483
|
+
idTokenSecret: string;
|
|
484
|
+
/**
|
|
485
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 2;
|
|
486
|
+
*/
|
|
487
|
+
expiresAt?: Timestamp | undefined;
|
|
488
|
+
};
|
|
489
|
+
/**
|
|
490
|
+
* Describes the message xeonr.pipelines.private.v1.CreateIdTokenResponse.
|
|
491
|
+
* Use `create(CreateIdTokenResponseSchema)` to create a new message.
|
|
492
|
+
*/
|
|
493
|
+
export declare const CreateIdTokenResponseSchema: GenMessage<CreateIdTokenResponse>;
|
|
494
|
+
/**
|
|
495
|
+
* @generated from message xeonr.pipelines.private.v1.GetCacheRequest
|
|
496
|
+
*/
|
|
497
|
+
export type GetCacheRequest = Message<"xeonr.pipelines.private.v1.GetCacheRequest"> & {
|
|
498
|
+
/**
|
|
499
|
+
* @generated from field: string attempt_id = 1;
|
|
500
|
+
*/
|
|
501
|
+
attemptId: string;
|
|
502
|
+
/**
|
|
503
|
+
* Key is the resolved key to restore: the `key` of one of the node's
|
|
504
|
+
* declared caches, as it is, or followed by `-` and the lower-case hex
|
|
505
|
+
* SHA-256 the shim computed over that cache's `key_files`.
|
|
506
|
+
*
|
|
507
|
+
* @generated from field: string key = 2;
|
|
508
|
+
*/
|
|
509
|
+
key: string;
|
|
510
|
+
/**
|
|
511
|
+
* FallbackKeys are tried in this order when `key` misses. Each must be one
|
|
512
|
+
* of the `fallback_keys` the same declared cache lists, matched exactly.
|
|
513
|
+
*
|
|
514
|
+
* @generated from field: repeated string fallback_keys = 3;
|
|
515
|
+
*/
|
|
516
|
+
fallbackKeys: string[];
|
|
517
|
+
};
|
|
518
|
+
/**
|
|
519
|
+
* Describes the message xeonr.pipelines.private.v1.GetCacheRequest.
|
|
520
|
+
* Use `create(GetCacheRequestSchema)` to create a new message.
|
|
521
|
+
*/
|
|
522
|
+
export declare const GetCacheRequestSchema: GenMessage<GetCacheRequest>;
|
|
523
|
+
/**
|
|
524
|
+
* @generated from message xeonr.pipelines.private.v1.GetCacheResponse
|
|
525
|
+
*/
|
|
526
|
+
export type GetCacheResponse = Message<"xeonr.pipelines.private.v1.GetCacheResponse"> & {
|
|
527
|
+
/**
|
|
528
|
+
* Hit says a cache was found. False is a miss, and every other field is
|
|
529
|
+
* unset.
|
|
530
|
+
*
|
|
531
|
+
* @generated from field: bool hit = 1;
|
|
532
|
+
*/
|
|
533
|
+
hit: boolean;
|
|
534
|
+
/**
|
|
535
|
+
* MatchedKey is the key that hit: `key`, or the first fallback key that
|
|
536
|
+
* holds a cache.
|
|
537
|
+
*
|
|
538
|
+
* @generated from field: string matched_key = 2;
|
|
539
|
+
*/
|
|
540
|
+
matchedKey: string;
|
|
541
|
+
/**
|
|
542
|
+
* URL is a presigned GET for the archive, valid until `expires_at`. It is
|
|
543
|
+
* a capability: the sidecar uses it and never passes it on.
|
|
544
|
+
*
|
|
545
|
+
* @generated from field: string url = 3;
|
|
546
|
+
*/
|
|
547
|
+
url: string;
|
|
548
|
+
/**
|
|
549
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 4;
|
|
550
|
+
*/
|
|
551
|
+
expiresAt?: Timestamp | undefined;
|
|
552
|
+
/**
|
|
553
|
+
* @generated from field: uint64 size_bytes = 5;
|
|
554
|
+
*/
|
|
555
|
+
sizeBytes: bigint;
|
|
556
|
+
/**
|
|
557
|
+
* Sha256 is the archive's digest, in hex, as its writer gave it. The
|
|
558
|
+
* sidecar verifies the download against it and treats a mismatch as a
|
|
559
|
+
* miss.
|
|
560
|
+
*
|
|
561
|
+
* @generated from field: string sha256 = 6;
|
|
562
|
+
*/
|
|
563
|
+
sha256: string;
|
|
564
|
+
/**
|
|
565
|
+
* CreatedAt is when the cache was saved.
|
|
566
|
+
*
|
|
567
|
+
* @generated from field: google.protobuf.Timestamp created_at = 7;
|
|
568
|
+
*/
|
|
569
|
+
createdAt?: Timestamp | undefined;
|
|
570
|
+
};
|
|
571
|
+
/**
|
|
572
|
+
* Describes the message xeonr.pipelines.private.v1.GetCacheResponse.
|
|
573
|
+
* Use `create(GetCacheResponseSchema)` to create a new message.
|
|
574
|
+
*/
|
|
575
|
+
export declare const GetCacheResponseSchema: GenMessage<GetCacheResponse>;
|
|
576
|
+
/**
|
|
577
|
+
* @generated from message xeonr.pipelines.private.v1.CreateCacheRequest
|
|
578
|
+
*/
|
|
579
|
+
export type CreateCacheRequest = Message<"xeonr.pipelines.private.v1.CreateCacheRequest"> & {
|
|
580
|
+
/**
|
|
581
|
+
* @generated from field: string attempt_id = 1;
|
|
582
|
+
*/
|
|
583
|
+
attemptId: string;
|
|
584
|
+
/**
|
|
585
|
+
* Key is the resolved key to save under, formed as for GetCache. Fallback
|
|
586
|
+
* keys are only ever read: a cache is saved under its own key.
|
|
587
|
+
*
|
|
588
|
+
* @generated from field: string key = 2;
|
|
589
|
+
*/
|
|
590
|
+
key: string;
|
|
591
|
+
/**
|
|
592
|
+
* SizeBytes is the exact size of the archive that will be uploaded. The
|
|
593
|
+
* platform chooses a single PUT or a multipart upload from it.
|
|
594
|
+
*
|
|
595
|
+
* @generated from field: uint64 size_bytes = 3;
|
|
596
|
+
*/
|
|
597
|
+
sizeBytes: bigint;
|
|
598
|
+
/**
|
|
599
|
+
* Sha256 is the archive's digest, in hex. A single PUT is accepted by the
|
|
600
|
+
* store only with this digest; either way it is what GetCache hands the
|
|
601
|
+
* reader to verify against.
|
|
602
|
+
*
|
|
603
|
+
* @generated from field: string sha256 = 4;
|
|
604
|
+
*/
|
|
605
|
+
sha256: string;
|
|
606
|
+
};
|
|
607
|
+
/**
|
|
608
|
+
* Describes the message xeonr.pipelines.private.v1.CreateCacheRequest.
|
|
609
|
+
* Use `create(CreateCacheRequestSchema)` to create a new message.
|
|
610
|
+
*/
|
|
611
|
+
export declare const CreateCacheRequestSchema: GenMessage<CreateCacheRequest>;
|
|
612
|
+
/**
|
|
613
|
+
* @generated from message xeonr.pipelines.private.v1.CreateCacheResponse
|
|
614
|
+
*/
|
|
615
|
+
export type CreateCacheResponse = Message<"xeonr.pipelines.private.v1.CreateCacheResponse"> & {
|
|
616
|
+
/**
|
|
617
|
+
* Exists says the key already holds a cache in this attempt's scope: the
|
|
618
|
+
* first writer won, there is nothing to upload, and every other field is
|
|
619
|
+
* unset.
|
|
620
|
+
*
|
|
621
|
+
* @generated from field: bool exists = 1;
|
|
622
|
+
*/
|
|
623
|
+
exists: boolean;
|
|
624
|
+
/**
|
|
625
|
+
* UploadID names the reservation. For a multipart upload it is what
|
|
626
|
+
* SignUploadPart, CompleteMultipartUpload and AbortMultipartUpload take.
|
|
627
|
+
*
|
|
628
|
+
* @generated from field: string upload_id = 2;
|
|
629
|
+
*/
|
|
630
|
+
uploadId: string;
|
|
631
|
+
/**
|
|
632
|
+
* URL is a presigned PUT for the whole archive, valid until `expires_at`.
|
|
633
|
+
* Empty when the upload is multipart.
|
|
634
|
+
*
|
|
635
|
+
* @generated from field: string url = 3;
|
|
636
|
+
*/
|
|
637
|
+
url: string;
|
|
638
|
+
/**
|
|
639
|
+
* Headers must be sent with the PUT exactly as given.
|
|
640
|
+
*
|
|
641
|
+
* @generated from field: map<string, string> headers = 4;
|
|
642
|
+
*/
|
|
643
|
+
headers: {
|
|
644
|
+
[key: string]: string;
|
|
645
|
+
};
|
|
646
|
+
/**
|
|
647
|
+
* ExpiresAt is when the URL, or the multipart reservation, lapses. An
|
|
648
|
+
* upload not finished by then is discarded.
|
|
649
|
+
*
|
|
650
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 5;
|
|
651
|
+
*/
|
|
652
|
+
expiresAt?: Timestamp | undefined;
|
|
653
|
+
/**
|
|
654
|
+
* PartSizeBytes, when not zero, says the upload is multipart: it is the
|
|
655
|
+
* size every part but the last must have.
|
|
656
|
+
*
|
|
657
|
+
* @generated from field: uint64 part_size_bytes = 6;
|
|
658
|
+
*/
|
|
659
|
+
partSizeBytes: bigint;
|
|
660
|
+
};
|
|
661
|
+
/**
|
|
662
|
+
* Describes the message xeonr.pipelines.private.v1.CreateCacheResponse.
|
|
663
|
+
* Use `create(CreateCacheResponseSchema)` to create a new message.
|
|
664
|
+
*/
|
|
665
|
+
export declare const CreateCacheResponseSchema: GenMessage<CreateCacheResponse>;
|
|
666
|
+
/**
|
|
667
|
+
* @generated from message xeonr.pipelines.private.v1.AppendIssuesRequest
|
|
668
|
+
*/
|
|
669
|
+
export type AppendIssuesRequest = Message<"xeonr.pipelines.private.v1.AppendIssuesRequest"> & {
|
|
670
|
+
/**
|
|
671
|
+
* @generated from field: string attempt_id = 1;
|
|
672
|
+
*/
|
|
673
|
+
attemptId: string;
|
|
674
|
+
/**
|
|
675
|
+
* @generated from field: repeated xeonr.pipelines.private.v1.Issue issues = 2;
|
|
676
|
+
*/
|
|
677
|
+
issues: Issue[];
|
|
678
|
+
};
|
|
679
|
+
/**
|
|
680
|
+
* Describes the message xeonr.pipelines.private.v1.AppendIssuesRequest.
|
|
681
|
+
* Use `create(AppendIssuesRequestSchema)` to create a new message.
|
|
682
|
+
*/
|
|
683
|
+
export declare const AppendIssuesRequestSchema: GenMessage<AppendIssuesRequest>;
|
|
684
|
+
/**
|
|
685
|
+
* @generated from message xeonr.pipelines.private.v1.AppendIssuesResponse
|
|
686
|
+
*/
|
|
687
|
+
export type AppendIssuesResponse = Message<"xeonr.pipelines.private.v1.AppendIssuesResponse"> & {
|
|
688
|
+
/**
|
|
689
|
+
* Accepted counts issues stored; the rest were over the run's cap.
|
|
690
|
+
*
|
|
691
|
+
* @generated from field: uint32 accepted = 1;
|
|
692
|
+
*/
|
|
693
|
+
accepted: number;
|
|
694
|
+
};
|
|
695
|
+
/**
|
|
696
|
+
* Describes the message xeonr.pipelines.private.v1.AppendIssuesResponse.
|
|
697
|
+
* Use `create(AppendIssuesResponseSchema)` to create a new message.
|
|
698
|
+
*/
|
|
699
|
+
export declare const AppendIssuesResponseSchema: GenMessage<AppendIssuesResponse>;
|
|
700
|
+
/**
|
|
701
|
+
* @generated from message xeonr.pipelines.private.v1.SetProgressRequest
|
|
702
|
+
*/
|
|
703
|
+
export type SetProgressRequest = Message<"xeonr.pipelines.private.v1.SetProgressRequest"> & {
|
|
704
|
+
/**
|
|
705
|
+
* @generated from field: string attempt_id = 1;
|
|
706
|
+
*/
|
|
707
|
+
attemptId: string;
|
|
708
|
+
/**
|
|
709
|
+
* Fraction is how far along the attempt is, from 0 to 1.
|
|
710
|
+
*
|
|
711
|
+
* @generated from field: double fraction = 2;
|
|
712
|
+
*/
|
|
713
|
+
fraction: number;
|
|
714
|
+
/**
|
|
715
|
+
* Processed, Total and Failed count items, for work that has them. A zero
|
|
716
|
+
* total means unknown.
|
|
717
|
+
*
|
|
718
|
+
* @generated from field: uint64 processed = 3;
|
|
719
|
+
*/
|
|
720
|
+
processed: bigint;
|
|
721
|
+
/**
|
|
722
|
+
* @generated from field: uint64 total = 4;
|
|
723
|
+
*/
|
|
724
|
+
total: bigint;
|
|
725
|
+
/**
|
|
726
|
+
* @generated from field: uint64 failed = 5;
|
|
727
|
+
*/
|
|
728
|
+
failed: bigint;
|
|
729
|
+
/**
|
|
730
|
+
* Message says what the attempt is doing now.
|
|
731
|
+
*
|
|
732
|
+
* @generated from field: string message = 6;
|
|
733
|
+
*/
|
|
734
|
+
message: string;
|
|
735
|
+
};
|
|
736
|
+
/**
|
|
737
|
+
* Describes the message xeonr.pipelines.private.v1.SetProgressRequest.
|
|
738
|
+
* Use `create(SetProgressRequestSchema)` to create a new message.
|
|
739
|
+
*/
|
|
740
|
+
export declare const SetProgressRequestSchema: GenMessage<SetProgressRequest>;
|
|
741
|
+
/**
|
|
742
|
+
* @generated from message xeonr.pipelines.private.v1.SetProgressResponse
|
|
743
|
+
*/
|
|
744
|
+
export type SetProgressResponse = Message<"xeonr.pipelines.private.v1.SetProgressResponse"> & {};
|
|
745
|
+
/**
|
|
746
|
+
* Describes the message xeonr.pipelines.private.v1.SetProgressResponse.
|
|
747
|
+
* Use `create(SetProgressResponseSchema)` to create a new message.
|
|
748
|
+
*/
|
|
749
|
+
export declare const SetProgressResponseSchema: GenMessage<SetProgressResponse>;
|
|
750
|
+
/**
|
|
751
|
+
* IssueSeverity ranks an issue.
|
|
752
|
+
*
|
|
753
|
+
* @generated from enum xeonr.pipelines.private.v1.IssueSeverity
|
|
754
|
+
*/
|
|
755
|
+
export declare enum IssueSeverity {
|
|
756
|
+
/**
|
|
757
|
+
* @generated from enum value: ISSUE_SEVERITY_UNSPECIFIED = 0;
|
|
758
|
+
*/
|
|
759
|
+
UNSPECIFIED = 0,
|
|
760
|
+
/**
|
|
761
|
+
* @generated from enum value: ISSUE_SEVERITY_INFO = 1;
|
|
762
|
+
*/
|
|
763
|
+
INFO = 1,
|
|
764
|
+
/**
|
|
765
|
+
* @generated from enum value: ISSUE_SEVERITY_WARNING = 2;
|
|
766
|
+
*/
|
|
767
|
+
WARNING = 2,
|
|
768
|
+
/**
|
|
769
|
+
* @generated from enum value: ISSUE_SEVERITY_ERROR = 3;
|
|
770
|
+
*/
|
|
771
|
+
ERROR = 3
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
* Describes the enum xeonr.pipelines.private.v1.IssueSeverity.
|
|
775
|
+
*/
|
|
776
|
+
export declare const IssueSeveritySchema: GenEnum<IssueSeverity>;
|
|
777
|
+
/**
|
|
778
|
+
* AttemptService is what the sidecar of one running attempt calls: staging
|
|
779
|
+
* its inputs, committing its outputs, and restoring and saving its caches.
|
|
780
|
+
* An SDK worker may call it too, for issues and progress.
|
|
781
|
+
*
|
|
782
|
+
* Every RPC is authenticated by the attempt token StartAttempt minted, sent
|
|
783
|
+
* as the bearer, and by nothing else: `no_authentication` here means "not a
|
|
784
|
+
* Xeonr Auth token", and the handler verifies the token (EdDSA, audience
|
|
785
|
+
* `pipelines-api`) and takes the attempt, run, node, tier and claim epoch
|
|
786
|
+
* from its claims. It also checks, on every call, that the attempt is still
|
|
787
|
+
* RUNNING at that epoch, so a cancel or an abandonment revokes the token at
|
|
788
|
+
* once; a miss answers `failed_precondition`. The `attempt_id` in each
|
|
789
|
+
* request is only a cross-check against the token and is refused when it
|
|
790
|
+
* differs.
|
|
791
|
+
*
|
|
792
|
+
* Outputs are keyed by attempt. They become the node's only when the attempt
|
|
793
|
+
* settles as the node's result; a late write from an abandoned attempt is
|
|
794
|
+
* refused and nothing it wrote is ever visible.
|
|
795
|
+
*
|
|
796
|
+
* No presigned URL is ever placed in a step's inputs. The sidecar asks for
|
|
797
|
+
* one at the moment it needs it, uses it itself, and hands the step a path.
|
|
798
|
+
*
|
|
799
|
+
* Caches are the one thing here that outlives the attempt and crosses runs,
|
|
800
|
+
* so they are scoped by more than the attempt: the server files every cache
|
|
801
|
+
* under the tenant, the resource and the trust tier of the attempt, all three
|
|
802
|
+
* read from the attempt token and none from the request. An attempt reads
|
|
803
|
+
* and writes only its own tier's caches: a `trusted` or `deploy` attempt
|
|
804
|
+
* never reads what an `untrusted` one wrote.
|
|
805
|
+
*
|
|
806
|
+
* Verbs outside api.rpc-naming's, each for a reason:
|
|
807
|
+
*
|
|
808
|
+
* - CreateMultipartUpload, SignUploadPart, CompleteMultipartUpload,
|
|
809
|
+
* AbortMultipartUpload and FinaliseBlobOutput mirror the object store's
|
|
810
|
+
* multipart vocabulary, so the upload reads as the protocol it wraps.
|
|
811
|
+
* - AppendIssues appends to an ordered stream.
|
|
812
|
+
*
|
|
813
|
+
* @generated from service xeonr.pipelines.private.v1.AttemptService
|
|
814
|
+
*/
|
|
815
|
+
export declare const AttemptService: GenService<{
|
|
816
|
+
/**
|
|
817
|
+
* Get a blob input
|
|
818
|
+
*
|
|
819
|
+
* Returns a short-lived download URL for one blob of one input, presigned
|
|
820
|
+
* now. The sidecar calls it per blob as it stages; URLs are not handed out
|
|
821
|
+
* in advance, so none can expire before use. Milestone 1.
|
|
822
|
+
*
|
|
823
|
+
* @generated from rpc xeonr.pipelines.private.v1.AttemptService.GetBlobInput
|
|
824
|
+
*/
|
|
825
|
+
getBlobInput: {
|
|
826
|
+
methodKind: "unary";
|
|
827
|
+
input: typeof GetBlobInputRequestSchema;
|
|
828
|
+
output: typeof GetBlobInputResponseSchema;
|
|
829
|
+
};
|
|
830
|
+
/**
|
|
831
|
+
* Create a blob output
|
|
832
|
+
*
|
|
833
|
+
* Reserves a blob output of a known size and returns one presigned upload
|
|
834
|
+
* URL for it. For a blob too large for one request, or of unknown size,
|
|
835
|
+
* use the multipart RPCs instead. The output is PREPARED until
|
|
836
|
+
* FinaliseBlobOutput. Milestone 1.
|
|
837
|
+
*
|
|
838
|
+
* @generated from rpc xeonr.pipelines.private.v1.AttemptService.CreateBlobOutput
|
|
839
|
+
*/
|
|
840
|
+
createBlobOutput: {
|
|
841
|
+
methodKind: "unary";
|
|
842
|
+
input: typeof CreateBlobOutputRequestSchema;
|
|
843
|
+
output: typeof CreateBlobOutputResponseSchema;
|
|
844
|
+
};
|
|
845
|
+
/**
|
|
846
|
+
* Create a multipart upload
|
|
847
|
+
*
|
|
848
|
+
* Reserves a blob output to be uploaded in parts. A cache archive too
|
|
849
|
+
* large for one request needs no call here: CreateCache opens its
|
|
850
|
+
* multipart upload itself. Milestone 1.
|
|
851
|
+
*
|
|
852
|
+
* @generated from rpc xeonr.pipelines.private.v1.AttemptService.CreateMultipartUpload
|
|
853
|
+
*/
|
|
854
|
+
createMultipartUpload: {
|
|
855
|
+
methodKind: "unary";
|
|
856
|
+
input: typeof CreateMultipartUploadRequestSchema;
|
|
857
|
+
output: typeof CreateMultipartUploadResponseSchema;
|
|
858
|
+
};
|
|
859
|
+
/**
|
|
860
|
+
* Sign an upload part
|
|
861
|
+
*
|
|
862
|
+
* Returns a presigned URL for one part of a multipart upload: one that
|
|
863
|
+
* CreateMultipartUpload opened for a blob output, or CreateCache for a
|
|
864
|
+
* cache archive. Milestone 1.
|
|
865
|
+
*
|
|
866
|
+
* @generated from rpc xeonr.pipelines.private.v1.AttemptService.SignUploadPart
|
|
867
|
+
*/
|
|
868
|
+
signUploadPart: {
|
|
869
|
+
methodKind: "unary";
|
|
870
|
+
input: typeof SignUploadPartRequestSchema;
|
|
871
|
+
output: typeof SignUploadPartResponseSchema;
|
|
872
|
+
};
|
|
873
|
+
/**
|
|
874
|
+
* Complete a multipart upload
|
|
875
|
+
*
|
|
876
|
+
* Assembles the parts into the object. A blob output is still PREPARED
|
|
877
|
+
* until FinaliseBlobOutput. A cache archive is saved by this call and has
|
|
878
|
+
* no finalise: the platform checks the object against the size CreateCache
|
|
879
|
+
* was given and, when the key was saved by another attempt meanwhile,
|
|
880
|
+
* discards this upload and answers success (the first writer won).
|
|
881
|
+
* Milestone 1.
|
|
882
|
+
*
|
|
883
|
+
* @generated from rpc xeonr.pipelines.private.v1.AttemptService.CompleteMultipartUpload
|
|
884
|
+
*/
|
|
885
|
+
completeMultipartUpload: {
|
|
886
|
+
methodKind: "unary";
|
|
887
|
+
input: typeof CompleteMultipartUploadRequestSchema;
|
|
888
|
+
output: typeof CompleteMultipartUploadResponseSchema;
|
|
889
|
+
};
|
|
890
|
+
/**
|
|
891
|
+
* Abort a multipart upload
|
|
892
|
+
*
|
|
893
|
+
* Discards the parts uploaded so far and the reservation, of a blob output
|
|
894
|
+
* or of a cache archive. Idempotent. Milestone 1.
|
|
895
|
+
*
|
|
896
|
+
* @generated from rpc xeonr.pipelines.private.v1.AttemptService.AbortMultipartUpload
|
|
897
|
+
*/
|
|
898
|
+
abortMultipartUpload: {
|
|
899
|
+
methodKind: "unary";
|
|
900
|
+
input: typeof AbortMultipartUploadRequestSchema;
|
|
901
|
+
output: typeof AbortMultipartUploadResponseSchema;
|
|
902
|
+
};
|
|
903
|
+
/**
|
|
904
|
+
* Finalise a blob output
|
|
905
|
+
*
|
|
906
|
+
* PREPARED -> FINAL: the platform checks the object exists with the size
|
|
907
|
+
* and digest given, and against the slot's limits, and records it as the
|
|
908
|
+
* attempt's output. Idempotent for the same upload. Only for a blob
|
|
909
|
+
* output: a cache upload is refused with `invalid_argument`. Milestone 1.
|
|
910
|
+
*
|
|
911
|
+
* @generated from rpc xeonr.pipelines.private.v1.AttemptService.FinaliseBlobOutput
|
|
912
|
+
*/
|
|
913
|
+
finaliseBlobOutput: {
|
|
914
|
+
methodKind: "unary";
|
|
915
|
+
input: typeof FinaliseBlobOutputRequestSchema;
|
|
916
|
+
output: typeof FinaliseBlobOutputResponseSchema;
|
|
917
|
+
};
|
|
918
|
+
/**
|
|
919
|
+
* Set a kv output
|
|
920
|
+
*
|
|
921
|
+
* Writes one kv output of the attempt, replacing any value written before
|
|
922
|
+
* for the slot. The value is checked against the slot's schema. Milestone 1.
|
|
923
|
+
*
|
|
924
|
+
* @generated from rpc xeonr.pipelines.private.v1.AttemptService.SetKVOutput
|
|
925
|
+
*/
|
|
926
|
+
setKVOutput: {
|
|
927
|
+
methodKind: "unary";
|
|
928
|
+
input: typeof SetKVOutputRequestSchema;
|
|
929
|
+
output: typeof SetKVOutputResponseSchema;
|
|
930
|
+
};
|
|
931
|
+
/**
|
|
932
|
+
* Create a job identity token
|
|
933
|
+
*
|
|
934
|
+
* Mints an audience-scoped, OIDC-shaped RS256 JWT for the step to present
|
|
935
|
+
* to another service, verifiable offline from pipelines-api's JWKS. Only
|
|
936
|
+
* for an audience the node was granted and the platform's policy allows;
|
|
937
|
+
* anything else is `permission_denied`. Its claims copy the run's attested
|
|
938
|
+
* facts the policy names and add the platform's own (run, node, attempt,
|
|
939
|
+
* tier, package). Its signing key is separate from the attempt token's.
|
|
940
|
+
* Milestone 2.
|
|
941
|
+
*
|
|
942
|
+
* @generated from rpc xeonr.pipelines.private.v1.AttemptService.CreateIdToken
|
|
943
|
+
*/
|
|
944
|
+
createIdToken: {
|
|
945
|
+
methodKind: "unary";
|
|
946
|
+
input: typeof CreateIdTokenRequestSchema;
|
|
947
|
+
output: typeof CreateIdTokenResponseSchema;
|
|
948
|
+
};
|
|
949
|
+
/**
|
|
950
|
+
* Get a cache
|
|
951
|
+
*
|
|
952
|
+
* Looks a cache up for restoring: tries `key`, then each of
|
|
953
|
+
* `fallback_keys` in order, and returns the first that holds a saved
|
|
954
|
+
* archive as a short-lived presigned download, with which key matched. No
|
|
955
|
+
* match is a miss (`hit` false), which is normal and not an error: the
|
|
956
|
+
* step runs without the cache.
|
|
957
|
+
*
|
|
958
|
+
* The lookup is confined to the caches of the attempt's tenant, resource
|
|
959
|
+
* and trust tier, which the server takes from the attempt token; nothing in
|
|
960
|
+
* the request can widen it. Every key must belong to a cache the node
|
|
961
|
+
* declares (see GetCacheRequest), so a step cannot read another node's
|
|
962
|
+
* cache by guessing its name; anything else is `permission_denied`. Only
|
|
963
|
+
* an archive that was saved whole is ever a hit. Milestone 2.
|
|
964
|
+
*
|
|
965
|
+
* @generated from rpc xeonr.pipelines.private.v1.AttemptService.GetCache
|
|
966
|
+
*/
|
|
967
|
+
getCache: {
|
|
968
|
+
methodKind: "unary";
|
|
969
|
+
input: typeof GetCacheRequestSchema;
|
|
970
|
+
output: typeof GetCacheResponseSchema;
|
|
971
|
+
};
|
|
972
|
+
/**
|
|
973
|
+
* Create a cache
|
|
974
|
+
*
|
|
975
|
+
* Reserves the save of one cache archive under a key and says how to
|
|
976
|
+
* upload it: one presigned PUT for an archive that fits a single request,
|
|
977
|
+
* or a multipart upload, already opened, for a larger one, whose parts go
|
|
978
|
+
* through SignUploadPart and CompleteMultipartUpload (AbortMultipartUpload
|
|
979
|
+
* gives it up). There is no finalise: the cache is saved, and visible to
|
|
980
|
+
* GetCache, when the store holds the whole object, which it accepts only
|
|
981
|
+
* at the size and digest given here.
|
|
982
|
+
*
|
|
983
|
+
* A key is immutable and the first writer wins. When the key already holds
|
|
984
|
+
* a cache the answer says so (`exists`) and reserves nothing: the caller
|
|
985
|
+
* skips the upload. Two attempts racing to save the same key may both be
|
|
986
|
+
* given an upload; the store keeps the first to finish and the other's is
|
|
987
|
+
* discarded, which is not an error for either.
|
|
988
|
+
*
|
|
989
|
+
* The cache is filed under the attempt's tenant, resource and trust tier,
|
|
990
|
+
* from the attempt token, never from the request. Refused with
|
|
991
|
+
* `permission_denied` unless the node declares a cache of that key that it
|
|
992
|
+
* may save (policy PULL_PUSH, the default; not PULL), and with
|
|
993
|
+
* `resource_exhausted` when the archive is over the tenant's cache quota. An attempt may save while it is RUNNING,
|
|
994
|
+
* whatever its result will be: `save_when` is the runner's to apply.
|
|
995
|
+
* Milestone 2.
|
|
996
|
+
*
|
|
997
|
+
* @generated from rpc xeonr.pipelines.private.v1.AttemptService.CreateCache
|
|
998
|
+
*/
|
|
999
|
+
createCache: {
|
|
1000
|
+
methodKind: "unary";
|
|
1001
|
+
input: typeof CreateCacheRequestSchema;
|
|
1002
|
+
output: typeof CreateCacheResponseSchema;
|
|
1003
|
+
};
|
|
1004
|
+
/**
|
|
1005
|
+
* Append issues
|
|
1006
|
+
*
|
|
1007
|
+
* Attaches structured, non-fatal problems to the attempt: a run can
|
|
1008
|
+
* succeed and still carry issues. Capped per run. Milestone 4; shape only.
|
|
1009
|
+
*
|
|
1010
|
+
* @generated from rpc xeonr.pipelines.private.v1.AttemptService.AppendIssues
|
|
1011
|
+
*/
|
|
1012
|
+
appendIssues: {
|
|
1013
|
+
methodKind: "unary";
|
|
1014
|
+
input: typeof AppendIssuesRequestSchema;
|
|
1015
|
+
output: typeof AppendIssuesResponseSchema;
|
|
1016
|
+
};
|
|
1017
|
+
/**
|
|
1018
|
+
* Set progress
|
|
1019
|
+
*
|
|
1020
|
+
* Replaces the attempt's progress. Progress shown never goes backwards.
|
|
1021
|
+
* Milestone 4; shape only.
|
|
1022
|
+
*
|
|
1023
|
+
* @generated from rpc xeonr.pipelines.private.v1.AttemptService.SetProgress
|
|
1024
|
+
*/
|
|
1025
|
+
setProgress: {
|
|
1026
|
+
methodKind: "unary";
|
|
1027
|
+
input: typeof SetProgressRequestSchema;
|
|
1028
|
+
output: typeof SetProgressResponseSchema;
|
|
1029
|
+
};
|
|
1030
|
+
}>;
|
|
1031
|
+
//# sourceMappingURL=attempt_pb.d.ts.map
|