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