@xeonr/pipelines-sdk 0.2.0 → 0.3.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 (96) hide show
  1. package/README.md +172 -16
  2. package/dist/client.d.ts +63 -4
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +43 -1
  5. package/dist/client.js.map +1 -1
  6. package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.d.ts +173 -12
  7. package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.d.ts.map +1 -1
  8. package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.js +45 -28
  9. package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.js.map +1 -1
  10. package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.d.ts +136 -17
  11. package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.d.ts.map +1 -1
  12. package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.js +42 -35
  13. package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.js.map +1 -1
  14. package/dist/gen/xeonr/pipelines/private/v1/worker_pb.d.ts +187 -2
  15. package/dist/gen/xeonr/pipelines/private/v1/worker_pb.d.ts.map +1 -1
  16. package/dist/gen/xeonr/pipelines/private/v1/worker_pb.js +38 -5
  17. package/dist/gen/xeonr/pipelines/private/v1/worker_pb.js.map +1 -1
  18. package/dist/gen/xeonr/pipelines/v1/common_pb.d.ts +4 -2
  19. package/dist/gen/xeonr/pipelines/v1/common_pb.d.ts.map +1 -1
  20. package/dist/gen/xeonr/pipelines/v1/common_pb.js +4 -2
  21. package/dist/gen/xeonr/pipelines/v1/common_pb.js.map +1 -1
  22. package/dist/gen/xeonr/pipelines/v1/definition_pb.d.ts +277 -4
  23. package/dist/gen/xeonr/pipelines/v1/definition_pb.d.ts.map +1 -1
  24. package/dist/gen/xeonr/pipelines/v1/definition_pb.js +100 -7
  25. package/dist/gen/xeonr/pipelines/v1/definition_pb.js.map +1 -1
  26. package/dist/gen/xeonr/pipelines/v1/pipelines_pb.d.ts +1100 -0
  27. package/dist/gen/xeonr/pipelines/v1/pipelines_pb.d.ts.map +1 -0
  28. package/dist/gen/xeonr/pipelines/v1/pipelines_pb.js +298 -0
  29. package/dist/gen/xeonr/pipelines/v1/pipelines_pb.js.map +1 -0
  30. package/dist/gen/xeonr/pipelines/v1/pools_pb.d.ts.map +1 -1
  31. package/dist/gen/xeonr/pipelines/v1/pools_pb.js +1 -1
  32. package/dist/gen/xeonr/pipelines/v1/pools_pb.js.map +1 -1
  33. package/dist/gen/xeonr/pipelines/v1/queues_pb.d.ts +769 -0
  34. package/dist/gen/xeonr/pipelines/v1/queues_pb.d.ts.map +1 -0
  35. package/dist/gen/xeonr/pipelines/v1/queues_pb.js +190 -0
  36. package/dist/gen/xeonr/pipelines/v1/queues_pb.js.map +1 -0
  37. package/dist/gen/xeonr/pipelines/v1/registry_pb.d.ts +60 -0
  38. package/dist/gen/xeonr/pipelines/v1/registry_pb.d.ts.map +1 -1
  39. package/dist/gen/xeonr/pipelines/v1/registry_pb.js +21 -16
  40. package/dist/gen/xeonr/pipelines/v1/registry_pb.js.map +1 -1
  41. package/dist/gen/xeonr/pipelines/v1/runs_pb.d.ts +846 -3
  42. package/dist/gen/xeonr/pipelines/v1/runs_pb.d.ts.map +1 -1
  43. package/dist/gen/xeonr/pipelines/v1/runs_pb.js +243 -27
  44. package/dist/gen/xeonr/pipelines/v1/runs_pb.js.map +1 -1
  45. package/dist/gen/xeonr/pipelines/v1/schedules_pb.d.ts +1110 -0
  46. package/dist/gen/xeonr/pipelines/v1/schedules_pb.d.ts.map +1 -0
  47. package/dist/gen/xeonr/pipelines/v1/schedules_pb.js +295 -0
  48. package/dist/gen/xeonr/pipelines/v1/schedules_pb.js.map +1 -0
  49. package/dist/gen/xeonr/pipelines/v1/secrets_pb.d.ts.map +1 -1
  50. package/dist/gen/xeonr/pipelines/v1/secrets_pb.js +1 -1
  51. package/dist/gen/xeonr/pipelines/v1/secrets_pb.js.map +1 -1
  52. package/dist/gen/xeonr/platform/v1/options_pb.d.ts +123 -1
  53. package/dist/gen/xeonr/platform/v1/options_pb.d.ts.map +1 -1
  54. package/dist/gen/xeonr/platform/v1/options_pb.js +90 -1
  55. package/dist/gen/xeonr/platform/v1/options_pb.js.map +1 -1
  56. package/dist/handler.d.ts +50 -0
  57. package/dist/handler.d.ts.map +1 -1
  58. package/dist/handler.js +27 -0
  59. package/dist/handler.js.map +1 -1
  60. package/dist/index.d.ts +11 -0
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +5 -0
  63. package/dist/index.js.map +1 -1
  64. package/dist/queues.d.ts +171 -0
  65. package/dist/queues.d.ts.map +1 -0
  66. package/dist/queues.js +135 -0
  67. package/dist/queues.js.map +1 -0
  68. package/dist/reporter.d.ts +120 -0
  69. package/dist/reporter.d.ts.map +1 -0
  70. package/dist/reporter.js +323 -0
  71. package/dist/reporter.js.map +1 -0
  72. package/dist/schedules.d.ts +201 -0
  73. package/dist/schedules.d.ts.map +1 -0
  74. package/dist/schedules.js +127 -0
  75. package/dist/schedules.js.map +1 -0
  76. package/dist/testing/cron.d.ts +33 -0
  77. package/dist/testing/cron.d.ts.map +1 -0
  78. package/dist/testing/cron.js +177 -0
  79. package/dist/testing/cron.js.map +1 -0
  80. package/dist/testing/index.d.ts +129 -4
  81. package/dist/testing/index.d.ts.map +1 -1
  82. package/dist/testing/index.js +723 -30
  83. package/dist/testing/index.js.map +1 -1
  84. package/dist/testing/queues.d.ts +46 -0
  85. package/dist/testing/queues.d.ts.map +1 -0
  86. package/dist/testing/queues.js +70 -0
  87. package/dist/testing/queues.js.map +1 -0
  88. package/dist/testing/schedules.d.ts +113 -0
  89. package/dist/testing/schedules.d.ts.map +1 -0
  90. package/dist/testing/schedules.js +419 -0
  91. package/dist/testing/schedules.js.map +1 -0
  92. package/dist/worker.d.ts +48 -1
  93. package/dist/worker.d.ts.map +1 -1
  94. package/dist/worker.js +67 -6
  95. package/dist/worker.js.map +1 -1
  96. package/package.json +1 -1
@@ -0,0 +1,1100 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Duration, FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import type { PackageRef, Resource, ResourceRef } from "./common_pb.js";
4
+ import type { Definition, Retry } from "./definition_pb.js";
5
+ import type { InputSlot, PackageKind } from "./registry_pb.js";
6
+ import type { ConflictPolicy, PipelineName } from "./runs_pb.js";
7
+ import type { JsonObject, Message } from "@bufbuild/protobuf";
8
+ /**
9
+ * Describes the file xeonr/pipelines/v1/pipelines.proto.
10
+ */
11
+ export declare const file_xeonr_pipelines_v1_pipelines: GenFile;
12
+ /**
13
+ * PipelinePolicy is how a pipeline may be run: who may start it, how its
14
+ * runs exclude one another, and the defaults its nodes take. upl.im's
15
+ * PipelinePolicy (retries and timeouts) is its subset. The run's own
16
+ * timeout and parallelism are the Definition's (`timeout`,
17
+ * `max_parallel_nodes`).
18
+ *
19
+ * @generated from message xeonr.pipelines.v1.PipelinePolicy
20
+ */
21
+ export type PipelinePolicy = Message<"xeonr.pipelines.v1.PipelinePolicy"> & {
22
+ /**
23
+ * AllowPeople lets a member of the tenant start the pipeline themselves
24
+ * (the console, the CLI). Off by default: the pipeline's own product
25
+ * starts it.
26
+ *
27
+ * @generated from field: bool allow_people = 1;
28
+ */
29
+ allowPeople: boolean;
30
+ /**
31
+ * AllowedProducts are further products (Auth application ids) whose
32
+ * service accounts may start it, acting for the tenant. The pipeline's
33
+ * own product always may.
34
+ *
35
+ * @generated from field: repeated string allowed_products = 2;
36
+ */
37
+ allowedProducts: string[];
38
+ /**
39
+ * MaxConcurrentRuns caps the pipeline's non-terminal runs; a run over it
40
+ * waits QUEUED until one finishes (platform-design §7.3's queued-run
41
+ * budget, per pipeline). Zero is no cap.
42
+ *
43
+ * @generated from field: uint32 max_concurrent_runs = 3;
44
+ */
45
+ maxConcurrentRuns: number;
46
+ /**
47
+ * ExclusionScope and OnConflict make the pipeline's runs exclusive with
48
+ * one another (platform-design §7.4). An exclusion given to CreateRun
49
+ * takes precedence.
50
+ *
51
+ * @generated from field: xeonr.pipelines.v1.ExclusionScope exclusion_scope = 4;
52
+ */
53
+ exclusionScope: ExclusionScope;
54
+ /**
55
+ * @generated from field: xeonr.pipelines.v1.ConflictPolicy on_conflict = 5;
56
+ */
57
+ onConflict: ConflictPolicy;
58
+ /**
59
+ * DefaultRetry is the retry policy of a node that gives none.
60
+ *
61
+ * @generated from field: xeonr.pipelines.v1.Retry default_retry = 6;
62
+ */
63
+ defaultRetry?: Retry | undefined;
64
+ /**
65
+ * DefaultNodeTimeout is the timeout of a node that gives none.
66
+ *
67
+ * @generated from field: google.protobuf.Duration default_node_timeout = 7;
68
+ */
69
+ defaultNodeTimeout?: Duration | undefined;
70
+ };
71
+ /**
72
+ * Describes the message xeonr.pipelines.v1.PipelinePolicy.
73
+ * Use `create(PipelinePolicySchema)` to create a new message.
74
+ */
75
+ export declare const PipelinePolicySchema: GenMessage<PipelinePolicy>;
76
+ /**
77
+ * OutputBinding maps one node's output to a destination in the product's
78
+ * own domain: the CI-first plan's slot-to-destination indirection, and
79
+ * upl.im's OutputBinding generalised (an upload's metadata blob or kv key,
80
+ * a run-scoped local). The destination is the product's to interpret; the
81
+ * platform checks only that the node and slot exist, and an output sink
82
+ * (platform-design §6.1, next change) delivers it after the run. An output
83
+ * with no binding stays a run-scoped output, readable through the run
84
+ * graph, which is what upl.im's `local` and `local_blob` destinations are.
85
+ *
86
+ * @generated from message xeonr.pipelines.v1.OutputBinding
87
+ */
88
+ export type OutputBinding = Message<"xeonr.pipelines.v1.OutputBinding"> & {
89
+ /**
90
+ * NodeID is the node whose output is bound.
91
+ *
92
+ * @generated from field: string node_id = 1;
93
+ */
94
+ nodeId: string;
95
+ /**
96
+ * Slot is a kv or blob output slot of the node's manifest, or the name of
97
+ * one of the node's artifacts.
98
+ *
99
+ * @generated from field: string slot = 2;
100
+ */
101
+ slot: string;
102
+ /**
103
+ * Destination names where the product puts the output (upl.im: a blob
104
+ * name such as `common:thumbnail_light`, or a registered metadata key).
105
+ *
106
+ * @generated from field: string destination = 3;
107
+ */
108
+ destination: string;
109
+ /**
110
+ * Options are the product's own settings for the destination (a media
111
+ * type hint, an expected value type). At most 4 KiB encoded.
112
+ *
113
+ * @generated from field: google.protobuf.Struct options = 4;
114
+ */
115
+ options?: JsonObject | undefined;
116
+ };
117
+ /**
118
+ * Describes the message xeonr.pipelines.v1.OutputBinding.
119
+ * Use `create(OutputBindingSchema)` to create a new message.
120
+ */
121
+ export declare const OutputBindingSchema: GenMessage<OutputBinding>;
122
+ /**
123
+ * PipelineSpec is what a pipeline's draft holds and a version freezes.
124
+ *
125
+ * Numbers 10 to 19 are left for platform-design §6.2's triggers.
126
+ *
127
+ * @generated from message xeonr.pipelines.v1.PipelineSpec
128
+ */
129
+ export type PipelineSpec = Message<"xeonr.pipelines.v1.PipelineSpec"> & {
130
+ /**
131
+ * Definition is the graph, as CreateRun takes it inline. In a version its
132
+ * packages are resolved to exact versions.
133
+ *
134
+ * @generated from field: xeonr.pipelines.v1.Definition definition = 1;
135
+ */
136
+ definition?: Definition | undefined;
137
+ /**
138
+ * @generated from field: xeonr.pipelines.v1.PipelinePolicy policy = 2;
139
+ */
140
+ policy?: PipelinePolicy | undefined;
141
+ /**
142
+ * Variables declare the values a caller may give a run of the pipeline,
143
+ * read in the definition as `${{ variables.<name> }}`. Each is a KV slot:
144
+ * its schema, whether it is required and its default. A run's variables
145
+ * are checked against them when it starts: an unknown name, a missing
146
+ * required one or a value its schema refuses refuses the run, and a
147
+ * default fills one left out. Steps' inputs come from these through
148
+ * `with`, so a pipeline has no separate input declarations.
149
+ *
150
+ * @generated from field: repeated xeonr.pipelines.v1.InputSlot variables = 3;
151
+ */
152
+ variables: InputSlot[];
153
+ /**
154
+ * OutputBindings map node outputs to the product's destinations.
155
+ *
156
+ * @generated from field: repeated xeonr.pipelines.v1.OutputBinding output_bindings = 4;
157
+ */
158
+ outputBindings: OutputBinding[];
159
+ };
160
+ /**
161
+ * Describes the message xeonr.pipelines.v1.PipelineSpec.
162
+ * Use `create(PipelineSpecSchema)` to create a new message.
163
+ */
164
+ export declare const PipelineSpecSchema: GenMessage<PipelineSpec>;
165
+ /**
166
+ * Pipeline is a stored, named pipeline: its binding, its state and its
167
+ * draft.
168
+ *
169
+ * Numbers 20 to 29 are left for platform-design §6.1 (system pre-pipelines,
170
+ * non-removable pipelines).
171
+ *
172
+ * @generated from message xeonr.pipelines.v1.Pipeline
173
+ */
174
+ export type Pipeline = Message<"xeonr.pipelines.v1.Pipeline"> & {
175
+ /**
176
+ * ID is assigned by the platform. Empty in a request that creates.
177
+ *
178
+ * @generated from field: string id = 1;
179
+ */
180
+ id: string;
181
+ /**
182
+ * Tenant is the owning team's URN. Fixed when the pipeline is created.
183
+ *
184
+ * @generated from field: string tenant = 2;
185
+ */
186
+ tenant: string;
187
+ /**
188
+ * Product is the Auth application the pipeline is bound to, taken from
189
+ * the token of the caller that created it; empty in a request. Its runs'
190
+ * events go to that product's sink, whoever starts them (provisional).
191
+ *
192
+ * @generated from field: string product = 3;
193
+ */
194
+ product: string;
195
+ /**
196
+ * Scope is the product's resource the pipeline is bound to: a forge
197
+ * repository, an upl.im integration, an XMB library. Fixed when the
198
+ * pipeline is created. Its resource-scoped secrets are the ones a
199
+ * resource-scoped grant finds first, as for a run of that resource.
200
+ *
201
+ * @generated from field: xeonr.pipelines.v1.ResourceRef scope = 4;
202
+ */
203
+ scope?: ResourceRef | undefined;
204
+ /**
205
+ * ResourceKinds are the kinds of resource a run of the pipeline may be
206
+ * about (upl.im: an upload or a folder of the integration). Empty means
207
+ * a run is about the scope itself (the forge: the repository). A run's
208
+ * resource of another kind is refused.
209
+ *
210
+ * @generated from field: repeated string resource_kinds = 5;
211
+ */
212
+ resourceKinds: string[];
213
+ /**
214
+ * Name is unique per (tenant, product, scope).
215
+ *
216
+ * @generated from field: string name = 6;
217
+ */
218
+ name: string;
219
+ /**
220
+ * @generated from field: string description = 7;
221
+ */
222
+ description: string;
223
+ /**
224
+ * State is set by the platform.
225
+ *
226
+ * @generated from field: xeonr.pipelines.v1.PipelineState state = 8;
227
+ */
228
+ state: PipelineState;
229
+ /**
230
+ * Draft is the editable spec. Unset in listings.
231
+ *
232
+ * @generated from field: xeonr.pipelines.v1.PipelineSpec draft = 9;
233
+ */
234
+ draft?: PipelineSpec | undefined;
235
+ /**
236
+ * DraftRevision grows with every saved draft, for
237
+ * `expected_draft_revision`. Set by the platform.
238
+ *
239
+ * @generated from field: uint64 draft_revision = 10;
240
+ */
241
+ draftRevision: bigint;
242
+ /**
243
+ * LatestVersion is the newest published version; zero before the first
244
+ * publish. Set by the platform.
245
+ *
246
+ * @generated from field: uint32 latest_version = 11;
247
+ */
248
+ latestVersion: number;
249
+ /**
250
+ * CreatedBy and UpdatedBy are subject URNs. Set by the platform.
251
+ *
252
+ * @generated from field: string created_by = 12;
253
+ */
254
+ createdBy: string;
255
+ /**
256
+ * @generated from field: string updated_by = 13;
257
+ */
258
+ updatedBy: string;
259
+ /**
260
+ * @generated from field: google.protobuf.Timestamp created_at = 14;
261
+ */
262
+ createdAt?: Timestamp | undefined;
263
+ /**
264
+ * @generated from field: google.protobuf.Timestamp updated_at = 15;
265
+ */
266
+ updatedAt?: Timestamp | undefined;
267
+ /**
268
+ * @generated from field: google.protobuf.Timestamp published_at = 16;
269
+ */
270
+ publishedAt?: Timestamp | undefined;
271
+ /**
272
+ * @generated from field: google.protobuf.Timestamp archived_at = 17;
273
+ */
274
+ archivedAt?: Timestamp | undefined;
275
+ };
276
+ /**
277
+ * Describes the message xeonr.pipelines.v1.Pipeline.
278
+ * Use `create(PipelineSchema)` to create a new message.
279
+ */
280
+ export declare const PipelineSchema: GenMessage<Pipeline>;
281
+ /**
282
+ * PipelineVersion is one published version: the snapshot a run of it
283
+ * executes, and the spec frozen in it.
284
+ *
285
+ * @generated from message xeonr.pipelines.v1.PipelineVersion
286
+ */
287
+ export type PipelineVersion = Message<"xeonr.pipelines.v1.PipelineVersion"> & {
288
+ /**
289
+ * @generated from field: string pipeline_id = 1;
290
+ */
291
+ pipelineId: string;
292
+ /**
293
+ * Version counts from 1.
294
+ *
295
+ * @generated from field: uint32 version = 2;
296
+ */
297
+ version: number;
298
+ /**
299
+ * SnapshotID is the snapshot (origin PUBLISHED) the version froze: the
300
+ * same id a run of it shows in `Run.snapshot_id`, and that
301
+ * CreateRunRequest.snapshot_id names.
302
+ *
303
+ * @generated from field: string snapshot_id = 3;
304
+ */
305
+ snapshotId: string;
306
+ /**
307
+ * Spec is the frozen spec, packages resolved to exact versions. Unset in
308
+ * listings.
309
+ *
310
+ * @generated from field: xeonr.pipelines.v1.PipelineSpec spec = 4;
311
+ */
312
+ spec?: PipelineSpec | undefined;
313
+ /**
314
+ * ContentHash is the snapshot's content hash.
315
+ *
316
+ * @generated from field: string content_hash = 5;
317
+ */
318
+ contentHash: string;
319
+ /**
320
+ * Notes are what the publisher said of the version.
321
+ *
322
+ * @generated from field: string notes = 6;
323
+ */
324
+ notes: string;
325
+ /**
326
+ * PublishedBy is the subject URN that published it.
327
+ *
328
+ * @generated from field: string published_by = 7;
329
+ */
330
+ publishedBy: string;
331
+ /**
332
+ * @generated from field: google.protobuf.Timestamp published_at = 8;
333
+ */
334
+ publishedAt?: Timestamp | undefined;
335
+ };
336
+ /**
337
+ * Describes the message xeonr.pipelines.v1.PipelineVersion.
338
+ * Use `create(PipelineVersionSchema)` to create a new message.
339
+ */
340
+ export declare const PipelineVersionSchema: GenMessage<PipelineVersion>;
341
+ /**
342
+ * DefinitionProblem is one reason CreateRun would refuse a definition.
343
+ *
344
+ * @generated from message xeonr.pipelines.v1.DefinitionProblem
345
+ */
346
+ export type DefinitionProblem = Message<"xeonr.pipelines.v1.DefinitionProblem"> & {
347
+ /**
348
+ * @generated from field: xeonr.pipelines.v1.DefinitionProblemKind kind = 1;
349
+ */
350
+ kind: DefinitionProblemKind;
351
+ /**
352
+ * NodeID is the node the problem is in; empty for one of the whole
353
+ * definition.
354
+ *
355
+ * @generated from field: string node_id = 2;
356
+ */
357
+ nodeId: string;
358
+ /**
359
+ * Message says what is wrong, as CreateRun's error would.
360
+ *
361
+ * @generated from field: string message = 3;
362
+ */
363
+ message: string;
364
+ };
365
+ /**
366
+ * Describes the message xeonr.pipelines.v1.DefinitionProblem.
367
+ * Use `create(DefinitionProblemSchema)` to create a new message.
368
+ */
369
+ export declare const DefinitionProblemSchema: GenMessage<DefinitionProblem>;
370
+ /**
371
+ * ResolvedNode is one node of a definition as a run would execute it.
372
+ *
373
+ * @generated from message xeonr.pipelines.v1.ResolvedNode
374
+ */
375
+ export type ResolvedNode = Message<"xeonr.pipelines.v1.ResolvedNode"> & {
376
+ /**
377
+ * @generated from field: string node_id = 1;
378
+ */
379
+ nodeId: string;
380
+ /**
381
+ * Package is the exact version the node resolves to; unset for a trigger
382
+ * node.
383
+ *
384
+ * @generated from field: xeonr.pipelines.v1.PackageRef package = 2;
385
+ */
386
+ package?: PackageRef | undefined;
387
+ /**
388
+ * @generated from field: xeonr.pipelines.v1.PackageKind kind = 3;
389
+ */
390
+ kind: PackageKind;
391
+ /**
392
+ * Needs are the node's edges: the nodes it waits for.
393
+ *
394
+ * @generated from field: repeated string needs = 4;
395
+ */
396
+ needs: string[];
397
+ /**
398
+ * Capabilities are what the node asks of its pool: its manifest's and its
399
+ * `runs_on`'s.
400
+ *
401
+ * @generated from field: repeated string capabilities = 5;
402
+ */
403
+ capabilities: string[];
404
+ /**
405
+ * Secrets are the names of the secrets the node would be delivered if
406
+ * each secret's policy allows it: its grants ∩ the manifest's
407
+ * `required_secrets`. Policies are not evaluated here.
408
+ *
409
+ * @generated from field: repeated string secrets = 6;
410
+ */
411
+ secrets: string[];
412
+ /**
413
+ * Tier is the tier the node's attempts would be computed into, from the
414
+ * request's attested facts.
415
+ *
416
+ * @generated from field: string tier = 7;
417
+ */
418
+ tier: string;
419
+ };
420
+ /**
421
+ * Describes the message xeonr.pipelines.v1.ResolvedNode.
422
+ * Use `create(ResolvedNodeSchema)` to create a new message.
423
+ */
424
+ export declare const ResolvedNodeSchema: GenMessage<ResolvedNode>;
425
+ /**
426
+ * @generated from message xeonr.pipelines.v1.SetPipelineRequest
427
+ */
428
+ export type SetPipelineRequest = Message<"xeonr.pipelines.v1.SetPipelineRequest"> & {
429
+ /**
430
+ * Pipeline is matched on (tenant, caller's product, scope, name). Its
431
+ * `id`, when given, must be the matched pipeline's.
432
+ *
433
+ * @generated from field: xeonr.pipelines.v1.Pipeline pipeline = 1;
434
+ */
435
+ pipeline?: Pipeline | undefined;
436
+ /**
437
+ * UpdateMask narrows a write to an existing pipeline to the fields it
438
+ * names. Ignored when the pipeline is created.
439
+ *
440
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
441
+ */
442
+ updateMask?: FieldMask | undefined;
443
+ /**
444
+ * ExpectedDraftRevision, when set, refuses the write with `aborted`
445
+ * unless the draft is still at this revision.
446
+ *
447
+ * @generated from field: optional uint64 expected_draft_revision = 3;
448
+ */
449
+ expectedDraftRevision?: bigint | undefined;
450
+ };
451
+ /**
452
+ * Describes the message xeonr.pipelines.v1.SetPipelineRequest.
453
+ * Use `create(SetPipelineRequestSchema)` to create a new message.
454
+ */
455
+ export declare const SetPipelineRequestSchema: GenMessage<SetPipelineRequest>;
456
+ /**
457
+ * @generated from message xeonr.pipelines.v1.SetPipelineResponse
458
+ */
459
+ export type SetPipelineResponse = Message<"xeonr.pipelines.v1.SetPipelineResponse"> & {
460
+ /**
461
+ * @generated from field: xeonr.pipelines.v1.Pipeline pipeline = 1;
462
+ */
463
+ pipeline?: Pipeline | undefined;
464
+ /**
465
+ * Created says the pipeline did not exist before.
466
+ *
467
+ * @generated from field: bool created = 2;
468
+ */
469
+ created: boolean;
470
+ };
471
+ /**
472
+ * Describes the message xeonr.pipelines.v1.SetPipelineResponse.
473
+ * Use `create(SetPipelineResponseSchema)` to create a new message.
474
+ */
475
+ export declare const SetPipelineResponseSchema: GenMessage<SetPipelineResponse>;
476
+ /**
477
+ * @generated from message xeonr.pipelines.v1.GetPipelineRequest
478
+ */
479
+ export type GetPipelineRequest = Message<"xeonr.pipelines.v1.GetPipelineRequest"> & {
480
+ /**
481
+ * Pipeline names the pipeline to read.
482
+ *
483
+ * @generated from oneof xeonr.pipelines.v1.GetPipelineRequest.pipeline
484
+ */
485
+ pipeline: {
486
+ /**
487
+ * PipelineID is the pipeline's id.
488
+ *
489
+ * @generated from field: string pipeline_id = 1;
490
+ */
491
+ value: string;
492
+ case: "pipelineId";
493
+ } | {
494
+ /**
495
+ * ByName is the pipeline's tenant, product, scope and name.
496
+ *
497
+ * @generated from field: xeonr.pipelines.v1.PipelineName by_name = 2;
498
+ */
499
+ value: PipelineName;
500
+ case: "byName";
501
+ } | {
502
+ case: undefined;
503
+ value?: undefined;
504
+ };
505
+ };
506
+ /**
507
+ * Describes the message xeonr.pipelines.v1.GetPipelineRequest.
508
+ * Use `create(GetPipelineRequestSchema)` to create a new message.
509
+ */
510
+ export declare const GetPipelineRequestSchema: GenMessage<GetPipelineRequest>;
511
+ /**
512
+ * @generated from message xeonr.pipelines.v1.GetPipelineResponse
513
+ */
514
+ export type GetPipelineResponse = Message<"xeonr.pipelines.v1.GetPipelineResponse"> & {
515
+ /**
516
+ * @generated from field: xeonr.pipelines.v1.Pipeline pipeline = 1;
517
+ */
518
+ pipeline?: Pipeline | undefined;
519
+ };
520
+ /**
521
+ * Describes the message xeonr.pipelines.v1.GetPipelineResponse.
522
+ * Use `create(GetPipelineResponseSchema)` to create a new message.
523
+ */
524
+ export declare const GetPipelineResponseSchema: GenMessage<GetPipelineResponse>;
525
+ /**
526
+ * @generated from message xeonr.pipelines.v1.ListPipelinesRequest
527
+ */
528
+ export type ListPipelinesRequest = Message<"xeonr.pipelines.v1.ListPipelinesRequest"> & {
529
+ /**
530
+ * Tenant is the team whose pipelines are listed.
531
+ *
532
+ * @generated from field: string tenant = 1;
533
+ */
534
+ tenant: string;
535
+ /**
536
+ * Product narrows to the pipelines bound to one product.
537
+ *
538
+ * @generated from field: string product = 2;
539
+ */
540
+ product: string;
541
+ /**
542
+ * Scope narrows to the pipelines bound to one resource.
543
+ *
544
+ * @generated from field: xeonr.pipelines.v1.ResourceRef scope = 3;
545
+ */
546
+ scope?: ResourceRef | undefined;
547
+ /**
548
+ * IncludeArchived adds archived pipelines.
549
+ *
550
+ * validate:skip a bool has no bounds
551
+ *
552
+ * @generated from field: bool include_archived = 4;
553
+ */
554
+ includeArchived: boolean;
555
+ /**
556
+ * Cursor is opaque, empty for the first page.
557
+ *
558
+ * @generated from field: string cursor = 5;
559
+ */
560
+ cursor: string;
561
+ /**
562
+ * Limit is capped at 500; zero means the default of 50.
563
+ *
564
+ * @generated from field: uint32 limit = 6;
565
+ */
566
+ limit: number;
567
+ /**
568
+ * States narrows to pipelines in any of these states. PUBLISHED lists
569
+ * the pipelines a sub-pipeline node can run (upl.im's "composable
570
+ * pipelines"); empty lists all but archived ones, unless
571
+ * `include_archived`.
572
+ *
573
+ * @generated from field: repeated xeonr.pipelines.v1.PipelineState states = 7;
574
+ */
575
+ states: PipelineState[];
576
+ };
577
+ /**
578
+ * Describes the message xeonr.pipelines.v1.ListPipelinesRequest.
579
+ * Use `create(ListPipelinesRequestSchema)` to create a new message.
580
+ */
581
+ export declare const ListPipelinesRequestSchema: GenMessage<ListPipelinesRequest>;
582
+ /**
583
+ * @generated from message xeonr.pipelines.v1.ListPipelinesResponse
584
+ */
585
+ export type ListPipelinesResponse = Message<"xeonr.pipelines.v1.ListPipelinesResponse"> & {
586
+ /**
587
+ * @generated from field: repeated xeonr.pipelines.v1.Pipeline pipelines = 1;
588
+ */
589
+ pipelines: Pipeline[];
590
+ /**
591
+ * NextCursor is empty when there is no further page.
592
+ *
593
+ * @generated from field: string next_cursor = 2;
594
+ */
595
+ nextCursor: string;
596
+ };
597
+ /**
598
+ * Describes the message xeonr.pipelines.v1.ListPipelinesResponse.
599
+ * Use `create(ListPipelinesResponseSchema)` to create a new message.
600
+ */
601
+ export declare const ListPipelinesResponseSchema: GenMessage<ListPipelinesResponse>;
602
+ /**
603
+ * @generated from message xeonr.pipelines.v1.ValidateDefinitionRequest
604
+ */
605
+ export type ValidateDefinitionRequest = Message<"xeonr.pipelines.v1.ValidateDefinitionRequest"> & {
606
+ /**
607
+ * Tenant is the team the run would belong to.
608
+ *
609
+ * @generated from field: string tenant = 1;
610
+ */
611
+ tenant: string;
612
+ /**
613
+ * Resource is what the run would be about. Unset skips the checks that
614
+ * depend on it (a manifest's accepted resource kinds).
615
+ *
616
+ * @generated from field: xeonr.pipelines.v1.Resource resource = 2;
617
+ */
618
+ resource?: Resource | undefined;
619
+ /**
620
+ * AttestedFacts are the facts the run would carry, from which tiers, and
621
+ * so the pool check, are computed. Unset is a run with no facts.
622
+ *
623
+ * @generated from field: google.protobuf.Struct attested_facts = 3;
624
+ */
625
+ attestedFacts?: JsonObject | undefined;
626
+ /**
627
+ * Source is what to check.
628
+ *
629
+ * @generated from oneof xeonr.pipelines.v1.ValidateDefinitionRequest.source
630
+ */
631
+ source: {
632
+ /**
633
+ * Definition is a definition CreateRun would take inline.
634
+ *
635
+ * @generated from field: xeonr.pipelines.v1.Definition definition = 4;
636
+ */
637
+ value: Definition;
638
+ case: "definition";
639
+ } | {
640
+ /**
641
+ * Spec is a whole pipeline spec: its definition, and its variables and
642
+ * output bindings against it.
643
+ *
644
+ * @generated from field: xeonr.pipelines.v1.PipelineSpec spec = 5;
645
+ */
646
+ value: PipelineSpec;
647
+ case: "spec";
648
+ } | {
649
+ /**
650
+ * PipelineID checks that stored pipeline's draft, as PublishPipeline
651
+ * would.
652
+ *
653
+ * @generated from field: string pipeline_id = 6;
654
+ */
655
+ value: string;
656
+ case: "pipelineId";
657
+ } | {
658
+ case: undefined;
659
+ value?: undefined;
660
+ };
661
+ /**
662
+ * Variables are the values the run would be started with, checked
663
+ * against a spec's declarations when there are some. At most 64 KiB
664
+ * encoded.
665
+ *
666
+ * @generated from field: google.protobuf.Struct variables = 7;
667
+ */
668
+ variables?: JsonObject | undefined;
669
+ };
670
+ /**
671
+ * Describes the message xeonr.pipelines.v1.ValidateDefinitionRequest.
672
+ * Use `create(ValidateDefinitionRequestSchema)` to create a new message.
673
+ */
674
+ export declare const ValidateDefinitionRequestSchema: GenMessage<ValidateDefinitionRequest>;
675
+ /**
676
+ * @generated from message xeonr.pipelines.v1.ValidateDefinitionResponse
677
+ */
678
+ export type ValidateDefinitionResponse = Message<"xeonr.pipelines.v1.ValidateDefinitionResponse"> & {
679
+ /**
680
+ * Valid says there are no problems: CreateRun would accept it.
681
+ *
682
+ * @generated from field: bool valid = 1;
683
+ */
684
+ valid: boolean;
685
+ /**
686
+ * Problems are every reason CreateRun would refuse it.
687
+ *
688
+ * @generated from field: repeated xeonr.pipelines.v1.DefinitionProblem problems = 2;
689
+ */
690
+ problems: DefinitionProblem[];
691
+ /**
692
+ * Nodes are the resolved graph, as far as it could be resolved.
693
+ *
694
+ * @generated from field: repeated xeonr.pipelines.v1.ResolvedNode nodes = 3;
695
+ */
696
+ nodes: ResolvedNode[];
697
+ };
698
+ /**
699
+ * Describes the message xeonr.pipelines.v1.ValidateDefinitionResponse.
700
+ * Use `create(ValidateDefinitionResponseSchema)` to create a new message.
701
+ */
702
+ export declare const ValidateDefinitionResponseSchema: GenMessage<ValidateDefinitionResponse>;
703
+ /**
704
+ * @generated from message xeonr.pipelines.v1.PublishPipelineRequest
705
+ */
706
+ export type PublishPipelineRequest = Message<"xeonr.pipelines.v1.PublishPipelineRequest"> & {
707
+ /**
708
+ * @generated from field: string pipeline_id = 1;
709
+ */
710
+ pipelineId: string;
711
+ /**
712
+ * ExpectedDraftRevision, when set, refuses the publish with `aborted`
713
+ * unless the draft is still at this revision: what the publisher looked
714
+ * at is what is frozen.
715
+ *
716
+ * @generated from field: optional uint64 expected_draft_revision = 2;
717
+ */
718
+ expectedDraftRevision?: bigint | undefined;
719
+ /**
720
+ * Notes say what changed, kept with the version.
721
+ *
722
+ * @generated from field: string notes = 3;
723
+ */
724
+ notes: string;
725
+ };
726
+ /**
727
+ * Describes the message xeonr.pipelines.v1.PublishPipelineRequest.
728
+ * Use `create(PublishPipelineRequestSchema)` to create a new message.
729
+ */
730
+ export declare const PublishPipelineRequestSchema: GenMessage<PublishPipelineRequest>;
731
+ /**
732
+ * @generated from message xeonr.pipelines.v1.PublishPipelineResponse
733
+ */
734
+ export type PublishPipelineResponse = Message<"xeonr.pipelines.v1.PublishPipelineResponse"> & {
735
+ /**
736
+ * @generated from field: xeonr.pipelines.v1.Pipeline pipeline = 1;
737
+ */
738
+ pipeline?: Pipeline | undefined;
739
+ /**
740
+ * Version is the version published, or the latest one when `unchanged`.
741
+ *
742
+ * @generated from field: xeonr.pipelines.v1.PipelineVersion version = 2;
743
+ */
744
+ version?: PipelineVersion | undefined;
745
+ /**
746
+ * Unchanged says the draft equals the latest version and nothing new was
747
+ * published.
748
+ *
749
+ * @generated from field: bool unchanged = 3;
750
+ */
751
+ unchanged: boolean;
752
+ };
753
+ /**
754
+ * Describes the message xeonr.pipelines.v1.PublishPipelineResponse.
755
+ * Use `create(PublishPipelineResponseSchema)` to create a new message.
756
+ */
757
+ export declare const PublishPipelineResponseSchema: GenMessage<PublishPipelineResponse>;
758
+ /**
759
+ * @generated from message xeonr.pipelines.v1.ListPipelineVersionsRequest
760
+ */
761
+ export type ListPipelineVersionsRequest = Message<"xeonr.pipelines.v1.ListPipelineVersionsRequest"> & {
762
+ /**
763
+ * @generated from field: string pipeline_id = 1;
764
+ */
765
+ pipelineId: string;
766
+ /**
767
+ * Cursor is opaque, empty for the first page.
768
+ *
769
+ * @generated from field: string cursor = 2;
770
+ */
771
+ cursor: string;
772
+ /**
773
+ * Limit is capped at 500; zero means the default of 50.
774
+ *
775
+ * @generated from field: uint32 limit = 3;
776
+ */
777
+ limit: number;
778
+ };
779
+ /**
780
+ * Describes the message xeonr.pipelines.v1.ListPipelineVersionsRequest.
781
+ * Use `create(ListPipelineVersionsRequestSchema)` to create a new message.
782
+ */
783
+ export declare const ListPipelineVersionsRequestSchema: GenMessage<ListPipelineVersionsRequest>;
784
+ /**
785
+ * @generated from message xeonr.pipelines.v1.ListPipelineVersionsResponse
786
+ */
787
+ export type ListPipelineVersionsResponse = Message<"xeonr.pipelines.v1.ListPipelineVersionsResponse"> & {
788
+ /**
789
+ * @generated from field: repeated xeonr.pipelines.v1.PipelineVersion versions = 1;
790
+ */
791
+ versions: PipelineVersion[];
792
+ /**
793
+ * NextCursor is empty when there is no further page.
794
+ *
795
+ * @generated from field: string next_cursor = 2;
796
+ */
797
+ nextCursor: string;
798
+ };
799
+ /**
800
+ * Describes the message xeonr.pipelines.v1.ListPipelineVersionsResponse.
801
+ * Use `create(ListPipelineVersionsResponseSchema)` to create a new message.
802
+ */
803
+ export declare const ListPipelineVersionsResponseSchema: GenMessage<ListPipelineVersionsResponse>;
804
+ /**
805
+ * @generated from message xeonr.pipelines.v1.GetPipelineVersionRequest
806
+ */
807
+ export type GetPipelineVersionRequest = Message<"xeonr.pipelines.v1.GetPipelineVersionRequest"> & {
808
+ /**
809
+ * @generated from field: string pipeline_id = 1;
810
+ */
811
+ pipelineId: string;
812
+ /**
813
+ * Version is the version to read; zero reads the latest.
814
+ *
815
+ * @generated from field: uint32 version = 2;
816
+ */
817
+ version: number;
818
+ };
819
+ /**
820
+ * Describes the message xeonr.pipelines.v1.GetPipelineVersionRequest.
821
+ * Use `create(GetPipelineVersionRequestSchema)` to create a new message.
822
+ */
823
+ export declare const GetPipelineVersionRequestSchema: GenMessage<GetPipelineVersionRequest>;
824
+ /**
825
+ * @generated from message xeonr.pipelines.v1.GetPipelineVersionResponse
826
+ */
827
+ export type GetPipelineVersionResponse = Message<"xeonr.pipelines.v1.GetPipelineVersionResponse"> & {
828
+ /**
829
+ * @generated from field: xeonr.pipelines.v1.PipelineVersion version = 1;
830
+ */
831
+ version?: PipelineVersion | undefined;
832
+ };
833
+ /**
834
+ * Describes the message xeonr.pipelines.v1.GetPipelineVersionResponse.
835
+ * Use `create(GetPipelineVersionResponseSchema)` to create a new message.
836
+ */
837
+ export declare const GetPipelineVersionResponseSchema: GenMessage<GetPipelineVersionResponse>;
838
+ /**
839
+ * @generated from message xeonr.pipelines.v1.MarkPipelineArchivedRequest
840
+ */
841
+ export type MarkPipelineArchivedRequest = Message<"xeonr.pipelines.v1.MarkPipelineArchivedRequest"> & {
842
+ /**
843
+ * @generated from field: string pipeline_id = 1;
844
+ */
845
+ pipelineId: string;
846
+ /**
847
+ * Reason is kept in the audit trail.
848
+ *
849
+ * @generated from field: string reason = 2;
850
+ */
851
+ reason: string;
852
+ };
853
+ /**
854
+ * Describes the message xeonr.pipelines.v1.MarkPipelineArchivedRequest.
855
+ * Use `create(MarkPipelineArchivedRequestSchema)` to create a new message.
856
+ */
857
+ export declare const MarkPipelineArchivedRequestSchema: GenMessage<MarkPipelineArchivedRequest>;
858
+ /**
859
+ * @generated from message xeonr.pipelines.v1.MarkPipelineArchivedResponse
860
+ */
861
+ export type MarkPipelineArchivedResponse = Message<"xeonr.pipelines.v1.MarkPipelineArchivedResponse"> & {
862
+ /**
863
+ * @generated from field: xeonr.pipelines.v1.Pipeline pipeline = 1;
864
+ */
865
+ pipeline?: Pipeline | undefined;
866
+ };
867
+ /**
868
+ * Describes the message xeonr.pipelines.v1.MarkPipelineArchivedResponse.
869
+ * Use `create(MarkPipelineArchivedResponseSchema)` to create a new message.
870
+ */
871
+ export declare const MarkPipelineArchivedResponseSchema: GenMessage<MarkPipelineArchivedResponse>;
872
+ /**
873
+ * PipelineState is where a pipeline is.
874
+ *
875
+ * @generated from enum xeonr.pipelines.v1.PipelineState
876
+ */
877
+ export declare enum PipelineState {
878
+ /**
879
+ * @generated from enum value: PIPELINE_STATE_UNSPECIFIED = 0;
880
+ */
881
+ UNSPECIFIED = 0,
882
+ /**
883
+ * Never published: it has a draft and no version, and cannot be started.
884
+ *
885
+ * @generated from enum value: PIPELINE_STATE_DRAFT = 1;
886
+ */
887
+ DRAFT = 1,
888
+ /**
889
+ * At least one version is published. The draft may differ from it.
890
+ *
891
+ * @generated from enum value: PIPELINE_STATE_PUBLISHED = 2;
892
+ */
893
+ PUBLISHED = 2,
894
+ /**
895
+ * Archived: read-only, and not startable.
896
+ *
897
+ * @generated from enum value: PIPELINE_STATE_ARCHIVED = 3;
898
+ */
899
+ ARCHIVED = 3
900
+ }
901
+ /**
902
+ * Describes the enum xeonr.pipelines.v1.PipelineState.
903
+ */
904
+ export declare const PipelineStateSchema: GenEnum<PipelineState>;
905
+ /**
906
+ * ExclusionScope is what a pipeline's runs exclude one another over. It is
907
+ * platform-design §7.4's `exclusion_key`, without the expression: the
908
+ * CI-first plan's definitions carry no string interpolation, so the key is
909
+ * derived by the platform from the pipeline and, for RESOURCE, the run's
910
+ * resource.
911
+ *
912
+ * @generated from enum xeonr.pipelines.v1.ExclusionScope
913
+ */
914
+ export declare enum ExclusionScope {
915
+ /**
916
+ * No exclusion from the pipeline (a caller may still give one to
917
+ * CreateRun).
918
+ *
919
+ * @generated from enum value: EXCLUSION_SCOPE_UNSPECIFIED = 0;
920
+ */
921
+ UNSPECIFIED = 0,
922
+ /**
923
+ * At most one run of the pipeline executes at a time.
924
+ *
925
+ * @generated from enum value: EXCLUSION_SCOPE_PIPELINE = 1;
926
+ */
927
+ PIPELINE = 1,
928
+ /**
929
+ * At most one run of the pipeline per resource (kind and id) executes at
930
+ * a time.
931
+ *
932
+ * @generated from enum value: EXCLUSION_SCOPE_RESOURCE = 2;
933
+ */
934
+ RESOURCE = 2
935
+ }
936
+ /**
937
+ * Describes the enum xeonr.pipelines.v1.ExclusionScope.
938
+ */
939
+ export declare const ExclusionScopeSchema: GenEnum<ExclusionScope>;
940
+ /**
941
+ * DefinitionProblemKind is which of CreateRun's refusals a problem is.
942
+ *
943
+ * @generated from enum xeonr.pipelines.v1.DefinitionProblemKind
944
+ */
945
+ export declare enum DefinitionProblemKind {
946
+ /**
947
+ * @generated from enum value: DEFINITION_PROBLEM_KIND_UNSPECIFIED = 0;
948
+ */
949
+ UNSPECIFIED = 0,
950
+ /**
951
+ * The definition is wrong: CreateRun answers `invalid_argument`.
952
+ *
953
+ * @generated from enum value: DEFINITION_PROBLEM_KIND_INVALID = 1;
954
+ */
955
+ INVALID = 1,
956
+ /**
957
+ * It uses something not implemented yet: CreateRun answers
958
+ * `unimplemented`.
959
+ *
960
+ * @generated from enum value: DEFINITION_PROBLEM_KIND_UNIMPLEMENTED = 2;
961
+ */
962
+ UNIMPLEMENTED = 2,
963
+ /**
964
+ * No pool available to the tenant can run the node at its tier:
965
+ * CreateRun answers `failed_precondition`.
966
+ *
967
+ * @generated from enum value: DEFINITION_PROBLEM_KIND_NO_POOL = 3;
968
+ */
969
+ NO_POOL = 3
970
+ }
971
+ /**
972
+ * Describes the enum xeonr.pipelines.v1.DefinitionProblemKind.
973
+ */
974
+ export declare const DefinitionProblemKindSchema: GenEnum<DefinitionProblemKind>;
975
+ /**
976
+ * PipelinesService holds stored pipelines: platform-design §2 ("Pipeline",
977
+ * "Snapshot"), §5.3 and §11's "Definitions" group (CRUD pipelines, validate,
978
+ * publish, list snapshots). Milestone 4 in the CI-first plan ("Milestone 4",
979
+ * and the seam "draft / publish snapshots sharing the snapshot table with
980
+ * inline ones").
981
+ *
982
+ * A pipeline is a tenant-owned document bound to a product and to one of
983
+ * that product's resources: the forge binds a pipeline to a repository,
984
+ * upl.im to an integration, XMB to a library. Its body is the platform's
985
+ * Definition (the graph a CreateRun would take inline) with a policy, the
986
+ * variables a caller may supply, and output bindings. It has one draft,
987
+ * saved freely, and immutable published versions. Publishing validates the
988
+ * draft as CreateRun would, resolves every package to its exact version and
989
+ * freezes the result as a snapshot of origin PUBLISHED, in the same snapshot
990
+ * table, with the same content hash, that inline runs use (origin INLINE).
991
+ * A run of a version executes that snapshot, so editing the draft never
992
+ * touches a run (platform-design §5.3: "a run's behavior is fully determined
993
+ * by its snapshot").
994
+ *
995
+ * Who calls it. A product calls it on behalf of its users with its own
996
+ * service token, exactly as it starts runs; the pipelines console and the
997
+ * CLI are more callers, with a person's token. Ownership is the public
998
+ * API's: a person must be a member of the pipeline's tenant (asked of Auth
999
+ * as the caller), and a service account must act for the tenant (its
1000
+ * product bound to it, or a member itself), as for CreateRun.
1001
+ *
1002
+ * A stored pipeline grants nothing by itself. Secrets still reach a step
1003
+ * only as the node's grant ∩ the manifest's `required_secrets` ∩ the
1004
+ * secret's own policy; the tier is still computed from the run's attested
1005
+ * facts and the step package; attested facts still come only from the
1006
+ * caller that starts the run (CreateRunRequest.attested_facts), never from
1007
+ * the pipeline.
1008
+ *
1009
+ * Not in this change, and where each attaches (platform-design §6):
1010
+ *
1011
+ * - triggers (§6.2: event, api, cron, webhook, with a filter): a
1012
+ * `repeated Trigger triggers` on PipelineSpec, numbers 10 to 19, so
1013
+ * that a trigger is versioned with the graph it starts; `api` is what
1014
+ * CreateRun with a PipelineSource already is;
1015
+ * - system pre-pipelines and non-removable pipelines (§6.1): fields of
1016
+ * Pipeline, numbers 20 to 29;
1017
+ * - ResourceProvider (§6.1): resolves `resource.json` at trigger time;
1018
+ * nothing here changes, since a run already carries its resource;
1019
+ * - output sinks (§6.1): deliver what `output_bindings` say; the bindings
1020
+ * are stored and validated now, and delivered by that change;
1021
+ * - enumeration and `for_each`: a trigger's and a node's, not a
1022
+ * pipeline's.
1023
+ *
1024
+ * Verbs outside api.rpc-naming's, each for a reason:
1025
+ *
1026
+ * - PublishPipeline: publishing is the rule's own example of a verb with
1027
+ * no fit (a version is immutable, and the publish runs the validation
1028
+ * gate), as RegistryService.PublishVersion is.
1029
+ * - ValidateDefinition: it creates and changes nothing; it answers what a
1030
+ * create would refuse, which `Get` does not describe.
1031
+ *
1032
+ * @generated from service xeonr.pipelines.v1.PipelinesService
1033
+ */
1034
+ export declare const PipelinesService: GenService<{
1035
+ /**
1036
+ * @generated from rpc xeonr.pipelines.v1.PipelinesService.SetPipeline
1037
+ */
1038
+ setPipeline: {
1039
+ methodKind: "unary";
1040
+ input: typeof SetPipelineRequestSchema;
1041
+ output: typeof SetPipelineResponseSchema;
1042
+ };
1043
+ /**
1044
+ * @generated from rpc xeonr.pipelines.v1.PipelinesService.GetPipeline
1045
+ */
1046
+ getPipeline: {
1047
+ methodKind: "unary";
1048
+ input: typeof GetPipelineRequestSchema;
1049
+ output: typeof GetPipelineResponseSchema;
1050
+ };
1051
+ /**
1052
+ * @generated from rpc xeonr.pipelines.v1.PipelinesService.ListPipelines
1053
+ */
1054
+ listPipelines: {
1055
+ methodKind: "unary";
1056
+ input: typeof ListPipelinesRequestSchema;
1057
+ output: typeof ListPipelinesResponseSchema;
1058
+ };
1059
+ /**
1060
+ * @generated from rpc xeonr.pipelines.v1.PipelinesService.ValidateDefinition
1061
+ */
1062
+ validateDefinition: {
1063
+ methodKind: "unary";
1064
+ input: typeof ValidateDefinitionRequestSchema;
1065
+ output: typeof ValidateDefinitionResponseSchema;
1066
+ };
1067
+ /**
1068
+ * @generated from rpc xeonr.pipelines.v1.PipelinesService.PublishPipeline
1069
+ */
1070
+ publishPipeline: {
1071
+ methodKind: "unary";
1072
+ input: typeof PublishPipelineRequestSchema;
1073
+ output: typeof PublishPipelineResponseSchema;
1074
+ };
1075
+ /**
1076
+ * @generated from rpc xeonr.pipelines.v1.PipelinesService.ListPipelineVersions
1077
+ */
1078
+ listPipelineVersions: {
1079
+ methodKind: "unary";
1080
+ input: typeof ListPipelineVersionsRequestSchema;
1081
+ output: typeof ListPipelineVersionsResponseSchema;
1082
+ };
1083
+ /**
1084
+ * @generated from rpc xeonr.pipelines.v1.PipelinesService.GetPipelineVersion
1085
+ */
1086
+ getPipelineVersion: {
1087
+ methodKind: "unary";
1088
+ input: typeof GetPipelineVersionRequestSchema;
1089
+ output: typeof GetPipelineVersionResponseSchema;
1090
+ };
1091
+ /**
1092
+ * @generated from rpc xeonr.pipelines.v1.PipelinesService.MarkPipelineArchived
1093
+ */
1094
+ markPipelineArchived: {
1095
+ methodKind: "unary";
1096
+ input: typeof MarkPipelineArchivedRequestSchema;
1097
+ output: typeof MarkPipelineArchivedResponseSchema;
1098
+ };
1099
+ }>;
1100
+ //# sourceMappingURL=pipelines_pb.d.ts.map