@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.
- package/README.md +231 -22
- package/dist/auth.d.ts +1 -1
- package/dist/client.d.ts +73 -10
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +47 -4
- package/dist/client.js.map +1 -1
- package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.d.ts +179 -16
- package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.js +45 -28
- package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.d.ts +136 -17
- package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.js +42 -35
- package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/private/v1/worker_pb.d.ts +224 -8
- package/dist/gen/xeonr/pipelines/private/v1/worker_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/private/v1/worker_pb.js +43 -9
- package/dist/gen/xeonr/pipelines/private/v1/worker_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/common_pb.d.ts +64 -8
- package/dist/gen/xeonr/pipelines/v1/common_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/common_pb.js +62 -5
- package/dist/gen/xeonr/pipelines/v1/common_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/definition_pb.d.ts +312 -9
- package/dist/gen/xeonr/pipelines/v1/definition_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/definition_pb.js +100 -7
- package/dist/gen/xeonr/pipelines/v1/definition_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/pipelines_pb.d.ts +1072 -0
- package/dist/gen/xeonr/pipelines/v1/pipelines_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/pipelines_pb.js +299 -0
- package/dist/gen/xeonr/pipelines/v1/pipelines_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/pools_pb.d.ts +103 -8
- package/dist/gen/xeonr/pipelines/v1/pools_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/pools_pb.js +32 -24
- package/dist/gen/xeonr/pipelines/v1/pools_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/queues_pb.d.ts +711 -0
- package/dist/gen/xeonr/pipelines/v1/queues_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/queues_pb.js +185 -0
- package/dist/gen/xeonr/pipelines/v1/queues_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/registry_pb.d.ts +92 -23
- package/dist/gen/xeonr/pipelines/v1/registry_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/registry_pb.js +36 -33
- package/dist/gen/xeonr/pipelines/v1/registry_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/runs_pb.d.ts +1191 -33
- package/dist/gen/xeonr/pipelines/v1/runs_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/runs_pb.js +419 -35
- package/dist/gen/xeonr/pipelines/v1/runs_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/schedule_targets_pb.d.ts +194 -0
- package/dist/gen/xeonr/pipelines/v1/schedule_targets_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/schedule_targets_pb.js +100 -0
- package/dist/gen/xeonr/pipelines/v1/schedule_targets_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/schedules_pb.d.ts +1186 -0
- package/dist/gen/xeonr/pipelines/v1/schedules_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/schedules_pb.js +335 -0
- package/dist/gen/xeonr/pipelines/v1/schedules_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/secrets_pb.d.ts +32 -5
- package/dist/gen/xeonr/pipelines/v1/secrets_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/secrets_pb.js +12 -3
- package/dist/gen/xeonr/pipelines/v1/secrets_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/sinks_pb.d.ts +270 -27
- package/dist/gen/xeonr/pipelines/v1/sinks_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/sinks_pb.js +163 -24
- package/dist/gen/xeonr/pipelines/v1/sinks_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/tenant_policies_pb.d.ts +391 -0
- package/dist/gen/xeonr/pipelines/v1/tenant_policies_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/tenant_policies_pb.js +100 -0
- package/dist/gen/xeonr/pipelines/v1/tenant_policies_pb.js.map +1 -0
- package/dist/gen/xeonr/platform/v1/options_pb.d.ts +137 -1
- package/dist/gen/xeonr/platform/v1/options_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/platform/v1/options_pb.js +104 -1
- package/dist/gen/xeonr/platform/v1/options_pb.js.map +1 -1
- package/dist/handler.d.ts +51 -1
- package/dist/handler.d.ts.map +1 -1
- package/dist/handler.js +27 -0
- package/dist/handler.js.map +1 -1
- package/dist/index.d.ts +13 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/queues.d.ts +158 -0
- package/dist/queues.d.ts.map +1 -0
- package/dist/queues.js +117 -0
- package/dist/queues.js.map +1 -0
- package/dist/reporter.d.ts +120 -0
- package/dist/reporter.d.ts.map +1 -0
- package/dist/reporter.js +323 -0
- package/dist/reporter.js.map +1 -0
- package/dist/schedules.d.ts +193 -0
- package/dist/schedules.d.ts.map +1 -0
- package/dist/schedules.js +126 -0
- package/dist/schedules.js.map +1 -0
- package/dist/testing/cron.d.ts +33 -0
- package/dist/testing/cron.d.ts.map +1 -0
- package/dist/testing/cron.js +177 -0
- package/dist/testing/cron.js.map +1 -0
- package/dist/testing/index.d.ts +229 -7
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +1304 -103
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/pipelines.d.ts +99 -0
- package/dist/testing/pipelines.d.ts.map +1 -0
- package/dist/testing/pipelines.js +445 -0
- package/dist/testing/pipelines.js.map +1 -0
- package/dist/testing/queues.d.ts +49 -0
- package/dist/testing/queues.d.ts.map +1 -0
- package/dist/testing/queues.js +72 -0
- package/dist/testing/queues.js.map +1 -0
- package/dist/testing/schedules.d.ts +125 -0
- package/dist/testing/schedules.d.ts.map +1 -0
- package/dist/testing/schedules.js +422 -0
- package/dist/testing/schedules.js.map +1 -0
- package/dist/worker.d.ts +48 -7
- package/dist/worker.d.ts.map +1 -1
- package/dist/worker.js +59 -9
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
|
@@ -92,20 +92,19 @@ export type RunEvent = Message<"xeonr.pipelines.v1.RunEvent"> & {
|
|
|
92
92
|
*/
|
|
93
93
|
export declare const RunEventSchema: GenMessage<RunEvent>;
|
|
94
94
|
/**
|
|
95
|
-
* Sink is where one
|
|
95
|
+
* Sink is where one tenant's run events are delivered.
|
|
96
96
|
*
|
|
97
97
|
* @generated from message xeonr.pipelines.v1.Sink
|
|
98
98
|
*/
|
|
99
99
|
export type Sink = Message<"xeonr.pipelines.v1.Sink"> & {
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
102
|
-
* caller's token.
|
|
101
|
+
* Tenant is the team URN the sink belongs to.
|
|
103
102
|
*
|
|
104
|
-
* @generated from field: string
|
|
103
|
+
* @generated from field: string tenant = 15;
|
|
105
104
|
*/
|
|
106
|
-
|
|
105
|
+
tenant: string;
|
|
107
106
|
/**
|
|
108
|
-
* URL is the base URL the
|
|
107
|
+
* URL is the base URL the consuming service serves RunEventSinkService at.
|
|
109
108
|
*
|
|
110
109
|
* @generated from field: string url = 2;
|
|
111
110
|
*/
|
|
@@ -144,6 +143,46 @@ export type Sink = Message<"xeonr.pipelines.v1.Sink"> & {
|
|
|
144
143
|
* @generated from field: uint64 pending_events = 8;
|
|
145
144
|
*/
|
|
146
145
|
pendingEvents: bigint;
|
|
146
|
+
/**
|
|
147
|
+
* Authentication is how deliveries to this sink are authenticated (see
|
|
148
|
+
* RunEventSinkService). A sink registered without one reads as
|
|
149
|
+
* AUTH_SERVICE_TOKEN.
|
|
150
|
+
*
|
|
151
|
+
* @generated from field: xeonr.pipelines.v1.SinkAuthentication authentication = 9;
|
|
152
|
+
*/
|
|
153
|
+
authentication: SinkAuthentication;
|
|
154
|
+
/**
|
|
155
|
+
* TokenIssuer, JwksUrl and TokenSubject are what a PIPELINES_SIGNED sink
|
|
156
|
+
* verifies deliveries against: the `iss` of the token, where its keys are
|
|
157
|
+
* published, and its exact `sub`. Empty for AUTH_SERVICE_TOKEN.
|
|
158
|
+
*
|
|
159
|
+
* @generated from field: string token_issuer = 10;
|
|
160
|
+
*/
|
|
161
|
+
tokenIssuer: string;
|
|
162
|
+
/**
|
|
163
|
+
* @generated from field: string jwks_url = 11;
|
|
164
|
+
*/
|
|
165
|
+
jwksUrl: string;
|
|
166
|
+
/**
|
|
167
|
+
* @generated from field: string token_subject = 12;
|
|
168
|
+
*/
|
|
169
|
+
tokenSubject: string;
|
|
170
|
+
/**
|
|
171
|
+
* DeadEvents is how many events delivery gave up on and still keeps (they
|
|
172
|
+
* are pruned after seven days): refused with a permanent code, or refused
|
|
173
|
+
* too many times. They are never sent again.
|
|
174
|
+
*
|
|
175
|
+
* @generated from field: uint64 dead_events = 13;
|
|
176
|
+
*/
|
|
177
|
+
deadEvents: bigint;
|
|
178
|
+
/**
|
|
179
|
+
* OldestPendingAt is when the oldest event still waiting for this sink
|
|
180
|
+
* happened; unset when nothing is pending. A tenant sees a stall as an
|
|
181
|
+
* age that keeps growing.
|
|
182
|
+
*
|
|
183
|
+
* @generated from field: google.protobuf.Timestamp oldest_pending_at = 14;
|
|
184
|
+
*/
|
|
185
|
+
oldestPendingAt?: Timestamp | undefined;
|
|
147
186
|
};
|
|
148
187
|
/**
|
|
149
188
|
* Describes the message xeonr.pipelines.v1.Sink.
|
|
@@ -180,29 +219,87 @@ export type ReportRunEventsResponse = Message<"xeonr.pipelines.v1.ReportRunEvent
|
|
|
180
219
|
* @generated from field: int32 duplicates = 2;
|
|
181
220
|
*/
|
|
182
221
|
duplicates: number;
|
|
222
|
+
/**
|
|
223
|
+
* Rejected names the events of the batch the sink refuses, each with why;
|
|
224
|
+
* every event not named is acknowledged. Empty acknowledges the whole
|
|
225
|
+
* batch, as before this field existed. An entry naming no event of the
|
|
226
|
+
* batch is ignored.
|
|
227
|
+
*
|
|
228
|
+
* @generated from field: repeated xeonr.pipelines.v1.RunEventRejection rejected = 3;
|
|
229
|
+
*/
|
|
230
|
+
rejected: RunEventRejection[];
|
|
183
231
|
};
|
|
184
232
|
/**
|
|
185
233
|
* Describes the message xeonr.pipelines.v1.ReportRunEventsResponse.
|
|
186
234
|
* Use `create(ReportRunEventsResponseSchema)` to create a new message.
|
|
187
235
|
*/
|
|
188
236
|
export declare const ReportRunEventsResponseSchema: GenMessage<ReportRunEventsResponse>;
|
|
237
|
+
/**
|
|
238
|
+
* RunEventRejection is one event a sink refuses, by (run_id, seq).
|
|
239
|
+
*
|
|
240
|
+
* @generated from message xeonr.pipelines.v1.RunEventRejection
|
|
241
|
+
*/
|
|
242
|
+
export type RunEventRejection = Message<"xeonr.pipelines.v1.RunEventRejection"> & {
|
|
243
|
+
/**
|
|
244
|
+
* @generated from field: string run_id = 1;
|
|
245
|
+
*/
|
|
246
|
+
runId: string;
|
|
247
|
+
/**
|
|
248
|
+
* @generated from field: int64 seq = 2;
|
|
249
|
+
*/
|
|
250
|
+
seq: bigint;
|
|
251
|
+
/**
|
|
252
|
+
* Code says whether pipelines sends the event again.
|
|
253
|
+
*
|
|
254
|
+
* @generated from field: xeonr.pipelines.v1.RunEventRejectionCode code = 3;
|
|
255
|
+
*/
|
|
256
|
+
code: RunEventRejectionCode;
|
|
257
|
+
/**
|
|
258
|
+
* Message is why, for the operators of both services: it shows in the
|
|
259
|
+
* sink's last_error. Carry no secret in it.
|
|
260
|
+
*
|
|
261
|
+
* @generated from field: string message = 4;
|
|
262
|
+
*/
|
|
263
|
+
message: string;
|
|
264
|
+
};
|
|
265
|
+
/**
|
|
266
|
+
* Describes the message xeonr.pipelines.v1.RunEventRejection.
|
|
267
|
+
* Use `create(RunEventRejectionSchema)` to create a new message.
|
|
268
|
+
*/
|
|
269
|
+
export declare const RunEventRejectionSchema: GenMessage<RunEventRejection>;
|
|
189
270
|
/**
|
|
190
271
|
* @generated from message xeonr.pipelines.v1.SetSinkRequest
|
|
191
272
|
*/
|
|
192
273
|
export type SetSinkRequest = Message<"xeonr.pipelines.v1.SetSinkRequest"> & {
|
|
193
274
|
/**
|
|
194
|
-
*
|
|
275
|
+
* Tenant is the team URN whose sink is set.
|
|
276
|
+
*
|
|
277
|
+
* @generated from field: string tenant = 4;
|
|
278
|
+
*/
|
|
279
|
+
tenant: string;
|
|
280
|
+
/**
|
|
281
|
+
* URL is the base URL the consuming service serves RunEventSinkService at; pipelines
|
|
195
282
|
* appends the Connect procedure path. HTTPS only.
|
|
196
283
|
*
|
|
197
284
|
* @generated from field: string url = 1;
|
|
198
285
|
*/
|
|
199
286
|
url: string;
|
|
200
287
|
/**
|
|
201
|
-
* Audience is the audience pipelines
|
|
288
|
+
* Audience is the audience of the token pipelines presents: the one it
|
|
289
|
+
* requests its Auth service token for, or, for PIPELINES_SIGNED, the
|
|
290
|
+
* `aud` it signs (which must then belong to the tenant; see
|
|
291
|
+
* SinkAuthentication).
|
|
202
292
|
*
|
|
203
293
|
* @generated from field: string audience = 2;
|
|
204
294
|
*/
|
|
205
295
|
audience: string;
|
|
296
|
+
/**
|
|
297
|
+
* Authentication is how deliveries are authenticated. Unspecified is
|
|
298
|
+
* AUTH_SERVICE_TOKEN, today's behaviour.
|
|
299
|
+
*
|
|
300
|
+
* @generated from field: xeonr.pipelines.v1.SinkAuthentication authentication = 3;
|
|
301
|
+
*/
|
|
302
|
+
authentication: SinkAuthentication;
|
|
206
303
|
};
|
|
207
304
|
/**
|
|
208
305
|
* Describes the message xeonr.pipelines.v1.SetSinkRequest.
|
|
@@ -226,7 +323,14 @@ export declare const SetSinkResponseSchema: GenMessage<SetSinkResponse>;
|
|
|
226
323
|
/**
|
|
227
324
|
* @generated from message xeonr.pipelines.v1.GetSinkRequest
|
|
228
325
|
*/
|
|
229
|
-
export type GetSinkRequest = Message<"xeonr.pipelines.v1.GetSinkRequest"> & {
|
|
326
|
+
export type GetSinkRequest = Message<"xeonr.pipelines.v1.GetSinkRequest"> & {
|
|
327
|
+
/**
|
|
328
|
+
* Tenant is the team URN whose sink is read.
|
|
329
|
+
*
|
|
330
|
+
* @generated from field: string tenant = 1;
|
|
331
|
+
*/
|
|
332
|
+
tenant: string;
|
|
333
|
+
};
|
|
230
334
|
/**
|
|
231
335
|
* Describes the message xeonr.pipelines.v1.GetSinkRequest.
|
|
232
336
|
* Use `create(GetSinkRequestSchema)` to create a new message.
|
|
@@ -249,7 +353,14 @@ export declare const GetSinkResponseSchema: GenMessage<GetSinkResponse>;
|
|
|
249
353
|
/**
|
|
250
354
|
* @generated from message xeonr.pipelines.v1.DeleteSinkRequest
|
|
251
355
|
*/
|
|
252
|
-
export type DeleteSinkRequest = Message<"xeonr.pipelines.v1.DeleteSinkRequest"> & {
|
|
356
|
+
export type DeleteSinkRequest = Message<"xeonr.pipelines.v1.DeleteSinkRequest"> & {
|
|
357
|
+
/**
|
|
358
|
+
* Tenant is the team URN whose sink is removed.
|
|
359
|
+
*
|
|
360
|
+
* @generated from field: string tenant = 1;
|
|
361
|
+
*/
|
|
362
|
+
tenant: string;
|
|
363
|
+
};
|
|
253
364
|
/**
|
|
254
365
|
* Describes the message xeonr.pipelines.v1.DeleteSinkRequest.
|
|
255
366
|
* Use `create(DeleteSinkRequestSchema)` to create a new message.
|
|
@@ -311,21 +422,151 @@ export declare enum RunEventKind {
|
|
|
311
422
|
*/
|
|
312
423
|
export declare const RunEventKindSchema: GenEnum<RunEventKind>;
|
|
313
424
|
/**
|
|
314
|
-
*
|
|
425
|
+
* SinkAuthentication is how pipelines authenticates its deliveries to a
|
|
426
|
+
* sink (see RunEventSinkService).
|
|
427
|
+
*
|
|
428
|
+
* @generated from enum xeonr.pipelines.v1.SinkAuthentication
|
|
429
|
+
*/
|
|
430
|
+
export declare enum SinkAuthentication {
|
|
431
|
+
/**
|
|
432
|
+
* Unspecified is AUTH_SERVICE_TOKEN, so a sink registered before this
|
|
433
|
+
* field existed keeps working unchanged.
|
|
434
|
+
*
|
|
435
|
+
* @generated from enum value: SINK_AUTHENTICATION_UNSPECIFIED = 0;
|
|
436
|
+
*/
|
|
437
|
+
UNSPECIFIED = 0,
|
|
438
|
+
/**
|
|
439
|
+
* AuthServiceToken: pipelines' Auth service-account token for the sink's
|
|
440
|
+
* audience. Needs the pipelines sink service account to hold an approved
|
|
441
|
+
* binding to the consuming service's Auth application.
|
|
442
|
+
*
|
|
443
|
+
* @generated from enum value: SINK_AUTHENTICATION_AUTH_SERVICE_TOKEN = 1;
|
|
444
|
+
*/
|
|
445
|
+
AUTH_SERVICE_TOKEN = 1,
|
|
446
|
+
/**
|
|
447
|
+
* PipelinesSigned: a short-lived token pipelines signs itself with its
|
|
448
|
+
* delivery key, verified against the keys pipelines publishes at
|
|
449
|
+
* `Sink.jwks_url` (the job identity keys' JWKS, which carries the delivery
|
|
450
|
+
* key too). Needs no Auth binding. The sink's
|
|
451
|
+
* audience must then belong to the tenant: the identity audience of an
|
|
452
|
+
* Auth application whose owner team is the tenant
|
|
453
|
+
* (`urn:xeonr:auth:application:<id>`) or a name beneath it
|
|
454
|
+
* (`urn:xeonr:auth:application:<id>/<name>`), so a tenant cannot obtain a
|
|
455
|
+
* delivery token another tenant's sink would accept.
|
|
456
|
+
*
|
|
457
|
+
* @generated from enum value: SINK_AUTHENTICATION_PIPELINES_SIGNED = 2;
|
|
458
|
+
*/
|
|
459
|
+
PIPELINES_SIGNED = 2
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* Describes the enum xeonr.pipelines.v1.SinkAuthentication.
|
|
463
|
+
*/
|
|
464
|
+
export declare const SinkAuthenticationSchema: GenEnum<SinkAuthentication>;
|
|
465
|
+
/**
|
|
466
|
+
* RunEventRejectionCode is why a sink refuses one event, named after the
|
|
467
|
+
* Connect code it would have answered. INVALID_ARGUMENT, NOT_FOUND,
|
|
468
|
+
* PERMISSION_DENIED and OUT_OF_RANGE are permanent: the event is dead at
|
|
469
|
+
* once. The rest, unspecified included, are transient: it is sent again
|
|
470
|
+
* after a backoff, and the run's later events wait for it.
|
|
471
|
+
*
|
|
472
|
+
* @generated from enum xeonr.pipelines.v1.RunEventRejectionCode
|
|
473
|
+
*/
|
|
474
|
+
export declare enum RunEventRejectionCode {
|
|
475
|
+
/**
|
|
476
|
+
* Unspecified is transient.
|
|
477
|
+
*
|
|
478
|
+
* @generated from enum value: RUN_EVENT_REJECTION_CODE_UNSPECIFIED = 0;
|
|
479
|
+
*/
|
|
480
|
+
UNSPECIFIED = 0,
|
|
481
|
+
/**
|
|
482
|
+
* Permanent: the event is malformed for this sink.
|
|
483
|
+
*
|
|
484
|
+
* @generated from enum value: RUN_EVENT_REJECTION_CODE_INVALID_ARGUMENT = 1;
|
|
485
|
+
*/
|
|
486
|
+
INVALID_ARGUMENT = 1,
|
|
487
|
+
/**
|
|
488
|
+
* Permanent: the sink will never know the run.
|
|
489
|
+
*
|
|
490
|
+
* @generated from enum value: RUN_EVENT_REJECTION_CODE_NOT_FOUND = 2;
|
|
491
|
+
*/
|
|
492
|
+
NOT_FOUND = 2,
|
|
493
|
+
/**
|
|
494
|
+
* Permanent: the event is for something the sink will not accept from
|
|
495
|
+
* pipelines.
|
|
496
|
+
*
|
|
497
|
+
* @generated from enum value: RUN_EVENT_REJECTION_CODE_PERMISSION_DENIED = 3;
|
|
498
|
+
*/
|
|
499
|
+
PERMISSION_DENIED = 3,
|
|
500
|
+
/**
|
|
501
|
+
* Permanent: a value the sink cannot represent.
|
|
502
|
+
*
|
|
503
|
+
* @generated from enum value: RUN_EVENT_REJECTION_CODE_OUT_OF_RANGE = 4;
|
|
504
|
+
*/
|
|
505
|
+
OUT_OF_RANGE = 4,
|
|
506
|
+
/**
|
|
507
|
+
* Transient: the sink is not ready for it yet (a run it has not recorded,
|
|
508
|
+
* say).
|
|
509
|
+
*
|
|
510
|
+
* @generated from enum value: RUN_EVENT_REJECTION_CODE_FAILED_PRECONDITION = 5;
|
|
511
|
+
*/
|
|
512
|
+
FAILED_PRECONDITION = 5,
|
|
513
|
+
/**
|
|
514
|
+
* Transient: the sink could not apply it just now.
|
|
515
|
+
*
|
|
516
|
+
* @generated from enum value: RUN_EVENT_REJECTION_CODE_UNAVAILABLE = 6;
|
|
517
|
+
*/
|
|
518
|
+
UNAVAILABLE = 6,
|
|
519
|
+
/**
|
|
520
|
+
* Transient: a conflict the sink expects to clear.
|
|
521
|
+
*
|
|
522
|
+
* @generated from enum value: RUN_EVENT_REJECTION_CODE_ABORTED = 7;
|
|
523
|
+
*/
|
|
524
|
+
ABORTED = 7,
|
|
525
|
+
/**
|
|
526
|
+
* Transient: the sink failed applying it.
|
|
527
|
+
*
|
|
528
|
+
* @generated from enum value: RUN_EVENT_REJECTION_CODE_INTERNAL = 8;
|
|
529
|
+
*/
|
|
530
|
+
INTERNAL = 8
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Describes the enum xeonr.pipelines.v1.RunEventRejectionCode.
|
|
534
|
+
*/
|
|
535
|
+
export declare const RunEventRejectionCodeSchema: GenEnum<RunEventRejectionCode>;
|
|
536
|
+
/**
|
|
537
|
+
* RunEventSinkService is served by a consuming service, not by pipelines.
|
|
538
|
+
*
|
|
539
|
+
* How pipelines authenticates a delivery depends on the sink's
|
|
540
|
+
* `authentication` (SinkAuthentication):
|
|
315
541
|
*
|
|
316
|
-
*
|
|
317
|
-
* audienced to the audience the
|
|
318
|
-
*
|
|
319
|
-
* principal but the pipelines service account
|
|
542
|
+
* - AUTH_SERVICE_TOKEN (and UNSPECIFIED, the default): pipelines' own Auth
|
|
543
|
+
* service-account token (`jwt-bearer`), audienced to the audience the
|
|
544
|
+
* tenant registered with SetSink and to nothing else. The service's
|
|
545
|
+
* handler refuses every principal but the pipelines service account,
|
|
546
|
+
* which needs an approved Auth binding to the service's application.
|
|
547
|
+
* - PIPELINES_SIGNED: a token pipelines signs itself, with a delivery key
|
|
548
|
+
* of its own (held by the role that delivers, not the job identity
|
|
549
|
+
* signing key), published at the same issuer and JWKS as the job
|
|
550
|
+
* identity keys; no Auth binding is involved. The
|
|
551
|
+
* sink verifies it as an RS256 JWT against `Sink.token_issuer` (keys at
|
|
552
|
+
* `Sink.jwks_url`) and must check all of: `aud` is exactly its
|
|
553
|
+
* registered audience; `sub` is exactly `Sink.token_subject`
|
|
554
|
+
* (`urn:xeonr:pipelines:run-events`); the `token_use` claim is
|
|
555
|
+
* `run_events`; and the `tenant` claim is its own tenant's team URN. A
|
|
556
|
+
* job identity token from the same issuer never passes those checks: its
|
|
557
|
+
* `sub` is always a run's node (`urn:xeonr:pipelines:run:...`), it has
|
|
558
|
+
* no `token_use` claim, and its JOSE `typ` is `JWT` where a delivery
|
|
559
|
+
* token's is `run-events+jwt`. The token lives five minutes.
|
|
320
560
|
*
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
561
|
+
* Either way it is machine only (auth.machine-only-rpcs).
|
|
562
|
+
* Scope: a shared contract cannot name each serving service's scope, so this
|
|
563
|
+
* RPC carries no `require_scope`. The serving service gates it in its handler
|
|
564
|
+
* with a service-account-only scope of its own Auth application
|
|
565
|
+
* (`<service>:run-events:report` by convention) that it grants to the
|
|
325
566
|
* pipelines service account.
|
|
326
567
|
*
|
|
327
568
|
* ReportRunEvents is outside api.rpc-naming's verbs: it is a batched,
|
|
328
|
-
* at-least-once delivery to a sink the
|
|
569
|
+
* at-least-once delivery to a sink the consuming service serves, which none of them
|
|
329
570
|
* names.
|
|
330
571
|
*
|
|
331
572
|
* @generated from service xeonr.pipelines.v1.RunEventSinkService
|
|
@@ -341,14 +582,16 @@ export declare const RunEventSinkService: GenService<{
|
|
|
341
582
|
};
|
|
342
583
|
}>;
|
|
343
584
|
/**
|
|
344
|
-
* SinksService registers where a
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
*
|
|
585
|
+
* SinksService registers where a tenant's run events go. A sink belongs to
|
|
586
|
+
* one tenant, named on every call, and receives the events of every run of
|
|
587
|
+
* that tenant, whoever started it, and no other tenant's. There is one sink
|
|
588
|
+
* per tenant.
|
|
348
589
|
*
|
|
349
|
-
* Machine only (auth.machine-only-rpcs): a
|
|
350
|
-
*
|
|
351
|
-
*
|
|
590
|
+
* Machine only (auth.machine-only-rpcs): a sink is set, read and removed by
|
|
591
|
+
* the tenant's members that are service accounts (a service's service
|
|
592
|
+
* accounts are members of its own team); a person's token is refused in the
|
|
593
|
+
* handler, and a service account that is not a member of the tenant is
|
|
594
|
+
* refused with `permission_denied`.
|
|
352
595
|
*
|
|
353
596
|
* @generated from service xeonr.pipelines.v1.SinksService
|
|
354
597
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sinks_pb.d.ts","sourceRoot":"","sources":["../../../../../src/gen/xeonr/pipelines/v1/sinks_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAI7F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAGrF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,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