@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runs_pb.js","sourceRoot":"","sources":["../../../../../src/gen/xeonr/pipelines/v1/runs_pb.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,iGAAiG;AACjG,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,mCAAmC,EAAE,MAAM,+CAA+C,CAAC;AAEpG,OAAO,EAAE,6BAA6B,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAEpI,OAAO,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,EAAE,kCAAkC,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAGjF;;GAEG;AACH,MAAM,CA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,MAAM,CAAN,IAAY,SA8BX;AA9BD,WAAY,SAAS;IACnB;;;;;OAKG;IACH,uDAAe,CAAA;IAEf;;;;OAIG;IACH,2CAAS,CAAA;IAET;;;;;OAKG;IACH,6CAAU,CAAA;IAEV;;;;OAIG;IACH,qDAAc,CAAA;AAChB,CAAC,EA9BW,SAAS,KAAT,SAAS,QA8BpB;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAuB,aAAa,CAC9D,QAAQ,CAAC,4BAA4B,EAAE,CAAC,CAAC,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,MAAM,WAAW,GAyGnB,aAAa,CAChB,WAAW,CAAC,4BAA4B,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { ScheduleTarget } from "./schedules_pb.js";
|
|
4
|
+
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file xeonr/pipelines/v1/schedule_targets.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_xeonr_pipelines_v1_schedule_targets: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* @generated from message xeonr.pipelines.v1.FireScheduleRequest
|
|
11
|
+
*/
|
|
12
|
+
export type FireScheduleRequest = Message<"xeonr.pipelines.v1.FireScheduleRequest"> & {
|
|
13
|
+
/**
|
|
14
|
+
* FireID identifies this fire: the idempotency key. The same on every
|
|
15
|
+
* retry.
|
|
16
|
+
*
|
|
17
|
+
* @generated from field: string fire_id = 1;
|
|
18
|
+
*/
|
|
19
|
+
fireId: string;
|
|
20
|
+
/**
|
|
21
|
+
* ScheduleID and ScheduleName are pipelines' schedule.
|
|
22
|
+
*
|
|
23
|
+
* @generated from field: string schedule_id = 2;
|
|
24
|
+
*/
|
|
25
|
+
scheduleId: string;
|
|
26
|
+
/**
|
|
27
|
+
* @generated from field: string schedule_name = 3;
|
|
28
|
+
*/
|
|
29
|
+
scheduleName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Reference is the schedule's ScheduleFireTarget.reference: the
|
|
32
|
+
* service's own name for what the schedule runs.
|
|
33
|
+
*
|
|
34
|
+
* @generated from field: string reference = 4;
|
|
35
|
+
*/
|
|
36
|
+
reference: string;
|
|
37
|
+
/**
|
|
38
|
+
* FireTime is the occurrence's scheduled time, UTC; for a run-now, the
|
|
39
|
+
* instant it was asked. With the schedule it is unique per target, and
|
|
40
|
+
* the same on every retry.
|
|
41
|
+
*
|
|
42
|
+
* @generated from field: google.protobuf.Timestamp fire_time = 5;
|
|
43
|
+
*/
|
|
44
|
+
fireTime?: Timestamp | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* RunNow says the fire is a run-now (CreateScheduleRun), outside the
|
|
47
|
+
* cron.
|
|
48
|
+
*
|
|
49
|
+
* validate:skip a flag
|
|
50
|
+
*
|
|
51
|
+
* @generated from field: bool run_now = 6;
|
|
52
|
+
*/
|
|
53
|
+
runNow: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Target is the occurrence's target: its key (empty for a schedule with
|
|
56
|
+
* one target), its resource and its args. Its run is the schedule's
|
|
57
|
+
* tenant's, whose sink this call reached.
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: xeonr.pipelines.v1.ScheduleTarget target = 7;
|
|
60
|
+
*/
|
|
61
|
+
target?: ScheduleTarget | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Parameters are the fire target's parameters with the target's args
|
|
64
|
+
* merged over them.
|
|
65
|
+
*
|
|
66
|
+
* @generated from field: google.protobuf.Struct parameters = 8;
|
|
67
|
+
*/
|
|
68
|
+
parameters?: JsonObject | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Attempt counts the calls for this fire, from 1.
|
|
71
|
+
*
|
|
72
|
+
* @generated from field: uint32 attempt = 9;
|
|
73
|
+
*/
|
|
74
|
+
attempt: number;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Describes the message xeonr.pipelines.v1.FireScheduleRequest.
|
|
78
|
+
* Use `create(FireScheduleRequestSchema)` to create a new message.
|
|
79
|
+
*/
|
|
80
|
+
export declare const FireScheduleRequestSchema: GenMessage<FireScheduleRequest>;
|
|
81
|
+
/**
|
|
82
|
+
* @generated from message xeonr.pipelines.v1.FireScheduleResponse
|
|
83
|
+
*/
|
|
84
|
+
export type FireScheduleResponse = Message<"xeonr.pipelines.v1.FireScheduleResponse"> & {
|
|
85
|
+
/**
|
|
86
|
+
* @generated from field: xeonr.pipelines.v1.FireOutcome outcome = 1;
|
|
87
|
+
*/
|
|
88
|
+
outcome: FireOutcome;
|
|
89
|
+
/**
|
|
90
|
+
* RunID is the run started, for STARTED: a run of the tenant's own, so
|
|
91
|
+
* the occurrence links to it. Empty is allowed (the occurrence is then
|
|
92
|
+
* STARTED with no run).
|
|
93
|
+
*
|
|
94
|
+
* @generated from field: string run_id = 2;
|
|
95
|
+
*/
|
|
96
|
+
runId: string;
|
|
97
|
+
/**
|
|
98
|
+
* Reason says why no run started, for DECLINED. It shows in the
|
|
99
|
+
* occurrence history to the schedule's readers: carry no secret.
|
|
100
|
+
*
|
|
101
|
+
* @generated from field: string reason = 3;
|
|
102
|
+
*/
|
|
103
|
+
reason: string;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Describes the message xeonr.pipelines.v1.FireScheduleResponse.
|
|
107
|
+
* Use `create(FireScheduleResponseSchema)` to create a new message.
|
|
108
|
+
*/
|
|
109
|
+
export declare const FireScheduleResponseSchema: GenMessage<FireScheduleResponse>;
|
|
110
|
+
/**
|
|
111
|
+
* FireOutcome is what the consuming service did with a fire.
|
|
112
|
+
*
|
|
113
|
+
* @generated from enum xeonr.pipelines.v1.FireOutcome
|
|
114
|
+
*/
|
|
115
|
+
export declare enum FireOutcome {
|
|
116
|
+
/**
|
|
117
|
+
* @generated from enum value: FIRE_OUTCOME_UNSPECIFIED = 0;
|
|
118
|
+
*/
|
|
119
|
+
UNSPECIFIED = 0,
|
|
120
|
+
/**
|
|
121
|
+
* A run was started for the fire (now, or by an earlier call with the
|
|
122
|
+
* same fire_id); `run_id` names it.
|
|
123
|
+
*
|
|
124
|
+
* @generated from enum value: FIRE_OUTCOME_STARTED = 1;
|
|
125
|
+
*/
|
|
126
|
+
STARTED = 1,
|
|
127
|
+
/**
|
|
128
|
+
* No run was started, for `reason`. Not retried.
|
|
129
|
+
*
|
|
130
|
+
* @generated from enum value: FIRE_OUTCOME_DECLINED = 2;
|
|
131
|
+
*/
|
|
132
|
+
DECLINED = 2
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Describes the enum xeonr.pipelines.v1.FireOutcome.
|
|
136
|
+
*/
|
|
137
|
+
export declare const FireOutcomeSchema: GenEnum<FireOutcome>;
|
|
138
|
+
/**
|
|
139
|
+
* ScheduleTargetService is served by a consuming service, not by pipelines
|
|
140
|
+
* (PIPE-111), as RunEventSinkService is: the call a schedule whose target is
|
|
141
|
+
* its tenant's own service (`Schedule.fire`, ScheduleFireTarget) makes at
|
|
142
|
+
* each occurrence. Pipelines keeps the clock, the override, pause, misfire
|
|
143
|
+
* policy, enumeration and the occurrence history; the service starts the
|
|
144
|
+
* run itself, with its own definition and attested facts (CreateRun), and
|
|
145
|
+
* answers which run it started or why it started none.
|
|
146
|
+
*
|
|
147
|
+
* Where and how. The call goes to the tenant's registered sink
|
|
148
|
+
* (SinksService.SetSink): the same base URL, the same audience and the same
|
|
149
|
+
* authentication, so a service that serves its sink serves this service
|
|
150
|
+
* next to it and registers nothing more. Pipelines authenticates exactly as
|
|
151
|
+
* for a delivery of run events, with one difference for PIPELINES_SIGNED: a
|
|
152
|
+
* fire's token has `sub` `urn:xeonr:pipelines:schedule-fires`, the
|
|
153
|
+
* `token_use` claim `schedule_fire` and JOSE `typ` `schedule-fire+jwt`, so a
|
|
154
|
+
* run-event delivery token never passes as a fire, nor a fire as a delivery.
|
|
155
|
+
* For AUTH_SERVICE_TOKEN it is the same pipelines service account as a
|
|
156
|
+
* delivery, audienced to the sink's audience alone (a token naming any other
|
|
157
|
+
* audience is never sent).
|
|
158
|
+
*
|
|
159
|
+
* Delivery is at least once. Each fire has a stable `fire_id`: every retry
|
|
160
|
+
* of it, by any coordinator, after any restart, carries the same id, so the
|
|
161
|
+
* service must start at most one run per fire_id and answer a repeated id
|
|
162
|
+
* as it answered the first (the same run, or the same reason). A schedule's
|
|
163
|
+
* occurrence is fired once (its occurrence row is unique), so no two fire
|
|
164
|
+
* ids ever stand for one occurrence.
|
|
165
|
+
*
|
|
166
|
+
* Retry. An answer settles the fire. An RPC error with a permanent code
|
|
167
|
+
* (`invalid_argument`, `not_found`, `out_of_range`, `unimplemented`)
|
|
168
|
+
* settles it DECLINED with the error as the reason and is not retried;
|
|
169
|
+
* `not_found` is how a service says it no longer has what the schedule
|
|
170
|
+
* fires (it should then DeleteSchedule). Any other error, or a transport
|
|
171
|
+
* failure, is retried with the same fire id after a backoff (doubling from
|
|
172
|
+
* five seconds to five minutes), at most eight calls, then recorded
|
|
173
|
+
* GAVE_UP. Each call has thirty seconds.
|
|
174
|
+
*
|
|
175
|
+
* Machine only (auth.machine-only-rpcs). Scope: a shared contract cannot
|
|
176
|
+
* name each serving service's scope, so this RPC carries no
|
|
177
|
+
* `require_scope`. The serving service gates it in its handler with a
|
|
178
|
+
* service-account-only scope of its own Auth application
|
|
179
|
+
* (`<service>:schedule:fire` by convention) granted to the pipelines
|
|
180
|
+
* service account, and refuses every other principal.
|
|
181
|
+
*
|
|
182
|
+
* @generated from service xeonr.pipelines.v1.ScheduleTargetService
|
|
183
|
+
*/
|
|
184
|
+
export declare const ScheduleTargetService: GenService<{
|
|
185
|
+
/**
|
|
186
|
+
* @generated from rpc xeonr.pipelines.v1.ScheduleTargetService.FireSchedule
|
|
187
|
+
*/
|
|
188
|
+
fireSchedule: {
|
|
189
|
+
methodKind: "unary";
|
|
190
|
+
input: typeof FireScheduleRequestSchema;
|
|
191
|
+
output: typeof FireScheduleResponseSchema;
|
|
192
|
+
};
|
|
193
|
+
}>;
|
|
194
|
+
//# sourceMappingURL=schedule_targets_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule_targets_pb.d.ts","sourceRoot":"","sources":["../../../../../src/gen/xeonr/pipelines/v1/schedule_targets_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,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,wCAAwC,EAAE,OACs7E,CAAC;AAE9+E;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,wCAAwC,CAAC,GAAG;IACpF;;;;;OAKG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAEjC;;;;;;;OAOG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IAEpC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAEpC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,mBAAmB,CACZ,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,yCAAyC,CAAC,GAAG;IACtF;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC;IAErB;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,UAAU,CAAC,oBAAoB,CACd,CAAC;AAE3D;;;;GAIG;AACH,oBAAY,WAAW;IACrB;;OAEG;IACH,WAAW,IAAI;IAEf;;;;;OAKG;IACH,OAAO,IAAI;IAEX;;;;OAIG;IACH,QAAQ,IAAI;CACb;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,WAAW,CACI,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC;IAC7C;;OAEG;IACH,YAAY,EAAE;QACZ,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,yBAAyB,CAAC;QACxC,MAAM,EAAE,OAAO,0BAA0B,CAAC;KAC3C,CAAC;CACH,CACyD,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.17.0 with parameter "target=ts,import_extension=.js"
|
|
2
|
+
// @generated from file xeonr/pipelines/v1/schedule_targets.proto (package xeonr.pipelines.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js";
|
|
6
|
+
import { file_gnostic_openapi_v3_annotations } from "../../../gnostic/openapi/v3/annotations_pb.js";
|
|
7
|
+
import { file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
import { file_xeonr_pipelines_v1_schedules } from "./schedules_pb.js";
|
|
9
|
+
import { file_xeonr_platform_v1_options } from "../../platform/v1/options_pb.js";
|
|
10
|
+
/**
|
|
11
|
+
* Describes the file xeonr/pipelines/v1/schedule_targets.proto.
|
|
12
|
+
*/
|
|
13
|
+
export const file_xeonr_pipelines_v1_schedule_targets = /*@__PURE__*/ fileDesc("Cil4ZW9uci9waXBlbGluZXMvdjEvc2NoZWR1bGVfdGFyZ2V0cy5wcm90bxISeGVvbnIucGlwZWxpbmVzLnYxItUCChNGaXJlU2NoZWR1bGVSZXF1ZXN0EhkKB2ZpcmVfaWQYASABKAlCCLpIBXIDsAEBEh0KC3NjaGVkdWxlX2lkGAIgASgJQgi6SAVyA7ABARIgCg1zY2hlZHVsZV9uYW1lGAMgASgJQgm6SAZyBBABGD8SHQoJcmVmZXJlbmNlGAQgASgJQgq6SAdyBRABGL8BEjUKCWZpcmVfdGltZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCBrpIA8gBARIPCgdydW5fbm93GAYgASgIEjIKBnRhcmdldBgHIAEoCzIiLnhlb25yLnBpcGVsaW5lcy52MS5TY2hlZHVsZVRhcmdldBIrCgpwYXJhbWV0ZXJzGAggASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBIaCgdhdHRlbXB0GAkgASgNQgm6SAYqBBhkKAEiyAEKFEZpcmVTY2hlZHVsZVJlc3BvbnNlEjwKB291dGNvbWUYASABKA4yHy54ZW9uci5waXBlbGluZXMudjEuRmlyZU91dGNvbWVCCrpIB4IBBBABIAASWAoGcnVuX2lkGAIgASgJQki6SEVyQzJBXihbMC05YS1mXXs4fS1bMC05YS1mXXs0fS1bMC05YS1mXXs0fS1bMC05YS1mXXs0fS1bMC05YS1mXXsxMn0pPyQSGAoGcmVhc29uGAMgASgJQgi6SA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ZW1lbnRlZGApIGlzIHJlY29yZGVkIGFzIGEgZGVjbGluZTsgYW55IG90aGVyIGlzIHJldHJpZWQgd2l0aCB0aGUgc2FtZSBgZmlyZV9pZGAuIFNlcnZlZCBieSB0aGUgY29uc3VtaW5nIHNlcnZpY2U7IG1hY2hpbmUgb25seS4KCioqUmVxdWlyZWQgc2NvcGVzOioqIGEgc2VydmljZS1hY2NvdW50LW9ubHkgc2NvcGUgb2YgdGhlIHNlcnZpbmcgc2VydmljZSdzIG93biBBdXRoIGFwcGxpY2F0aW9uLCBlbmZvcmNlZCBieSBpdHMgaGFuZGxlci6A6wQBQllaV3Byb3RvLnByb2Qud3RmL2dlbi9nby94ZW9uci9waXBlbGluZXMvcHJvdG9jb2xidWZmZXJzL2dvL3hlb25yL3BpcGVsaW5lcy92MTtwaXBlbGluZXN2MWIGcHJvdG8z", [file_buf_validate_validate, file_gnostic_openapi_v3_annotations, file_google_protobuf_struct, file_google_protobuf_timestamp, file_xeonr_pipelines_v1_schedules, file_xeonr_platform_v1_options]);
|
|
14
|
+
/**
|
|
15
|
+
* Describes the message xeonr.pipelines.v1.FireScheduleRequest.
|
|
16
|
+
* Use `create(FireScheduleRequestSchema)` to create a new message.
|
|
17
|
+
*/
|
|
18
|
+
export const FireScheduleRequestSchema = /*@__PURE__*/ messageDesc(file_xeonr_pipelines_v1_schedule_targets, 0);
|
|
19
|
+
/**
|
|
20
|
+
* Describes the message xeonr.pipelines.v1.FireScheduleResponse.
|
|
21
|
+
* Use `create(FireScheduleResponseSchema)` to create a new message.
|
|
22
|
+
*/
|
|
23
|
+
export const FireScheduleResponseSchema = /*@__PURE__*/ messageDesc(file_xeonr_pipelines_v1_schedule_targets, 1);
|
|
24
|
+
/**
|
|
25
|
+
* FireOutcome is what the consuming service did with a fire.
|
|
26
|
+
*
|
|
27
|
+
* @generated from enum xeonr.pipelines.v1.FireOutcome
|
|
28
|
+
*/
|
|
29
|
+
export var FireOutcome;
|
|
30
|
+
(function (FireOutcome) {
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum value: FIRE_OUTCOME_UNSPECIFIED = 0;
|
|
33
|
+
*/
|
|
34
|
+
FireOutcome[FireOutcome["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
35
|
+
/**
|
|
36
|
+
* A run was started for the fire (now, or by an earlier call with the
|
|
37
|
+
* same fire_id); `run_id` names it.
|
|
38
|
+
*
|
|
39
|
+
* @generated from enum value: FIRE_OUTCOME_STARTED = 1;
|
|
40
|
+
*/
|
|
41
|
+
FireOutcome[FireOutcome["STARTED"] = 1] = "STARTED";
|
|
42
|
+
/**
|
|
43
|
+
* No run was started, for `reason`. Not retried.
|
|
44
|
+
*
|
|
45
|
+
* @generated from enum value: FIRE_OUTCOME_DECLINED = 2;
|
|
46
|
+
*/
|
|
47
|
+
FireOutcome[FireOutcome["DECLINED"] = 2] = "DECLINED";
|
|
48
|
+
})(FireOutcome || (FireOutcome = {}));
|
|
49
|
+
/**
|
|
50
|
+
* Describes the enum xeonr.pipelines.v1.FireOutcome.
|
|
51
|
+
*/
|
|
52
|
+
export const FireOutcomeSchema = /*@__PURE__*/ enumDesc(file_xeonr_pipelines_v1_schedule_targets, 0);
|
|
53
|
+
/**
|
|
54
|
+
* ScheduleTargetService is served by a consuming service, not by pipelines
|
|
55
|
+
* (PIPE-111), as RunEventSinkService is: the call a schedule whose target is
|
|
56
|
+
* its tenant's own service (`Schedule.fire`, ScheduleFireTarget) makes at
|
|
57
|
+
* each occurrence. Pipelines keeps the clock, the override, pause, misfire
|
|
58
|
+
* policy, enumeration and the occurrence history; the service starts the
|
|
59
|
+
* run itself, with its own definition and attested facts (CreateRun), and
|
|
60
|
+
* answers which run it started or why it started none.
|
|
61
|
+
*
|
|
62
|
+
* Where and how. The call goes to the tenant's registered sink
|
|
63
|
+
* (SinksService.SetSink): the same base URL, the same audience and the same
|
|
64
|
+
* authentication, so a service that serves its sink serves this service
|
|
65
|
+
* next to it and registers nothing more. Pipelines authenticates exactly as
|
|
66
|
+
* for a delivery of run events, with one difference for PIPELINES_SIGNED: a
|
|
67
|
+
* fire's token has `sub` `urn:xeonr:pipelines:schedule-fires`, the
|
|
68
|
+
* `token_use` claim `schedule_fire` and JOSE `typ` `schedule-fire+jwt`, so a
|
|
69
|
+
* run-event delivery token never passes as a fire, nor a fire as a delivery.
|
|
70
|
+
* For AUTH_SERVICE_TOKEN it is the same pipelines service account as a
|
|
71
|
+
* delivery, audienced to the sink's audience alone (a token naming any other
|
|
72
|
+
* audience is never sent).
|
|
73
|
+
*
|
|
74
|
+
* Delivery is at least once. Each fire has a stable `fire_id`: every retry
|
|
75
|
+
* of it, by any coordinator, after any restart, carries the same id, so the
|
|
76
|
+
* service must start at most one run per fire_id and answer a repeated id
|
|
77
|
+
* as it answered the first (the same run, or the same reason). A schedule's
|
|
78
|
+
* occurrence is fired once (its occurrence row is unique), so no two fire
|
|
79
|
+
* ids ever stand for one occurrence.
|
|
80
|
+
*
|
|
81
|
+
* Retry. An answer settles the fire. An RPC error with a permanent code
|
|
82
|
+
* (`invalid_argument`, `not_found`, `out_of_range`, `unimplemented`)
|
|
83
|
+
* settles it DECLINED with the error as the reason and is not retried;
|
|
84
|
+
* `not_found` is how a service says it no longer has what the schedule
|
|
85
|
+
* fires (it should then DeleteSchedule). Any other error, or a transport
|
|
86
|
+
* failure, is retried with the same fire id after a backoff (doubling from
|
|
87
|
+
* five seconds to five minutes), at most eight calls, then recorded
|
|
88
|
+
* GAVE_UP. Each call has thirty seconds.
|
|
89
|
+
*
|
|
90
|
+
* Machine only (auth.machine-only-rpcs). Scope: a shared contract cannot
|
|
91
|
+
* name each serving service's scope, so this RPC carries no
|
|
92
|
+
* `require_scope`. The serving service gates it in its handler with a
|
|
93
|
+
* service-account-only scope of its own Auth application
|
|
94
|
+
* (`<service>:schedule:fire` by convention) granted to the pipelines
|
|
95
|
+
* service account, and refuses every other principal.
|
|
96
|
+
*
|
|
97
|
+
* @generated from service xeonr.pipelines.v1.ScheduleTargetService
|
|
98
|
+
*/
|
|
99
|
+
export const ScheduleTargetService = /*@__PURE__*/ serviceDesc(file_xeonr_pipelines_v1_schedule_targets, 0);
|
|
100
|
+
//# sourceMappingURL=schedule_targets_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule_targets_pb.js","sourceRoot":"","sources":["../../../../../src/gen/xeonr/pipelines/v1/schedule_targets_pb.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,6GAA6G;AAC7G,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,mCAAmC,EAAE,MAAM,+CAA+C,CAAC;AAEpG,OAAO,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAErG,OAAO,EAAE,iCAAiC,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAGjF;;GAEG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAY,aAAa,CAC5E,QAAQ,CAAC,8xEAA8xE,EAAE,CAAC,0BAA0B,EAAE,mCAAmC,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,iCAAiC,EAAE,8BAA8B,CAAC,CAAC,CAAC;AA8E9+E;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAoC,aAAa,CACrF,WAAW,CAAC,wCAAwC,EAAE,CAAC,CAAC,CAAC;AA6B3D;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAqC,aAAa,CACvF,WAAW,CAAC,wCAAwC,EAAE,CAAC,CAAC,CAAC;AAE3D;;;;GAIG;AACH,MAAM,CAAN,IAAY,WAoBX;AApBD,WAAY,WAAW;IACrB;;OAEG;IACH,2DAAe,CAAA;IAEf;;;;;OAKG;IACH,mDA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