@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.
Files changed (102) hide show
  1. package/README.md +267 -2
  2. package/dist/auth.d.ts +72 -0
  3. package/dist/auth.d.ts.map +1 -0
  4. package/dist/auth.js +139 -0
  5. package/dist/auth.js.map +1 -0
  6. package/dist/client.d.ts +118 -0
  7. package/dist/client.d.ts.map +1 -0
  8. package/dist/client.js +101 -0
  9. package/dist/client.js.map +1 -0
  10. package/dist/errors.d.ts +77 -0
  11. package/dist/errors.d.ts.map +1 -0
  12. package/dist/errors.js +72 -0
  13. package/dist/errors.js.map +1 -0
  14. package/dist/gen/buf/validate/validate_pb.d.ts +4828 -0
  15. package/dist/gen/buf/validate/validate_pb.d.ts.map +1 -0
  16. package/dist/gen/buf/validate/validate_pb.js +357 -0
  17. package/dist/gen/buf/validate/validate_pb.js.map +1 -0
  18. package/dist/gen/gnostic/openapi/v3/annotations_pb.d.ts +24 -0
  19. package/dist/gen/gnostic/openapi/v3/annotations_pb.d.ts.map +1 -0
  20. package/dist/gen/gnostic/openapi/v3/annotations_pb.js +37 -0
  21. package/dist/gen/gnostic/openapi/v3/annotations_pb.js.map +1 -0
  22. package/dist/gen/gnostic/openapi/v3/openapiv3_pb.d.ts +2245 -0
  23. package/dist/gen/gnostic/openapi/v3/openapiv3_pb.d.ts.map +1 -0
  24. package/dist/gen/gnostic/openapi/v3/openapiv3_pb.js +410 -0
  25. package/dist/gen/gnostic/openapi/v3/openapiv3_pb.js.map +1 -0
  26. package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.d.ts +1031 -0
  27. package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.d.ts.map +1 -0
  28. package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.js +219 -0
  29. package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.js.map +1 -0
  30. package/dist/gen/xeonr/pipelines/private/v1/runners_pb.d.ts +190 -0
  31. package/dist/gen/xeonr/pipelines/private/v1/runners_pb.d.ts.map +1 -0
  32. package/dist/gen/xeonr/pipelines/private/v1/runners_pb.js +53 -0
  33. package/dist/gen/xeonr/pipelines/private/v1/runners_pb.js.map +1 -0
  34. package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.d.ts +1161 -0
  35. package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.d.ts.map +1 -0
  36. package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.js +269 -0
  37. package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.js.map +1 -0
  38. package/dist/gen/xeonr/pipelines/private/v1/worker_pb.d.ts +915 -0
  39. package/dist/gen/xeonr/pipelines/private/v1/worker_pb.d.ts.map +1 -0
  40. package/dist/gen/xeonr/pipelines/private/v1/worker_pb.js +159 -0
  41. package/dist/gen/xeonr/pipelines/private/v1/worker_pb.js.map +1 -0
  42. package/dist/gen/xeonr/pipelines/v1/common_pb.d.ts +550 -0
  43. package/dist/gen/xeonr/pipelines/v1/common_pb.d.ts.map +1 -0
  44. package/dist/gen/xeonr/pipelines/v1/common_pb.js +453 -0
  45. package/dist/gen/xeonr/pipelines/v1/common_pb.js.map +1 -0
  46. package/dist/gen/xeonr/pipelines/v1/definition_pb.d.ts +760 -0
  47. package/dist/gen/xeonr/pipelines/v1/definition_pb.d.ts.map +1 -0
  48. package/dist/gen/xeonr/pipelines/v1/definition_pb.js +190 -0
  49. package/dist/gen/xeonr/pipelines/v1/definition_pb.js.map +1 -0
  50. package/dist/gen/xeonr/pipelines/v1/pools_pb.d.ts +800 -0
  51. package/dist/gen/xeonr/pipelines/v1/pools_pb.d.ts.map +1 -0
  52. package/dist/gen/xeonr/pipelines/v1/pools_pb.js +247 -0
  53. package/dist/gen/xeonr/pipelines/v1/pools_pb.js.map +1 -0
  54. package/dist/gen/xeonr/pipelines/v1/registry_pb.d.ts +895 -0
  55. package/dist/gen/xeonr/pipelines/v1/registry_pb.d.ts.map +1 -0
  56. package/dist/gen/xeonr/pipelines/v1/registry_pb.js +277 -0
  57. package/dist/gen/xeonr/pipelines/v1/registry_pb.js.map +1 -0
  58. package/dist/gen/xeonr/pipelines/v1/runs_pb.d.ts +1217 -0
  59. package/dist/gen/xeonr/pipelines/v1/runs_pb.d.ts.map +1 -0
  60. package/dist/gen/xeonr/pipelines/v1/runs_pb.js +204 -0
  61. package/dist/gen/xeonr/pipelines/v1/runs_pb.js.map +1 -0
  62. package/dist/gen/xeonr/pipelines/v1/secrets_pb.d.ts +642 -0
  63. package/dist/gen/xeonr/pipelines/v1/secrets_pb.d.ts.map +1 -0
  64. package/dist/gen/xeonr/pipelines/v1/secrets_pb.js +181 -0
  65. package/dist/gen/xeonr/pipelines/v1/secrets_pb.js.map +1 -0
  66. package/dist/gen/xeonr/pipelines/v1/sinks_pb.d.ts +381 -0
  67. package/dist/gen/xeonr/pipelines/v1/sinks_pb.d.ts.map +1 -0
  68. package/dist/gen/xeonr/pipelines/v1/sinks_pb.js +145 -0
  69. package/dist/gen/xeonr/pipelines/v1/sinks_pb.js.map +1 -0
  70. package/dist/gen/xeonr/platform/v1/options_pb.d.ts +313 -0
  71. package/dist/gen/xeonr/platform/v1/options_pb.d.ts.map +1 -0
  72. package/dist/gen/xeonr/platform/v1/options_pb.js +235 -0
  73. package/dist/gen/xeonr/platform/v1/options_pb.js.map +1 -0
  74. package/dist/handler.d.ts +94 -0
  75. package/dist/handler.d.ts.map +1 -0
  76. package/dist/handler.js +18 -0
  77. package/dist/handler.js.map +1 -0
  78. package/dist/index.d.ts +29 -0
  79. package/dist/index.d.ts.map +1 -0
  80. package/dist/index.js +23 -0
  81. package/dist/index.js.map +1 -0
  82. package/dist/internal/time.d.ts +8 -0
  83. package/dist/internal/time.d.ts.map +1 -0
  84. package/dist/internal/time.js +25 -0
  85. package/dist/internal/time.js.map +1 -0
  86. package/dist/logship.d.ts +67 -0
  87. package/dist/logship.d.ts.map +1 -0
  88. package/dist/logship.js +176 -0
  89. package/dist/logship.js.map +1 -0
  90. package/dist/testing/index.d.ts +202 -0
  91. package/dist/testing/index.d.ts.map +1 -0
  92. package/dist/testing/index.js +909 -0
  93. package/dist/testing/index.js.map +1 -0
  94. package/dist/transport.d.ts +43 -0
  95. package/dist/transport.d.ts.map +1 -0
  96. package/dist/transport.js +44 -0
  97. package/dist/transport.js.map +1 -0
  98. package/dist/worker.d.ts +213 -0
  99. package/dist/worker.d.ts.map +1 -0
  100. package/dist/worker.js +664 -0
  101. package/dist/worker.js.map +1 -0
  102. package/package.json +70 -3
@@ -0,0 +1,1161 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Timestamp, Value } from "@bufbuild/protobuf/wkt";
3
+ import type { Issue } from "./attempt_pb.js";
4
+ import type { Resource, SecretType } from "../../v1/common_pb.js";
5
+ import type { Manifest } from "../../v1/registry_pb.js";
6
+ import type { JsonObject, Message } from "@bufbuild/protobuf";
7
+ /**
8
+ * Describes the file xeonr/pipelines/private/v1/step_local.proto.
9
+ */
10
+ export declare const file_xeonr_pipelines_private_v1_step_local: GenFile;
11
+ /**
12
+ * StagedInput is one input blob the sidecar materialised to a file before
13
+ * the step started. The step reads a path, never a URL.
14
+ *
15
+ * @generated from message xeonr.pipelines.private.v1.StagedInput
16
+ */
17
+ export type StagedInput = Message<"xeonr.pipelines.private.v1.StagedInput"> & {
18
+ /**
19
+ * Path is the file's absolute path under the input staging directory.
20
+ *
21
+ * @generated from field: string path = 1;
22
+ */
23
+ path: string;
24
+ /**
25
+ * @generated from field: string media_type = 2;
26
+ */
27
+ mediaType: string;
28
+ /**
29
+ * @generated from field: uint64 size_bytes = 3;
30
+ */
31
+ sizeBytes: bigint;
32
+ /**
33
+ * Filename is the blob's original name.
34
+ *
35
+ * @generated from field: string filename = 4;
36
+ */
37
+ filename: string;
38
+ };
39
+ /**
40
+ * Describes the message xeonr.pipelines.private.v1.StagedInput.
41
+ * Use `create(StagedInputSchema)` to create a new message.
42
+ */
43
+ export declare const StagedInputSchema: GenMessage<StagedInput>;
44
+ /**
45
+ * StagedInputs are the files of one input: one, or several for an input
46
+ * that takes many.
47
+ *
48
+ * @generated from message xeonr.pipelines.private.v1.StagedInputs
49
+ */
50
+ export type StagedInputs = Message<"xeonr.pipelines.private.v1.StagedInputs"> & {
51
+ /**
52
+ * @generated from field: repeated xeonr.pipelines.private.v1.StagedInput files = 1;
53
+ */
54
+ files: StagedInput[];
55
+ };
56
+ /**
57
+ * Describes the message xeonr.pipelines.private.v1.StagedInputs.
58
+ * Use `create(StagedInputsSchema)` to create a new message.
59
+ */
60
+ export declare const StagedInputsSchema: GenMessage<StagedInputs>;
61
+ /**
62
+ * LogLine is one structured log line.
63
+ *
64
+ * @generated from message xeonr.pipelines.private.v1.LogLine
65
+ */
66
+ export type LogLine = Message<"xeonr.pipelines.private.v1.LogLine"> & {
67
+ /**
68
+ * @generated from field: google.protobuf.Timestamp ts = 1;
69
+ */
70
+ ts?: Timestamp | undefined;
71
+ /**
72
+ * Level is `debug`, `info`, `warn` or `error`.
73
+ *
74
+ * @generated from field: string level = 2;
75
+ */
76
+ level: string;
77
+ /**
78
+ * @generated from field: string msg = 3;
79
+ */
80
+ msg: string;
81
+ /**
82
+ * Attrs are structured attributes. At most 16 KiB encoded.
83
+ *
84
+ * @generated from field: google.protobuf.Struct attrs = 4;
85
+ */
86
+ attrs?: JsonObject | undefined;
87
+ /**
88
+ * @generated from field: xeonr.pipelines.private.v1.LogSource source = 5;
89
+ */
90
+ source: LogSource;
91
+ };
92
+ /**
93
+ * Describes the message xeonr.pipelines.private.v1.LogLine.
94
+ * Use `create(LogLineSchema)` to create a new message.
95
+ */
96
+ export declare const LogLineSchema: GenMessage<LogLine>;
97
+ /**
98
+ * StepSpan is one OpenTelemetry span the step's runtime captured.
99
+ *
100
+ * @generated from message xeonr.pipelines.private.v1.StepSpan
101
+ */
102
+ export type StepSpan = Message<"xeonr.pipelines.private.v1.StepSpan"> & {
103
+ /**
104
+ * @generated from field: string trace_id = 1;
105
+ */
106
+ traceId: string;
107
+ /**
108
+ * @generated from field: string span_id = 2;
109
+ */
110
+ spanId: string;
111
+ /**
112
+ * @generated from field: string parent_span_id = 3;
113
+ */
114
+ parentSpanId: string;
115
+ /**
116
+ * @generated from field: string name = 4;
117
+ */
118
+ name: string;
119
+ /**
120
+ * @generated from field: google.protobuf.Timestamp started_at = 5;
121
+ */
122
+ startedAt?: Timestamp | undefined;
123
+ /**
124
+ * @generated from field: google.protobuf.Timestamp ended_at = 6;
125
+ */
126
+ endedAt?: Timestamp | undefined;
127
+ /**
128
+ * Status is `ok` or `error`.
129
+ *
130
+ * @generated from field: string status = 7;
131
+ */
132
+ status: string;
133
+ /**
134
+ * @generated from field: string status_message = 8;
135
+ */
136
+ statusMessage: string;
137
+ /**
138
+ * Attributes are the span's attributes, already redacted by the runtime.
139
+ * At most 16 KiB encoded.
140
+ *
141
+ * @generated from field: google.protobuf.Struct attributes = 9;
142
+ */
143
+ attributes?: JsonObject | undefined;
144
+ };
145
+ /**
146
+ * Describes the message xeonr.pipelines.private.v1.StepSpan.
147
+ * Use `create(StepSpanSchema)` to create a new message.
148
+ */
149
+ export declare const StepSpanSchema: GenMessage<StepSpan>;
150
+ /**
151
+ * StepUtilisation is what the step used, as its runtime measured it.
152
+ *
153
+ * @generated from message xeonr.pipelines.private.v1.StepUtilisation
154
+ */
155
+ export type StepUtilisation = Message<"xeonr.pipelines.private.v1.StepUtilisation"> & {
156
+ /**
157
+ * @generated from field: uint64 cpu_milliseconds = 1;
158
+ */
159
+ cpuMilliseconds: bigint;
160
+ /**
161
+ * @generated from field: uint64 wall_time_milliseconds = 2;
162
+ */
163
+ wallTimeMilliseconds: bigint;
164
+ /**
165
+ * @generated from field: uint64 blob_bytes_written = 3;
166
+ */
167
+ blobBytesWritten: bigint;
168
+ /**
169
+ * @generated from field: uint32 kv_writes = 4;
170
+ */
171
+ kvWrites: number;
172
+ /**
173
+ * @generated from field: uint64 peak_memory_bytes = 6;
174
+ */
175
+ peakMemoryBytes: bigint;
176
+ };
177
+ /**
178
+ * Describes the message xeonr.pipelines.private.v1.StepUtilisation.
179
+ * Use `create(StepUtilisationSchema)` to create a new message.
180
+ */
181
+ export declare const StepUtilisationSchema: GenMessage<StepUtilisation>;
182
+ /**
183
+ * StepSecret is one secret delivered to the step.
184
+ *
185
+ * @generated from message xeonr.pipelines.private.v1.StepSecret
186
+ */
187
+ export type StepSecret = Message<"xeonr.pipelines.private.v1.StepSecret"> & {
188
+ /**
189
+ * @generated from field: string name = 1;
190
+ */
191
+ name: string;
192
+ /**
193
+ * @generated from field: xeonr.pipelines.v1.SecretType type = 2;
194
+ */
195
+ type: SecretType;
196
+ /**
197
+ * Target is the environment variable that carries the value (ENV) or the
198
+ * file's path (FILE).
199
+ *
200
+ * @generated from field: string target = 3;
201
+ */
202
+ target: string;
203
+ /**
204
+ * @generated from field: bytes value = 4;
205
+ */
206
+ value: Uint8Array;
207
+ };
208
+ /**
209
+ * Describes the message xeonr.pipelines.private.v1.StepSecret.
210
+ * Use `create(StepSecretSchema)` to create a new message.
211
+ */
212
+ export declare const StepSecretSchema: GenMessage<StepSecret>;
213
+ /**
214
+ * @generated from message xeonr.pipelines.private.v1.GetStepContextRequest
215
+ */
216
+ export type GetStepContextRequest = Message<"xeonr.pipelines.private.v1.GetStepContextRequest"> & {
217
+ /**
218
+ * @generated from field: string run_id = 1;
219
+ */
220
+ runId: string;
221
+ /**
222
+ * @generated from field: string node_id = 2;
223
+ */
224
+ nodeId: string;
225
+ };
226
+ /**
227
+ * Describes the message xeonr.pipelines.private.v1.GetStepContextRequest.
228
+ * Use `create(GetStepContextRequestSchema)` to create a new message.
229
+ */
230
+ export declare const GetStepContextRequestSchema: GenMessage<GetStepContextRequest>;
231
+ /**
232
+ * @generated from message xeonr.pipelines.private.v1.GetStepContextResponse
233
+ */
234
+ export type GetStepContextResponse = Message<"xeonr.pipelines.private.v1.GetStepContextResponse"> & {
235
+ /**
236
+ * Manifest is the step's manifest, from the run's snapshot. Its outputs
237
+ * are the slots the step may commit to.
238
+ *
239
+ * @generated from field: xeonr.pipelines.v1.Manifest manifest = 1;
240
+ */
241
+ manifest?: Manifest | undefined;
242
+ /**
243
+ * Inputs are the resolved kv inputs, by input name: what the sidecar also
244
+ * wrote to the inputs file. Never a secret, never a URL.
245
+ *
246
+ * @generated from field: google.protobuf.Struct inputs = 3;
247
+ */
248
+ inputs?: JsonObject | undefined;
249
+ /**
250
+ * Deadline is when the runner stops the step.
251
+ *
252
+ * @generated from field: google.protobuf.Timestamp deadline = 6;
253
+ */
254
+ deadline?: Timestamp | undefined;
255
+ /**
256
+ * ContextVersion is the contract revision the sidecar speaks. This shape
257
+ * is 3.
258
+ *
259
+ * @generated from field: uint32 context_version = 8;
260
+ */
261
+ contextVersion: number;
262
+ /**
263
+ * StagedInputs are the blob inputs, by input name, already on disk.
264
+ *
265
+ * @generated from field: map<string, xeonr.pipelines.private.v1.StagedInputs> staged_inputs = 9;
266
+ */
267
+ stagedInputs: {
268
+ [key: string]: StagedInputs;
269
+ };
270
+ /**
271
+ * RunID, NodeID, AttemptID and AttemptNumber identify what is running, so
272
+ * a step can key its own idempotency on them.
273
+ *
274
+ * @generated from field: string run_id = 10;
275
+ */
276
+ runId: string;
277
+ /**
278
+ * @generated from field: string node_id = 11;
279
+ */
280
+ nodeId: string;
281
+ /**
282
+ * @generated from field: string attempt_id = 12;
283
+ */
284
+ attemptId: string;
285
+ /**
286
+ * @generated from field: uint32 attempt_number = 13;
287
+ */
288
+ attemptNumber: number;
289
+ /**
290
+ * Resource, AttestedFacts and Variables are the run's.
291
+ *
292
+ * @generated from field: xeonr.pipelines.v1.Resource resource = 14;
293
+ */
294
+ resource?: Resource | undefined;
295
+ /**
296
+ * @generated from field: google.protobuf.Struct attested_facts = 15;
297
+ */
298
+ attestedFacts?: JsonObject | undefined;
299
+ /**
300
+ * @generated from field: google.protobuf.Struct variables = 16;
301
+ */
302
+ variables?: JsonObject | undefined;
303
+ /**
304
+ * WorkDir, InputDir and OutputDir are the attempt's directories. Nothing
305
+ * is hard-coded to `/work`.
306
+ *
307
+ * @generated from field: string work_dir = 17;
308
+ */
309
+ workDir: string;
310
+ /**
311
+ * @generated from field: string input_dir = 18;
312
+ */
313
+ inputDir: string;
314
+ /**
315
+ * @generated from field: string output_dir = 19;
316
+ */
317
+ outputDir: string;
318
+ };
319
+ /**
320
+ * Describes the message xeonr.pipelines.private.v1.GetStepContextResponse.
321
+ * Use `create(GetStepContextResponseSchema)` to create a new message.
322
+ */
323
+ export declare const GetStepContextResponseSchema: GenMessage<GetStepContextResponse>;
324
+ /**
325
+ * @generated from message xeonr.pipelines.private.v1.GetStepSecretsRequest
326
+ */
327
+ export type GetStepSecretsRequest = Message<"xeonr.pipelines.private.v1.GetStepSecretsRequest"> & {};
328
+ /**
329
+ * Describes the message xeonr.pipelines.private.v1.GetStepSecretsRequest.
330
+ * Use `create(GetStepSecretsRequestSchema)` to create a new message.
331
+ */
332
+ export declare const GetStepSecretsRequestSchema: GenMessage<GetStepSecretsRequest>;
333
+ /**
334
+ * @generated from message xeonr.pipelines.private.v1.GetStepSecretsResponse
335
+ */
336
+ export type GetStepSecretsResponse = Message<"xeonr.pipelines.private.v1.GetStepSecretsResponse"> & {
337
+ /**
338
+ * @generated from field: repeated xeonr.pipelines.private.v1.StepSecret secrets = 1;
339
+ */
340
+ secrets: StepSecret[];
341
+ };
342
+ /**
343
+ * Describes the message xeonr.pipelines.private.v1.GetStepSecretsResponse.
344
+ * Use `create(GetStepSecretsResponseSchema)` to create a new message.
345
+ */
346
+ export declare const GetStepSecretsResponseSchema: GenMessage<GetStepSecretsResponse>;
347
+ /**
348
+ * PutBlobOutputHeader opens a PutBlobOutput stream.
349
+ *
350
+ * @generated from message xeonr.pipelines.private.v1.PutBlobOutputHeader
351
+ */
352
+ export type PutBlobOutputHeader = Message<"xeonr.pipelines.private.v1.PutBlobOutputHeader"> & {
353
+ /**
354
+ * @generated from field: string run_id = 1;
355
+ */
356
+ runId: string;
357
+ /**
358
+ * @generated from field: string node_id = 2;
359
+ */
360
+ nodeId: string;
361
+ /**
362
+ * Slot is the manifest blob output written to.
363
+ *
364
+ * @generated from field: string slot = 3;
365
+ */
366
+ slot: string;
367
+ /**
368
+ * Filename distinguishes the files of a slot that holds several; empty
369
+ * for a slot with one blob.
370
+ *
371
+ * @generated from field: string filename = 4;
372
+ */
373
+ filename: string;
374
+ /**
375
+ * @generated from field: string media_type = 5;
376
+ */
377
+ mediaType: string;
378
+ };
379
+ /**
380
+ * Describes the message xeonr.pipelines.private.v1.PutBlobOutputHeader.
381
+ * Use `create(PutBlobOutputHeaderSchema)` to create a new message.
382
+ */
383
+ export declare const PutBlobOutputHeaderSchema: GenMessage<PutBlobOutputHeader>;
384
+ /**
385
+ * @generated from message xeonr.pipelines.private.v1.PutBlobOutputRequest
386
+ */
387
+ export type PutBlobOutputRequest = Message<"xeonr.pipelines.private.v1.PutBlobOutputRequest"> & {
388
+ /**
389
+ * The first message is the header; every later one is a chunk.
390
+ *
391
+ * @generated from oneof xeonr.pipelines.private.v1.PutBlobOutputRequest.msg
392
+ */
393
+ msg: {
394
+ /**
395
+ * @generated from field: xeonr.pipelines.private.v1.PutBlobOutputHeader header = 1;
396
+ */
397
+ value: PutBlobOutputHeader;
398
+ case: "header";
399
+ } | {
400
+ /**
401
+ * @generated from field: bytes chunk = 2;
402
+ */
403
+ value: Uint8Array;
404
+ case: "chunk";
405
+ } | {
406
+ case: undefined;
407
+ value?: undefined;
408
+ };
409
+ };
410
+ /**
411
+ * Describes the message xeonr.pipelines.private.v1.PutBlobOutputRequest.
412
+ * Use `create(PutBlobOutputRequestSchema)` to create a new message.
413
+ */
414
+ export declare const PutBlobOutputRequestSchema: GenMessage<PutBlobOutputRequest>;
415
+ /**
416
+ * @generated from message xeonr.pipelines.private.v1.PutBlobOutputResponse
417
+ */
418
+ export type PutBlobOutputResponse = Message<"xeonr.pipelines.private.v1.PutBlobOutputResponse"> & {
419
+ /**
420
+ * BytesWritten is what the sidecar stored.
421
+ *
422
+ * @generated from field: uint64 bytes_written = 1;
423
+ */
424
+ bytesWritten: bigint;
425
+ };
426
+ /**
427
+ * Describes the message xeonr.pipelines.private.v1.PutBlobOutputResponse.
428
+ * Use `create(PutBlobOutputResponseSchema)` to create a new message.
429
+ */
430
+ export declare const PutBlobOutputResponseSchema: GenMessage<PutBlobOutputResponse>;
431
+ /**
432
+ * @generated from message xeonr.pipelines.private.v1.CommitBlobOutputFileRequest
433
+ */
434
+ export type CommitBlobOutputFileRequest = Message<"xeonr.pipelines.private.v1.CommitBlobOutputFileRequest"> & {
435
+ /**
436
+ * @generated from field: string run_id = 1;
437
+ */
438
+ runId: string;
439
+ /**
440
+ * @generated from field: string node_id = 2;
441
+ */
442
+ nodeId: string;
443
+ /**
444
+ * @generated from field: string slot = 3;
445
+ */
446
+ slot: string;
447
+ /**
448
+ * Path is the file's absolute path under the output staging directory.
449
+ *
450
+ * @generated from field: string path = 4;
451
+ */
452
+ path: string;
453
+ /**
454
+ * @generated from field: string filename = 5;
455
+ */
456
+ filename: string;
457
+ /**
458
+ * @generated from field: string media_type = 6;
459
+ */
460
+ mediaType: string;
461
+ };
462
+ /**
463
+ * Describes the message xeonr.pipelines.private.v1.CommitBlobOutputFileRequest.
464
+ * Use `create(CommitBlobOutputFileRequestSchema)` to create a new message.
465
+ */
466
+ export declare const CommitBlobOutputFileRequestSchema: GenMessage<CommitBlobOutputFileRequest>;
467
+ /**
468
+ * @generated from message xeonr.pipelines.private.v1.CommitBlobOutputFileResponse
469
+ */
470
+ export type CommitBlobOutputFileResponse = Message<"xeonr.pipelines.private.v1.CommitBlobOutputFileResponse"> & {
471
+ /**
472
+ * @generated from field: uint64 bytes_written = 1;
473
+ */
474
+ bytesWritten: bigint;
475
+ };
476
+ /**
477
+ * Describes the message xeonr.pipelines.private.v1.CommitBlobOutputFileResponse.
478
+ * Use `create(CommitBlobOutputFileResponseSchema)` to create a new message.
479
+ */
480
+ export declare const CommitBlobOutputFileResponseSchema: GenMessage<CommitBlobOutputFileResponse>;
481
+ /**
482
+ * @generated from message xeonr.pipelines.private.v1.StepLocalServiceSetKVOutputRequest
483
+ */
484
+ export type StepLocalServiceSetKVOutputRequest = Message<"xeonr.pipelines.private.v1.StepLocalServiceSetKVOutputRequest"> & {
485
+ /**
486
+ * @generated from field: string run_id = 1;
487
+ */
488
+ runId: string;
489
+ /**
490
+ * @generated from field: string node_id = 2;
491
+ */
492
+ nodeId: string;
493
+ /**
494
+ * Slot is the manifest kv output written to.
495
+ *
496
+ * @generated from field: string slot = 3;
497
+ */
498
+ slot: string;
499
+ /**
500
+ * Value is the output. At most 256 KiB encoded.
501
+ *
502
+ * @generated from field: google.protobuf.Value value = 4;
503
+ */
504
+ value?: Value | undefined;
505
+ };
506
+ /**
507
+ * Describes the message xeonr.pipelines.private.v1.StepLocalServiceSetKVOutputRequest.
508
+ * Use `create(StepLocalServiceSetKVOutputRequestSchema)` to create a new message.
509
+ */
510
+ export declare const StepLocalServiceSetKVOutputRequestSchema: GenMessage<StepLocalServiceSetKVOutputRequest>;
511
+ /**
512
+ * @generated from message xeonr.pipelines.private.v1.StepLocalServiceSetKVOutputResponse
513
+ */
514
+ export type StepLocalServiceSetKVOutputResponse = Message<"xeonr.pipelines.private.v1.StepLocalServiceSetKVOutputResponse"> & {};
515
+ /**
516
+ * Describes the message xeonr.pipelines.private.v1.StepLocalServiceSetKVOutputResponse.
517
+ * Use `create(StepLocalServiceSetKVOutputResponseSchema)` to create a new message.
518
+ */
519
+ export declare const StepLocalServiceSetKVOutputResponseSchema: GenMessage<StepLocalServiceSetKVOutputResponse>;
520
+ /**
521
+ * @generated from message xeonr.pipelines.private.v1.StepLocalServiceAppendLogsRequest
522
+ */
523
+ export type StepLocalServiceAppendLogsRequest = Message<"xeonr.pipelines.private.v1.StepLocalServiceAppendLogsRequest"> & {
524
+ /**
525
+ * @generated from field: string run_id = 1;
526
+ */
527
+ runId: string;
528
+ /**
529
+ * @generated from field: string node_id = 2;
530
+ */
531
+ nodeId: string;
532
+ /**
533
+ * @generated from field: repeated xeonr.pipelines.private.v1.LogLine lines = 3;
534
+ */
535
+ lines: LogLine[];
536
+ };
537
+ /**
538
+ * Describes the message xeonr.pipelines.private.v1.StepLocalServiceAppendLogsRequest.
539
+ * Use `create(StepLocalServiceAppendLogsRequestSchema)` to create a new message.
540
+ */
541
+ export declare const StepLocalServiceAppendLogsRequestSchema: GenMessage<StepLocalServiceAppendLogsRequest>;
542
+ /**
543
+ * @generated from message xeonr.pipelines.private.v1.StepLocalServiceAppendLogsResponse
544
+ */
545
+ export type StepLocalServiceAppendLogsResponse = Message<"xeonr.pipelines.private.v1.StepLocalServiceAppendLogsResponse"> & {};
546
+ /**
547
+ * Describes the message xeonr.pipelines.private.v1.StepLocalServiceAppendLogsResponse.
548
+ * Use `create(StepLocalServiceAppendLogsResponseSchema)` to create a new message.
549
+ */
550
+ export declare const StepLocalServiceAppendLogsResponseSchema: GenMessage<StepLocalServiceAppendLogsResponse>;
551
+ /**
552
+ * @generated from message xeonr.pipelines.private.v1.ReportSpansRequest
553
+ */
554
+ export type ReportSpansRequest = Message<"xeonr.pipelines.private.v1.ReportSpansRequest"> & {
555
+ /**
556
+ * @generated from field: string run_id = 1;
557
+ */
558
+ runId: string;
559
+ /**
560
+ * @generated from field: string node_id = 2;
561
+ */
562
+ nodeId: string;
563
+ /**
564
+ * @generated from field: repeated xeonr.pipelines.private.v1.StepSpan spans = 3;
565
+ */
566
+ spans: StepSpan[];
567
+ };
568
+ /**
569
+ * Describes the message xeonr.pipelines.private.v1.ReportSpansRequest.
570
+ * Use `create(ReportSpansRequestSchema)` to create a new message.
571
+ */
572
+ export declare const ReportSpansRequestSchema: GenMessage<ReportSpansRequest>;
573
+ /**
574
+ * @generated from message xeonr.pipelines.private.v1.ReportSpansResponse
575
+ */
576
+ export type ReportSpansResponse = Message<"xeonr.pipelines.private.v1.ReportSpansResponse"> & {};
577
+ /**
578
+ * Describes the message xeonr.pipelines.private.v1.ReportSpansResponse.
579
+ * Use `create(ReportSpansResponseSchema)` to create a new message.
580
+ */
581
+ export declare const ReportSpansResponseSchema: GenMessage<ReportSpansResponse>;
582
+ /**
583
+ * @generated from message xeonr.pipelines.private.v1.StepLocalServiceHeartbeatRequest
584
+ */
585
+ export type StepLocalServiceHeartbeatRequest = Message<"xeonr.pipelines.private.v1.StepLocalServiceHeartbeatRequest"> & {
586
+ /**
587
+ * @generated from field: string run_id = 1;
588
+ */
589
+ runId: string;
590
+ /**
591
+ * @generated from field: string node_id = 2;
592
+ */
593
+ nodeId: string;
594
+ /**
595
+ * Utilisation is a running snapshot.
596
+ *
597
+ * @generated from field: xeonr.pipelines.private.v1.StepUtilisation utilisation = 3;
598
+ */
599
+ utilisation?: StepUtilisation | undefined;
600
+ };
601
+ /**
602
+ * Describes the message xeonr.pipelines.private.v1.StepLocalServiceHeartbeatRequest.
603
+ * Use `create(StepLocalServiceHeartbeatRequestSchema)` to create a new message.
604
+ */
605
+ export declare const StepLocalServiceHeartbeatRequestSchema: GenMessage<StepLocalServiceHeartbeatRequest>;
606
+ /**
607
+ * @generated from message xeonr.pipelines.private.v1.StepLocalServiceHeartbeatResponse
608
+ */
609
+ export type StepLocalServiceHeartbeatResponse = Message<"xeonr.pipelines.private.v1.StepLocalServiceHeartbeatResponse"> & {
610
+ /**
611
+ * Cancel says the attempt is being cancelled: finish up and exit.
612
+ *
613
+ * @generated from field: bool cancel = 1;
614
+ */
615
+ cancel: boolean;
616
+ /**
617
+ * @generated from field: string cancel_reason = 2;
618
+ */
619
+ cancelReason: string;
620
+ };
621
+ /**
622
+ * Describes the message xeonr.pipelines.private.v1.StepLocalServiceHeartbeatResponse.
623
+ * Use `create(StepLocalServiceHeartbeatResponseSchema)` to create a new message.
624
+ */
625
+ export declare const StepLocalServiceHeartbeatResponseSchema: GenMessage<StepLocalServiceHeartbeatResponse>;
626
+ /**
627
+ * @generated from message xeonr.pipelines.private.v1.CompleteStepRequest
628
+ */
629
+ export type CompleteStepRequest = Message<"xeonr.pipelines.private.v1.CompleteStepRequest"> & {
630
+ /**
631
+ * @generated from field: string run_id = 1;
632
+ */
633
+ runId: string;
634
+ /**
635
+ * @generated from field: string node_id = 2;
636
+ */
637
+ nodeId: string;
638
+ /**
639
+ * UserExitCode is the step's exit code; zero is success.
640
+ *
641
+ * @generated from field: int32 user_exit_code = 3;
642
+ */
643
+ userExitCode: number;
644
+ /**
645
+ * @generated from field: string user_exit_message = 4;
646
+ */
647
+ userExitMessage: string;
648
+ /**
649
+ * @generated from field: xeonr.pipelines.private.v1.StepUtilisation utilisation = 5;
650
+ */
651
+ utilisation?: StepUtilisation | undefined;
652
+ };
653
+ /**
654
+ * Describes the message xeonr.pipelines.private.v1.CompleteStepRequest.
655
+ * Use `create(CompleteStepRequestSchema)` to create a new message.
656
+ */
657
+ export declare const CompleteStepRequestSchema: GenMessage<CompleteStepRequest>;
658
+ /**
659
+ * @generated from message xeonr.pipelines.private.v1.CompleteStepResponse
660
+ */
661
+ export type CompleteStepResponse = Message<"xeonr.pipelines.private.v1.CompleteStepResponse"> & {};
662
+ /**
663
+ * Describes the message xeonr.pipelines.private.v1.CompleteStepResponse.
664
+ * Use `create(CompleteStepResponseSchema)` to create a new message.
665
+ */
666
+ export declare const CompleteStepResponseSchema: GenMessage<CompleteStepResponse>;
667
+ /**
668
+ * @generated from message xeonr.pipelines.private.v1.StepLocalServiceAppendIssuesRequest
669
+ */
670
+ export type StepLocalServiceAppendIssuesRequest = Message<"xeonr.pipelines.private.v1.StepLocalServiceAppendIssuesRequest"> & {
671
+ /**
672
+ * @generated from field: repeated xeonr.pipelines.private.v1.Issue issues = 1;
673
+ */
674
+ issues: Issue[];
675
+ };
676
+ /**
677
+ * Describes the message xeonr.pipelines.private.v1.StepLocalServiceAppendIssuesRequest.
678
+ * Use `create(StepLocalServiceAppendIssuesRequestSchema)` to create a new message.
679
+ */
680
+ export declare const StepLocalServiceAppendIssuesRequestSchema: GenMessage<StepLocalServiceAppendIssuesRequest>;
681
+ /**
682
+ * @generated from message xeonr.pipelines.private.v1.StepLocalServiceAppendIssuesResponse
683
+ */
684
+ export type StepLocalServiceAppendIssuesResponse = Message<"xeonr.pipelines.private.v1.StepLocalServiceAppendIssuesResponse"> & {
685
+ /**
686
+ * Accepted counts issues stored; the rest were over the run's cap.
687
+ *
688
+ * @generated from field: uint32 accepted = 1;
689
+ */
690
+ accepted: number;
691
+ };
692
+ /**
693
+ * Describes the message xeonr.pipelines.private.v1.StepLocalServiceAppendIssuesResponse.
694
+ * Use `create(StepLocalServiceAppendIssuesResponseSchema)` to create a new message.
695
+ */
696
+ export declare const StepLocalServiceAppendIssuesResponseSchema: GenMessage<StepLocalServiceAppendIssuesResponse>;
697
+ /**
698
+ * @generated from message xeonr.pipelines.private.v1.StepLocalServiceSetProgressRequest
699
+ */
700
+ export type StepLocalServiceSetProgressRequest = Message<"xeonr.pipelines.private.v1.StepLocalServiceSetProgressRequest"> & {
701
+ /**
702
+ * Fraction is how far along the step is, from 0 to 1.
703
+ *
704
+ * @generated from field: double fraction = 1;
705
+ */
706
+ fraction: number;
707
+ /**
708
+ * Processed, Total and Failed count items, for work that has them. A zero
709
+ * total means unknown.
710
+ *
711
+ * @generated from field: uint64 processed = 2;
712
+ */
713
+ processed: bigint;
714
+ /**
715
+ * @generated from field: uint64 total = 3;
716
+ */
717
+ total: bigint;
718
+ /**
719
+ * @generated from field: uint64 failed = 4;
720
+ */
721
+ failed: bigint;
722
+ /**
723
+ * Message says what the step is doing now.
724
+ *
725
+ * @generated from field: string message = 5;
726
+ */
727
+ message: string;
728
+ };
729
+ /**
730
+ * Describes the message xeonr.pipelines.private.v1.StepLocalServiceSetProgressRequest.
731
+ * Use `create(StepLocalServiceSetProgressRequestSchema)` to create a new message.
732
+ */
733
+ export declare const StepLocalServiceSetProgressRequestSchema: GenMessage<StepLocalServiceSetProgressRequest>;
734
+ /**
735
+ * @generated from message xeonr.pipelines.private.v1.StepLocalServiceSetProgressResponse
736
+ */
737
+ export type StepLocalServiceSetProgressResponse = Message<"xeonr.pipelines.private.v1.StepLocalServiceSetProgressResponse"> & {};
738
+ /**
739
+ * Describes the message xeonr.pipelines.private.v1.StepLocalServiceSetProgressResponse.
740
+ * Use `create(StepLocalServiceSetProgressResponseSchema)` to create a new message.
741
+ */
742
+ export declare const StepLocalServiceSetProgressResponseSchema: GenMessage<StepLocalServiceSetProgressResponse>;
743
+ /**
744
+ * @generated from message xeonr.pipelines.private.v1.StepLocalServiceCreateIdTokenRequest
745
+ */
746
+ export type StepLocalServiceCreateIdTokenRequest = Message<"xeonr.pipelines.private.v1.StepLocalServiceCreateIdTokenRequest"> & {
747
+ /**
748
+ * Audience is the one audience the token is for.
749
+ *
750
+ * @generated from field: string audience = 1;
751
+ */
752
+ audience: string;
753
+ };
754
+ /**
755
+ * Describes the message xeonr.pipelines.private.v1.StepLocalServiceCreateIdTokenRequest.
756
+ * Use `create(StepLocalServiceCreateIdTokenRequestSchema)` to create a new message.
757
+ */
758
+ export declare const StepLocalServiceCreateIdTokenRequestSchema: GenMessage<StepLocalServiceCreateIdTokenRequest>;
759
+ /**
760
+ * @generated from message xeonr.pipelines.private.v1.StepLocalServiceCreateIdTokenResponse
761
+ */
762
+ export type StepLocalServiceCreateIdTokenResponse = Message<"xeonr.pipelines.private.v1.StepLocalServiceCreateIdTokenResponse"> & {
763
+ /**
764
+ * IDTokenSecret is the job identity token, for the step to present to the
765
+ * service of that audience.
766
+ *
767
+ * @generated from field: string id_token_secret = 1;
768
+ */
769
+ idTokenSecret: string;
770
+ /**
771
+ * @generated from field: google.protobuf.Timestamp expires_at = 2;
772
+ */
773
+ expiresAt?: Timestamp | undefined;
774
+ };
775
+ /**
776
+ * Describes the message xeonr.pipelines.private.v1.StepLocalServiceCreateIdTokenResponse.
777
+ * Use `create(StepLocalServiceCreateIdTokenResponseSchema)` to create a new message.
778
+ */
779
+ export declare const StepLocalServiceCreateIdTokenResponseSchema: GenMessage<StepLocalServiceCreateIdTokenResponse>;
780
+ /**
781
+ * @generated from message xeonr.pipelines.private.v1.StepLocalServiceGetCacheRequest
782
+ */
783
+ export type StepLocalServiceGetCacheRequest = Message<"xeonr.pipelines.private.v1.StepLocalServiceGetCacheRequest"> & {
784
+ /**
785
+ * Key is the `key` of the declared cache to restore, exactly as the node
786
+ * declares it. It names the cache; the sidecar takes the paths, the
787
+ * fallback keys and the policy from the declaration, never from the step.
788
+ *
789
+ * @generated from field: string key = 1;
790
+ */
791
+ key: string;
792
+ /**
793
+ * KeyFilesDigest is the lower-case hex SHA-256 the shim computed over the
794
+ * cache's `key_files`; empty for a cache that declares none. The resolved
795
+ * key is `<key>-<digest>`, or `key` alone when this is empty.
796
+ *
797
+ * @generated from field: string key_files_digest = 2;
798
+ */
799
+ keyFilesDigest: string;
800
+ };
801
+ /**
802
+ * Describes the message xeonr.pipelines.private.v1.StepLocalServiceGetCacheRequest.
803
+ * Use `create(StepLocalServiceGetCacheRequestSchema)` to create a new message.
804
+ */
805
+ export declare const StepLocalServiceGetCacheRequestSchema: GenMessage<StepLocalServiceGetCacheRequest>;
806
+ /**
807
+ * @generated from message xeonr.pipelines.private.v1.StepLocalServiceGetCacheResponse
808
+ */
809
+ export type StepLocalServiceGetCacheResponse = Message<"xeonr.pipelines.private.v1.StepLocalServiceGetCacheResponse"> & {
810
+ /**
811
+ * Hit says a cache was restored into the declared paths.
812
+ *
813
+ * @generated from field: bool hit = 1;
814
+ */
815
+ hit: boolean;
816
+ /**
817
+ * MatchedKey is the key that was restored: the resolved key, or the
818
+ * fallback key that hit.
819
+ *
820
+ * @generated from field: string matched_key = 2;
821
+ */
822
+ matchedKey: string;
823
+ /**
824
+ * SizeBytes is the size of the archive restored.
825
+ *
826
+ * @generated from field: uint64 size_bytes = 3;
827
+ */
828
+ sizeBytes: bigint;
829
+ };
830
+ /**
831
+ * Describes the message xeonr.pipelines.private.v1.StepLocalServiceGetCacheResponse.
832
+ * Use `create(StepLocalServiceGetCacheResponseSchema)` to create a new message.
833
+ */
834
+ export declare const StepLocalServiceGetCacheResponseSchema: GenMessage<StepLocalServiceGetCacheResponse>;
835
+ /**
836
+ * @generated from message xeonr.pipelines.private.v1.StepLocalServiceCreateCacheRequest
837
+ */
838
+ export type StepLocalServiceCreateCacheRequest = Message<"xeonr.pipelines.private.v1.StepLocalServiceCreateCacheRequest"> & {
839
+ /**
840
+ * Key and KeyFilesDigest name the cache and resolve its key, as for
841
+ * GetCache.
842
+ *
843
+ * @generated from field: string key = 1;
844
+ */
845
+ key: string;
846
+ /**
847
+ * @generated from field: string key_files_digest = 2;
848
+ */
849
+ keyFilesDigest: string;
850
+ };
851
+ /**
852
+ * Describes the message xeonr.pipelines.private.v1.StepLocalServiceCreateCacheRequest.
853
+ * Use `create(StepLocalServiceCreateCacheRequestSchema)` to create a new message.
854
+ */
855
+ export declare const StepLocalServiceCreateCacheRequestSchema: GenMessage<StepLocalServiceCreateCacheRequest>;
856
+ /**
857
+ * @generated from message xeonr.pipelines.private.v1.StepLocalServiceCreateCacheResponse
858
+ */
859
+ export type StepLocalServiceCreateCacheResponse = Message<"xeonr.pipelines.private.v1.StepLocalServiceCreateCacheResponse"> & {
860
+ /**
861
+ * Saved says this call saved the cache. False means the key already held
862
+ * one and nothing was uploaded.
863
+ *
864
+ * @generated from field: bool saved = 1;
865
+ */
866
+ saved: boolean;
867
+ /**
868
+ * SizeBytes is the size of the archive saved; zero when nothing was.
869
+ *
870
+ * @generated from field: uint64 size_bytes = 2;
871
+ */
872
+ sizeBytes: bigint;
873
+ };
874
+ /**
875
+ * Describes the message xeonr.pipelines.private.v1.StepLocalServiceCreateCacheResponse.
876
+ * Use `create(StepLocalServiceCreateCacheResponseSchema)` to create a new message.
877
+ */
878
+ export declare const StepLocalServiceCreateCacheResponseSchema: GenMessage<StepLocalServiceCreateCacheResponse>;
879
+ /**
880
+ * LogSource is where a log line came from.
881
+ *
882
+ * @generated from enum xeonr.pipelines.private.v1.LogSource
883
+ */
884
+ export declare enum LogSource {
885
+ /**
886
+ * @generated from enum value: LOG_SOURCE_UNSPECIFIED = 0;
887
+ */
888
+ UNSPECIFIED = 0,
889
+ /**
890
+ * Emitted through the SDK's logger (structured).
891
+ *
892
+ * @generated from enum value: LOG_SOURCE_CTX_LOG = 1;
893
+ */
894
+ CTX_LOG = 1,
895
+ /**
896
+ * Captured from the step's stdout.
897
+ *
898
+ * @generated from enum value: LOG_SOURCE_STDOUT = 2;
899
+ */
900
+ STDOUT = 2,
901
+ /**
902
+ * Captured from the step's stderr.
903
+ *
904
+ * @generated from enum value: LOG_SOURCE_STDERR = 3;
905
+ */
906
+ STDERR = 3,
907
+ /**
908
+ * Emitted by the sidecar itself (lifecycle markers, errors).
909
+ *
910
+ * @generated from enum value: LOG_SOURCE_SIDECAR = 4;
911
+ */
912
+ SIDECAR = 4
913
+ }
914
+ /**
915
+ * Describes the enum xeonr.pipelines.private.v1.LogSource.
916
+ */
917
+ export declare const LogSourceSchema: GenEnum<LogSource>;
918
+ /**
919
+ * StepLocalService is the sidecar-local API: what the injected step shim and
920
+ * the step SDK call from inside the step. It is served by the SIDECAR, not by
921
+ * pipelines-api, on `127.0.0.1:15010` in the step's network namespace or on a
922
+ * unix socket in the work directory (the only transport for a no-network
923
+ * step, and for the host runtime, where loopback would be reachable by every
924
+ * local user).
925
+ *
926
+ * It is copied and renamed from upl.im's
927
+ * `uplim.workflow.v1.PipelineRunnerService`, with the retired presign RPCs
928
+ * (`PrepareBlobOutput`, `FinaliseBlobOutput`, `PrepareLocalBlob`) and upl's
929
+ * run-scoped `SetLocal` dropped, kv values as `google.protobuf.Value`, and
930
+ * times as timestamps. Field numbers of the messages that survive are kept
931
+ * where the field survives, with `step_id` renamed `node_id`.
932
+ *
933
+ * Trust. There is no bearer: reaching the socket is the authority, and only
934
+ * the step beside the sidecar can reach it (every RPC is
935
+ * `no_authentication`). The sidecar holds the attempt token and uses
936
+ * xeonr.pipelines.private.v1.AttemptService on the step's behalf. Nothing
937
+ * that crosses this socket is a capability on the platform: no attempt
938
+ * token, no presigned URL, no storage credential. The two things a step can
939
+ * obtain here that are secret are its own granted secrets (GetStepSecrets)
940
+ * and a job identity token for an audience it was granted (CreateIdToken),
941
+ * both of which exist to be given to the step.
942
+ *
943
+ * `run_id` and `node_id` in a request are optional cross-checks: a sidecar
944
+ * serves exactly one attempt and refuses a call that names another.
945
+ *
946
+ * PutBlobOutput, CommitBlobOutputFile, AppendLogs, ReportSpans, Heartbeat,
947
+ * CompleteStep and AppendIssues are outside api.rpc-naming's verbs: they
948
+ * keep the donor sidecar API's names, so that what already-published step
949
+ * bundles expect carries over (the plan keeps the local API
950
+ * wire-compatible). Where an RPC shares its name with one of WorkerService
951
+ * or AttemptService in this package, its messages take the
952
+ * `StepLocalService` prefix.
953
+ *
954
+ * @generated from service xeonr.pipelines.private.v1.StepLocalService
955
+ */
956
+ export declare const StepLocalService: GenService<{
957
+ /**
958
+ * Get the step's context
959
+ *
960
+ * The manifest, the resolved inputs and where the staged blobs are. The
961
+ * sidecar has already staged everything before the step starts; this is
962
+ * how the SDK finds it. Milestone 1.
963
+ *
964
+ * @generated from rpc xeonr.pipelines.private.v1.StepLocalService.GetStepContext
965
+ */
966
+ getStepContext: {
967
+ methodKind: "unary";
968
+ input: typeof GetStepContextRequestSchema;
969
+ output: typeof GetStepContextResponseSchema;
970
+ };
971
+ /**
972
+ * Get the step's secrets
973
+ *
974
+ * The secrets delivered to this attempt: the node's grant, intersected
975
+ * with the manifest's `required_secrets` and each secret's policy. The
976
+ * shim calls it once to place them in the script's environment and files.
977
+ * This is the one place a secret value is returned by design
978
+ * (api.secrets-shown-once does not fit a loopback delivery channel).
979
+ * Milestone 1.
980
+ *
981
+ * @generated from rpc xeonr.pipelines.private.v1.StepLocalService.GetStepSecrets
982
+ */
983
+ getStepSecrets: {
984
+ methodKind: "unary";
985
+ input: typeof GetStepSecretsRequestSchema;
986
+ output: typeof GetStepSecretsResponseSchema;
987
+ };
988
+ /**
989
+ * Put a blob output
990
+ *
991
+ * Client-streaming: the first message is the header, the rest are raw
992
+ * chunks, and the sidecar commits the blob on half-close. The sidecar
993
+ * uploads to the store itself; no URL crosses the socket. Milestone 1.
994
+ *
995
+ * @generated from rpc xeonr.pipelines.private.v1.StepLocalService.PutBlobOutput
996
+ */
997
+ putBlobOutput: {
998
+ methodKind: "client_streaming";
999
+ input: typeof PutBlobOutputRequestSchema;
1000
+ output: typeof PutBlobOutputResponseSchema;
1001
+ };
1002
+ /**
1003
+ * Commit a file as a blob output
1004
+ *
1005
+ * The unary path, for large files and for clients that cannot stream: the
1006
+ * step writes a file under the output staging directory and passes its
1007
+ * path. The sidecar resolves the path, refuses anything that is not a
1008
+ * regular file inside that directory or exceeds the slot's size, and
1009
+ * uploads it. The path is an argument, not a convention. Milestone 1.
1010
+ *
1011
+ * @generated from rpc xeonr.pipelines.private.v1.StepLocalService.CommitBlobOutputFile
1012
+ */
1013
+ commitBlobOutputFile: {
1014
+ methodKind: "unary";
1015
+ input: typeof CommitBlobOutputFileRequestSchema;
1016
+ output: typeof CommitBlobOutputFileResponseSchema;
1017
+ };
1018
+ /**
1019
+ * Set a kv output
1020
+ *
1021
+ * Writes one kv output, replacing any earlier value for the slot.
1022
+ * Milestone 1.
1023
+ *
1024
+ * @generated from rpc xeonr.pipelines.private.v1.StepLocalService.SetKVOutput
1025
+ */
1026
+ setKVOutput: {
1027
+ methodKind: "unary";
1028
+ input: typeof StepLocalServiceSetKVOutputRequestSchema;
1029
+ output: typeof StepLocalServiceSetKVOutputResponseSchema;
1030
+ };
1031
+ /**
1032
+ * Append log lines
1033
+ *
1034
+ * Structured lines from the SDK. The step's stdout and stderr need no
1035
+ * call: the runner tails them. Milestone 1.
1036
+ *
1037
+ * @generated from rpc xeonr.pipelines.private.v1.StepLocalService.AppendLogs
1038
+ */
1039
+ appendLogs: {
1040
+ methodKind: "unary";
1041
+ input: typeof StepLocalServiceAppendLogsRequestSchema;
1042
+ output: typeof StepLocalServiceAppendLogsResponseSchema;
1043
+ };
1044
+ /**
1045
+ * Report spans
1046
+ *
1047
+ * OpenTelemetry spans the step's runtime captured, forwarded by the
1048
+ * sidecar so that no platform credential is needed in the step.
1049
+ * Milestone 2.
1050
+ *
1051
+ * @generated from rpc xeonr.pipelines.private.v1.StepLocalService.ReportSpans
1052
+ */
1053
+ reportSpans: {
1054
+ methodKind: "unary";
1055
+ input: typeof ReportSpansRequestSchema;
1056
+ output: typeof ReportSpansResponseSchema;
1057
+ };
1058
+ /**
1059
+ * Heartbeat
1060
+ *
1061
+ * Lets a step that idles for long learn of a cancel without waiting for a
1062
+ * signal: the answer says whether the attempt is being cancelled. The
1063
+ * lease itself is the runner's to renew, not the step's. Milestone 1.
1064
+ *
1065
+ * @generated from rpc xeonr.pipelines.private.v1.StepLocalService.Heartbeat
1066
+ */
1067
+ heartbeat: {
1068
+ methodKind: "unary";
1069
+ input: typeof StepLocalServiceHeartbeatRequestSchema;
1070
+ output: typeof StepLocalServiceHeartbeatResponseSchema;
1071
+ };
1072
+ /**
1073
+ * Complete the step
1074
+ *
1075
+ * The step's own word that it finished, with its exit code. The runner
1076
+ * still reports the container's real termination; where they differ the
1077
+ * runner's wins. Idempotent. Milestone 1.
1078
+ *
1079
+ * @generated from rpc xeonr.pipelines.private.v1.StepLocalService.CompleteStep
1080
+ */
1081
+ completeStep: {
1082
+ methodKind: "unary";
1083
+ input: typeof CompleteStepRequestSchema;
1084
+ output: typeof CompleteStepResponseSchema;
1085
+ };
1086
+ /**
1087
+ * Append issues
1088
+ *
1089
+ * Structured, non-fatal problems. Milestone 4; shape only.
1090
+ *
1091
+ * @generated from rpc xeonr.pipelines.private.v1.StepLocalService.AppendIssues
1092
+ */
1093
+ appendIssues: {
1094
+ methodKind: "unary";
1095
+ input: typeof StepLocalServiceAppendIssuesRequestSchema;
1096
+ output: typeof StepLocalServiceAppendIssuesResponseSchema;
1097
+ };
1098
+ /**
1099
+ * Set progress
1100
+ *
1101
+ * Milestone 4; shape only.
1102
+ *
1103
+ * @generated from rpc xeonr.pipelines.private.v1.StepLocalService.SetProgress
1104
+ */
1105
+ setProgress: {
1106
+ methodKind: "unary";
1107
+ input: typeof StepLocalServiceSetProgressRequestSchema;
1108
+ output: typeof StepLocalServiceSetProgressResponseSchema;
1109
+ };
1110
+ /**
1111
+ * Create a job identity token
1112
+ *
1113
+ * For an audience the node was granted. The sidecar asks the platform and
1114
+ * returns the token to the step, which presents it to the other service.
1115
+ * Milestone 2.
1116
+ *
1117
+ * @generated from rpc xeonr.pipelines.private.v1.StepLocalService.CreateIdToken
1118
+ */
1119
+ createIdToken: {
1120
+ methodKind: "unary";
1121
+ input: typeof StepLocalServiceCreateIdTokenRequestSchema;
1122
+ output: typeof StepLocalServiceCreateIdTokenResponseSchema;
1123
+ };
1124
+ /**
1125
+ * Get a cache
1126
+ *
1127
+ * Restores one of the node's declared caches into its `paths`. The shim
1128
+ * calls it before the script, once the work directory holds the cache's
1129
+ * `key_files`, and passes their digest: only the step can hash them, and
1130
+ * only the sidecar can reach the store. The sidecar asks
1131
+ * AttemptService.GetCache for the resolved key and the cache's declared
1132
+ * fallback keys, downloads and verifies the archive, and unpacks it,
1133
+ * refusing any entry that would land outside the cache's paths. No URL
1134
+ * crosses the socket. A miss is normal and not an error. Milestone 2.
1135
+ *
1136
+ * @generated from rpc xeonr.pipelines.private.v1.StepLocalService.GetCache
1137
+ */
1138
+ getCache: {
1139
+ methodKind: "unary";
1140
+ input: typeof StepLocalServiceGetCacheRequestSchema;
1141
+ output: typeof StepLocalServiceGetCacheResponseSchema;
1142
+ };
1143
+ /**
1144
+ * Create a cache
1145
+ *
1146
+ * Saves one of the node's declared caches from its `paths`. The shim calls
1147
+ * it after the script, when the cache's `save_when` allows the step's
1148
+ * result. The sidecar packs the paths, asks AttemptService.CreateCache and
1149
+ * uploads the archive. A key that already holds a cache is left as it is
1150
+ * (the first writer wins), which is not an error. Refused with
1151
+ * `permission_denied` for a cache whose policy is PULL. Milestone 2.
1152
+ *
1153
+ * @generated from rpc xeonr.pipelines.private.v1.StepLocalService.CreateCache
1154
+ */
1155
+ createCache: {
1156
+ methodKind: "unary";
1157
+ input: typeof StepLocalServiceCreateCacheRequestSchema;
1158
+ output: typeof StepLocalServiceCreateCacheResponseSchema;
1159
+ };
1160
+ }>;
1161
+ //# sourceMappingURL=step_local_pb.d.ts.map