@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.
Files changed (40) hide show
  1. package/flyteidl2/common/authorization_pb.ts +323 -0
  2. package/flyteidl2/common/identifier_pb.ts +423 -0
  3. package/flyteidl2/common/identity_pb.ts +205 -0
  4. package/flyteidl2/common/list_pb.ts +232 -0
  5. package/flyteidl2/common/policy_pb.ts +76 -0
  6. package/flyteidl2/common/role_pb.ts +161 -0
  7. package/flyteidl2/common/runtime_version_pb.ts +76 -0
  8. package/flyteidl2/core/artifact_id_pb.ts +400 -0
  9. package/flyteidl2/core/catalog_pb.ts +215 -0
  10. package/flyteidl2/core/execution_pb.ts +641 -0
  11. package/flyteidl2/core/identifier_pb.ts +237 -0
  12. package/flyteidl2/core/interface_pb.ts +187 -0
  13. package/flyteidl2/core/literals_pb.ts +673 -0
  14. package/flyteidl2/core/security_pb.ts +310 -0
  15. package/flyteidl2/core/tasks_pb.ts +1088 -0
  16. package/flyteidl2/core/types_pb.ts +592 -0
  17. package/flyteidl2/imagebuilder/definition_pb.ts +535 -0
  18. package/flyteidl2/imagebuilder/payload_pb.ts +62 -0
  19. package/flyteidl2/imagebuilder/service_pb.ts +30 -0
  20. package/flyteidl2/logs/dataplane/payload_pb.ts +396 -0
  21. package/flyteidl2/plugins/dask_pb.ts +109 -0
  22. package/flyteidl2/plugins/ray_pb.ts +189 -0
  23. package/flyteidl2/plugins/spark_pb.ts +145 -0
  24. package/flyteidl2/secret/definition_pb.ts +310 -0
  25. package/flyteidl2/secret/payload_pb.ts +266 -0
  26. package/flyteidl2/secret/secret_pb.ts +63 -0
  27. package/flyteidl2/task/common_pb.ts +319 -0
  28. package/flyteidl2/task/environment_pb.ts +36 -0
  29. package/flyteidl2/task/run_pb.ts +177 -0
  30. package/flyteidl2/task/task_definition_pb.ts +417 -0
  31. package/flyteidl2/task/task_service_pb.ts +248 -0
  32. package/flyteidl2/trigger/trigger_definition_pb.ts +283 -0
  33. package/flyteidl2/trigger/trigger_service_pb.ts +451 -0
  34. package/flyteidl2/workflow/queue_service_pb.ts +245 -0
  35. package/flyteidl2/workflow/run_definition_pb.ts +1192 -0
  36. package/flyteidl2/workflow/run_logs_service_pb.ts +106 -0
  37. package/flyteidl2/workflow/run_service_pb.ts +870 -0
  38. package/flyteidl2/workflow/state_service_pb.ts +310 -0
  39. package/flyteidl2/workflow/translator_service_pb.ts +174 -0
  40. package/package.json +18 -0
@@ -0,0 +1,177 @@
1
+ // @generated by protoc-gen-es v2.2.5 with parameter "target=ts,import_extension=.ts"
2
+ // @generated from file flyteidl2/task/run.proto (package flyteidl2.task, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
6
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
7
+ import type { KeyValuePair } from "../core/literals_pb.ts";
8
+ import { file_flyteidl2_core_literals } from "../core/literals_pb.ts";
9
+ import type { SecurityContext } from "../core/security_pb.ts";
10
+ import { file_flyteidl2_core_security } from "../core/security_pb.ts";
11
+ import { file_google_protobuf_wrappers } from "@bufbuild/protobuf/wkt";
12
+ import type { Message } from "@bufbuild/protobuf";
13
+
14
+ /**
15
+ * Describes the file flyteidl2/task/run.proto.
16
+ */
17
+ export const file_flyteidl2_task_run: GenFile = /*@__PURE__*/
18
+ fileDesc("ChhmbHl0ZWlkbDIvdGFzay9ydW4ucHJvdG8SDmZseXRlaWRsMi50YXNrImsKBkxhYmVscxIyCgZ2YWx1ZXMYASADKAsyIi5mbHl0ZWlkbDIudGFzay5MYWJlbHMuVmFsdWVzRW50cnkaLQoLVmFsdWVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJ1CgtBbm5vdGF0aW9ucxI3CgZ2YWx1ZXMYASADKAsyJy5mbHl0ZWlkbDIudGFzay5Bbm5vdGF0aW9ucy5WYWx1ZXNFbnRyeRotCgtWYWx1ZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIjQKBEVudnMSLAoGdmFsdWVzGAEgAygLMhwuZmx5dGVpZGwyLmNvcmUuS2V5VmFsdWVQYWlyIikKDlJhd0RhdGFTdG9yYWdlEhcKD3Jhd19kYXRhX3ByZWZpeBgBIAEoCSLZAgoHUnVuU3BlYxImCgZsYWJlbHMYASABKAsyFi5mbHl0ZWlkbDIudGFzay5MYWJlbHMSMAoLYW5ub3RhdGlvbnMYAiABKAsyGy5mbHl0ZWlkbDIudGFzay5Bbm5vdGF0aW9ucxIiCgRlbnZzGAMgASgLMhQuZmx5dGVpZGwyLnRhc2suRW52cxIxCg1pbnRlcnJ1cHRpYmxlGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLkJvb2xWYWx1ZRIXCg9vdmVyd3JpdGVfY2FjaGUYBSABKAgSDwoHY2x1c3RlchgGIAEoCRI4ChByYXdfZGF0YV9zdG9yYWdlGAcgASgLMh4uZmx5dGVpZGwyLnRhc2suUmF3RGF0YVN0b3JhZ2USOQoQc2VjdXJpdHlfY29udGV4dBgIIAEoCzIfLmZseXRlaWRsMi5jb3JlLlNlY3VyaXR5Q29udGV4dEKtAQoSY29tLmZseXRlaWRsMi50YXNrQghSdW5Qcm90b0gCUAFaMmdpdGh1Yi5jb20vZmx5dGVvcmcvZmx5dGUvdjIvZ2VuL2dvL2ZseXRlaWRsMi90YXNrogIDRlRYqgIORmx5dGVpZGwyLlRhc2vKAg5GbHl0ZWlkbDJcVGFza+ICGkZseXRlaWRsMlxUYXNrXEdQQk1ldGFkYXRh6gIPRmx5dGVpZGwyOjpUYXNrYgZwcm90bzM", [file_flyteidl2_core_literals, file_flyteidl2_core_security, file_google_protobuf_wrappers]);
19
+
20
+ /**
21
+ * Label values to be applied to an execution resource.
22
+ * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
23
+ * to specify how to merge labels defined at registration and execution time.
24
+ *
25
+ * @generated from message flyteidl2.task.Labels
26
+ */
27
+ export type Labels = Message<"flyteidl2.task.Labels"> & {
28
+ /**
29
+ * Map of custom labels to be applied to the execution resource.
30
+ *
31
+ * @generated from field: map<string, string> values = 1;
32
+ */
33
+ values: { [key: string]: string };
34
+ };
35
+
36
+ /**
37
+ * Describes the message flyteidl2.task.Labels.
38
+ * Use `create(LabelsSchema)` to create a new message.
39
+ */
40
+ export const LabelsSchema: GenMessage<Labels> = /*@__PURE__*/
41
+ messageDesc(file_flyteidl2_task_run, 0);
42
+
43
+ /**
44
+ * Annotation values to be applied to an execution resource.
45
+ * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
46
+ * to specify how to merge annotations defined at registration and execution time.
47
+ *
48
+ * @generated from message flyteidl2.task.Annotations
49
+ */
50
+ export type Annotations = Message<"flyteidl2.task.Annotations"> & {
51
+ /**
52
+ * Map of custom annotations to be applied to the execution resource.
53
+ *
54
+ * @generated from field: map<string, string> values = 1;
55
+ */
56
+ values: { [key: string]: string };
57
+ };
58
+
59
+ /**
60
+ * Describes the message flyteidl2.task.Annotations.
61
+ * Use `create(AnnotationsSchema)` to create a new message.
62
+ */
63
+ export const AnnotationsSchema: GenMessage<Annotations> = /*@__PURE__*/
64
+ messageDesc(file_flyteidl2_task_run, 1);
65
+
66
+ /**
67
+ * Environment variable values to be applied to an execution resource.
68
+ * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
69
+ * to specify how to merge environment variables defined at registration and execution time.
70
+ *
71
+ * @generated from message flyteidl2.task.Envs
72
+ */
73
+ export type Envs = Message<"flyteidl2.task.Envs"> & {
74
+ /**
75
+ * Map of custom environment variables to be applied to the execution resource.
76
+ *
77
+ * @generated from field: repeated flyteidl2.core.KeyValuePair values = 1;
78
+ */
79
+ values: KeyValuePair[];
80
+ };
81
+
82
+ /**
83
+ * Describes the message flyteidl2.task.Envs.
84
+ * Use `create(EnvsSchema)` to create a new message.
85
+ */
86
+ export const EnvsSchema: GenMessage<Envs> = /*@__PURE__*/
87
+ messageDesc(file_flyteidl2_task_run, 2);
88
+
89
+ /**
90
+ * @generated from message flyteidl2.task.RawDataStorage
91
+ */
92
+ export type RawDataStorage = Message<"flyteidl2.task.RawDataStorage"> & {
93
+ /**
94
+ * Prefix for where offloaded data from user actions will be written
95
+ * e.g. s3://bucket/key or s3://bucket/
96
+ *
97
+ * @generated from field: string raw_data_prefix = 1;
98
+ */
99
+ rawDataPrefix: string;
100
+ };
101
+
102
+ /**
103
+ * Describes the message flyteidl2.task.RawDataStorage.
104
+ * Use `create(RawDataStorageSchema)` to create a new message.
105
+ */
106
+ export const RawDataStorageSchema: GenMessage<RawDataStorage> = /*@__PURE__*/
107
+ messageDesc(file_flyteidl2_task_run, 3);
108
+
109
+ /**
110
+ * @generated from message flyteidl2.task.RunSpec
111
+ */
112
+ export type RunSpec = Message<"flyteidl2.task.RunSpec"> & {
113
+ /**
114
+ * Labels to apply to the run.
115
+ *
116
+ * @generated from field: flyteidl2.task.Labels labels = 1;
117
+ */
118
+ labels?: Labels;
119
+
120
+ /**
121
+ * Annotations to apply to the run.
122
+ *
123
+ * @generated from field: flyteidl2.task.Annotations annotations = 2;
124
+ */
125
+ annotations?: Annotations;
126
+
127
+ /**
128
+ * Envs to apply to the run.
129
+ *
130
+ * @generated from field: flyteidl2.task.Envs envs = 3;
131
+ */
132
+ envs?: Envs;
133
+
134
+ /**
135
+ * Explicit override for executing this run as interruptible or not. If not set, use the default.
136
+ *
137
+ * @generated from field: google.protobuf.BoolValue interruptible = 4;
138
+ */
139
+ interruptible?: boolean;
140
+
141
+ /**
142
+ * If true, recompute outputs for this run and overwrite any existing cache.
143
+ *
144
+ * @generated from field: bool overwrite_cache = 5;
145
+ */
146
+ overwriteCache: boolean;
147
+
148
+ /**
149
+ * the specific cluster that this action should be executed on. this value will be used as the
150
+ * default for all actions in the run unless overridden.
151
+ *
152
+ * @generated from field: string cluster = 6;
153
+ */
154
+ cluster: string;
155
+
156
+ /**
157
+ * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
158
+ *
159
+ * @generated from field: flyteidl2.task.RawDataStorage raw_data_storage = 7;
160
+ */
161
+ rawDataStorage?: RawDataStorage;
162
+
163
+ /**
164
+ * SecurityContext holds security attributes that apply to tasks.
165
+ *
166
+ * @generated from field: flyteidl2.core.SecurityContext security_context = 8;
167
+ */
168
+ securityContext?: SecurityContext;
169
+ };
170
+
171
+ /**
172
+ * Describes the message flyteidl2.task.RunSpec.
173
+ * Use `create(RunSpecSchema)` to create a new message.
174
+ */
175
+ export const RunSpecSchema: GenMessage<RunSpec> = /*@__PURE__*/
176
+ messageDesc(file_flyteidl2_task_run, 4);
177
+
@@ -0,0 +1,417 @@
1
+ // @generated by protoc-gen-es v2.2.5 with parameter "target=ts,import_extension=.ts"
2
+ // @generated from file flyteidl2/task/task_definition.proto (package flyteidl2.task, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
6
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
7
+ import { file_buf_validate_validate } from "../../buf/validate/validate_pb.ts";
8
+ import { file_flyteidl2_common_identifier } from "../common/identifier_pb.ts";
9
+ import type { EnrichedIdentity } from "../common/identity_pb.ts";
10
+ import { file_flyteidl2_common_identity } from "../common/identity_pb.ts";
11
+ import type { TypedInterface } from "../core/interface_pb.ts";
12
+ import { file_flyteidl2_core_interface } from "../core/interface_pb.ts";
13
+ import type { TaskTemplate } from "../core/tasks_pb.ts";
14
+ import { file_flyteidl2_core_tasks } from "../core/tasks_pb.ts";
15
+ import type { Inputs, NamedParameter, TriggerAutomationSpec } from "./common_pb.ts";
16
+ import { file_flyteidl2_task_common } from "./common_pb.ts";
17
+ import type { Environment } from "./environment_pb.ts";
18
+ import { file_flyteidl2_task_environment } from "./environment_pb.ts";
19
+ import type { RunSpec } from "./run_pb.ts";
20
+ import { file_flyteidl2_task_run } from "./run_pb.ts";
21
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
22
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
23
+ import type { Message } from "@bufbuild/protobuf";
24
+
25
+ /**
26
+ * Describes the file flyteidl2/task/task_definition.proto.
27
+ */
28
+ export const file_flyteidl2_task_task_definition: GenFile = /*@__PURE__*/
29
+ fileDesc("CiRmbHl0ZWlkbDIvdGFzay90YXNrX2RlZmluaXRpb24ucHJvdG8SDmZseXRlaWRsMi50YXNrInMKCFRhc2tOYW1lEhYKA29yZxgBIAEoCUIJukgGcgQQARg/EhoKB3Byb2plY3QYAiABKAlCCbpIBnIEEAEYPxIZCgZkb21haW4YAyABKAlCCbpIBnIEEAEYPxIYCgRuYW1lGAQgASgJQgq6SAdyBRABGP8BIpUBCg5UYXNrSWRlbnRpZmllchIWCgNvcmcYASABKAlCCbpIBnIEEAEYPxIaCgdwcm9qZWN0GAIgASgJQgm6SAZyBBABGD8SGQoGZG9tYWluGAMgASgJQgm6SAZyBBABGD8SGAoEbmFtZRgEIAEoCUIKukgHcgUQARj/ARIaCgd2ZXJzaW9uGAUgASgJQgm6SAZyBBABGD8i1AEKE1Rhc2tUcmlnZ2Vyc1N1bW1hcnkSQAoPYXV0b21hdGlvbl9zcGVjGAEgASgLMiUuZmx5dGVpZGwyLnRhc2suVHJpZ2dlckF1dG9tYXRpb25TcGVjSAASQQoFc3RhdHMYAiABKAsyMC5mbHl0ZWlkbDIudGFzay5UYXNrVHJpZ2dlcnNTdW1tYXJ5LlRyaWdnZXJTdGF0c0gAGi0KDFRyaWdnZXJTdGF0cxINCgV0b3RhbBgBIAEoDRIOCgZhY3RpdmUYAiABKA1CCQoHc3VtbWFyeSL1AQoMVGFza01ldGFkYXRhEj8KC2RlcGxveWVkX2J5GAEgASgLMiIuZmx5dGVpZGwyLmNvbW1vbi5FbnJpY2hlZElkZW50aXR5Qga6SAPIAQESEgoKc2hvcnRfbmFtZRgCIAEoCRI3CgtkZXBsb3llZF9hdBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCBrpIA8gBARIYChBlbnZpcm9ubWVudF9uYW1lGAQgASgJEj0KEHRyaWdnZXJzX3N1bW1hcnkYBSABKAsyIy5mbHl0ZWlkbDIudGFzay5UYXNrVHJpZ2dlcnNTdW1tYXJ5IncKBFRhc2sSNwoHdGFza19pZBgBIAEoCzIeLmZseXRlaWRsMi50YXNrLlRhc2tJZGVudGlmaWVyQga6SAPIAQESNgoIbWV0YWRhdGEYAiABKAsyHC5mbHl0ZWlkbDIudGFzay5UYXNrTWV0YWRhdGFCBrpIA8gBASLOAQoIVGFza1NwZWMSOwoNdGFza190ZW1wbGF0ZRgBIAEoCzIcLmZseXRlaWRsMi5jb3JlLlRhc2tUZW1wbGF0ZUIGukgDyAEBEjYKDmRlZmF1bHRfaW5wdXRzGAIgAygLMh4uZmx5dGVpZGwyLnRhc2suTmFtZWRQYXJhbWV0ZXISGwoKc2hvcnRfbmFtZRgDIAEoCUIHukgEcgIYPxIwCgtlbnZpcm9ubWVudBgEIAEoCzIbLmZseXRlaWRsMi50YXNrLkVudmlyb25tZW50Ij4KCVRyYWNlU3BlYxIxCglpbnRlcmZhY2UYASABKAsyHi5mbHl0ZWlkbDIuY29yZS5UeXBlZEludGVyZmFjZSKuAQoLVGFza0RldGFpbHMSNwoHdGFza19pZBgBIAEoCzIeLmZseXRlaWRsMi50YXNrLlRhc2tJZGVudGlmaWVyQga6SAPIAQESNgoIbWV0YWRhdGEYAiABKAsyHC5mbHl0ZWlkbDIudGFzay5UYXNrTWV0YWRhdGFCBrpIA8gBARIuCgRzcGVjGAMgASgLMhguZmx5dGVpZGwyLnRhc2suVGFza1NwZWNCBrpIA8gBASKeAQoLVGFza1RyaWdnZXISGAoEbmFtZRgBIAEoCUIKukgHcgUQARj/ARI1CgRzcGVjGAIgASgLMh8uZmx5dGVpZGwyLnRhc2suVGFza1RyaWdnZXJTcGVjQga6SAPIAQESPgoPYXV0b21hdGlvbl9zcGVjGAMgASgLMiUuZmx5dGVpZGwyLnRhc2suVHJpZ2dlckF1dG9tYXRpb25TcGVjInQKD1Rhc2tUcmlnZ2VyU3BlYxIOCgZhY3RpdmUYASABKAgSJgoGaW5wdXRzGAIgASgLMhYuZmx5dGVpZGwyLnRhc2suSW5wdXRzEikKCHJ1bl9zcGVjGAMgASgLMhcuZmx5dGVpZGwyLnRhc2suUnVuU3BlY0K4AQoSY29tLmZseXRlaWRsMi50YXNrQhNUYXNrRGVmaW5pdGlvblByb3RvSAJQAVoyZ2l0aHViLmNvbS9mbHl0ZW9yZy9mbHl0ZS92Mi9nZW4vZ28vZmx5dGVpZGwyL3Rhc2uiAgNGVFiqAg5GbHl0ZWlkbDIuVGFza8oCDkZseXRlaWRsMlxUYXNr4gIaRmx5dGVpZGwyXFRhc2tcR1BCTWV0YWRhdGHqAg9GbHl0ZWlkbDI6OlRhc2tiBnByb3RvMw", [file_buf_validate_validate, file_flyteidl2_common_identifier, file_flyteidl2_common_identity, file_flyteidl2_core_interface, file_flyteidl2_core_tasks, file_flyteidl2_task_common, file_flyteidl2_task_environment, file_flyteidl2_task_run, file_google_protobuf_timestamp]);
30
+
31
+ /**
32
+ * Name of a task. It may have multiple versions deployed.
33
+ *
34
+ * @generated from message flyteidl2.task.TaskName
35
+ */
36
+ export type TaskName = Message<"flyteidl2.task.TaskName"> & {
37
+ /**
38
+ * Org this task belongs to.
39
+ *
40
+ * @generated from field: string org = 1;
41
+ */
42
+ org: string;
43
+
44
+ /**
45
+ * Project this task belongs to.
46
+ *
47
+ * @generated from field: string project = 2;
48
+ */
49
+ project: string;
50
+
51
+ /**
52
+ * Domain this task belongs to.
53
+ *
54
+ * @generated from field: string domain = 3;
55
+ */
56
+ domain: string;
57
+
58
+ /**
59
+ * Unique name of the task. Should not be interpreted/parsed. Use `short_name` and `environment_name` for user facing names.
60
+ *
61
+ * @generated from field: string name = 4;
62
+ */
63
+ name: string;
64
+ };
65
+
66
+ /**
67
+ * Describes the message flyteidl2.task.TaskName.
68
+ * Use `create(TaskNameSchema)` to create a new message.
69
+ */
70
+ export const TaskNameSchema: GenMessage<TaskName> = /*@__PURE__*/
71
+ messageDesc(file_flyteidl2_task_task_definition, 0);
72
+
73
+ /**
74
+ * TaskIdentifier is the unique identifier for a task.
75
+ *
76
+ * @generated from message flyteidl2.task.TaskIdentifier
77
+ */
78
+ export type TaskIdentifier = Message<"flyteidl2.task.TaskIdentifier"> & {
79
+ /**
80
+ * Org this task belongs to.
81
+ *
82
+ * @generated from field: string org = 1;
83
+ */
84
+ org: string;
85
+
86
+ /**
87
+ * Project this task belongs to.
88
+ *
89
+ * @generated from field: string project = 2;
90
+ */
91
+ project: string;
92
+
93
+ /**
94
+ * Domain this task belongs to.
95
+ *
96
+ * @generated from field: string domain = 3;
97
+ */
98
+ domain: string;
99
+
100
+ /**
101
+ * Unique name of the task. Should not be interpreted/parsed. Use `short_name` and `environment_name` for user facing names.
102
+ *
103
+ * @generated from field: string name = 4;
104
+ */
105
+ name: string;
106
+
107
+ /**
108
+ * Version of the task.
109
+ *
110
+ * @generated from field: string version = 5;
111
+ */
112
+ version: string;
113
+ };
114
+
115
+ /**
116
+ * Describes the message flyteidl2.task.TaskIdentifier.
117
+ * Use `create(TaskIdentifierSchema)` to create a new message.
118
+ */
119
+ export const TaskIdentifierSchema: GenMessage<TaskIdentifier> = /*@__PURE__*/
120
+ messageDesc(file_flyteidl2_task_task_definition, 1);
121
+
122
+ /**
123
+ * @generated from message flyteidl2.task.TaskTriggersSummary
124
+ */
125
+ export type TaskTriggersSummary = Message<"flyteidl2.task.TaskTriggersSummary"> & {
126
+ /**
127
+ * @generated from oneof flyteidl2.task.TaskTriggersSummary.summary
128
+ */
129
+ summary: {
130
+ /**
131
+ * @generated from field: flyteidl2.task.TriggerAutomationSpec automation_spec = 1;
132
+ */
133
+ value: TriggerAutomationSpec;
134
+ case: "automationSpec";
135
+ } | {
136
+ /**
137
+ * @generated from field: flyteidl2.task.TaskTriggersSummary.TriggerStats stats = 2;
138
+ */
139
+ value: TaskTriggersSummary_TriggerStats;
140
+ case: "stats";
141
+ } | { case: undefined; value?: undefined };
142
+ };
143
+
144
+ /**
145
+ * Describes the message flyteidl2.task.TaskTriggersSummary.
146
+ * Use `create(TaskTriggersSummarySchema)` to create a new message.
147
+ */
148
+ export const TaskTriggersSummarySchema: GenMessage<TaskTriggersSummary> = /*@__PURE__*/
149
+ messageDesc(file_flyteidl2_task_task_definition, 2);
150
+
151
+ /**
152
+ * @generated from message flyteidl2.task.TaskTriggersSummary.TriggerStats
153
+ */
154
+ export type TaskTriggersSummary_TriggerStats = Message<"flyteidl2.task.TaskTriggersSummary.TriggerStats"> & {
155
+ /**
156
+ * @generated from field: uint32 total = 1;
157
+ */
158
+ total: number;
159
+
160
+ /**
161
+ * @generated from field: uint32 active = 2;
162
+ */
163
+ active: number;
164
+ };
165
+
166
+ /**
167
+ * Describes the message flyteidl2.task.TaskTriggersSummary.TriggerStats.
168
+ * Use `create(TaskTriggersSummary_TriggerStatsSchema)` to create a new message.
169
+ */
170
+ export const TaskTriggersSummary_TriggerStatsSchema: GenMessage<TaskTriggersSummary_TriggerStats> = /*@__PURE__*/
171
+ messageDesc(file_flyteidl2_task_task_definition, 2, 0);
172
+
173
+ /**
174
+ * TaskMetadata is static, lightweight metadata about a task.
175
+ *
176
+ * @generated from message flyteidl2.task.TaskMetadata
177
+ */
178
+ export type TaskMetadata = Message<"flyteidl2.task.TaskMetadata"> & {
179
+ /**
180
+ * Identity that deployed the task.
181
+ *
182
+ * @generated from field: flyteidl2.common.EnrichedIdentity deployed_by = 1;
183
+ */
184
+ deployedBy?: EnrichedIdentity;
185
+
186
+ /**
187
+ * The short name for this task
188
+ *
189
+ * @generated from field: string short_name = 2;
190
+ */
191
+ shortName: string;
192
+
193
+ /**
194
+ * The time the task was deployed
195
+ *
196
+ * @generated from field: google.protobuf.Timestamp deployed_at = 3;
197
+ */
198
+ deployedAt?: Timestamp;
199
+
200
+ /**
201
+ * The environment name for this task, if present.
202
+ *
203
+ * @generated from field: string environment_name = 4;
204
+ */
205
+ environmentName: string;
206
+
207
+ /**
208
+ * Brief overview of attached triggers if any.
209
+ *
210
+ * @generated from field: flyteidl2.task.TaskTriggersSummary triggers_summary = 5;
211
+ */
212
+ triggersSummary?: TaskTriggersSummary;
213
+ };
214
+
215
+ /**
216
+ * Describes the message flyteidl2.task.TaskMetadata.
217
+ * Use `create(TaskMetadataSchema)` to create a new message.
218
+ */
219
+ export const TaskMetadataSchema: GenMessage<TaskMetadata> = /*@__PURE__*/
220
+ messageDesc(file_flyteidl2_task_task_definition, 3);
221
+
222
+ /**
223
+ * Lightweight representation of a task.
224
+ *
225
+ * @generated from message flyteidl2.task.Task
226
+ */
227
+ export type Task = Message<"flyteidl2.task.Task"> & {
228
+ /**
229
+ * Id for this task.
230
+ *
231
+ * @generated from field: flyteidl2.task.TaskIdentifier task_id = 1;
232
+ */
233
+ taskId?: TaskIdentifier;
234
+
235
+ /**
236
+ * Metadata for this task.
237
+ *
238
+ * @generated from field: flyteidl2.task.TaskMetadata metadata = 2;
239
+ */
240
+ metadata?: TaskMetadata;
241
+ };
242
+
243
+ /**
244
+ * Describes the message flyteidl2.task.Task.
245
+ * Use `create(TaskSchema)` to create a new message.
246
+ */
247
+ export const TaskSchema: GenMessage<Task> = /*@__PURE__*/
248
+ messageDesc(file_flyteidl2_task_task_definition, 4);
249
+
250
+ /**
251
+ * Specification for a task.
252
+ *
253
+ * @generated from message flyteidl2.task.TaskSpec
254
+ */
255
+ export type TaskSpec = Message<"flyteidl2.task.TaskSpec"> & {
256
+ /**
257
+ * The template for this task.
258
+ *
259
+ * @generated from field: flyteidl2.core.TaskTemplate task_template = 1;
260
+ */
261
+ taskTemplate?: TaskTemplate;
262
+
263
+ /**
264
+ * Ordered default inputs.
265
+ * These can be overridden when an run is created.
266
+ * Client should not send required=true flag in underlying flyteidl2.core.Parameter.
267
+ *
268
+ * @generated from field: repeated flyteidl2.task.NamedParameter default_inputs = 2;
269
+ */
270
+ defaultInputs: NamedParameter[];
271
+
272
+ /**
273
+ * User facing display name for this task. Not required to be unique.
274
+ * This is passed in via the SDK when the task is created and is either a user defined override or the name of the task.
275
+ *
276
+ * @generated from field: string short_name = 3;
277
+ */
278
+ shortName: string;
279
+
280
+ /**
281
+ * Optional environment for this task. Note, some tasks may not be run in the context of an environment.
282
+ *
283
+ * @generated from field: flyteidl2.task.Environment environment = 4;
284
+ */
285
+ environment?: Environment;
286
+ };
287
+
288
+ /**
289
+ * Describes the message flyteidl2.task.TaskSpec.
290
+ * Use `create(TaskSpecSchema)` to create a new message.
291
+ */
292
+ export const TaskSpecSchema: GenMessage<TaskSpec> = /*@__PURE__*/
293
+ messageDesc(file_flyteidl2_task_task_definition, 5);
294
+
295
+ /**
296
+ * Specification for a trace action.
297
+ *
298
+ * @generated from message flyteidl2.task.TraceSpec
299
+ */
300
+ export type TraceSpec = Message<"flyteidl2.task.TraceSpec"> & {
301
+ /**
302
+ * A strongly typed interface for the trace.
303
+ *
304
+ * @generated from field: flyteidl2.core.TypedInterface interface = 1;
305
+ */
306
+ interface?: TypedInterface;
307
+ };
308
+
309
+ /**
310
+ * Describes the message flyteidl2.task.TraceSpec.
311
+ * Use `create(TraceSpecSchema)` to create a new message.
312
+ */
313
+ export const TraceSpecSchema: GenMessage<TraceSpec> = /*@__PURE__*/
314
+ messageDesc(file_flyteidl2_task_task_definition, 6);
315
+
316
+ /**
317
+ * Detailed information about a task.
318
+ *
319
+ * @generated from message flyteidl2.task.TaskDetails
320
+ */
321
+ export type TaskDetails = Message<"flyteidl2.task.TaskDetails"> & {
322
+ /**
323
+ * Id for this task.
324
+ *
325
+ * @generated from field: flyteidl2.task.TaskIdentifier task_id = 1;
326
+ */
327
+ taskId?: TaskIdentifier;
328
+
329
+ /**
330
+ * Metadata for this task.
331
+ *
332
+ * @generated from field: flyteidl2.task.TaskMetadata metadata = 2;
333
+ */
334
+ metadata?: TaskMetadata;
335
+
336
+ /**
337
+ * Specification for this task.
338
+ *
339
+ * @generated from field: flyteidl2.task.TaskSpec spec = 3;
340
+ */
341
+ spec?: TaskSpec;
342
+ };
343
+
344
+ /**
345
+ * Describes the message flyteidl2.task.TaskDetails.
346
+ * Use `create(TaskDetailsSchema)` to create a new message.
347
+ */
348
+ export const TaskDetailsSchema: GenMessage<TaskDetails> = /*@__PURE__*/
349
+ messageDesc(file_flyteidl2_task_task_definition, 7);
350
+
351
+ /**
352
+ * Contains details about a single trigger attached to a task. Should only be used in DeployTask endpoint.
353
+ *
354
+ * @generated from message flyteidl2.task.TaskTrigger
355
+ */
356
+ export type TaskTrigger = Message<"flyteidl2.task.TaskTrigger"> & {
357
+ /**
358
+ * @generated from field: string name = 1;
359
+ */
360
+ name: string;
361
+
362
+ /**
363
+ * @generated from field: flyteidl2.task.TaskTriggerSpec spec = 2;
364
+ */
365
+ spec?: TaskTriggerSpec;
366
+
367
+ /**
368
+ * Optional automation spec.
369
+ *
370
+ * @generated from field: flyteidl2.task.TriggerAutomationSpec automation_spec = 3;
371
+ */
372
+ automationSpec?: TriggerAutomationSpec;
373
+ };
374
+
375
+ /**
376
+ * Describes the message flyteidl2.task.TaskTrigger.
377
+ * Use `create(TaskTriggerSchema)` to create a new message.
378
+ */
379
+ export const TaskTriggerSchema: GenMessage<TaskTrigger> = /*@__PURE__*/
380
+ messageDesc(file_flyteidl2_task_task_definition, 8);
381
+
382
+ /**
383
+ * TaskTriggerSpec this is a copy of TriggerSpec without mandatory 'task_version' field.
384
+ * This is supposed to be used only in DeployTask endpoint where 'task_version' is already provided in task_id.
385
+ *
386
+ * @generated from message flyteidl2.task.TaskTriggerSpec
387
+ */
388
+ export type TaskTriggerSpec = Message<"flyteidl2.task.TaskTriggerSpec"> & {
389
+ /**
390
+ * Whether trigger is active
391
+ *
392
+ * @generated from field: bool active = 1;
393
+ */
394
+ active: boolean;
395
+
396
+ /**
397
+ * Inputs for triggered task.
398
+ *
399
+ * @generated from field: flyteidl2.task.Inputs inputs = 2;
400
+ */
401
+ inputs?: Inputs;
402
+
403
+ /**
404
+ * The run spec for triggered task.
405
+ *
406
+ * @generated from field: flyteidl2.task.RunSpec run_spec = 3;
407
+ */
408
+ runSpec?: RunSpec;
409
+ };
410
+
411
+ /**
412
+ * Describes the message flyteidl2.task.TaskTriggerSpec.
413
+ * Use `create(TaskTriggerSpecSchema)` to create a new message.
414
+ */
415
+ export const TaskTriggerSpecSchema: GenMessage<TaskTriggerSpec> = /*@__PURE__*/
416
+ messageDesc(file_flyteidl2_task_task_definition, 9);
417
+