@flyteorg/flyteidl2 2.0.16 → 2.0.47
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/flyteidl2/actions/actions_service_pb.ts +36 -74
- package/flyteidl2/app/app_definition_pb.ts +185 -24
- package/flyteidl2/app/app_logs_payload_pb.ts +18 -2
- package/flyteidl2/app/app_payload_pb.ts +90 -12
- package/flyteidl2/artifact/artifact_pb.ts +277 -0
- package/flyteidl2/artifact/artifact_service_pb.ts +378 -0
- package/flyteidl2/cluster/payload_pb.ts +44 -2
- package/flyteidl2/common/cache_pb.ts +37 -0
- package/flyteidl2/common/list_pb.ts +22 -2
- package/flyteidl2/common/phase_pb.ts +11 -1
- package/flyteidl2/common/run_pb.ts +89 -3
- package/flyteidl2/core/artifact_id_pb.ts +112 -11
- package/flyteidl2/core/execution_pb.ts +190 -15
- package/flyteidl2/core/literals_pb.ts +14 -1
- package/flyteidl2/core/tasks_pb.ts +170 -14
- package/flyteidl2/dataproxy/dataproxy_service_pb.ts +76 -5
- package/flyteidl2/imagebuilder/definition_pb.ts +22 -1
- package/flyteidl2/logs/dataplane/payload_pb.ts +66 -2
- package/flyteidl2/notification/definition_pb.ts +58 -7
- package/flyteidl2/plugins/clustered_pb.ts +232 -0
- package/flyteidl2/plugins/ray_pb.ts +104 -7
- package/flyteidl2/settings/settings_definition_pb.ts +52 -41
- package/flyteidl2/task/common_pb.ts +134 -6
- package/flyteidl2/task/run_pb.ts +157 -9
- package/flyteidl2/task/task_definition_pb.ts +25 -4
- package/flyteidl2/task/task_service_pb.ts +18 -2
- package/flyteidl2/trigger/trigger_definition_pb.ts +26 -5
- package/flyteidl2/workflow/internal_run_service_pb.ts +37 -1
- package/flyteidl2/workflow/run_definition_pb.ts +219 -16
- package/flyteidl2/workflow/run_info_pb.ts +30 -1
- package/flyteidl2/workflow/run_service_pb.ts +703 -12
- package/flyteidl2/workflow/tracked_run_service_pb.ts +368 -0
- package/flyteidl2/workflow/translator_service_pb.ts +43 -2
- package/package.json +2 -2
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.5 with parameter "target=ts,import_extension=.ts"
|
|
2
|
+
// @generated from file flyteidl2/workflow/tracked_run_service.proto (package flyteidl2.workflow, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
6
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
|
|
7
|
+
import { file_buf_validate_validate } from "../../buf/validate/validate_pb.ts";
|
|
8
|
+
import type { ProjectIdentifier, RunIdentifier } from "../common/identifier_pb.ts";
|
|
9
|
+
import { file_flyteidl2_common_identifier } from "../common/identifier_pb.ts";
|
|
10
|
+
import type { OffloadedInputData } from "../common/run_pb.ts";
|
|
11
|
+
import { file_flyteidl2_common_run } from "../common/run_pb.ts";
|
|
12
|
+
import { file_flyteidl2_task_common } from "../task/common_pb.ts";
|
|
13
|
+
import type { RunSpec } from "../task/run_pb.ts";
|
|
14
|
+
import { file_flyteidl2_task_run } from "../task/run_pb.ts";
|
|
15
|
+
import type { TaskIdentifier, TaskSpec } from "../task/task_definition_pb.ts";
|
|
16
|
+
import { file_flyteidl2_task_task_definition } from "../task/task_definition_pb.ts";
|
|
17
|
+
import type { ActionEvent, ActionStatus, TaskAction, TraceAction } from "./run_definition_pb.ts";
|
|
18
|
+
import { file_flyteidl2_workflow_run_definition } from "./run_definition_pb.ts";
|
|
19
|
+
import type { AbortRunRequestSchema, AbortRunResponseSchema, CreateRunResponseSchema, GetActionDetailsRequestSchema, GetActionDetailsResponseSchema, GetRunDetailsRequestSchema, GetRunDetailsResponseSchema, ListActionsRequestSchema, ListActionsResponseSchema, ListRunsRequestSchema, ListRunsResponseSchema, WatchActionDetailsRequestSchema, WatchActionDetailsResponseSchema, WatchActionsRequestSchema, WatchActionsResponseSchema, WatchRunDetailsRequestSchema, WatchRunDetailsResponseSchema, WatchRunsRequestSchema, WatchRunsResponseSchema } from "./run_service_pb.ts";
|
|
20
|
+
import { file_flyteidl2_workflow_run_service } from "./run_service_pb.ts";
|
|
21
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
22
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
23
|
+
import type { Status } from "../../google/rpc/status_pb.ts";
|
|
24
|
+
import { file_google_rpc_status } from "../../google/rpc/status_pb.ts";
|
|
25
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Describes the file flyteidl2/workflow/tracked_run_service.proto.
|
|
29
|
+
*/
|
|
30
|
+
export const file_flyteidl2_workflow_tracked_run_service: GenFile = /*@__PURE__*/
|
|
31
|
+
fileDesc("CixmbHl0ZWlkbDIvd29ya2Zsb3cvdHJhY2tlZF9ydW5fc2VydmljZS5wcm90bxISZmx5dGVpZGwyLndvcmtmbG93Ir4EChdDcmVhdGVUcmFja2VkUnVuUmVxdWVzdBIxCgZydW5faWQYASABKAsyHy5mbHl0ZWlkbDIuY29tbW9uLlJ1bklkZW50aWZpZXJIABI5Cgpwcm9qZWN0X2lkGAIgASgLMiMuZmx5dGVpZGwyLmNvbW1vbi5Qcm9qZWN0SWRlbnRpZmllckgAEjEKB3Rhc2tfaWQYAyABKAsyHi5mbHl0ZWlkbDIudGFzay5UYXNrSWRlbnRpZmllckgBEi0KCXRhc2tfc3BlYxgEIAEoCzIYLmZseXRlaWRsMi50YXNrLlRhc2tTcGVjSAESRwoUb2ZmbG9hZGVkX2lucHV0X2RhdGEYBSABKAsyJC5mbHl0ZWlkbDIuY29tbW9uLk9mZmxvYWRlZElucHV0RGF0YUgCiAEBEikKCHJ1bl9zcGVjGAYgASgLMhcuZmx5dGVpZGwyLnRhc2suUnVuU3BlYxJHCgZsYWJlbHMYByADKAsyNy5mbHl0ZWlkbDIud29ya2Zsb3cuQ3JlYXR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N0aW9uc1JlcXVlc3QaJy5mbHl0ZWlkbDIud29ya2Zsb3cuTGlzdEFjdGlvbnNSZXNwb25zZSIDkAIBEmUKDFdhdGNoQWN0aW9ucxInLmZseXRlaWRsMi53b3JrZmxvdy5XYXRjaEFjdGlvbnNSZXF1ZXN0GiguZmx5dGVpZGwyLndvcmtmbG93LldhdGNoQWN0aW9uc1Jlc3BvbnNlIgAwARJXCghBYm9ydFJ1bhIjLmZseXRlaWRsMi53b3JrZmxvdy5BYm9ydFJ1blJlcXVlc3QaJC5mbHl0ZWlkbDIud29ya2Zsb3cuQWJvcnRSdW5SZXNwb25zZSIAQtMBChZjb20uZmx5dGVpZGwyLndvcmtmbG93QhZUcmFja2VkUnVuU2VydmljZVByb3RvSAJQAVo2Z2l0aHViLmNvbS9mbHl0ZW9yZy9mbHl0ZS92Mi9nZW4vZ28vZmx5dGVpZGwyL3dvcmtmbG93ogIDRldYqgISRmx5dGVpZGwyLldvcmtmbG93ygISRmx5dGVpZGwyXFdvcmtmbG934gIeRmx5dGVpZGwyXFdvcmtmbG93XEdQQk1ldGFkYXRh6gITRmx5dGVpZGwyOjpXb3JrZmxvd2IGcHJvdG8z", [file_buf_validate_validate, file_flyteidl2_common_identifier, file_flyteidl2_common_run, file_flyteidl2_task_common, file_flyteidl2_task_run, file_flyteidl2_task_task_definition, file_flyteidl2_workflow_run_definition, file_flyteidl2_workflow_run_service, file_google_protobuf_timestamp, file_google_rpc_status]);
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Request message for creating a tracked run.
|
|
35
|
+
*
|
|
36
|
+
* @generated from message flyteidl2.workflow.CreateTrackedRunRequest
|
|
37
|
+
*/
|
|
38
|
+
export type CreateTrackedRunRequest = Message<"flyteidl2.workflow.CreateTrackedRunRequest"> & {
|
|
39
|
+
/**
|
|
40
|
+
* @generated from oneof flyteidl2.workflow.CreateTrackedRunRequest.id
|
|
41
|
+
*/
|
|
42
|
+
id: {
|
|
43
|
+
/**
|
|
44
|
+
* The user provided run id.
|
|
45
|
+
*
|
|
46
|
+
* @generated from field: flyteidl2.common.RunIdentifier run_id = 1;
|
|
47
|
+
*/
|
|
48
|
+
value: RunIdentifier;
|
|
49
|
+
case: "runId";
|
|
50
|
+
} | {
|
|
51
|
+
/**
|
|
52
|
+
* The project id for this run. Run name will be generated.
|
|
53
|
+
*
|
|
54
|
+
* @generated from field: flyteidl2.common.ProjectIdentifier project_id = 2;
|
|
55
|
+
*/
|
|
56
|
+
value: ProjectIdentifier;
|
|
57
|
+
case: "projectId";
|
|
58
|
+
} | { case: undefined; value?: undefined };
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The task this run executes.
|
|
62
|
+
*
|
|
63
|
+
* @generated from oneof flyteidl2.workflow.CreateTrackedRunRequest.task
|
|
64
|
+
*/
|
|
65
|
+
task: {
|
|
66
|
+
/**
|
|
67
|
+
* The task id to use.
|
|
68
|
+
*
|
|
69
|
+
* @generated from field: flyteidl2.task.TaskIdentifier task_id = 3;
|
|
70
|
+
*/
|
|
71
|
+
value: TaskIdentifier;
|
|
72
|
+
case: "taskId";
|
|
73
|
+
} | {
|
|
74
|
+
/**
|
|
75
|
+
* The task spec to use.
|
|
76
|
+
*
|
|
77
|
+
* @generated from field: flyteidl2.task.TaskSpec task_spec = 4;
|
|
78
|
+
*/
|
|
79
|
+
value: TaskSpec;
|
|
80
|
+
case: "taskSpec";
|
|
81
|
+
} | { case: undefined; value?: undefined };
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Reference to the run's inputs, previously uploaded via DataProxyService.UploadMetadata.
|
|
85
|
+
*
|
|
86
|
+
* @generated from field: optional flyteidl2.common.OffloadedInputData offloaded_input_data = 5;
|
|
87
|
+
*/
|
|
88
|
+
offloadedInputData?: OffloadedInputData;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The run spec to use. Only client-relevant fields are honored; dataplane scheduling fields
|
|
92
|
+
* (queue, cluster) are ignored for tracked runs.
|
|
93
|
+
*
|
|
94
|
+
* @generated from field: flyteidl2.task.RunSpec run_spec = 6;
|
|
95
|
+
*/
|
|
96
|
+
runSpec?: RunSpec;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* User-defined labels attached to this run at creation time.
|
|
100
|
+
*
|
|
101
|
+
* @generated from field: map<string, string> labels = 7;
|
|
102
|
+
*/
|
|
103
|
+
labels: { [key: string]: string };
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Time the tracked run actually started. If unset, the server defaults it to the current time.
|
|
107
|
+
*
|
|
108
|
+
* @generated from field: google.protobuf.Timestamp run_start_time = 8;
|
|
109
|
+
*/
|
|
110
|
+
runStartTime?: Timestamp;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Describes the message flyteidl2.workflow.CreateTrackedRunRequest.
|
|
115
|
+
* Use `create(CreateTrackedRunRequestSchema)` to create a new message.
|
|
116
|
+
*/
|
|
117
|
+
export const CreateTrackedRunRequestSchema: GenMessage<CreateTrackedRunRequest> = /*@__PURE__*/
|
|
118
|
+
messageDesc(file_flyteidl2_workflow_tracked_run_service, 0);
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* A single action state report within a tracked run.
|
|
122
|
+
*
|
|
123
|
+
* @generated from message flyteidl2.workflow.TrackedActionUpdate
|
|
124
|
+
*/
|
|
125
|
+
export type TrackedActionUpdate = Message<"flyteidl2.workflow.TrackedActionUpdate"> & {
|
|
126
|
+
/**
|
|
127
|
+
* The event describing this state transition. Carries the action id, attempt (starting at 1),
|
|
128
|
+
* phase, monotonically increasing version, timestamps, error info and output references
|
|
129
|
+
* (output_uri / report_uri under the control plane's storage).
|
|
130
|
+
*
|
|
131
|
+
* @generated from field: flyteidl2.workflow.ActionEvent event = 1;
|
|
132
|
+
*/
|
|
133
|
+
event?: ActionEvent;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Name of the parent action if this is a nested action. Empty for the root action. Only
|
|
137
|
+
* honored on the first report of an action.
|
|
138
|
+
*
|
|
139
|
+
* @generated from field: string parent_name = 2;
|
|
140
|
+
*/
|
|
141
|
+
parentName: string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Group this action belongs to, if applicable. Only honored on the first report of an action.
|
|
145
|
+
*
|
|
146
|
+
* @generated from field: string group = 3;
|
|
147
|
+
*/
|
|
148
|
+
group: string;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The action's spec. Should be provided on the first report of an action; ignored afterwards.
|
|
152
|
+
*
|
|
153
|
+
* @generated from oneof flyteidl2.workflow.TrackedActionUpdate.spec
|
|
154
|
+
*/
|
|
155
|
+
spec: {
|
|
156
|
+
/**
|
|
157
|
+
* @generated from field: flyteidl2.workflow.TaskAction task = 4;
|
|
158
|
+
*/
|
|
159
|
+
value: TaskAction;
|
|
160
|
+
case: "task";
|
|
161
|
+
} | {
|
|
162
|
+
/**
|
|
163
|
+
* @generated from field: flyteidl2.workflow.TraceAction trace = 5;
|
|
164
|
+
*/
|
|
165
|
+
value: TraceAction;
|
|
166
|
+
case: "trace";
|
|
167
|
+
} | { case: undefined; value?: undefined };
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Rolled-up status of the action (attempts count, start/end time).
|
|
171
|
+
*
|
|
172
|
+
* @generated from field: flyteidl2.workflow.ActionStatus status = 6;
|
|
173
|
+
*/
|
|
174
|
+
status?: ActionStatus;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Describes the message flyteidl2.workflow.TrackedActionUpdate.
|
|
179
|
+
* Use `create(TrackedActionUpdateSchema)` to create a new message.
|
|
180
|
+
*/
|
|
181
|
+
export const TrackedActionUpdateSchema: GenMessage<TrackedActionUpdate> = /*@__PURE__*/
|
|
182
|
+
messageDesc(file_flyteidl2_workflow_tracked_run_service, 1);
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Request message for reporting tracked action state.
|
|
186
|
+
*
|
|
187
|
+
* @generated from message flyteidl2.workflow.ReportTrackedActionsRequest
|
|
188
|
+
*/
|
|
189
|
+
export type ReportTrackedActionsRequest = Message<"flyteidl2.workflow.ReportTrackedActionsRequest"> & {
|
|
190
|
+
/**
|
|
191
|
+
* The run these action reports belong to. Every update's action id must reference this run.
|
|
192
|
+
*
|
|
193
|
+
* @generated from field: flyteidl2.common.RunIdentifier run_id = 1;
|
|
194
|
+
*/
|
|
195
|
+
runId?: RunIdentifier;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The action state reports.
|
|
199
|
+
*
|
|
200
|
+
* @generated from field: repeated flyteidl2.workflow.TrackedActionUpdate updates = 2;
|
|
201
|
+
*/
|
|
202
|
+
updates: TrackedActionUpdate[];
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Describes the message flyteidl2.workflow.ReportTrackedActionsRequest.
|
|
207
|
+
* Use `create(ReportTrackedActionsRequestSchema)` to create a new message.
|
|
208
|
+
*/
|
|
209
|
+
export const ReportTrackedActionsRequestSchema: GenMessage<ReportTrackedActionsRequest> = /*@__PURE__*/
|
|
210
|
+
messageDesc(file_flyteidl2_workflow_tracked_run_service, 2);
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Response message for reporting tracked action state.
|
|
214
|
+
*
|
|
215
|
+
* @generated from message flyteidl2.workflow.ReportTrackedActionsResponse
|
|
216
|
+
*/
|
|
217
|
+
export type ReportTrackedActionsResponse = Message<"flyteidl2.workflow.ReportTrackedActionsResponse"> & {
|
|
218
|
+
/**
|
|
219
|
+
* Per-update results, parallel to the request's updates. Duplicate (already recorded) events
|
|
220
|
+
* are reported as success.
|
|
221
|
+
*
|
|
222
|
+
* @generated from field: repeated google.rpc.Status statuses = 1;
|
|
223
|
+
*/
|
|
224
|
+
statuses: Status[];
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Describes the message flyteidl2.workflow.ReportTrackedActionsResponse.
|
|
229
|
+
* Use `create(ReportTrackedActionsResponseSchema)` to create a new message.
|
|
230
|
+
*/
|
|
231
|
+
export const ReportTrackedActionsResponseSchema: GenMessage<ReportTrackedActionsResponse> = /*@__PURE__*/
|
|
232
|
+
messageDesc(file_flyteidl2_workflow_tracked_run_service, 3);
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* TrackedRunService records runs that are orchestrated OUTSIDE the platform: the client executes
|
|
236
|
+
* the work itself — on a laptop, in CI, inside an agent framework — and reports the resulting
|
|
237
|
+
* action tree here. The platform never schedules these runs and no dataplane is involved; it
|
|
238
|
+
* stores what it is told and streams it back.
|
|
239
|
+
*
|
|
240
|
+
* Tracked runs are tracked separately from platform-orchestrated runs so that reported,
|
|
241
|
+
* client-supplied state can never be mistaken for execution state the platform owns.
|
|
242
|
+
*
|
|
243
|
+
* The read/watch surface deliberately mirrors RunService (same request/response messages) so that
|
|
244
|
+
* clients and UIs built against RunService work against tracked runs with only a service swap.
|
|
245
|
+
*
|
|
246
|
+
* @generated from service flyteidl2.workflow.TrackedRunService
|
|
247
|
+
*/
|
|
248
|
+
export const TrackedRunService: GenService<{
|
|
249
|
+
/**
|
|
250
|
+
* Register a new tracked run. The server creates the root action ("a0") in the reported state and
|
|
251
|
+
* returns the resolved run. If a run name is not provided, the server generates one.
|
|
252
|
+
*
|
|
253
|
+
* @generated from rpc flyteidl2.workflow.TrackedRunService.CreateRun
|
|
254
|
+
*/
|
|
255
|
+
createRun: {
|
|
256
|
+
methodKind: "unary";
|
|
257
|
+
input: typeof CreateTrackedRunRequestSchema;
|
|
258
|
+
output: typeof CreateRunResponseSchema;
|
|
259
|
+
},
|
|
260
|
+
/**
|
|
261
|
+
* Report state for one or more actions of a tracked run. Creates actions on first report and
|
|
262
|
+
* updates them on subsequent reports. Reports are idempotent: an event with an
|
|
263
|
+
* (attempt, version, phase) tuple that was already recorded is acknowledged as success.
|
|
264
|
+
*
|
|
265
|
+
* @generated from rpc flyteidl2.workflow.TrackedRunService.ReportActions
|
|
266
|
+
*/
|
|
267
|
+
reportActions: {
|
|
268
|
+
methodKind: "unary";
|
|
269
|
+
input: typeof ReportTrackedActionsRequestSchema;
|
|
270
|
+
output: typeof ReportTrackedActionsResponseSchema;
|
|
271
|
+
},
|
|
272
|
+
/**
|
|
273
|
+
* Get detailed information about a tracked run.
|
|
274
|
+
*
|
|
275
|
+
* @generated from rpc flyteidl2.workflow.TrackedRunService.GetRunDetails
|
|
276
|
+
*/
|
|
277
|
+
getRunDetails: {
|
|
278
|
+
methodKind: "unary";
|
|
279
|
+
input: typeof GetRunDetailsRequestSchema;
|
|
280
|
+
output: typeof GetRunDetailsResponseSchema;
|
|
281
|
+
},
|
|
282
|
+
/**
|
|
283
|
+
* Stream detailed information updates about a tracked run. The call will terminate when the run
|
|
284
|
+
* reaches a terminal phase.
|
|
285
|
+
*
|
|
286
|
+
* @generated from rpc flyteidl2.workflow.TrackedRunService.WatchRunDetails
|
|
287
|
+
*/
|
|
288
|
+
watchRunDetails: {
|
|
289
|
+
methodKind: "server_streaming";
|
|
290
|
+
input: typeof WatchRunDetailsRequestSchema;
|
|
291
|
+
output: typeof WatchRunDetailsResponseSchema;
|
|
292
|
+
},
|
|
293
|
+
/**
|
|
294
|
+
* Get detailed information about an action of a tracked run.
|
|
295
|
+
*
|
|
296
|
+
* @generated from rpc flyteidl2.workflow.TrackedRunService.GetActionDetails
|
|
297
|
+
*/
|
|
298
|
+
getActionDetails: {
|
|
299
|
+
methodKind: "unary";
|
|
300
|
+
input: typeof GetActionDetailsRequestSchema;
|
|
301
|
+
output: typeof GetActionDetailsResponseSchema;
|
|
302
|
+
},
|
|
303
|
+
/**
|
|
304
|
+
* Stream detailed information updates about an action of a tracked run. The call will terminate
|
|
305
|
+
* when the action reaches a terminal phase.
|
|
306
|
+
*
|
|
307
|
+
* @generated from rpc flyteidl2.workflow.TrackedRunService.WatchActionDetails
|
|
308
|
+
*/
|
|
309
|
+
watchActionDetails: {
|
|
310
|
+
methodKind: "server_streaming";
|
|
311
|
+
input: typeof WatchActionDetailsRequestSchema;
|
|
312
|
+
output: typeof WatchActionDetailsResponseSchema;
|
|
313
|
+
},
|
|
314
|
+
/**
|
|
315
|
+
* List tracked runs based on the provided filter criteria.
|
|
316
|
+
*
|
|
317
|
+
* @generated from rpc flyteidl2.workflow.TrackedRunService.ListRuns
|
|
318
|
+
*/
|
|
319
|
+
listRuns: {
|
|
320
|
+
methodKind: "unary";
|
|
321
|
+
input: typeof ListRunsRequestSchema;
|
|
322
|
+
output: typeof ListRunsResponseSchema;
|
|
323
|
+
},
|
|
324
|
+
/**
|
|
325
|
+
* Stream updates for tracked runs based on the provided filter criteria.
|
|
326
|
+
*
|
|
327
|
+
* @generated from rpc flyteidl2.workflow.TrackedRunService.WatchRuns
|
|
328
|
+
*/
|
|
329
|
+
watchRuns: {
|
|
330
|
+
methodKind: "server_streaming";
|
|
331
|
+
input: typeof WatchRunsRequestSchema;
|
|
332
|
+
output: typeof WatchRunsResponseSchema;
|
|
333
|
+
},
|
|
334
|
+
/**
|
|
335
|
+
* List all actions for a given tracked run.
|
|
336
|
+
*
|
|
337
|
+
* @generated from rpc flyteidl2.workflow.TrackedRunService.ListActions
|
|
338
|
+
*/
|
|
339
|
+
listActions: {
|
|
340
|
+
methodKind: "unary";
|
|
341
|
+
input: typeof ListActionsRequestSchema;
|
|
342
|
+
output: typeof ListActionsResponseSchema;
|
|
343
|
+
},
|
|
344
|
+
/**
|
|
345
|
+
* Stream updates for actions of a given tracked run.
|
|
346
|
+
*
|
|
347
|
+
* @generated from rpc flyteidl2.workflow.TrackedRunService.WatchActions
|
|
348
|
+
*/
|
|
349
|
+
watchActions: {
|
|
350
|
+
methodKind: "server_streaming";
|
|
351
|
+
input: typeof WatchActionsRequestSchema;
|
|
352
|
+
output: typeof WatchActionsResponseSchema;
|
|
353
|
+
},
|
|
354
|
+
/**
|
|
355
|
+
* Abort a tracked run: mark the run and all of its non-terminal actions ABORTED on the server.
|
|
356
|
+
* The platform cannot stop the client that owns the run; subsequent reports against aborted actions
|
|
357
|
+
* are rejected. Aborting an already-terminal run is a no-op acknowledged as success.
|
|
358
|
+
*
|
|
359
|
+
* @generated from rpc flyteidl2.workflow.TrackedRunService.AbortRun
|
|
360
|
+
*/
|
|
361
|
+
abortRun: {
|
|
362
|
+
methodKind: "unary";
|
|
363
|
+
input: typeof AbortRunRequestSchema;
|
|
364
|
+
output: typeof AbortRunResponseSchema;
|
|
365
|
+
},
|
|
366
|
+
}> = /*@__PURE__*/
|
|
367
|
+
serviceDesc(file_flyteidl2_workflow_tracked_run_service, 0);
|
|
368
|
+
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
6
6
|
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
|
|
7
|
+
import type { ActionIdentifier, TriggerIdentifier } from "../common/identifier_pb.ts";
|
|
8
|
+
import { file_flyteidl2_common_identifier } from "../common/identifier_pb.ts";
|
|
7
9
|
import type { VariableMap } from "../core/interface_pb.ts";
|
|
8
10
|
import { file_flyteidl2_core_interface } from "../core/interface_pb.ts";
|
|
9
11
|
import type { NamedLiteral } from "../task/common_pb.ts";
|
|
@@ -17,14 +19,14 @@ import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
|
17
19
|
* Describes the file flyteidl2/workflow/translator_service.proto.
|
|
18
20
|
*/
|
|
19
21
|
export const file_flyteidl2_workflow_translator_service: GenFile = /*@__PURE__*/
|
|
20
|
-
fileDesc("
|
|
22
|
+
fileDesc("CitmbHl0ZWlkbDIvd29ya2Zsb3cvdHJhbnNsYXRvcl9zZXJ2aWNlLnByb3RvEhJmbHl0ZWlkbDIud29ya2Zsb3cilAIKH0xpdGVyYWxzVG9MYXVuY2hGb3JtSnNvblJlcXVlc3QSLgoIbGl0ZXJhbHMYASADKAsyHC5mbHl0ZWlkbDIudGFzay5OYW1lZExpdGVyYWwSLgoJdmFyaWFibGV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2_core_interface, file_flyteidl2_task_common, file_flyteidl2_task_task_definition, file_google_protobuf_struct]);
|
|
21
23
|
|
|
22
24
|
/**
|
|
23
25
|
* @generated from message flyteidl2.workflow.LiteralsToLaunchFormJsonRequest
|
|
24
26
|
*/
|
|
25
27
|
export type LiteralsToLaunchFormJsonRequest = Message<"flyteidl2.workflow.LiteralsToLaunchFormJsonRequest"> & {
|
|
26
28
|
/**
|
|
27
|
-
* The literals to convert to JSON.
|
|
29
|
+
* The literals to convert to JSON. Ignored when literals_uri is set.
|
|
28
30
|
*
|
|
29
31
|
* @generated from field: repeated flyteidl2.task.NamedLiteral literals = 1;
|
|
30
32
|
*/
|
|
@@ -34,6 +36,45 @@ export type LiteralsToLaunchFormJsonRequest = Message<"flyteidl2.workflow.Litera
|
|
|
34
36
|
* @generated from field: flyteidl2.core.VariableMap variables = 2;
|
|
35
37
|
*/
|
|
36
38
|
variables?: VariableMap;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Raw object store URI for offloaded action literals, as returned by
|
|
42
|
+
* DataProxyService.GetActionData (inputs_uri / outputs_uri). Only used with
|
|
43
|
+
* action_id: when set, the service reads the literals from storage instead of
|
|
44
|
+
* requiring them inline, avoiding a round trip of potentially large payloads
|
|
45
|
+
* through the client. Ignored when trigger_id is set.
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: string literals_uri = 3;
|
|
48
|
+
*/
|
|
49
|
+
literalsUri: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Identifies the owner of the offloaded literals to convert. Leave unset to
|
|
53
|
+
* convert the inline `literals` instead.
|
|
54
|
+
*
|
|
55
|
+
* @generated from oneof flyteidl2.workflow.LiteralsToLaunchFormJsonRequest.owner
|
|
56
|
+
*/
|
|
57
|
+
owner: {
|
|
58
|
+
/**
|
|
59
|
+
* Identifies the action that owns literals_uri. Required when literals_uri
|
|
60
|
+
* is set; the URI is validated against the action's data URIs before being
|
|
61
|
+
* read.
|
|
62
|
+
*
|
|
63
|
+
* @generated from field: flyteidl2.common.ActionIdentifier action_id = 4;
|
|
64
|
+
*/
|
|
65
|
+
value: ActionIdentifier;
|
|
66
|
+
case: "actionId";
|
|
67
|
+
} | {
|
|
68
|
+
/**
|
|
69
|
+
* Identifies a trigger whose offloaded inputs should be converted. The
|
|
70
|
+
* service looks up the trigger's offloaded input URI from its spec and
|
|
71
|
+
* reads it directly, so literals and literals_uri are ignored.
|
|
72
|
+
*
|
|
73
|
+
* @generated from field: flyteidl2.common.TriggerIdentifier trigger_id = 5;
|
|
74
|
+
*/
|
|
75
|
+
value: TriggerIdentifier;
|
|
76
|
+
case: "triggerId";
|
|
77
|
+
} | { case: undefined; value?: undefined };
|
|
37
78
|
};
|
|
38
79
|
|
|
39
80
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flyteorg/flyteidl2",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.47",
|
|
4
4
|
"description": "Compiled protocol buffers and gRPC service and connect clients/servers for Flyte IDLs",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"google"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@bufbuild/protobuf": "
|
|
21
|
+
"@bufbuild/protobuf": "2.14.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"typescript": "^5.6.0"
|