@xeonr/pipelines-sdk 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/README.md +334 -2
  2. package/dist/auth.d.ts +72 -0
  3. package/dist/auth.d.ts.map +1 -0
  4. package/dist/auth.js +139 -0
  5. package/dist/auth.js.map +1 -0
  6. package/dist/client.d.ts +129 -0
  7. package/dist/client.d.ts.map +1 -0
  8. package/dist/client.js +106 -0
  9. package/dist/client.js.map +1 -0
  10. package/dist/errors.d.ts +113 -0
  11. package/dist/errors.d.ts.map +1 -0
  12. package/dist/errors.js +115 -0
  13. package/dist/errors.js.map +1 -0
  14. package/dist/gen/buf/validate/validate_pb.d.ts +4828 -0
  15. package/dist/gen/buf/validate/validate_pb.d.ts.map +1 -0
  16. package/dist/gen/buf/validate/validate_pb.js +357 -0
  17. package/dist/gen/buf/validate/validate_pb.js.map +1 -0
  18. package/dist/gen/gnostic/openapi/v3/annotations_pb.d.ts +24 -0
  19. package/dist/gen/gnostic/openapi/v3/annotations_pb.d.ts.map +1 -0
  20. package/dist/gen/gnostic/openapi/v3/annotations_pb.js +37 -0
  21. package/dist/gen/gnostic/openapi/v3/annotations_pb.js.map +1 -0
  22. package/dist/gen/gnostic/openapi/v3/openapiv3_pb.d.ts +2245 -0
  23. package/dist/gen/gnostic/openapi/v3/openapiv3_pb.d.ts.map +1 -0
  24. package/dist/gen/gnostic/openapi/v3/openapiv3_pb.js +410 -0
  25. package/dist/gen/gnostic/openapi/v3/openapiv3_pb.js.map +1 -0
  26. package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.d.ts +1031 -0
  27. package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.d.ts.map +1 -0
  28. package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.js +219 -0
  29. package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.js.map +1 -0
  30. package/dist/gen/xeonr/pipelines/private/v1/runners_pb.d.ts +190 -0
  31. package/dist/gen/xeonr/pipelines/private/v1/runners_pb.d.ts.map +1 -0
  32. package/dist/gen/xeonr/pipelines/private/v1/runners_pb.js +53 -0
  33. package/dist/gen/xeonr/pipelines/private/v1/runners_pb.js.map +1 -0
  34. package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.d.ts +1161 -0
  35. package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.d.ts.map +1 -0
  36. package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.js +269 -0
  37. package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.js.map +1 -0
  38. package/dist/gen/xeonr/pipelines/private/v1/worker_pb.d.ts +1061 -0
  39. package/dist/gen/xeonr/pipelines/private/v1/worker_pb.d.ts.map +1 -0
  40. package/dist/gen/xeonr/pipelines/private/v1/worker_pb.js +221 -0
  41. package/dist/gen/xeonr/pipelines/private/v1/worker_pb.js.map +1 -0
  42. package/dist/gen/xeonr/pipelines/v1/common_pb.d.ts +580 -0
  43. package/dist/gen/xeonr/pipelines/v1/common_pb.d.ts.map +1 -0
  44. package/dist/gen/xeonr/pipelines/v1/common_pb.js +483 -0
  45. package/dist/gen/xeonr/pipelines/v1/common_pb.js.map +1 -0
  46. package/dist/gen/xeonr/pipelines/v1/definition_pb.d.ts +762 -0
  47. package/dist/gen/xeonr/pipelines/v1/definition_pb.d.ts.map +1 -0
  48. package/dist/gen/xeonr/pipelines/v1/definition_pb.js +190 -0
  49. package/dist/gen/xeonr/pipelines/v1/definition_pb.js.map +1 -0
  50. package/dist/gen/xeonr/pipelines/v1/pools_pb.d.ts +919 -0
  51. package/dist/gen/xeonr/pipelines/v1/pools_pb.d.ts.map +1 -0
  52. package/dist/gen/xeonr/pipelines/v1/pools_pb.js +272 -0
  53. package/dist/gen/xeonr/pipelines/v1/pools_pb.js.map +1 -0
  54. package/dist/gen/xeonr/pipelines/v1/registry_pb.d.ts +895 -0
  55. package/dist/gen/xeonr/pipelines/v1/registry_pb.d.ts.map +1 -0
  56. package/dist/gen/xeonr/pipelines/v1/registry_pb.js +277 -0
  57. package/dist/gen/xeonr/pipelines/v1/registry_pb.js.map +1 -0
  58. package/dist/gen/xeonr/pipelines/v1/runs_pb.d.ts +1237 -0
  59. package/dist/gen/xeonr/pipelines/v1/runs_pb.d.ts.map +1 -0
  60. package/dist/gen/xeonr/pipelines/v1/runs_pb.js +204 -0
  61. package/dist/gen/xeonr/pipelines/v1/runs_pb.js.map +1 -0
  62. package/dist/gen/xeonr/pipelines/v1/secrets_pb.d.ts +647 -0
  63. package/dist/gen/xeonr/pipelines/v1/secrets_pb.d.ts.map +1 -0
  64. package/dist/gen/xeonr/pipelines/v1/secrets_pb.js +181 -0
  65. package/dist/gen/xeonr/pipelines/v1/secrets_pb.js.map +1 -0
  66. package/dist/gen/xeonr/pipelines/v1/sinks_pb.d.ts +381 -0
  67. package/dist/gen/xeonr/pipelines/v1/sinks_pb.d.ts.map +1 -0
  68. package/dist/gen/xeonr/pipelines/v1/sinks_pb.js +145 -0
  69. package/dist/gen/xeonr/pipelines/v1/sinks_pb.js.map +1 -0
  70. package/dist/gen/xeonr/platform/v1/options_pb.d.ts +313 -0
  71. package/dist/gen/xeonr/platform/v1/options_pb.d.ts.map +1 -0
  72. package/dist/gen/xeonr/platform/v1/options_pb.js +235 -0
  73. package/dist/gen/xeonr/platform/v1/options_pb.js.map +1 -0
  74. package/dist/handler.d.ts +94 -0
  75. package/dist/handler.d.ts.map +1 -0
  76. package/dist/handler.js +18 -0
  77. package/dist/handler.js.map +1 -0
  78. package/dist/index.d.ts +30 -0
  79. package/dist/index.d.ts.map +1 -0
  80. package/dist/index.js +24 -0
  81. package/dist/index.js.map +1 -0
  82. package/dist/internal/time.d.ts +8 -0
  83. package/dist/internal/time.d.ts.map +1 -0
  84. package/dist/internal/time.js +25 -0
  85. package/dist/internal/time.js.map +1 -0
  86. package/dist/logship.d.ts +117 -0
  87. package/dist/logship.d.ts.map +1 -0
  88. package/dist/logship.js +319 -0
  89. package/dist/logship.js.map +1 -0
  90. package/dist/testing/index.d.ts +215 -0
  91. package/dist/testing/index.d.ts.map +1 -0
  92. package/dist/testing/index.js +1015 -0
  93. package/dist/testing/index.js.map +1 -0
  94. package/dist/transport.d.ts +43 -0
  95. package/dist/transport.d.ts.map +1 -0
  96. package/dist/transport.js +44 -0
  97. package/dist/transport.js.map +1 -0
  98. package/dist/worker.d.ts +236 -0
  99. package/dist/worker.d.ts.map +1 -0
  100. package/dist/worker.js +733 -0
  101. package/dist/worker.js.map +1 -0
  102. package/package.json +70 -3
@@ -0,0 +1,919 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Duration, FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import type { Resources } from "./common_pb.js";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file xeonr/pipelines/v1/pools.proto.
7
+ */
8
+ export declare const file_xeonr_pipelines_v1_pools: GenFile;
9
+ /**
10
+ * PoolOwner is who owns a pool.
11
+ *
12
+ * @generated from message xeonr.pipelines.v1.PoolOwner
13
+ */
14
+ export type PoolOwner = Message<"xeonr.pipelines.v1.PoolOwner"> & {
15
+ /**
16
+ * @generated from field: xeonr.pipelines.v1.PoolOwnerKind kind = 1;
17
+ */
18
+ kind: PoolOwnerKind;
19
+ /**
20
+ * Tenant is the owning team's URN when the kind is TENANT; empty for a
21
+ * platform pool.
22
+ *
23
+ * @generated from field: string tenant = 2;
24
+ */
25
+ tenant: string;
26
+ };
27
+ /**
28
+ * Describes the message xeonr.pipelines.v1.PoolOwner.
29
+ * Use `create(PoolOwnerSchema)` to create a new message.
30
+ */
31
+ export declare const PoolOwnerSchema: GenMessage<PoolOwner>;
32
+ /**
33
+ * Pool is a set of workers that claim attempts.
34
+ *
35
+ * An attempt is claimable by a pool when all of these hold: the pool's owner
36
+ * may serve the attempt's tenant; the pool's labels and capabilities cover
37
+ * the node's; its resources fit; its os and arch match where the node asks;
38
+ * its tier is the tier computed for the attempt; and, where the pool has
39
+ * `allowed_packages`, the step package is on the list.
40
+ *
41
+ * @generated from message xeonr.pipelines.v1.Pool
42
+ */
43
+ export type Pool = Message<"xeonr.pipelines.v1.Pool"> & {
44
+ /**
45
+ * ID is assigned by the platform. Empty in a request that creates.
46
+ *
47
+ * @generated from field: string id = 1;
48
+ */
49
+ id: string;
50
+ /**
51
+ * Owner is fixed when the pool is created.
52
+ *
53
+ * @generated from field: xeonr.pipelines.v1.PoolOwner owner = 2;
54
+ */
55
+ owner?: PoolOwner | undefined;
56
+ /**
57
+ * Name is unique per owner, and with the owner is what SetPool matches
58
+ * on.
59
+ *
60
+ * @generated from field: string name = 3;
61
+ */
62
+ name: string;
63
+ /**
64
+ * Kind is fixed when the pool is created.
65
+ *
66
+ * @generated from field: xeonr.pipelines.v1.PoolKind kind = 4;
67
+ */
68
+ kind: PoolKind;
69
+ /**
70
+ * Provider names the compute provider of an AUTOSCALED pool (`do`). Empty
71
+ * otherwise.
72
+ *
73
+ * @generated from field: string provider = 5;
74
+ */
75
+ provider: string;
76
+ /**
77
+ * Tier is the trust tier the pool serves. A pool serves exactly one tier:
78
+ * an instance never runs attempts of two. Tier names are the platform's
79
+ * policy (`untrusted`, `trusted`, `deploy` for the forge's CI); ListTiers
80
+ * lists the ones it defines.
81
+ *
82
+ * @generated from field: string tier = 6;
83
+ */
84
+ tier: string;
85
+ /**
86
+ * OS and Arch are what the pool's runners run. Empty for an SDK pool.
87
+ *
88
+ * @generated from field: string os = 7;
89
+ */
90
+ os: string;
91
+ /**
92
+ * @generated from field: string arch = 8;
93
+ */
94
+ arch: string;
95
+ /**
96
+ * Labels are what a node's `runs_on.labels` selects on.
97
+ *
98
+ * @generated from field: repeated string labels = 9;
99
+ */
100
+ labels: string[];
101
+ /**
102
+ * Capabilities are what the pool grants: `docker`, `shell`, `network`,
103
+ * `no_network`, `privileged`, `services`, `host_runtime`, and whatever
104
+ * else its runners can do. See Manifest.capabilities.
105
+ *
106
+ * @generated from field: repeated string capabilities = 10;
107
+ */
108
+ capabilities: string[];
109
+ /**
110
+ * Resources is what one slot of one instance offers.
111
+ *
112
+ * @generated from field: xeonr.pipelines.v1.Resources resources = 11;
113
+ */
114
+ resources?: Resources | undefined;
115
+ /**
116
+ * Handlers are the worker handlers an SDK pool serves, as
117
+ * `<namespace>/<name>`. Empty otherwise.
118
+ *
119
+ * @generated from field: repeated string handlers = 12;
120
+ */
121
+ handlers: string[];
122
+ /**
123
+ * Priority orders pools that can all run an attempt: priority 1 sees a
124
+ * matching attempt at once, and a higher number sees it only after its
125
+ * `spill_after`, or at once when no worker of a better priority is waiting
126
+ * with a free slot. Zero means 1.
127
+ *
128
+ * @generated from field: uint32 priority = 13;
129
+ */
130
+ priority: number;
131
+ /**
132
+ * Weight shares attempts between pools of the same priority, in
133
+ * proportion. Zero means 1.
134
+ *
135
+ * @generated from field: uint32 weight = 14;
136
+ */
137
+ weight: number;
138
+ /**
139
+ * SpillAfter is how long an attempt waits for better-priority pools before
140
+ * this pool may see it.
141
+ *
142
+ * @generated from field: google.protobuf.Duration spill_after = 15;
143
+ */
144
+ spillAfter?: Duration | undefined;
145
+ /**
146
+ * CapacityPerInstance is how many attempts one instance runs at once. For
147
+ * an SDK pool it is one process's concurrency. Zero means 1.
148
+ *
149
+ * @generated from field: uint32 capacity_per_instance = 16;
150
+ */
151
+ capacityPerInstance: number;
152
+ /**
153
+ * MinInstances and MaxInstances bound an AUTOSCALED pool: they are the
154
+ * owner's instruction to its autoscaler, carried in the pool and applied
155
+ * to the size GetPoolDemand suggests. A zero maximum leaves the pool
156
+ * unbounded by this field (the platform's quota still applies).
157
+ *
158
+ * @generated from field: uint32 min_instances = 17;
159
+ */
160
+ minInstances: number;
161
+ /**
162
+ * @generated from field: uint32 max_instances = 18;
163
+ */
164
+ maxInstances: number;
165
+ /**
166
+ * IdleTime is how long an autoscaled instance stays with nothing to do
167
+ * before its owner's autoscaler removes it.
168
+ *
169
+ * @generated from field: google.protobuf.Duration idle_time = 19;
170
+ */
171
+ idleTime?: Duration | undefined;
172
+ /**
173
+ * MaxUseCount retires an instance after it has run this many attempts.
174
+ * Zero never retires on count.
175
+ *
176
+ * @generated from field: uint32 max_use_count = 20;
177
+ */
178
+ maxUseCount: number;
179
+ /**
180
+ * Isolation defaults to SHARED.
181
+ *
182
+ * @generated from field: xeonr.pipelines.v1.PoolIsolation isolation = 21;
183
+ */
184
+ isolation: PoolIsolation;
185
+ /**
186
+ * AllowedPackages, when not empty, are the only step packages
187
+ * (`<namespace>/<name>`) the pool runs. It is enforced when an attempt is
188
+ * claimed: a deploy pool's runner cannot claim anything else.
189
+ *
190
+ * @generated from field: repeated string allowed_packages = 22;
191
+ */
192
+ allowedPackages: string[];
193
+ /**
194
+ * CreatedAt and UpdatedAt are set by the platform.
195
+ *
196
+ * @generated from field: google.protobuf.Timestamp created_at = 23;
197
+ */
198
+ createdAt?: Timestamp | undefined;
199
+ /**
200
+ * @generated from field: google.protobuf.Timestamp updated_at = 24;
201
+ */
202
+ updatedAt?: Timestamp | undefined;
203
+ };
204
+ /**
205
+ * Describes the message xeonr.pipelines.v1.Pool.
206
+ * Use `create(PoolSchema)` to create a new message.
207
+ */
208
+ export declare const PoolSchema: GenMessage<Pool>;
209
+ /**
210
+ * Runner is one registered worker instance of a pool.
211
+ *
212
+ * @generated from message xeonr.pipelines.v1.Runner
213
+ */
214
+ export type Runner = Message<"xeonr.pipelines.v1.Runner"> & {
215
+ /**
216
+ * @generated from field: string id = 1;
217
+ */
218
+ id: string;
219
+ /**
220
+ * @generated from field: string pool_id = 2;
221
+ */
222
+ poolId: string;
223
+ /**
224
+ * Name is what the runner called itself when it registered.
225
+ *
226
+ * @generated from field: string name = 3;
227
+ */
228
+ name: string;
229
+ /**
230
+ * @generated from field: xeonr.pipelines.v1.RunnerState state = 4;
231
+ */
232
+ state: RunnerState;
233
+ /**
234
+ * @generated from field: string os = 5;
235
+ */
236
+ os: string;
237
+ /**
238
+ * @generated from field: string arch = 6;
239
+ */
240
+ arch: string;
241
+ /**
242
+ * AgentVersion is the runner agent's version.
243
+ *
244
+ * @generated from field: string agent_version = 7;
245
+ */
246
+ agentVersion: string;
247
+ /**
248
+ * Capacity is how many attempts it runs at once; Busy is how many it has
249
+ * now.
250
+ *
251
+ * @generated from field: uint32 capacity = 8;
252
+ */
253
+ capacity: number;
254
+ /**
255
+ * @generated from field: uint32 busy = 9;
256
+ */
257
+ busy: number;
258
+ /**
259
+ * UseCount is how many attempts it has run.
260
+ *
261
+ * @generated from field: uint32 use_count = 10;
262
+ */
263
+ useCount: number;
264
+ /**
265
+ * @generated from field: google.protobuf.Timestamp registered_at = 11;
266
+ */
267
+ registeredAt?: Timestamp | undefined;
268
+ /**
269
+ * LastSeenAt is its last claim or heartbeat.
270
+ *
271
+ * @generated from field: google.protobuf.Timestamp last_seen_at = 12;
272
+ */
273
+ lastSeenAt?: Timestamp | undefined;
274
+ /**
275
+ * @generated from field: google.protobuf.Timestamp drained_at = 13;
276
+ */
277
+ drainedAt?: Timestamp | undefined;
278
+ };
279
+ /**
280
+ * Describes the message xeonr.pipelines.v1.Runner.
281
+ * Use `create(RunnerSchema)` to create a new message.
282
+ */
283
+ export declare const RunnerSchema: GenMessage<Runner>;
284
+ /**
285
+ * @generated from message xeonr.pipelines.v1.ListPoolsRequest
286
+ */
287
+ export type ListPoolsRequest = Message<"xeonr.pipelines.v1.ListPoolsRequest"> & {
288
+ /**
289
+ * Tenant lists that team's pools. Empty lists none of any tenant's.
290
+ *
291
+ * @generated from field: string tenant = 1;
292
+ */
293
+ tenant: string;
294
+ /**
295
+ * IncludePlatform adds the platform's pools.
296
+ *
297
+ * validate:skip a bool has no bounds
298
+ *
299
+ * @generated from field: bool include_platform = 2;
300
+ */
301
+ includePlatform: boolean;
302
+ /**
303
+ * Cursor is opaque, empty for the first page.
304
+ *
305
+ * @generated from field: string cursor = 3;
306
+ */
307
+ cursor: string;
308
+ /**
309
+ * Limit is capped at 500; zero means the default of 50.
310
+ *
311
+ * @generated from field: uint32 limit = 4;
312
+ */
313
+ limit: number;
314
+ };
315
+ /**
316
+ * Describes the message xeonr.pipelines.v1.ListPoolsRequest.
317
+ * Use `create(ListPoolsRequestSchema)` to create a new message.
318
+ */
319
+ export declare const ListPoolsRequestSchema: GenMessage<ListPoolsRequest>;
320
+ /**
321
+ * @generated from message xeonr.pipelines.v1.ListPoolsResponse
322
+ */
323
+ export type ListPoolsResponse = Message<"xeonr.pipelines.v1.ListPoolsResponse"> & {
324
+ /**
325
+ * @generated from field: repeated xeonr.pipelines.v1.Pool pools = 1;
326
+ */
327
+ pools: Pool[];
328
+ /**
329
+ * NextCursor is empty when there is no further page.
330
+ *
331
+ * @generated from field: string next_cursor = 2;
332
+ */
333
+ nextCursor: string;
334
+ };
335
+ /**
336
+ * Describes the message xeonr.pipelines.v1.ListPoolsResponse.
337
+ * Use `create(ListPoolsResponseSchema)` to create a new message.
338
+ */
339
+ export declare const ListPoolsResponseSchema: GenMessage<ListPoolsResponse>;
340
+ /**
341
+ * @generated from message xeonr.pipelines.v1.GetPoolRequest
342
+ */
343
+ export type GetPoolRequest = Message<"xeonr.pipelines.v1.GetPoolRequest"> & {
344
+ /**
345
+ * Pool names the pool to read.
346
+ *
347
+ * @generated from oneof xeonr.pipelines.v1.GetPoolRequest.pool
348
+ */
349
+ pool: {
350
+ /**
351
+ * PoolID is the pool's id.
352
+ *
353
+ * @generated from field: string pool_id = 1;
354
+ */
355
+ value: string;
356
+ case: "poolId";
357
+ } | {
358
+ /**
359
+ * ByName is the pool's owner and name, which SetPool matches on.
360
+ *
361
+ * @generated from field: xeonr.pipelines.v1.PoolName by_name = 2;
362
+ */
363
+ value: PoolName;
364
+ case: "byName";
365
+ } | {
366
+ case: undefined;
367
+ value?: undefined;
368
+ };
369
+ };
370
+ /**
371
+ * Describes the message xeonr.pipelines.v1.GetPoolRequest.
372
+ * Use `create(GetPoolRequestSchema)` to create a new message.
373
+ */
374
+ export declare const GetPoolRequestSchema: GenMessage<GetPoolRequest>;
375
+ /**
376
+ * PoolName names a pool by its owner and its name, unique per owner.
377
+ *
378
+ * @generated from message xeonr.pipelines.v1.PoolName
379
+ */
380
+ export type PoolName = Message<"xeonr.pipelines.v1.PoolName"> & {
381
+ /**
382
+ * @generated from field: xeonr.pipelines.v1.PoolOwner owner = 1;
383
+ */
384
+ owner?: PoolOwner | undefined;
385
+ /**
386
+ * @generated from field: string name = 2;
387
+ */
388
+ name: string;
389
+ };
390
+ /**
391
+ * Describes the message xeonr.pipelines.v1.PoolName.
392
+ * Use `create(PoolNameSchema)` to create a new message.
393
+ */
394
+ export declare const PoolNameSchema: GenMessage<PoolName>;
395
+ /**
396
+ * @generated from message xeonr.pipelines.v1.GetPoolResponse
397
+ */
398
+ export type GetPoolResponse = Message<"xeonr.pipelines.v1.GetPoolResponse"> & {
399
+ /**
400
+ * @generated from field: xeonr.pipelines.v1.Pool pool = 1;
401
+ */
402
+ pool?: Pool | undefined;
403
+ };
404
+ /**
405
+ * Describes the message xeonr.pipelines.v1.GetPoolResponse.
406
+ * Use `create(GetPoolResponseSchema)` to create a new message.
407
+ */
408
+ export declare const GetPoolResponseSchema: GenMessage<GetPoolResponse>;
409
+ /**
410
+ * @generated from message xeonr.pipelines.v1.ListTiersRequest
411
+ */
412
+ export type ListTiersRequest = Message<"xeonr.pipelines.v1.ListTiersRequest"> & {};
413
+ /**
414
+ * Describes the message xeonr.pipelines.v1.ListTiersRequest.
415
+ * Use `create(ListTiersRequestSchema)` to create a new message.
416
+ */
417
+ export declare const ListTiersRequestSchema: GenMessage<ListTiersRequest>;
418
+ /**
419
+ * @generated from message xeonr.pipelines.v1.ListTiersResponse
420
+ */
421
+ export type ListTiersResponse = Message<"xeonr.pipelines.v1.ListTiersResponse"> & {
422
+ /**
423
+ * Tiers are the tier names the policy can compute, the least trusted one
424
+ * included, in name order.
425
+ *
426
+ * @generated from field: repeated string tiers = 1;
427
+ */
428
+ tiers: string[];
429
+ /**
430
+ * LeastTrusted is the tier an attempt gets when no rule of its product's
431
+ * policy matches, or its product has no policy.
432
+ *
433
+ * @generated from field: string least_trusted = 2;
434
+ */
435
+ leastTrusted: string;
436
+ };
437
+ /**
438
+ * Describes the message xeonr.pipelines.v1.ListTiersResponse.
439
+ * Use `create(ListTiersResponseSchema)` to create a new message.
440
+ */
441
+ export declare const ListTiersResponseSchema: GenMessage<ListTiersResponse>;
442
+ /**
443
+ * @generated from message xeonr.pipelines.v1.SetPoolRequest
444
+ */
445
+ export type SetPoolRequest = Message<"xeonr.pipelines.v1.SetPoolRequest"> & {
446
+ /**
447
+ * Pool is matched on (owner, name). Its `id`, when given, must be the
448
+ * matched pool's.
449
+ *
450
+ * @generated from field: xeonr.pipelines.v1.Pool pool = 1;
451
+ */
452
+ pool?: Pool | undefined;
453
+ /**
454
+ * UpdateMask narrows a write to an existing pool to the fields it names.
455
+ * Omitted, the whole pool is replaced by `pool`: every writable field is
456
+ * written, and one left unset takes its default. Ignored when the pool is
457
+ * created.
458
+ *
459
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
460
+ */
461
+ updateMask?: FieldMask | undefined;
462
+ };
463
+ /**
464
+ * Describes the message xeonr.pipelines.v1.SetPoolRequest.
465
+ * Use `create(SetPoolRequestSchema)` to create a new message.
466
+ */
467
+ export declare const SetPoolRequestSchema: GenMessage<SetPoolRequest>;
468
+ /**
469
+ * @generated from message xeonr.pipelines.v1.SetPoolResponse
470
+ */
471
+ export type SetPoolResponse = Message<"xeonr.pipelines.v1.SetPoolResponse"> & {
472
+ /**
473
+ * @generated from field: xeonr.pipelines.v1.Pool pool = 1;
474
+ */
475
+ pool?: Pool | undefined;
476
+ /**
477
+ * Created says the pool did not exist before.
478
+ *
479
+ * @generated from field: bool created = 2;
480
+ */
481
+ created: boolean;
482
+ };
483
+ /**
484
+ * Describes the message xeonr.pipelines.v1.SetPoolResponse.
485
+ * Use `create(SetPoolResponseSchema)` to create a new message.
486
+ */
487
+ export declare const SetPoolResponseSchema: GenMessage<SetPoolResponse>;
488
+ /**
489
+ * @generated from message xeonr.pipelines.v1.ListRunnersRequest
490
+ */
491
+ export type ListRunnersRequest = Message<"xeonr.pipelines.v1.ListRunnersRequest"> & {
492
+ /**
493
+ * @generated from field: string pool_id = 1;
494
+ */
495
+ poolId: string;
496
+ /**
497
+ * States narrows to runners in any of these states; empty lists all.
498
+ *
499
+ * @generated from field: repeated xeonr.pipelines.v1.RunnerState states = 2;
500
+ */
501
+ states: RunnerState[];
502
+ /**
503
+ * Cursor is opaque, empty for the first page.
504
+ *
505
+ * @generated from field: string cursor = 3;
506
+ */
507
+ cursor: string;
508
+ /**
509
+ * Limit is capped at 500; zero means the default of 50.
510
+ *
511
+ * @generated from field: uint32 limit = 4;
512
+ */
513
+ limit: number;
514
+ };
515
+ /**
516
+ * Describes the message xeonr.pipelines.v1.ListRunnersRequest.
517
+ * Use `create(ListRunnersRequestSchema)` to create a new message.
518
+ */
519
+ export declare const ListRunnersRequestSchema: GenMessage<ListRunnersRequest>;
520
+ /**
521
+ * @generated from message xeonr.pipelines.v1.ListRunnersResponse
522
+ */
523
+ export type ListRunnersResponse = Message<"xeonr.pipelines.v1.ListRunnersResponse"> & {
524
+ /**
525
+ * @generated from field: repeated xeonr.pipelines.v1.Runner runners = 1;
526
+ */
527
+ runners: Runner[];
528
+ /**
529
+ * NextCursor is empty when there is no further page.
530
+ *
531
+ * @generated from field: string next_cursor = 2;
532
+ */
533
+ nextCursor: string;
534
+ };
535
+ /**
536
+ * Describes the message xeonr.pipelines.v1.ListRunnersResponse.
537
+ * Use `create(ListRunnersResponseSchema)` to create a new message.
538
+ */
539
+ export declare const ListRunnersResponseSchema: GenMessage<ListRunnersResponse>;
540
+ /**
541
+ * @generated from message xeonr.pipelines.v1.MarkRunnerDrainingRequest
542
+ */
543
+ export type MarkRunnerDrainingRequest = Message<"xeonr.pipelines.v1.MarkRunnerDrainingRequest"> & {
544
+ /**
545
+ * @generated from field: string runner_id = 1;
546
+ */
547
+ runnerId: string;
548
+ };
549
+ /**
550
+ * Describes the message xeonr.pipelines.v1.MarkRunnerDrainingRequest.
551
+ * Use `create(MarkRunnerDrainingRequestSchema)` to create a new message.
552
+ */
553
+ export declare const MarkRunnerDrainingRequestSchema: GenMessage<MarkRunnerDrainingRequest>;
554
+ /**
555
+ * @generated from message xeonr.pipelines.v1.MarkRunnerDrainingResponse
556
+ */
557
+ export type MarkRunnerDrainingResponse = Message<"xeonr.pipelines.v1.MarkRunnerDrainingResponse"> & {
558
+ /**
559
+ * @generated from field: xeonr.pipelines.v1.Runner runner = 1;
560
+ */
561
+ runner?: Runner | undefined;
562
+ };
563
+ /**
564
+ * Describes the message xeonr.pipelines.v1.MarkRunnerDrainingResponse.
565
+ * Use `create(MarkRunnerDrainingResponseSchema)` to create a new message.
566
+ */
567
+ export declare const MarkRunnerDrainingResponseSchema: GenMessage<MarkRunnerDrainingResponse>;
568
+ /**
569
+ * @generated from message xeonr.pipelines.v1.GetPoolDemandRequest
570
+ */
571
+ export type GetPoolDemandRequest = Message<"xeonr.pipelines.v1.GetPoolDemandRequest"> & {
572
+ /**
573
+ * @generated from field: string pool_id = 1;
574
+ */
575
+ poolId: string;
576
+ };
577
+ /**
578
+ * Describes the message xeonr.pipelines.v1.GetPoolDemandRequest.
579
+ * Use `create(GetPoolDemandRequestSchema)` to create a new message.
580
+ */
581
+ export declare const GetPoolDemandRequestSchema: GenMessage<GetPoolDemandRequest>;
582
+ /**
583
+ * @generated from message xeonr.pipelines.v1.GetPoolDemandResponse
584
+ */
585
+ export type GetPoolDemandResponse = Message<"xeonr.pipelines.v1.GetPoolDemandResponse"> & {
586
+ /**
587
+ * VisibleOffered counts OFFERED attempts the pool matches and may see now.
588
+ *
589
+ * @generated from field: uint32 visible_offered = 1;
590
+ */
591
+ visibleOffered: number;
592
+ /**
593
+ * Claimed and Running count attempts the pool's runners hold.
594
+ *
595
+ * @generated from field: uint32 claimed = 2;
596
+ */
597
+ claimed: number;
598
+ /**
599
+ * @generated from field: uint32 running = 3;
600
+ */
601
+ running: number;
602
+ /**
603
+ * CapacityPerInstance, MinInstances and MaxInstances are the pool's.
604
+ *
605
+ * @generated from field: uint32 capacity_per_instance = 4;
606
+ */
607
+ capacityPerInstance: number;
608
+ /**
609
+ * @generated from field: uint32 min_instances = 5;
610
+ */
611
+ minInstances: number;
612
+ /**
613
+ * @generated from field: uint32 max_instances = 6;
614
+ */
615
+ maxInstances: number;
616
+ /**
617
+ * DesiredInstances is the formula's result.
618
+ *
619
+ * @generated from field: uint32 desired_instances = 7;
620
+ */
621
+ desiredInstances: number;
622
+ /**
623
+ * OnlineRunners and DrainingRunners count the pool's runners by state.
624
+ *
625
+ * @generated from field: uint32 online_runners = 8;
626
+ */
627
+ onlineRunners: number;
628
+ /**
629
+ * @generated from field: uint32 draining_runners = 9;
630
+ */
631
+ drainingRunners: number;
632
+ /**
633
+ * OldestOfferedAt is when the oldest visible OFFERED attempt was offered;
634
+ * unset when there is none.
635
+ *
636
+ * @generated from field: google.protobuf.Timestamp oldest_offered_at = 10;
637
+ */
638
+ oldestOfferedAt?: Timestamp | undefined;
639
+ /**
640
+ * At is when the figures were read.
641
+ *
642
+ * @generated from field: google.protobuf.Timestamp at = 11;
643
+ */
644
+ at?: Timestamp | undefined;
645
+ };
646
+ /**
647
+ * Describes the message xeonr.pipelines.v1.GetPoolDemandResponse.
648
+ * Use `create(GetPoolDemandResponseSchema)` to create a new message.
649
+ */
650
+ export declare const GetPoolDemandResponseSchema: GenMessage<GetPoolDemandResponse>;
651
+ /**
652
+ * @generated from message xeonr.pipelines.v1.CreateJoinTokenRequest
653
+ */
654
+ export type CreateJoinTokenRequest = Message<"xeonr.pipelines.v1.CreateJoinTokenRequest"> & {
655
+ /**
656
+ * @generated from field: string pool_id = 1;
657
+ */
658
+ poolId: string;
659
+ /**
660
+ * TTL is how long the token can be used. Unset means the default of ten
661
+ * minutes; the most is one hour.
662
+ *
663
+ * @generated from field: google.protobuf.Duration ttl = 2;
664
+ */
665
+ ttl?: Duration | undefined;
666
+ };
667
+ /**
668
+ * Describes the message xeonr.pipelines.v1.CreateJoinTokenRequest.
669
+ * Use `create(CreateJoinTokenRequestSchema)` to create a new message.
670
+ */
671
+ export declare const CreateJoinTokenRequestSchema: GenMessage<CreateJoinTokenRequest>;
672
+ /**
673
+ * @generated from message xeonr.pipelines.v1.CreateJoinTokenResponse
674
+ */
675
+ export type CreateJoinTokenResponse = Message<"xeonr.pipelines.v1.CreateJoinTokenResponse"> & {
676
+ /**
677
+ * JoinTokenID identifies the token in the audit trail. It is not the
678
+ * token.
679
+ *
680
+ * @generated from field: string join_token_id = 1;
681
+ */
682
+ joinTokenId: string;
683
+ /**
684
+ * JoinTokenSecret is the token. It is shown once, here, and cannot be read
685
+ * again.
686
+ *
687
+ * @generated from field: string join_token_secret = 2;
688
+ */
689
+ joinTokenSecret: string;
690
+ /**
691
+ * @generated from field: google.protobuf.Timestamp expires_at = 3;
692
+ */
693
+ expiresAt?: Timestamp | undefined;
694
+ };
695
+ /**
696
+ * Describes the message xeonr.pipelines.v1.CreateJoinTokenResponse.
697
+ * Use `create(CreateJoinTokenResponseSchema)` to create a new message.
698
+ */
699
+ export declare const CreateJoinTokenResponseSchema: GenMessage<CreateJoinTokenResponse>;
700
+ /**
701
+ * PoolOwnerKind is who runs a pool.
702
+ *
703
+ * @generated from enum xeonr.pipelines.v1.PoolOwnerKind
704
+ */
705
+ export declare enum PoolOwnerKind {
706
+ /**
707
+ * @generated from enum value: POOL_OWNER_KIND_UNSPECIFIED = 0;
708
+ */
709
+ UNSPECIFIED = 0,
710
+ /**
711
+ * The platform's operators. Serves tenants by policy.
712
+ *
713
+ * @generated from enum value: POOL_OWNER_KIND_PLATFORM = 1;
714
+ */
715
+ PLATFORM = 1,
716
+ /**
717
+ * One team. Serves only that team's runs.
718
+ *
719
+ * @generated from enum value: POOL_OWNER_KIND_TENANT = 2;
720
+ */
721
+ TENANT = 2
722
+ }
723
+ /**
724
+ * Describes the enum xeonr.pipelines.v1.PoolOwnerKind.
725
+ */
726
+ export declare const PoolOwnerKindSchema: GenEnum<PoolOwnerKind>;
727
+ /**
728
+ * PoolKind is how a pool gets its workers.
729
+ *
730
+ * @generated from enum xeonr.pipelines.v1.PoolKind
731
+ */
732
+ export declare enum PoolKind {
733
+ /**
734
+ * @generated from enum value: POOL_KIND_UNSPECIFIED = 0;
735
+ */
736
+ UNSPECIFIED = 0,
737
+ /**
738
+ * The owner's autoscaler starts and removes instances to follow the pool's
739
+ * demand. Each registers with a one-time join token.
740
+ *
741
+ * @generated from enum value: POOL_KIND_AUTOSCALED = 1;
742
+ */
743
+ AUTOSCALED = 1,
744
+ /**
745
+ * Instances someone set up by hand register with a join token.
746
+ *
747
+ * @generated from enum value: POOL_KIND_STATIC = 2;
748
+ */
749
+ STATIC = 2,
750
+ /**
751
+ * SDK workers inside a product's own process, claiming handlers.
752
+ *
753
+ * @generated from enum value: POOL_KIND_SDK = 3;
754
+ */
755
+ SDK = 3
756
+ }
757
+ /**
758
+ * Describes the enum xeonr.pipelines.v1.PoolKind.
759
+ */
760
+ export declare const PoolKindSchema: GenEnum<PoolKind>;
761
+ /**
762
+ * PoolIsolation is what an instance of the pool shares between runs.
763
+ *
764
+ * @generated from enum xeonr.pipelines.v1.PoolIsolation
765
+ */
766
+ export declare enum PoolIsolation {
767
+ /**
768
+ * @generated from enum value: POOL_ISOLATION_UNSPECIFIED = 0;
769
+ */
770
+ UNSPECIFIED = 0,
771
+ /**
772
+ * An instance runs attempts of many runs, at once and one after another.
773
+ *
774
+ * @generated from enum value: POOL_ISOLATION_SHARED = 1;
775
+ */
776
+ SHARED = 1,
777
+ /**
778
+ * An instance serves one run and is then discarded. Required, with a
779
+ * capacity of 1, for a pool that offers `privileged`.
780
+ *
781
+ * @generated from enum value: POOL_ISOLATION_PER_RUN = 2;
782
+ */
783
+ PER_RUN = 2
784
+ }
785
+ /**
786
+ * Describes the enum xeonr.pipelines.v1.PoolIsolation.
787
+ */
788
+ export declare const PoolIsolationSchema: GenEnum<PoolIsolation>;
789
+ /**
790
+ * RunnerState is where a runner is.
791
+ *
792
+ * @generated from enum xeonr.pipelines.v1.RunnerState
793
+ */
794
+ export declare enum RunnerState {
795
+ /**
796
+ * @generated from enum value: RUNNER_STATE_UNSPECIFIED = 0;
797
+ */
798
+ UNSPECIFIED = 0,
799
+ /**
800
+ * Seen recently and claiming.
801
+ *
802
+ * @generated from enum value: RUNNER_STATE_ONLINE = 1;
803
+ */
804
+ ONLINE = 1,
805
+ /**
806
+ * Finishing what it has; claims nothing new.
807
+ *
808
+ * @generated from enum value: RUNNER_STATE_DRAINING = 2;
809
+ */
810
+ DRAINING = 2,
811
+ /**
812
+ * Not seen for longer than a lease.
813
+ *
814
+ * @generated from enum value: RUNNER_STATE_OFFLINE = 3;
815
+ */
816
+ OFFLINE = 3
817
+ }
818
+ /**
819
+ * Describes the enum xeonr.pipelines.v1.RunnerState.
820
+ */
821
+ export declare const RunnerStateSchema: GenEnum<RunnerState>;
822
+ /**
823
+ * PoolsService manages pools and the runners in them.
824
+ *
825
+ * Anything a pipeline can target is a pool: fixed instances, autoscaled
826
+ * compute, GPU machines, a Mac, a team's own hardware, or the handlers inside
827
+ * a team's application. There is no fixed taxonomy. A pool advertises what it
828
+ * offers (labels, capabilities, resources, os and arch, or handler names),
829
+ * carries a trust tier and its capacity, and three routing knobs: priority,
830
+ * weight and spill-after. Each node of a run is matched to pools on its own,
831
+ * so one run can span many.
832
+ *
833
+ * Ownership. A pool is owned by the platform or by a tenant.
834
+ *
835
+ * - A tenant's pool serves only that tenant's runs, and is managed by
836
+ * members of that team (asked of Auth as the caller) or by a service
837
+ * account acting for it: an SDK worker declares its own `sdk` pool this
838
+ * way when it boots.
839
+ * - A platform pool serves tenants by the platform's policy, and is
840
+ * managed only by the platform's operators: members of the operators'
841
+ * team the service is configured with.
842
+ *
843
+ * Whoever owns a pool owns its machines: provisioning, autoscaling, recycling
844
+ * and cost. Pipelines creates no machines and has no pool manager. What it
845
+ * gives an owner's autoscaler is the pool's demand, as data (GetPoolDemand),
846
+ * and one-time join tokens for the machines it starts (CreateJoinToken).
847
+ *
848
+ * This is still the public API: operators are gated by scope and ownership
849
+ * here, not by a separate admin surface.
850
+ *
851
+ * @generated from service xeonr.pipelines.v1.PoolsService
852
+ */
853
+ export declare const PoolsService: GenService<{
854
+ /**
855
+ * @generated from rpc xeonr.pipelines.v1.PoolsService.ListPools
856
+ */
857
+ listPools: {
858
+ methodKind: "unary";
859
+ input: typeof ListPoolsRequestSchema;
860
+ output: typeof ListPoolsResponseSchema;
861
+ };
862
+ /**
863
+ * @generated from rpc xeonr.pipelines.v1.PoolsService.GetPool
864
+ */
865
+ getPool: {
866
+ methodKind: "unary";
867
+ input: typeof GetPoolRequestSchema;
868
+ output: typeof GetPoolResponseSchema;
869
+ };
870
+ /**
871
+ * @generated from rpc xeonr.pipelines.v1.PoolsService.ListTiers
872
+ */
873
+ listTiers: {
874
+ methodKind: "unary";
875
+ input: typeof ListTiersRequestSchema;
876
+ output: typeof ListTiersResponseSchema;
877
+ };
878
+ /**
879
+ * @generated from rpc xeonr.pipelines.v1.PoolsService.SetPool
880
+ */
881
+ setPool: {
882
+ methodKind: "unary";
883
+ input: typeof SetPoolRequestSchema;
884
+ output: typeof SetPoolResponseSchema;
885
+ };
886
+ /**
887
+ * @generated from rpc xeonr.pipelines.v1.PoolsService.ListRunners
888
+ */
889
+ listRunners: {
890
+ methodKind: "unary";
891
+ input: typeof ListRunnersRequestSchema;
892
+ output: typeof ListRunnersResponseSchema;
893
+ };
894
+ /**
895
+ * @generated from rpc xeonr.pipelines.v1.PoolsService.MarkRunnerDraining
896
+ */
897
+ markRunnerDraining: {
898
+ methodKind: "unary";
899
+ input: typeof MarkRunnerDrainingRequestSchema;
900
+ output: typeof MarkRunnerDrainingResponseSchema;
901
+ };
902
+ /**
903
+ * @generated from rpc xeonr.pipelines.v1.PoolsService.GetPoolDemand
904
+ */
905
+ getPoolDemand: {
906
+ methodKind: "unary";
907
+ input: typeof GetPoolDemandRequestSchema;
908
+ output: typeof GetPoolDemandResponseSchema;
909
+ };
910
+ /**
911
+ * @generated from rpc xeonr.pipelines.v1.PoolsService.CreateJoinToken
912
+ */
913
+ createJoinToken: {
914
+ methodKind: "unary";
915
+ input: typeof CreateJoinTokenRequestSchema;
916
+ output: typeof CreateJoinTokenResponseSchema;
917
+ };
918
+ }>;
919
+ //# sourceMappingURL=pools_pb.d.ts.map