@flyteorg/flyteidl2 2.0.0-alpha10
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/common/authorization_pb.ts +323 -0
- package/flyteidl2/common/identifier_pb.ts +423 -0
- package/flyteidl2/common/identity_pb.ts +205 -0
- package/flyteidl2/common/list_pb.ts +232 -0
- package/flyteidl2/common/policy_pb.ts +76 -0
- package/flyteidl2/common/role_pb.ts +161 -0
- package/flyteidl2/common/runtime_version_pb.ts +76 -0
- package/flyteidl2/core/artifact_id_pb.ts +400 -0
- package/flyteidl2/core/catalog_pb.ts +215 -0
- package/flyteidl2/core/execution_pb.ts +641 -0
- package/flyteidl2/core/identifier_pb.ts +237 -0
- package/flyteidl2/core/interface_pb.ts +187 -0
- package/flyteidl2/core/literals_pb.ts +673 -0
- package/flyteidl2/core/security_pb.ts +310 -0
- package/flyteidl2/core/tasks_pb.ts +1088 -0
- package/flyteidl2/core/types_pb.ts +592 -0
- package/flyteidl2/imagebuilder/definition_pb.ts +535 -0
- package/flyteidl2/imagebuilder/payload_pb.ts +62 -0
- package/flyteidl2/imagebuilder/service_pb.ts +30 -0
- package/flyteidl2/logs/dataplane/payload_pb.ts +396 -0
- package/flyteidl2/plugins/dask_pb.ts +109 -0
- package/flyteidl2/plugins/ray_pb.ts +189 -0
- package/flyteidl2/plugins/spark_pb.ts +145 -0
- package/flyteidl2/secret/definition_pb.ts +310 -0
- package/flyteidl2/secret/payload_pb.ts +266 -0
- package/flyteidl2/secret/secret_pb.ts +63 -0
- package/flyteidl2/task/common_pb.ts +319 -0
- package/flyteidl2/task/environment_pb.ts +36 -0
- package/flyteidl2/task/run_pb.ts +177 -0
- package/flyteidl2/task/task_definition_pb.ts +417 -0
- package/flyteidl2/task/task_service_pb.ts +248 -0
- package/flyteidl2/trigger/trigger_definition_pb.ts +283 -0
- package/flyteidl2/trigger/trigger_service_pb.ts +451 -0
- package/flyteidl2/workflow/queue_service_pb.ts +245 -0
- package/flyteidl2/workflow/run_definition_pb.ts +1192 -0
- package/flyteidl2/workflow/run_logs_service_pb.ts +106 -0
- package/flyteidl2/workflow/run_service_pb.ts +870 -0
- package/flyteidl2/workflow/state_service_pb.ts +310 -0
- package/flyteidl2/workflow/translator_service_pb.ts +174 -0
- package/package.json +18 -0
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.5 with parameter "target=ts,import_extension=.ts"
|
|
2
|
+
// @generated from file flyteidl2/workflow/state_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 { ActionIdentifier } from "../common/identifier_pb.ts";
|
|
9
|
+
import { file_flyteidl2_common_identifier } from "../common/identifier_pb.ts";
|
|
10
|
+
import type { ExecutionError } from "../core/execution_pb.ts";
|
|
11
|
+
import { file_flyteidl2_core_execution } from "../core/execution_pb.ts";
|
|
12
|
+
import type { Phase } from "./run_definition_pb.ts";
|
|
13
|
+
import { file_flyteidl2_workflow_run_definition } from "./run_definition_pb.ts";
|
|
14
|
+
import type { Status } from "../../google/rpc/status_pb.ts";
|
|
15
|
+
import { file_google_rpc_status } from "../../google/rpc/status_pb.ts";
|
|
16
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Describes the file flyteidl2/workflow/state_service.proto.
|
|
20
|
+
*/
|
|
21
|
+
export const file_flyteidl2_workflow_state_service: GenFile = /*@__PURE__*/
|
|
22
|
+
fileDesc("CiZmbHl0ZWlkbDIvd29ya2Zsb3cvc3RhdGVfc2VydmljZS5wcm90bxISZmx5dGVpZGwyLndvcmtmbG93IpsBCgpQ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WQYASABKAsyIi5mbHl0ZWlkbDIuY29tbW9uLkFjdGlvbklkZW50aWZpZXJCBrpIA8gBARIoCgVwaGFzZRgCIAEoDjIZLmZseXRlaWRsMi53b3JrZmxvdy5QaGFzZRIyCgVlcnJvchgDIAEoCzIeLmZseXRlaWRsMi5jb3JlLkV4ZWN1dGlvbkVycm9ySACIAQESEgoKb3V0cHV0X3VyaRgEIAEoCUIICgZfZXJyb3Iy9AEKDFN0YXRlU2VydmljZRJICgNQdXQSHi5mbHl0ZWlkbDIud29ya2Zsb3cuUHV0UmVxdWVzdBofLmZseXRlaWRsMi53b3JrZmxvdy5QdXRSZXNwb25zZSIAEkgKA0dldBIeLmZseXRlaWRsMi53b3JrZmxvdy5HZXRSZXF1ZXN0Gh8uZmx5dGVpZGwyLndvcmtmbG93LkdldFJlc3BvbnNlIgASUAoFV2F0Y2gSIC5mbHl0ZWlkbDIud29ya2Zsb3cuV2F0Y2hSZXF1ZXN0GiEuZmx5dGVpZGwyLndvcmtmbG93LldhdGNoUmVzcG9uc2UiADABQs4BChZjb20uZmx5dGVpZGwyLndvcmtmbG93QhFTdGF0ZVNlcnZpY2VQcm90b0gCUAFaNmdpdGh1Yi5jb20vZmx5dGVvcmcvZmx5dGUvdjIvZ2VuL2dvL2ZseXRlaWRsMi93b3JrZmxvd6ICA0ZXWKoCEkZseXRlaWRsMi5Xb3JrZmxvd8oCEkZseXRlaWRsMlxXb3JrZmxvd+ICHkZseXRlaWRsMlxXb3JrZmxvd1xHUEJNZXRhZGF0YeoCE0ZseXRlaWRsMjo6V29ya2Zsb3diBnByb3RvMw", [file_buf_validate_validate, file_flyteidl2_common_identifier, file_flyteidl2_core_execution, file_flyteidl2_workflow_run_definition, file_google_rpc_status]);
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* request message to put the state of an action.
|
|
26
|
+
*
|
|
27
|
+
* @generated from message flyteidl2.workflow.PutRequest
|
|
28
|
+
*/
|
|
29
|
+
export type PutRequest = Message<"flyteidl2.workflow.PutRequest"> & {
|
|
30
|
+
/**
|
|
31
|
+
* a unique identifier for the action.
|
|
32
|
+
*
|
|
33
|
+
* @generated from field: flyteidl2.common.ActionIdentifier action_id = 1;
|
|
34
|
+
*/
|
|
35
|
+
actionId?: ActionIdentifier;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* optional name of the parent action if this is a nested action.
|
|
39
|
+
*
|
|
40
|
+
* @generated from field: optional string parent_action_name = 2;
|
|
41
|
+
*/
|
|
42
|
+
parentActionName?: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* currently we will store state as a json serialized `NodeStatus` object. this will be required
|
|
46
|
+
* to seamlessly integrate with existing FlytePropeller node execution logic. we can update this
|
|
47
|
+
* to be a subset of fields in the future if there are necessary performance improvements.
|
|
48
|
+
*
|
|
49
|
+
* @generated from field: string state = 3;
|
|
50
|
+
*/
|
|
51
|
+
state: string;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Describes the message flyteidl2.workflow.PutRequest.
|
|
56
|
+
* Use `create(PutRequestSchema)` to create a new message.
|
|
57
|
+
*/
|
|
58
|
+
export const PutRequestSchema: GenMessage<PutRequest> = /*@__PURE__*/
|
|
59
|
+
messageDesc(file_flyteidl2_workflow_state_service, 0);
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* response message for putting the state of an action.
|
|
63
|
+
*
|
|
64
|
+
* @generated from message flyteidl2.workflow.PutResponse
|
|
65
|
+
*/
|
|
66
|
+
export type PutResponse = Message<"flyteidl2.workflow.PutResponse"> & {
|
|
67
|
+
/**
|
|
68
|
+
* a unique identifier for the action.
|
|
69
|
+
*
|
|
70
|
+
* @generated from field: flyteidl2.common.ActionIdentifier action_id = 1;
|
|
71
|
+
*/
|
|
72
|
+
actionId?: ActionIdentifier;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* The result.
|
|
76
|
+
*
|
|
77
|
+
* @generated from field: google.rpc.Status status = 2;
|
|
78
|
+
*/
|
|
79
|
+
status?: Status;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Describes the message flyteidl2.workflow.PutResponse.
|
|
84
|
+
* Use `create(PutResponseSchema)` to create a new message.
|
|
85
|
+
*/
|
|
86
|
+
export const PutResponseSchema: GenMessage<PutResponse> = /*@__PURE__*/
|
|
87
|
+
messageDesc(file_flyteidl2_workflow_state_service, 1);
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* request message to get the state of an action.
|
|
91
|
+
*
|
|
92
|
+
* @generated from message flyteidl2.workflow.GetRequest
|
|
93
|
+
*/
|
|
94
|
+
export type GetRequest = Message<"flyteidl2.workflow.GetRequest"> & {
|
|
95
|
+
/**
|
|
96
|
+
* a unique identifier for the action.
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: flyteidl2.common.ActionIdentifier action_id = 1;
|
|
99
|
+
*/
|
|
100
|
+
actionId?: ActionIdentifier;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Describes the message flyteidl2.workflow.GetRequest.
|
|
105
|
+
* Use `create(GetRequestSchema)` to create a new message.
|
|
106
|
+
*/
|
|
107
|
+
export const GetRequestSchema: GenMessage<GetRequest> = /*@__PURE__*/
|
|
108
|
+
messageDesc(file_flyteidl2_workflow_state_service, 2);
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* response message for getting the state of an action.
|
|
112
|
+
*
|
|
113
|
+
* @generated from message flyteidl2.workflow.GetResponse
|
|
114
|
+
*/
|
|
115
|
+
export type GetResponse = Message<"flyteidl2.workflow.GetResponse"> & {
|
|
116
|
+
/**
|
|
117
|
+
* a unique identifier for the action.
|
|
118
|
+
*
|
|
119
|
+
* @generated from field: flyteidl2.common.ActionIdentifier action_id = 1;
|
|
120
|
+
*/
|
|
121
|
+
actionId?: ActionIdentifier;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* The result.
|
|
126
|
+
*
|
|
127
|
+
* @generated from field: google.rpc.Status status = 2;
|
|
128
|
+
*/
|
|
129
|
+
status?: Status;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* a json serialized `NodeStatus` object.
|
|
133
|
+
*
|
|
134
|
+
* @generated from field: string state = 3;
|
|
135
|
+
*/
|
|
136
|
+
state: string;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Describes the message flyteidl2.workflow.GetResponse.
|
|
141
|
+
* Use `create(GetResponseSchema)` to create a new message.
|
|
142
|
+
*/
|
|
143
|
+
export const GetResponseSchema: GenMessage<GetResponse> = /*@__PURE__*/
|
|
144
|
+
messageDesc(file_flyteidl2_workflow_state_service, 3);
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* request message for watching updates to the state of actions.
|
|
148
|
+
*
|
|
149
|
+
* @generated from message flyteidl2.workflow.WatchRequest
|
|
150
|
+
*/
|
|
151
|
+
export type WatchRequest = Message<"flyteidl2.workflow.WatchRequest"> & {
|
|
152
|
+
/**
|
|
153
|
+
* criteria for filtering which actions to watch.
|
|
154
|
+
*
|
|
155
|
+
* @generated from oneof flyteidl2.workflow.WatchRequest.filter
|
|
156
|
+
*/
|
|
157
|
+
filter: {
|
|
158
|
+
/**
|
|
159
|
+
* a unique identifier for the parent action to watch. this will result in updates for all child
|
|
160
|
+
* actions.
|
|
161
|
+
*
|
|
162
|
+
* @generated from field: flyteidl2.common.ActionIdentifier parent_action_id = 1;
|
|
163
|
+
*/
|
|
164
|
+
value: ActionIdentifier;
|
|
165
|
+
case: "parentActionId";
|
|
166
|
+
} | { case: undefined; value?: undefined };
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Describes the message flyteidl2.workflow.WatchRequest.
|
|
171
|
+
* Use `create(WatchRequestSchema)` to create a new message.
|
|
172
|
+
*/
|
|
173
|
+
export const WatchRequestSchema: GenMessage<WatchRequest> = /*@__PURE__*/
|
|
174
|
+
messageDesc(file_flyteidl2_workflow_state_service, 4);
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* response message for watching updates to the state of actions.
|
|
178
|
+
*
|
|
179
|
+
* @generated from message flyteidl2.workflow.WatchResponse
|
|
180
|
+
*/
|
|
181
|
+
export type WatchResponse = Message<"flyteidl2.workflow.WatchResponse"> & {
|
|
182
|
+
/**
|
|
183
|
+
* an update to the state of a specific action.
|
|
184
|
+
*
|
|
185
|
+
* @generated from oneof flyteidl2.workflow.WatchResponse.message
|
|
186
|
+
*/
|
|
187
|
+
message: {
|
|
188
|
+
/**
|
|
189
|
+
* @generated from field: flyteidl2.workflow.ActionUpdate action_update = 1;
|
|
190
|
+
*/
|
|
191
|
+
value: ActionUpdate;
|
|
192
|
+
case: "actionUpdate";
|
|
193
|
+
} | {
|
|
194
|
+
/**
|
|
195
|
+
* @generated from field: flyteidl2.workflow.ControlMessage control_message = 2;
|
|
196
|
+
*/
|
|
197
|
+
value: ControlMessage;
|
|
198
|
+
case: "controlMessage";
|
|
199
|
+
} | { case: undefined; value?: undefined };
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Describes the message flyteidl2.workflow.WatchResponse.
|
|
204
|
+
* Use `create(WatchResponseSchema)` to create a new message.
|
|
205
|
+
*/
|
|
206
|
+
export const WatchResponseSchema: GenMessage<WatchResponse> = /*@__PURE__*/
|
|
207
|
+
messageDesc(file_flyteidl2_workflow_state_service, 5);
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @generated from message flyteidl2.workflow.ControlMessage
|
|
211
|
+
*/
|
|
212
|
+
export type ControlMessage = Message<"flyteidl2.workflow.ControlMessage"> & {
|
|
213
|
+
/**
|
|
214
|
+
* a sentinel value to indicate the end of a stream. this is used to disambiguate between a control message and a
|
|
215
|
+
* regular message. When a watch begins the service will return the existing state of all actions, then a sentinel value,
|
|
216
|
+
* before continuing on with ongoing updates. this sequence disambiguates the current state from new updates.
|
|
217
|
+
*
|
|
218
|
+
* @generated from field: bool sentinel = 1;
|
|
219
|
+
*/
|
|
220
|
+
sentinel: boolean;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Describes the message flyteidl2.workflow.ControlMessage.
|
|
225
|
+
* Use `create(ControlMessageSchema)` to create a new message.
|
|
226
|
+
*/
|
|
227
|
+
export const ControlMessageSchema: GenMessage<ControlMessage> = /*@__PURE__*/
|
|
228
|
+
messageDesc(file_flyteidl2_workflow_state_service, 6);
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* message to represent an update to the state of an action.
|
|
232
|
+
*
|
|
233
|
+
* @generated from message flyteidl2.workflow.ActionUpdate
|
|
234
|
+
*/
|
|
235
|
+
export type ActionUpdate = Message<"flyteidl2.workflow.ActionUpdate"> & {
|
|
236
|
+
/**
|
|
237
|
+
* A unique identifier for the action. `nil` is used as a sentinel value; for example,
|
|
238
|
+
*
|
|
239
|
+
* @generated from field: flyteidl2.common.ActionIdentifier action_id = 1;
|
|
240
|
+
*/
|
|
241
|
+
actionId?: ActionIdentifier;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* the current phase of the action.
|
|
245
|
+
*
|
|
246
|
+
* @generated from field: flyteidl2.workflow.Phase phase = 2;
|
|
247
|
+
*/
|
|
248
|
+
phase: Phase;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* the error associated with the action (if exists).
|
|
252
|
+
*
|
|
253
|
+
* @generated from field: optional flyteidl2.core.ExecutionError error = 3;
|
|
254
|
+
*/
|
|
255
|
+
error?: ExecutionError;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* the output uri for the action
|
|
259
|
+
*
|
|
260
|
+
* @generated from field: string output_uri = 4;
|
|
261
|
+
*/
|
|
262
|
+
outputUri: string;
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Describes the message flyteidl2.workflow.ActionUpdate.
|
|
267
|
+
* Use `create(ActionUpdateSchema)` to create a new message.
|
|
268
|
+
*/
|
|
269
|
+
export const ActionUpdateSchema: GenMessage<ActionUpdate> = /*@__PURE__*/
|
|
270
|
+
messageDesc(file_flyteidl2_workflow_state_service, 7);
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* provides an interface for managing the state of actions.
|
|
274
|
+
*
|
|
275
|
+
* @generated from service flyteidl2.workflow.StateService
|
|
276
|
+
*/
|
|
277
|
+
export const StateService: GenService<{
|
|
278
|
+
/**
|
|
279
|
+
* put the state of an action.
|
|
280
|
+
*
|
|
281
|
+
* @generated from rpc flyteidl2.workflow.StateService.Put
|
|
282
|
+
*/
|
|
283
|
+
put: {
|
|
284
|
+
methodKind: "unary";
|
|
285
|
+
input: typeof PutRequestSchema;
|
|
286
|
+
output: typeof PutResponseSchema;
|
|
287
|
+
},
|
|
288
|
+
/**
|
|
289
|
+
* get the state of an action.
|
|
290
|
+
*
|
|
291
|
+
* @generated from rpc flyteidl2.workflow.StateService.Get
|
|
292
|
+
*/
|
|
293
|
+
get: {
|
|
294
|
+
methodKind: "unary";
|
|
295
|
+
input: typeof GetRequestSchema;
|
|
296
|
+
output: typeof GetResponseSchema;
|
|
297
|
+
},
|
|
298
|
+
/**
|
|
299
|
+
* watch for updates to the state of actions. this api guarantees at-least-once delivery semantics.
|
|
300
|
+
*
|
|
301
|
+
* @generated from rpc flyteidl2.workflow.StateService.Watch
|
|
302
|
+
*/
|
|
303
|
+
watch: {
|
|
304
|
+
methodKind: "server_streaming";
|
|
305
|
+
input: typeof WatchRequestSchema;
|
|
306
|
+
output: typeof WatchResponseSchema;
|
|
307
|
+
},
|
|
308
|
+
}> = /*@__PURE__*/
|
|
309
|
+
serviceDesc(file_flyteidl2_workflow_state_service, 0);
|
|
310
|
+
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.5 with parameter "target=ts,import_extension=.ts"
|
|
2
|
+
// @generated from file flyteidl2/workflow/translator_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 type { VariableMap } from "../core/interface_pb.ts";
|
|
8
|
+
import { file_flyteidl2_core_interface } from "../core/interface_pb.ts";
|
|
9
|
+
import type { NamedLiteral } from "../task/common_pb.ts";
|
|
10
|
+
import { file_flyteidl2_task_common } from "../task/common_pb.ts";
|
|
11
|
+
import type { TaskSpec } from "../task/task_definition_pb.ts";
|
|
12
|
+
import { file_flyteidl2_task_task_definition } from "../task/task_definition_pb.ts";
|
|
13
|
+
import { file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
|
|
14
|
+
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Describes the file flyteidl2/workflow/translator_service.proto.
|
|
18
|
+
*/
|
|
19
|
+
export const file_flyteidl2_workflow_translator_service: GenFile = /*@__PURE__*/
|
|
20
|
+
fileDesc("CitmbHl0ZWlkbDIvd29ya2Zsb3cvdHJhbnNsYXRvcl9zZXJ2aWNlLnByb3RvEhJmbHl0ZWlkbDIud29ya2Zsb3cigQEKH0xpdGVyYWxzVG9MYXVuY2hGb3JtSnNvblJlcXVlc3QSLgoIbGl0ZXJhbHMYASADKAsyHC5mbHl0ZWlkbDIudGFzay5OYW1lZExpdGVyYWwSLgoJdmFyaWFibGVzGAIgASgLMhsuZmx5dGVpZGwyLmNvcmUuVmFyaWFibGVNYXAiSQogTGl0ZXJhbHNUb0xhdW5jaEZvcm1Kc29uUmVzcG9uc2USJQoEanNvbhgBIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QiSAofTGF1bmNoRm9ybUpzb25Ub0xpdGVyYWxzUmVxdWVzdBIlCgRqc29uGAEgASgLMhcuZ29vZ2xlLnByb3R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WRsMi93b3JrZmxvd6ICA0ZXWKoCEkZseXRlaWRsMi5Xb3JrZmxvd8oCEkZseXRlaWRsMlxXb3JrZmxvd+ICHkZseXRlaWRsMlxXb3JrZmxvd1xHUEJNZXRhZGF0YeoCE0ZseXRlaWRsMjo6V29ya2Zsb3diBnByb3RvMw", [file_flyteidl2_core_interface, file_flyteidl2_task_common, file_flyteidl2_task_task_definition, file_google_protobuf_struct]);
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @generated from message flyteidl2.workflow.LiteralsToLaunchFormJsonRequest
|
|
24
|
+
*/
|
|
25
|
+
export type LiteralsToLaunchFormJsonRequest = Message<"flyteidl2.workflow.LiteralsToLaunchFormJsonRequest"> & {
|
|
26
|
+
/**
|
|
27
|
+
* The literals to convert to JSON.
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: repeated flyteidl2.task.NamedLiteral literals = 1;
|
|
30
|
+
*/
|
|
31
|
+
literals: NamedLiteral[];
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @generated from field: flyteidl2.core.VariableMap variables = 2;
|
|
35
|
+
*/
|
|
36
|
+
variables?: VariableMap;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Describes the message flyteidl2.workflow.LiteralsToLaunchFormJsonRequest.
|
|
41
|
+
* Use `create(LiteralsToLaunchFormJsonRequestSchema)` to create a new message.
|
|
42
|
+
*/
|
|
43
|
+
export const LiteralsToLaunchFormJsonRequestSchema: GenMessage<LiteralsToLaunchFormJsonRequest> = /*@__PURE__*/
|
|
44
|
+
messageDesc(file_flyteidl2_workflow_translator_service, 0);
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @generated from message flyteidl2.workflow.LiteralsToLaunchFormJsonResponse
|
|
48
|
+
*/
|
|
49
|
+
export type LiteralsToLaunchFormJsonResponse = Message<"flyteidl2.workflow.LiteralsToLaunchFormJsonResponse"> & {
|
|
50
|
+
/**
|
|
51
|
+
* The JSON for the literals.
|
|
52
|
+
*
|
|
53
|
+
* @generated from field: google.protobuf.Struct json = 1;
|
|
54
|
+
*/
|
|
55
|
+
json?: JsonObject;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Describes the message flyteidl2.workflow.LiteralsToLaunchFormJsonResponse.
|
|
60
|
+
* Use `create(LiteralsToLaunchFormJsonResponseSchema)` to create a new message.
|
|
61
|
+
*/
|
|
62
|
+
export const LiteralsToLaunchFormJsonResponseSchema: GenMessage<LiteralsToLaunchFormJsonResponse> = /*@__PURE__*/
|
|
63
|
+
messageDesc(file_flyteidl2_workflow_translator_service, 1);
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @generated from message flyteidl2.workflow.LaunchFormJsonToLiteralsRequest
|
|
67
|
+
*/
|
|
68
|
+
export type LaunchFormJsonToLiteralsRequest = Message<"flyteidl2.workflow.LaunchFormJsonToLiteralsRequest"> & {
|
|
69
|
+
/**
|
|
70
|
+
* The JSON schema to convert to literals.
|
|
71
|
+
*
|
|
72
|
+
* @generated from field: google.protobuf.Struct json = 1;
|
|
73
|
+
*/
|
|
74
|
+
json?: JsonObject;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Describes the message flyteidl2.workflow.LaunchFormJsonToLiteralsRequest.
|
|
79
|
+
* Use `create(LaunchFormJsonToLiteralsRequestSchema)` to create a new message.
|
|
80
|
+
*/
|
|
81
|
+
export const LaunchFormJsonToLiteralsRequestSchema: GenMessage<LaunchFormJsonToLiteralsRequest> = /*@__PURE__*/
|
|
82
|
+
messageDesc(file_flyteidl2_workflow_translator_service, 2);
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @generated from message flyteidl2.workflow.LaunchFormJsonToLiteralsResponse
|
|
86
|
+
*/
|
|
87
|
+
export type LaunchFormJsonToLiteralsResponse = Message<"flyteidl2.workflow.LaunchFormJsonToLiteralsResponse"> & {
|
|
88
|
+
/**
|
|
89
|
+
* The literals generated from the JSON schema.
|
|
90
|
+
*
|
|
91
|
+
* @generated from field: repeated flyteidl2.task.NamedLiteral literals = 1;
|
|
92
|
+
*/
|
|
93
|
+
literals: NamedLiteral[];
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Describes the message flyteidl2.workflow.LaunchFormJsonToLiteralsResponse.
|
|
98
|
+
* Use `create(LaunchFormJsonToLiteralsResponseSchema)` to create a new message.
|
|
99
|
+
*/
|
|
100
|
+
export const LaunchFormJsonToLiteralsResponseSchema: GenMessage<LaunchFormJsonToLiteralsResponse> = /*@__PURE__*/
|
|
101
|
+
messageDesc(file_flyteidl2_workflow_translator_service, 3);
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @generated from message flyteidl2.workflow.TaskSpecToLaunchFormJsonRequest
|
|
105
|
+
*/
|
|
106
|
+
export type TaskSpecToLaunchFormJsonRequest = Message<"flyteidl2.workflow.TaskSpecToLaunchFormJsonRequest"> & {
|
|
107
|
+
/**
|
|
108
|
+
* The task spec to convert to JSON.
|
|
109
|
+
* Merges the VariableMap and the default inputs
|
|
110
|
+
*
|
|
111
|
+
* @generated from field: flyteidl2.task.TaskSpec task_spec = 1;
|
|
112
|
+
*/
|
|
113
|
+
taskSpec?: TaskSpec;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Describes the message flyteidl2.workflow.TaskSpecToLaunchFormJsonRequest.
|
|
118
|
+
* Use `create(TaskSpecToLaunchFormJsonRequestSchema)` to create a new message.
|
|
119
|
+
*/
|
|
120
|
+
export const TaskSpecToLaunchFormJsonRequestSchema: GenMessage<TaskSpecToLaunchFormJsonRequest> = /*@__PURE__*/
|
|
121
|
+
messageDesc(file_flyteidl2_workflow_translator_service, 4);
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @generated from message flyteidl2.workflow.TaskSpecToLaunchFormJsonResponse
|
|
125
|
+
*/
|
|
126
|
+
export type TaskSpecToLaunchFormJsonResponse = Message<"flyteidl2.workflow.TaskSpecToLaunchFormJsonResponse"> & {
|
|
127
|
+
/**
|
|
128
|
+
* The JSON for the variables.
|
|
129
|
+
*
|
|
130
|
+
* @generated from field: google.protobuf.Struct json = 1;
|
|
131
|
+
*/
|
|
132
|
+
json?: JsonObject;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Describes the message flyteidl2.workflow.TaskSpecToLaunchFormJsonResponse.
|
|
137
|
+
* Use `create(TaskSpecToLaunchFormJsonResponseSchema)` to create a new message.
|
|
138
|
+
*/
|
|
139
|
+
export const TaskSpecToLaunchFormJsonResponseSchema: GenMessage<TaskSpecToLaunchFormJsonResponse> = /*@__PURE__*/
|
|
140
|
+
messageDesc(file_flyteidl2_workflow_translator_service, 5);
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* TranslatorService provides an interface for all diferent types of translations for the platform.
|
|
144
|
+
*
|
|
145
|
+
* @generated from service flyteidl2.workflow.TranslatorService
|
|
146
|
+
*/
|
|
147
|
+
export const TranslatorService: GenService<{
|
|
148
|
+
/**
|
|
149
|
+
* @generated from rpc flyteidl2.workflow.TranslatorService.LiteralsToLaunchFormJson
|
|
150
|
+
*/
|
|
151
|
+
literalsToLaunchFormJson: {
|
|
152
|
+
methodKind: "unary";
|
|
153
|
+
input: typeof LiteralsToLaunchFormJsonRequestSchema;
|
|
154
|
+
output: typeof LiteralsToLaunchFormJsonResponseSchema;
|
|
155
|
+
},
|
|
156
|
+
/**
|
|
157
|
+
* @generated from rpc flyteidl2.workflow.TranslatorService.LaunchFormJsonToLiterals
|
|
158
|
+
*/
|
|
159
|
+
launchFormJsonToLiterals: {
|
|
160
|
+
methodKind: "unary";
|
|
161
|
+
input: typeof LaunchFormJsonToLiteralsRequestSchema;
|
|
162
|
+
output: typeof LaunchFormJsonToLiteralsResponseSchema;
|
|
163
|
+
},
|
|
164
|
+
/**
|
|
165
|
+
* @generated from rpc flyteidl2.workflow.TranslatorService.TaskSpecToLaunchFormJson
|
|
166
|
+
*/
|
|
167
|
+
taskSpecToLaunchFormJson: {
|
|
168
|
+
methodKind: "unary";
|
|
169
|
+
input: typeof TaskSpecToLaunchFormJsonRequestSchema;
|
|
170
|
+
output: typeof TaskSpecToLaunchFormJsonResponseSchema;
|
|
171
|
+
},
|
|
172
|
+
}> = /*@__PURE__*/
|
|
173
|
+
serviceDesc(file_flyteidl2_workflow_translator_service, 0);
|
|
174
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@flyteorg/flyteidl2",
|
|
3
|
+
"version": "2.0.0-alpha10",
|
|
4
|
+
"description": "Compiled protocol buffers and gRPC service and connect clients/servers for Flyte IDLs",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git@github.com:flyteorg/flyte"
|
|
8
|
+
},
|
|
9
|
+
"author": "Union Eng <support@union.ai>",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"flyte",
|
|
13
|
+
"flyte2"
|
|
14
|
+
],
|
|
15
|
+
"files": [
|
|
16
|
+
"flyteidl2"
|
|
17
|
+
]
|
|
18
|
+
}
|