@flyteorg/flyteidl2 2.0.0-alpha5 → 2.0.0-alpha7

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 (37) 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 +1026 -0
  16. package/flyteidl2/core/types_pb.ts +592 -0
  17. package/flyteidl2/imagebuilder/definition_pb.ts +493 -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/secret/definition_pb.ts +310 -0
  22. package/flyteidl2/secret/payload_pb.ts +266 -0
  23. package/flyteidl2/secret/secret_pb.ts +63 -0
  24. package/flyteidl2/task/common_pb.ts +318 -0
  25. package/flyteidl2/task/environment_pb.ts +36 -0
  26. package/flyteidl2/task/run_pb.ts +141 -0
  27. package/flyteidl2/task/task_definition_pb.ts +417 -0
  28. package/flyteidl2/task/task_service_pb.ts +248 -0
  29. package/flyteidl2/trigger/trigger_definition_pb.ts +292 -0
  30. package/flyteidl2/trigger/trigger_service_pb.ts +434 -0
  31. package/flyteidl2/workflow/queue_service_pb.ts +424 -0
  32. package/flyteidl2/workflow/run_definition_pb.ts +909 -0
  33. package/flyteidl2/workflow/run_logs_service_pb.ts +106 -0
  34. package/flyteidl2/workflow/run_service_pb.ts +863 -0
  35. package/flyteidl2/workflow/state_service_pb.ts +310 -0
  36. package/flyteidl2/workflow/translator_service_pb.ts +174 -0
  37. package/package.json +4 -3
@@ -0,0 +1,396 @@
1
+ // @generated by protoc-gen-es v2.2.5 with parameter "target=ts,import_extension=.ts"
2
+ // @generated from file flyteidl2/logs/dataplane/payload.proto (package flyteidl2.logs.dataplane, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
6
+ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
7
+ import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.ts";
8
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
9
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
10
+ import type { Message } from "@bufbuild/protobuf";
11
+
12
+ /**
13
+ * Describes the file flyteidl2/logs/dataplane/payload.proto.
14
+ */
15
+ export const file_flyteidl2_logs_dataplane_payload: GenFile = /*@__PURE__*/
16
+ fileDesc("CiZmbHl0ZWlkbDIvbG9ncy9kYXRhcGxhbmUvcGF5bG9hZC5wcm90bxIYZmx5dGVpZGwyLmxvZ3MuZGF0YXBsYW5lIlMKC1BvZFJlc291cmNlEhoKCW5hbWVzcGFjZRgBIAEoCUIHukgEcgIQARIVCgRuYW1lGAIgASgJQge6SARyAhABEhEKCWNvbnRhaW5lchgDIAEoCSLUAwoOTG9nZ2luZ0NvbnRleHQSHQoMY2x1c3Rlcl9uYW1lGAMgASgJQge6SARyAhABEiUKFGt1YmVybmV0ZXNfbmFtZXNwYWNlGAQgASgJQge6SARyAhABEiQKE2t1YmVybmV0ZXNfcG9kX25hbWUYBSABKAlCB7pIBHICEAESKgoZa3ViZXJuZXRlc19jb250YWluZXJfbm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HJvdG8z", [file_buf_validate_validate, file_google_protobuf_timestamp]);
17
+
18
+ /**
19
+ * @generated from message flyteidl2.logs.dataplane.PodResource
20
+ */
21
+ export type PodResource = Message<"flyteidl2.logs.dataplane.PodResource"> & {
22
+ /**
23
+ * The namespace of the pod.
24
+ *
25
+ * @generated from field: string namespace = 1;
26
+ */
27
+ namespace: string;
28
+
29
+ /**
30
+ * The pod name.
31
+ *
32
+ * @generated from field: string name = 2;
33
+ */
34
+ name: string;
35
+
36
+ /**
37
+ * The container name. If not provided, attempt to find the primary container, else assume the first container.
38
+ * +optional
39
+ *
40
+ * @generated from field: string container = 3;
41
+ */
42
+ container: string;
43
+ };
44
+
45
+ /**
46
+ * Describes the message flyteidl2.logs.dataplane.PodResource.
47
+ * Use `create(PodResourceSchema)` to create a new message.
48
+ */
49
+ export const PodResourceSchema: GenMessage<PodResource> = /*@__PURE__*/
50
+ messageDesc(file_flyteidl2_logs_dataplane_payload, 0);
51
+
52
+ /**
53
+ * Parameters of environment in which logs were collected. Should contain everything
54
+ * necessary to identify location of task execution logs in cloud providers.
55
+ *
56
+ * @generated from message flyteidl2.logs.dataplane.LoggingContext
57
+ */
58
+ export type LoggingContext = Message<"flyteidl2.logs.dataplane.LoggingContext"> & {
59
+ /**
60
+ * @generated from field: string cluster_name = 3;
61
+ */
62
+ clusterName: string;
63
+
64
+ /**
65
+ * @generated from field: string kubernetes_namespace = 4;
66
+ */
67
+ kubernetesNamespace: string;
68
+
69
+ /**
70
+ * @generated from field: string kubernetes_pod_name = 5;
71
+ */
72
+ kubernetesPodName: string;
73
+
74
+ /**
75
+ * @generated from field: string kubernetes_container_name = 6;
76
+ */
77
+ kubernetesContainerName: string;
78
+
79
+ /**
80
+ * @generated from field: google.protobuf.Timestamp execution_attempt_start_time = 7;
81
+ */
82
+ executionAttemptStartTime?: Timestamp;
83
+
84
+ /**
85
+ * @generated from field: google.protobuf.Timestamp execution_attempt_end_time = 8;
86
+ */
87
+ executionAttemptEndTime?: Timestamp;
88
+
89
+ /**
90
+ * @generated from field: map<string, string> kubernetes_pod_labels = 9;
91
+ */
92
+ kubernetesPodLabels: { [key: string]: string };
93
+ };
94
+
95
+ /**
96
+ * Describes the message flyteidl2.logs.dataplane.LoggingContext.
97
+ * Use `create(LoggingContextSchema)` to create a new message.
98
+ */
99
+ export const LoggingContextSchema: GenMessage<LoggingContext> = /*@__PURE__*/
100
+ messageDesc(file_flyteidl2_logs_dataplane_payload, 1);
101
+
102
+ /**
103
+ * Parameters of environment in which logs were collected. Should contain everything
104
+ * necessary to identify location of task execution logs in cloud providers.
105
+ *
106
+ * @generated from message flyteidl2.logs.dataplane.ContainerIdentifier
107
+ */
108
+ export type ContainerIdentifier = Message<"flyteidl2.logs.dataplane.ContainerIdentifier"> & {
109
+ /**
110
+ * The name of the cluster.
111
+ *
112
+ * @generated from field: string cluster_name = 1;
113
+ */
114
+ clusterName: string;
115
+
116
+ /**
117
+ * The namespace in Kubernetes.
118
+ *
119
+ * @generated from field: string kubernetes_namespace = 2;
120
+ */
121
+ kubernetesNamespace: string;
122
+
123
+ /**
124
+ * The name of the pod in Kubernetes.
125
+ *
126
+ * @generated from field: string kubernetes_pod_name = 3;
127
+ */
128
+ kubernetesPodName: string;
129
+
130
+ /**
131
+ * The name of the container in Kubernetes.
132
+ *
133
+ * @generated from field: string kubernetes_container_name = 4;
134
+ */
135
+ kubernetesContainerName: string;
136
+ };
137
+
138
+ /**
139
+ * Describes the message flyteidl2.logs.dataplane.ContainerIdentifier.
140
+ * Use `create(ContainerIdentifierSchema)` to create a new message.
141
+ */
142
+ export const ContainerIdentifierSchema: GenMessage<ContainerIdentifier> = /*@__PURE__*/
143
+ messageDesc(file_flyteidl2_logs_dataplane_payload, 2);
144
+
145
+ /**
146
+ * @generated from message flyteidl2.logs.dataplane.ContainerSelector
147
+ */
148
+ export type ContainerSelector = Message<"flyteidl2.logs.dataplane.ContainerSelector"> & {
149
+ /**
150
+ * The name of the cluster.
151
+ *
152
+ * @generated from field: string cluster_name = 1;
153
+ */
154
+ clusterName: string;
155
+
156
+ /**
157
+ * The namespace in Kubernetes.
158
+ *
159
+ * @generated from field: string kubernetes_namespace = 2;
160
+ */
161
+ kubernetesNamespace: string;
162
+
163
+ /**
164
+ * The prefix of the name of the pod in Kubernetes. This will only apply to persisted pods' logs because listing by
165
+ * prefix is the supported way to filter pods.
166
+ *
167
+ * @generated from field: string kubernetes_pod_name_prefix = 3;
168
+ */
169
+ kubernetesPodNamePrefix: string;
170
+
171
+ /**
172
+ * The name of the container in Kubernetes. If not specified, logs for all containers
173
+ * will be streamed.
174
+ *
175
+ * @generated from field: string kubernetes_container_name = 4;
176
+ */
177
+ kubernetesContainerName: string;
178
+
179
+ /**
180
+ * The label selector to filter pods. This will only apply to live pods' logs because Listing by prefix
181
+ * isn't supported.
182
+ *
183
+ * @generated from field: string kubernetes_pod_label_selector = 5;
184
+ */
185
+ kubernetesPodLabelSelector: string;
186
+ };
187
+
188
+ /**
189
+ * Describes the message flyteidl2.logs.dataplane.ContainerSelector.
190
+ * Use `create(ContainerSelectorSchema)` to create a new message.
191
+ */
192
+ export const ContainerSelectorSchema: GenMessage<ContainerSelector> = /*@__PURE__*/
193
+ messageDesc(file_flyteidl2_logs_dataplane_payload, 3);
194
+
195
+ /**
196
+ * @generated from message flyteidl2.logs.dataplane.LiveLogsOptions
197
+ */
198
+ export type LiveLogsOptions = Message<"flyteidl2.logs.dataplane.LiveLogsOptions"> & {
199
+ /**
200
+ * LogPodStatus indicates whether to log the pod status along with the logs.
201
+ *
202
+ * @generated from field: bool log_pod_status = 1;
203
+ */
204
+ logPodStatus: boolean;
205
+
206
+ /**
207
+ * LogTimestamps indicates whether to log the timestamps along with the logs. It prepends RFC3339 or RFC3339Nano
208
+ * format in the beginning of each log line.
209
+ *
210
+ * @generated from field: bool log_timestamps = 2;
211
+ */
212
+ logTimestamps: boolean;
213
+ };
214
+
215
+ /**
216
+ * Describes the message flyteidl2.logs.dataplane.LiveLogsOptions.
217
+ * Use `create(LiveLogsOptionsSchema)` to create a new message.
218
+ */
219
+ export const LiveLogsOptionsSchema: GenMessage<LiveLogsOptions> = /*@__PURE__*/
220
+ messageDesc(file_flyteidl2_logs_dataplane_payload, 4);
221
+
222
+ /**
223
+ * @generated from message flyteidl2.logs.dataplane.LogLine
224
+ */
225
+ export type LogLine = Message<"flyteidl2.logs.dataplane.LogLine"> & {
226
+ /**
227
+ * @generated from field: google.protobuf.Timestamp timestamp = 1;
228
+ */
229
+ timestamp?: Timestamp;
230
+
231
+ /**
232
+ * Each line is separated by either CRLF, CR or LF, which are included
233
+ * at the ends of the lines. This lets clients know whether log emitter
234
+ * wanted to overwrite the previous line (LF) or append a new line (CRLF).
235
+ *
236
+ * @generated from field: string message = 2;
237
+ */
238
+ message: string;
239
+
240
+ /**
241
+ * @generated from field: flyteidl2.logs.dataplane.LogLineOriginator originator = 3;
242
+ */
243
+ originator: LogLineOriginator;
244
+ };
245
+
246
+ /**
247
+ * Describes the message flyteidl2.logs.dataplane.LogLine.
248
+ * Use `create(LogLineSchema)` to create a new message.
249
+ */
250
+ export const LogLineSchema: GenMessage<LogLine> = /*@__PURE__*/
251
+ messageDesc(file_flyteidl2_logs_dataplane_payload, 5);
252
+
253
+ /**
254
+ * @generated from message flyteidl2.logs.dataplane.LogLines
255
+ */
256
+ export type LogLines = Message<"flyteidl2.logs.dataplane.LogLines"> & {
257
+ /**
258
+ * Each line is separated by either CRLF, CR or LF, which are included
259
+ * at the ends of the lines. This lets clients know whether log emitter
260
+ * wanted to overwrite the previous line (LF) or append a new line (CRLF).
261
+ *
262
+ * @generated from field: repeated string lines = 1 [deprecated = true];
263
+ * @deprecated
264
+ */
265
+ lines: string[];
266
+
267
+ /**
268
+ * The index of the container in the list of containers. If the request was made with a single container identifier,
269
+ * this value will always be 0. Otherwise, it'll be an index into the last list of containers sent in the stream.
270
+ *
271
+ * @generated from field: uint32 container_index = 2;
272
+ */
273
+ containerIndex: number;
274
+
275
+ /**
276
+ * The container identifier.
277
+ *
278
+ * @generated from field: flyteidl2.logs.dataplane.ContainerIdentifier container = 3;
279
+ */
280
+ container?: ContainerIdentifier;
281
+
282
+ /**
283
+ * Each line is separated by either CRLF, CR or LF, which are included
284
+ * at the ends of the lines. This lets clients know whether log emitter
285
+ * wanted to overwrite the previous line (LF) or append a new line (CRLF).
286
+ *
287
+ * @generated from field: repeated flyteidl2.logs.dataplane.LogLine structured_lines = 4;
288
+ */
289
+ structuredLines: LogLine[];
290
+ };
291
+
292
+ /**
293
+ * Describes the message flyteidl2.logs.dataplane.LogLines.
294
+ * Use `create(LogLinesSchema)` to create a new message.
295
+ */
296
+ export const LogLinesSchema: GenMessage<LogLines> = /*@__PURE__*/
297
+ messageDesc(file_flyteidl2_logs_dataplane_payload, 6);
298
+
299
+ /**
300
+ * @generated from message flyteidl2.logs.dataplane.LogContainersList
301
+ */
302
+ export type LogContainersList = Message<"flyteidl2.logs.dataplane.LogContainersList"> & {
303
+ /**
304
+ * @generated from field: repeated flyteidl2.logs.dataplane.ContainerIdentifier containers = 1;
305
+ */
306
+ containers: ContainerIdentifier[];
307
+ };
308
+
309
+ /**
310
+ * Describes the message flyteidl2.logs.dataplane.LogContainersList.
311
+ * Use `create(LogContainersListSchema)` to create a new message.
312
+ */
313
+ export const LogContainersListSchema: GenMessage<LogContainersList> = /*@__PURE__*/
314
+ messageDesc(file_flyteidl2_logs_dataplane_payload, 7);
315
+
316
+ /**
317
+ * @generated from message flyteidl2.logs.dataplane.LogLinesBatch
318
+ */
319
+ export type LogLinesBatch = Message<"flyteidl2.logs.dataplane.LogLinesBatch"> & {
320
+ /**
321
+ * @generated from field: repeated flyteidl2.logs.dataplane.LogLines logs = 1;
322
+ */
323
+ logs: LogLines[];
324
+ };
325
+
326
+ /**
327
+ * Describes the message flyteidl2.logs.dataplane.LogLinesBatch.
328
+ * Use `create(LogLinesBatchSchema)` to create a new message.
329
+ */
330
+ export const LogLinesBatchSchema: GenMessage<LogLinesBatch> = /*@__PURE__*/
331
+ messageDesc(file_flyteidl2_logs_dataplane_payload, 8);
332
+
333
+ /**
334
+ * @generated from enum flyteidl2.logs.dataplane.LogLineOriginator
335
+ */
336
+ export enum LogLineOriginator {
337
+ /**
338
+ * The originator of the log line is unknown.
339
+ *
340
+ * @generated from enum value: UNKNOWN = 0;
341
+ */
342
+ UNKNOWN = 0,
343
+
344
+ /**
345
+ * The originator of the log line is the user application.
346
+ *
347
+ * @generated from enum value: USER = 1;
348
+ */
349
+ USER = 1,
350
+
351
+ /**
352
+ * The originator of the log line is the system.
353
+ *
354
+ * @generated from enum value: SYSTEM = 2;
355
+ */
356
+ SYSTEM = 2,
357
+ }
358
+
359
+ /**
360
+ * Describes the enum flyteidl2.logs.dataplane.LogLineOriginator.
361
+ */
362
+ export const LogLineOriginatorSchema: GenEnum<LogLineOriginator> = /*@__PURE__*/
363
+ enumDesc(file_flyteidl2_logs_dataplane_payload, 0);
364
+
365
+ /**
366
+ * @generated from enum flyteidl2.logs.dataplane.LogsSource
367
+ */
368
+ export enum LogsSource {
369
+ /**
370
+ * Return live logs and fall back to persisted if not available.
371
+ *
372
+ * @generated from enum value: LIVE_OR_PERSISTED = 0;
373
+ */
374
+ LIVE_OR_PERSISTED = 0,
375
+
376
+ /**
377
+ * Return live logs only or error if pod is no longer around.
378
+ *
379
+ * @generated from enum value: LIVE_ONLY = 1;
380
+ */
381
+ LIVE_ONLY = 1,
382
+
383
+ /**
384
+ * Return persisted logs only.
385
+ *
386
+ * @generated from enum value: PERSISTED_ONLY = 2;
387
+ */
388
+ PERSISTED_ONLY = 2,
389
+ }
390
+
391
+ /**
392
+ * Describes the enum flyteidl2.logs.dataplane.LogsSource.
393
+ */
394
+ export const LogsSourceSchema: GenEnum<LogsSource> = /*@__PURE__*/
395
+ enumDesc(file_flyteidl2_logs_dataplane_payload, 1);
396
+
@@ -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/secret/definition.proto (package flyteidl2.secret, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
6
+ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
7
+ import { file_buf_validate_validate } from "../../buf/validate/validate_pb.ts";
8
+ import type { ClusterIdentifier } from "../common/identifier_pb.ts";
9
+ import { file_flyteidl2_common_identifier } from "../common/identifier_pb.ts";
10
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
11
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
12
+ import type { Message } from "@bufbuild/protobuf";
13
+
14
+ /**
15
+ * Describes the file flyteidl2/secret/definition.proto.
16
+ */
17
+ export const file_flyteidl2_secret_definition: GenFile = /*@__PURE__*/
18
+ fileDesc("CiFmbHl0ZWlkbDIvc2VjcmV0L2RlZmluaXRpb24ucHJvdG8SEGZseXRlaWRsMi5zZWNyZXQieAoKU2VjcmV0U3BlYxIWCgxzdHJpbmdfdmFsdWUYASABKAlIABIWCgxiaW5hcnlfdmFsdWUYAiABKAxIABIqCgR0eXBlGAMgASgOMhwuZmx5dGVpZGwyLnNlY3JldC5TZWNyZXRUeXBlQg4KBXZhbHVlEgW6SAIIASJyChBTZWNyZXRJZGVudGlmaWVyEicKBG5hbWUYASABKAlCGbpIFnIUEAEyEF5bLWEtekEtWjAtOV9dKyQSFAoMb3JnYW5pemF0aW9uGAIgASgJEg4KBmRvbWFpbhgDIAEoCRIPCgdwcm9qZWN0GAQgASgJIqUBCg5TZWNyZXRNZXRhZGF0YRIwCgxjcmVhdGVkX3RpbWUYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjUKDXNlY3JldF9zdGF0dXMYAiABKAsyHi5mbHl0ZWlkbDIuc2VjcmV0LlNlY3JldFN0YXR1cxIqCgR0eXBlGAMgASgOMhwuZmx5dGVpZGwyLnNlY3JldC5TZWNyZXRUeXBlIoYBCgxTZWNyZXRTdGF0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seXRlaWRsMjo6U2VjcmV0YgZwcm90bzM", [file_buf_validate_validate, file_flyteidl2_common_identifier, file_google_protobuf_timestamp]);
19
+
20
+ /**
21
+ * SecretSpec contains information used for creating/updating the secret.
22
+ * Mainly it contains the value of the secret
23
+ * In future we could add meta info like tags, rotation config, whether stored secret has any binary format etc for storage/retrieval.
24
+ *
25
+ * @generated from message flyteidl2.secret.SecretSpec
26
+ */
27
+ export type SecretSpec = Message<"flyteidl2.secret.SecretSpec"> & {
28
+ /**
29
+ * @generated from oneof flyteidl2.secret.SecretSpec.value
30
+ */
31
+ value: {
32
+ /**
33
+ * @generated from field: string string_value = 1;
34
+ */
35
+ value: string;
36
+ case: "stringValue";
37
+ } | {
38
+ /**
39
+ * @generated from field: bytes binary_value = 2;
40
+ */
41
+ value: Uint8Array;
42
+ case: "binaryValue";
43
+ } | { case: undefined; value?: undefined };
44
+
45
+ /**
46
+ * The secret type
47
+ *
48
+ * @generated from field: flyteidl2.secret.SecretType type = 3;
49
+ */
50
+ type: SecretType;
51
+ };
52
+
53
+ /**
54
+ * Describes the message flyteidl2.secret.SecretSpec.
55
+ * Use `create(SecretSpecSchema)` to create a new message.
56
+ */
57
+ export const SecretSpecSchema: GenMessage<SecretSpec> = /*@__PURE__*/
58
+ messageDesc(file_flyteidl2_secret_definition, 0);
59
+
60
+ /**
61
+ * SecretIdentifier contains the uniquely identifiable way of storing or retrieving the secret
62
+ * Name and scope combination are used for defining the format for storage and retrieval of the secret
63
+ * For eg : for org scope secrets
64
+ * storage format org:<org-name>:name:secret-name
65
+ *
66
+ * @generated from message flyteidl2.secret.SecretIdentifier
67
+ */
68
+ export type SecretIdentifier = Message<"flyteidl2.secret.SecretIdentifier"> & {
69
+ /**
70
+ * @generated from field: string name = 1;
71
+ */
72
+ name: string;
73
+
74
+ /**
75
+ * Only org scoped resources are supported right now
76
+ *
77
+ * @generated from field: string organization = 2;
78
+ */
79
+ organization: string;
80
+
81
+ /**
82
+ * domain scoped secret
83
+ *
84
+ * @generated from field: string domain = 3;
85
+ */
86
+ domain: string;
87
+
88
+ /**
89
+ * Project-domain scoped secret
90
+ *
91
+ * @generated from field: string project = 4;
92
+ */
93
+ project: string;
94
+ };
95
+
96
+ /**
97
+ * Describes the message flyteidl2.secret.SecretIdentifier.
98
+ * Use `create(SecretIdentifierSchema)` to create a new message.
99
+ */
100
+ export const SecretIdentifierSchema: GenMessage<SecretIdentifier> = /*@__PURE__*/
101
+ messageDesc(file_flyteidl2_secret_definition, 1);
102
+
103
+ /**
104
+ * SecretMetadata contain meta info about the secret
105
+ *
106
+ * @generated from message flyteidl2.secret.SecretMetadata
107
+ */
108
+ export type SecretMetadata = Message<"flyteidl2.secret.SecretMetadata"> & {
109
+ /**
110
+ * created_time of the secret.
111
+ *
112
+ * @generated from field: google.protobuf.Timestamp created_time = 1;
113
+ */
114
+ createdTime?: Timestamp;
115
+
116
+ /**
117
+ * secret_status reports the overall status of the secret across all the clusters.
118
+ * This relies on number of clusters queried which relies on there enabled state.
119
+ *
120
+ * @generated from field: flyteidl2.secret.SecretStatus secret_status = 2;
121
+ */
122
+ secretStatus?: SecretStatus;
123
+
124
+ /**
125
+ * The secret type
126
+ *
127
+ * @generated from field: flyteidl2.secret.SecretType type = 3;
128
+ */
129
+ type: SecretType;
130
+ };
131
+
132
+ /**
133
+ * Describes the message flyteidl2.secret.SecretMetadata.
134
+ * Use `create(SecretMetadataSchema)` to create a new message.
135
+ */
136
+ export const SecretMetadataSchema: GenMessage<SecretMetadata> = /*@__PURE__*/
137
+ messageDesc(file_flyteidl2_secret_definition, 2);
138
+
139
+ /**
140
+ * SecretStatus contains the status of the secret across all the clusters
141
+ *
142
+ * @generated from message flyteidl2.secret.SecretStatus
143
+ */
144
+ export type SecretStatus = Message<"flyteidl2.secret.SecretStatus"> & {
145
+ /**
146
+ * overall_status reports the overall status of the secret across all the clusters.
147
+ *
148
+ * @generated from field: flyteidl2.secret.OverallStatus overall_status = 1;
149
+ */
150
+ overallStatus: OverallStatus;
151
+
152
+ /**
153
+ * cluster_status reports the status of the secret in each cluster
154
+ *
155
+ * @generated from field: repeated flyteidl2.secret.ClusterSecretStatus cluster_status = 2;
156
+ */
157
+ clusterStatus: ClusterSecretStatus[];
158
+ };
159
+
160
+ /**
161
+ * Describes the message flyteidl2.secret.SecretStatus.
162
+ * Use `create(SecretStatusSchema)` to create a new message.
163
+ */
164
+ export const SecretStatusSchema: GenMessage<SecretStatus> = /*@__PURE__*/
165
+ messageDesc(file_flyteidl2_secret_definition, 3);
166
+
167
+ /**
168
+ * ClusterSecretStatus contains the status of the secret in a cluster
169
+ *
170
+ * @generated from message flyteidl2.secret.ClusterSecretStatus
171
+ */
172
+ export type ClusterSecretStatus = Message<"flyteidl2.secret.ClusterSecretStatus"> & {
173
+ /**
174
+ * @generated from field: flyteidl2.common.ClusterIdentifier cluster = 1;
175
+ */
176
+ cluster?: ClusterIdentifier;
177
+
178
+ /**
179
+ * presence_status reports the status of the secret in the cluster
180
+ *
181
+ * @generated from field: flyteidl2.secret.SecretPresenceStatus presence_status = 2;
182
+ */
183
+ presenceStatus: SecretPresenceStatus;
184
+ };
185
+
186
+ /**
187
+ * Describes the message flyteidl2.secret.ClusterSecretStatus.
188
+ * Use `create(ClusterSecretStatusSchema)` to create a new message.
189
+ */
190
+ export const ClusterSecretStatusSchema: GenMessage<ClusterSecretStatus> = /*@__PURE__*/
191
+ messageDesc(file_flyteidl2_secret_definition, 4);
192
+
193
+ /**
194
+ * Secret is the returned object for Get and List calls which returns the identifier of the secret along with
195
+ * meta information in future about the creation data, update date, tags etc
196
+ * This doesn't contain the value of the secret
197
+ *
198
+ * @generated from message flyteidl2.secret.Secret
199
+ */
200
+ export type Secret = Message<"flyteidl2.secret.Secret"> & {
201
+ /**
202
+ * @generated from field: flyteidl2.secret.SecretIdentifier id = 1;
203
+ */
204
+ id?: SecretIdentifier;
205
+
206
+ /**
207
+ * @generated from field: flyteidl2.secret.SecretMetadata secret_metadata = 2;
208
+ */
209
+ secretMetadata?: SecretMetadata;
210
+ };
211
+
212
+ /**
213
+ * Describes the message flyteidl2.secret.Secret.
214
+ * Use `create(SecretSchema)` to create a new message.
215
+ */
216
+ export const SecretSchema: GenMessage<Secret> = /*@__PURE__*/
217
+ messageDesc(file_flyteidl2_secret_definition, 5);
218
+
219
+ /**
220
+ * @generated from enum flyteidl2.secret.SecretType
221
+ */
222
+ export enum SecretType {
223
+ /**
224
+ * Default, unspecified secret type. Assumed to be generic and no type specific handling required.
225
+ *
226
+ * @generated from enum value: SECRET_TYPE_GENERIC = 0;
227
+ */
228
+ GENERIC = 0,
229
+
230
+ /**
231
+ * Secret used specifically for pulling images from a container registry.
232
+ *
233
+ * @generated from enum value: SECRET_TYPE_IMAGE_PULL_SECRET = 1;
234
+ */
235
+ IMAGE_PULL_SECRET = 1,
236
+ }
237
+
238
+ /**
239
+ * Describes the enum flyteidl2.secret.SecretType.
240
+ */
241
+ export const SecretTypeSchema: GenEnum<SecretType> = /*@__PURE__*/
242
+ enumDesc(file_flyteidl2_secret_definition, 0);
243
+
244
+ /**
245
+ * @generated from enum flyteidl2.secret.OverallStatus
246
+ */
247
+ export enum OverallStatus {
248
+ /**
249
+ * @generated from enum value: UNSPECIFIED = 0;
250
+ */
251
+ UNSPECIFIED = 0,
252
+
253
+ /**
254
+ * Exists in some cluster
255
+ *
256
+ * @generated from enum value: PARTIALLY_PRESENT = 1;
257
+ */
258
+ PARTIALLY_PRESENT = 1,
259
+
260
+ /**
261
+ * Exists in all enabled clusters
262
+ *
263
+ * @generated from enum value: FULLY_PRESENT = 2;
264
+ */
265
+ FULLY_PRESENT = 2,
266
+
267
+ /**
268
+ * Status is unknown
269
+ *
270
+ * @generated from enum value: UNKNOWN_STATUS = 3;
271
+ */
272
+ UNKNOWN_STATUS = 3,
273
+ }
274
+
275
+ /**
276
+ * Describes the enum flyteidl2.secret.OverallStatus.
277
+ */
278
+ export const OverallStatusSchema: GenEnum<OverallStatus> = /*@__PURE__*/
279
+ enumDesc(file_flyteidl2_secret_definition, 1);
280
+
281
+ /**
282
+ * @generated from enum flyteidl2.secret.SecretPresenceStatus
283
+ */
284
+ export enum SecretPresenceStatus {
285
+ /**
286
+ * @generated from enum value: UNKNOWN = 0;
287
+ */
288
+ UNKNOWN = 0,
289
+
290
+ /**
291
+ * Secret is missing in the cluster
292
+ *
293
+ * @generated from enum value: MISSING = 1;
294
+ */
295
+ MISSING = 1,
296
+
297
+ /**
298
+ * Secret is present in the cluster
299
+ *
300
+ * @generated from enum value: PRESENT = 2;
301
+ */
302
+ PRESENT = 2,
303
+ }
304
+
305
+ /**
306
+ * Describes the enum flyteidl2.secret.SecretPresenceStatus.
307
+ */
308
+ export const SecretPresenceStatusSchema: GenEnum<SecretPresenceStatus> = /*@__PURE__*/
309
+ enumDesc(file_flyteidl2_secret_definition, 2);
310
+