@flyteorg/flyteidl2 2.0.0-alpha10 → 2.0.0-alpha12

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.
@@ -0,0 +1,140 @@
1
+ // @generated by protoc-gen-es v2.2.5 with parameter "target=ts,import_extension=.ts"
2
+ // @generated from file flyteidl2/app/replica_definition.proto (package flyteidl2.app, 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 type { Identifier } from "./app_definition_pb.ts";
9
+ import { file_flyteidl2_app_app_definition } from "./app_definition_pb.ts";
10
+ import type { Message } from "@bufbuild/protobuf";
11
+
12
+ /**
13
+ * Describes the file flyteidl2/app/replica_definition.proto.
14
+ */
15
+ export const file_flyteidl2_app_replica_definition: GenFile = /*@__PURE__*/
16
+ fileDesc("CiZmbHl0ZWlkbDIvYXBwL3JlcGxpY2FfZGVmaW5pdGlvbi5wcm90bxINZmx5dGVpZGwyLmFwcCJdChFSZXBsaWNhSWRlbnRpZmllchIxCgZhcHBfaWQYASABKAsyGS5mbHl0ZWlkbDIuYXBwLklkZW50aWZpZXJCBrpIA8gBARIVCgRuYW1lGAIgASgJQge6SARyAhABIlUKC1JlcGxpY2FNZXRhEjQKAmlkGAEgASgLMiAuZmx5dGVpZGwyLmFwcC5SZXBsaWNhSWRlbnRpZmllckIGukgDyAEBEhAKCHJldmlzaW9uGAIgASgEIjQKC1JlcGxpY2FMaXN0EiUKBWl0ZW1zGAEgAygLMhYuZmx5dGVpZGwyLmFwcC5SZXBsaWNhIm0KB1JlcGxpY2ESNAoIbWV0YWRhdGEYASABKAsyGi5mbHl0ZWlkbDIuYXBwLlJlcGxpY2FNZXRhQga6SAPIAQESLAoGc3RhdHVzGAIgASgLMhwuZmx5dGVpZGwyLmFwcC5SZXBsaWNhU3RhdHVzIjoKDVJlcGxpY2FTdGF0dXMSGQoRZGVwbG95bWVudF9zdGF0dXMYASABKAkSDgoGcmVhc29uGAIgASgJQrUBChFjb20uZmx5dGVpZGwyLmFwcEIWUmVwbGljYURlZmluaXRpb25Qcm90b0gCUAFaMWdpdGh1Yi5jb20vZmx5dGVvcmcvZmx5dGUvdjIvZ2VuL2dvL2ZseXRlaWRsMi9hcHCiAgNGQViqAg1GbHl0ZWlkbDIuQXBwygINRmx5dGVpZGwyXEFwcOICGUZseXRlaWRsMlxBcHBcR1BCTWV0YWRhdGHqAg5GbHl0ZWlkbDI6OkFwcGIGcHJvdG8z", [file_buf_validate_validate, file_flyteidl2_app_app_definition]);
17
+
18
+ /**
19
+ * @generated from message flyteidl2.app.ReplicaIdentifier
20
+ */
21
+ export type ReplicaIdentifier = Message<"flyteidl2.app.ReplicaIdentifier"> & {
22
+ /**
23
+ * ID of the app.
24
+ *
25
+ * @generated from field: flyteidl2.app.Identifier app_id = 1;
26
+ */
27
+ appId?: Identifier;
28
+
29
+ /**
30
+ * @generated from field: string name = 2;
31
+ */
32
+ name: string;
33
+ };
34
+
35
+ /**
36
+ * Describes the message flyteidl2.app.ReplicaIdentifier.
37
+ * Use `create(ReplicaIdentifierSchema)` to create a new message.
38
+ */
39
+ export const ReplicaIdentifierSchema: GenMessage<ReplicaIdentifier> = /*@__PURE__*/
40
+ messageDesc(file_flyteidl2_app_replica_definition, 0);
41
+
42
+ /**
43
+ * @generated from message flyteidl2.app.ReplicaMeta
44
+ */
45
+ export type ReplicaMeta = Message<"flyteidl2.app.ReplicaMeta"> & {
46
+ /**
47
+ * ID of the replica.
48
+ *
49
+ * @generated from field: flyteidl2.app.ReplicaIdentifier id = 1;
50
+ */
51
+ id?: ReplicaIdentifier;
52
+
53
+ /**
54
+ * Revision of the replica object.
55
+ *
56
+ * @generated from field: uint64 revision = 2;
57
+ */
58
+ revision: bigint;
59
+ };
60
+
61
+ /**
62
+ * Describes the message flyteidl2.app.ReplicaMeta.
63
+ * Use `create(ReplicaMetaSchema)` to create a new message.
64
+ */
65
+ export const ReplicaMetaSchema: GenMessage<ReplicaMeta> = /*@__PURE__*/
66
+ messageDesc(file_flyteidl2_app_replica_definition, 1);
67
+
68
+ /**
69
+ * @generated from message flyteidl2.app.ReplicaList
70
+ */
71
+ export type ReplicaList = Message<"flyteidl2.app.ReplicaList"> & {
72
+ /**
73
+ * List of replicas.
74
+ *
75
+ * @generated from field: repeated flyteidl2.app.Replica items = 1;
76
+ */
77
+ items: Replica[];
78
+ };
79
+
80
+ /**
81
+ * Describes the message flyteidl2.app.ReplicaList.
82
+ * Use `create(ReplicaListSchema)` to create a new message.
83
+ */
84
+ export const ReplicaListSchema: GenMessage<ReplicaList> = /*@__PURE__*/
85
+ messageDesc(file_flyteidl2_app_replica_definition, 2);
86
+
87
+ /**
88
+ * Represents a replica of an app with its specification and status.
89
+ *
90
+ * @generated from message flyteidl2.app.Replica
91
+ */
92
+ export type Replica = Message<"flyteidl2.app.Replica"> & {
93
+ /**
94
+ * Metadata of the app.
95
+ *
96
+ * @generated from field: flyteidl2.app.ReplicaMeta metadata = 1;
97
+ */
98
+ metadata?: ReplicaMeta;
99
+
100
+ /**
101
+ * Status of the app.
102
+ *
103
+ * @generated from field: flyteidl2.app.ReplicaStatus status = 2;
104
+ */
105
+ status?: ReplicaStatus;
106
+ };
107
+
108
+ /**
109
+ * Describes the message flyteidl2.app.Replica.
110
+ * Use `create(ReplicaSchema)` to create a new message.
111
+ */
112
+ export const ReplicaSchema: GenMessage<Replica> = /*@__PURE__*/
113
+ messageDesc(file_flyteidl2_app_replica_definition, 3);
114
+
115
+ /**
116
+ * Represents the status of the replica.
117
+ *
118
+ * @generated from message flyteidl2.app.ReplicaStatus
119
+ */
120
+ export type ReplicaStatus = Message<"flyteidl2.app.ReplicaStatus"> & {
121
+ /**
122
+ * Current deployment status of the replica.
123
+ *
124
+ * @generated from field: string deployment_status = 1;
125
+ */
126
+ deploymentStatus: string;
127
+
128
+ /**
129
+ * @generated from field: string reason = 2;
130
+ */
131
+ reason: string;
132
+ };
133
+
134
+ /**
135
+ * Describes the message flyteidl2.app.ReplicaStatus.
136
+ * Use `create(ReplicaStatusSchema)` to create a new message.
137
+ */
138
+ export const ReplicaStatusSchema: GenMessage<ReplicaStatus> = /*@__PURE__*/
139
+ messageDesc(file_flyteidl2_app_replica_definition, 4);
140
+
@@ -0,0 +1,47 @@
1
+ // @generated by protoc-gen-es v2.2.5 with parameter "target=ts,import_extension=.ts"
2
+ // @generated from file flyteidl2/core/metrics.proto (package flyteidl2.core, 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_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
8
+ import type { JsonObject, Message } from "@bufbuild/protobuf";
9
+
10
+ /**
11
+ * Describes the file flyteidl2/core/metrics.proto.
12
+ */
13
+ export const file_flyteidl2_core_metrics: GenFile = /*@__PURE__*/
14
+ fileDesc("ChxmbHl0ZWlkbDIvY29yZS9tZXRyaWNzLnByb3RvEg5mbHl0ZWlkbDIuY29yZSJOChVFeGVjdXRpb25NZXRyaWNSZXN1bHQSDgoGbWV0cmljGAEgASgJEiUKBGRhdGEYAiABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0QrEBChJjb20uZmx5dGVpZGwyLmNvcmVCDE1ldHJpY3NQcm90b0gCUAFaMmdpdGh1Yi5jb20vZmx5dGVvcmcvZmx5dGUvdjIvZ2VuL2dvL2ZseXRlaWRsMi9jb3JlogIDRkNYqgIORmx5dGVpZGwyLkNvcmXKAg5GbHl0ZWlkbDJcQ29yZeICGkZseXRlaWRsMlxDb3JlXEdQQk1ldGFkYXRh6gIPRmx5dGVpZGwyOjpDb3JlYgZwcm90bzM", [file_google_protobuf_struct]);
15
+
16
+ /**
17
+ * ExecutionMetrics is a collection of metrics that are collected during the execution of a Flyte task.
18
+ *
19
+ * @generated from message flyteidl2.core.ExecutionMetricResult
20
+ */
21
+ export type ExecutionMetricResult = Message<"flyteidl2.core.ExecutionMetricResult"> & {
22
+ /**
23
+ * The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG.
24
+ *
25
+ * @generated from field: string metric = 1;
26
+ */
27
+ metric: string;
28
+
29
+ /**
30
+ * The result data in prometheus range query result format
31
+ * https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.
32
+ * This may include multiple time series, differentiated by their metric labels.
33
+ * Start time is greater of (execution attempt start, 48h ago)
34
+ * End time is lesser of (execution attempt end, now)
35
+ *
36
+ * @generated from field: google.protobuf.Struct data = 2;
37
+ */
38
+ data?: JsonObject;
39
+ };
40
+
41
+ /**
42
+ * Describes the message flyteidl2.core.ExecutionMetricResult.
43
+ * Use `create(ExecutionMetricResultSchema)` to create a new message.
44
+ */
45
+ export const ExecutionMetricResultSchema: GenMessage<ExecutionMetricResult> = /*@__PURE__*/
46
+ messageDesc(file_flyteidl2_core_metrics, 0);
47
+
@@ -10,7 +10,7 @@ import type { Message } from "@bufbuild/protobuf";
10
10
  * Describes the file flyteidl2/core/security.proto.
11
11
  */
12
12
  export const file_flyteidl2_core_security: GenFile = /*@__PURE__*/
13
- fileDesc("Ch1mbHl0ZWlkbDIvY29yZS9zZWN1cml0eS5wcm90bxIOZmx5dGVpZGwyLmNvcmUitgEKBlNlY3JldBINCgVncm91cBgBIAEoCRIVCg1ncm91cF92ZXJzaW9uGAIgASgJEgsKA2tleRgDIAEoCRI7ChFtb3VudF9yZXF1aXJlbWVudBgEIAEoDjIgLmZseXRlaWRsMi5jb3JlLlNlY3JldC5Nb3VudFR5cGUSDwoHZW52X3ZhchgFIAEoCSIrCglNb3VudFR5cGUSBwoDQU5ZEAASCwoHRU5WX1ZBUhABEggKBEZJTEUQAiJQCgxPQXV0aDJDbGllbnQSE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PQXV0aDJDbGllbnQSHgoWaWRwX2Rpc2NvdmVyeV9lbmRwb2ludBgEIAEoCRIWCg50b2tlbl9lbmRwb2ludBgFIAEoCSIeCgRUeXBlEhYKEkNMSUVOVF9DUkVERU5USUFMUxAAIpgBCg9TZWN1cml0eUNvbnRleHQSKAoGcnVuX2FzGAEgASgLMhguZmx5dGVpZGwyLmNvcmUuSWRlbnRpdHkSJwoHc2VjcmV0cxgCIAMoCzIWLmZseXRlaWRsMi5jb3JlLlNlY3JldBIyCgZ0b2tlbnMYAyADKAsyIi5mbHl0ZWlkbDIuY29yZS5PQXV0aDJUb2tlblJlcXVlc3RCsgEKEmNvbS5mbHl0ZWlkbDIuY29yZUINU2VjdXJpdHlQcm90b0gCUAFaMmdpdGh1Yi5jb20vZmx5dGVvcmcvZmx5dGUvdjIvZ2VuL2dvL2ZseXRlaWRsMi9jb3JlogIDRkNYqgIORmx5dGVpZGwyLkNvcmXKAg5GbHl0ZWlkbDJcQ29yZeICGkZseXRlaWRsMlxDb3JlXEdQQk1ldGFkYXRh6gIPRmx5dGVpZGwyOjpDb3JlYgZwcm90bzM");
14
14
 
15
15
  /**
16
16
  * Secret encapsulates information about the secret a task needs to proceed. An environment variable
@@ -110,6 +110,42 @@ export enum Secret_MountType {
110
110
  export const Secret_MountTypeSchema: GenEnum<Secret_MountType> = /*@__PURE__*/
111
111
  enumDesc(file_flyteidl2_core_security, 0, 0);
112
112
 
113
+ /**
114
+ * @generated from message flyteidl2.core.Connection
115
+ */
116
+ export type Connection = Message<"flyteidl2.core.Connection"> & {
117
+ /**
118
+ * The task type that the connection is used for.
119
+ *
120
+ * @generated from field: string task_type = 1;
121
+ */
122
+ taskType: string;
123
+
124
+ /**
125
+ * The credentials to use for the connection, such as API keys, OAuth2 tokens, etc.
126
+ * The key is the name of the secret, and it's defined in the flytekit.
127
+ * flytekit uses the key to locate the desired secret within the map.
128
+ *
129
+ * @generated from field: map<string, string> secrets = 2;
130
+ */
131
+ secrets: { [key: string]: string };
132
+
133
+ /**
134
+ * The configuration to use for the connection, such as the endpoint, account name, etc.
135
+ * The key is the name of the config, and it's defined in the flytekit.
136
+ *
137
+ * @generated from field: map<string, string> configs = 3;
138
+ */
139
+ configs: { [key: string]: string };
140
+ };
141
+
142
+ /**
143
+ * Describes the message flyteidl2.core.Connection.
144
+ * Use `create(ConnectionSchema)` to create a new message.
145
+ */
146
+ export const ConnectionSchema: GenMessage<Connection> = /*@__PURE__*/
147
+ messageDesc(file_flyteidl2_core_security, 1);
148
+
113
149
  /**
114
150
  * OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task.
115
151
  *
@@ -139,7 +175,7 @@ export type OAuth2Client = Message<"flyteidl2.core.OAuth2Client"> & {
139
175
  * Use `create(OAuth2ClientSchema)` to create a new message.
140
176
  */
141
177
  export const OAuth2ClientSchema: GenMessage<OAuth2Client> = /*@__PURE__*/
142
- messageDesc(file_flyteidl2_core_security, 1);
178
+ messageDesc(file_flyteidl2_core_security, 2);
143
179
 
144
180
  /**
145
181
  * Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the
@@ -183,7 +219,7 @@ export type Identity = Message<"flyteidl2.core.Identity"> & {
183
219
  * Use `create(IdentitySchema)` to create a new message.
184
220
  */
185
221
  export const IdentitySchema: GenMessage<Identity> = /*@__PURE__*/
186
- messageDesc(file_flyteidl2_core_security, 2);
222
+ messageDesc(file_flyteidl2_core_security, 3);
187
223
 
188
224
  /**
189
225
  * OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.
@@ -244,7 +280,7 @@ export type OAuth2TokenRequest = Message<"flyteidl2.core.OAuth2TokenRequest"> &
244
280
  * Use `create(OAuth2TokenRequestSchema)` to create a new message.
245
281
  */
246
282
  export const OAuth2TokenRequestSchema: GenMessage<OAuth2TokenRequest> = /*@__PURE__*/
247
- messageDesc(file_flyteidl2_core_security, 3);
283
+ messageDesc(file_flyteidl2_core_security, 4);
248
284
 
249
285
  /**
250
286
  * Type of the token requested.
@@ -264,7 +300,7 @@ export enum OAuth2TokenRequest_Type {
264
300
  * Describes the enum flyteidl2.core.OAuth2TokenRequest.Type.
265
301
  */
266
302
  export const OAuth2TokenRequest_TypeSchema: GenEnum<OAuth2TokenRequest_Type> = /*@__PURE__*/
267
- enumDesc(file_flyteidl2_core_security, 3, 0);
303
+ enumDesc(file_flyteidl2_core_security, 4, 0);
268
304
 
269
305
  /**
270
306
  * SecurityContext holds security attributes that apply to tasks.
@@ -306,5 +342,5 @@ export type SecurityContext = Message<"flyteidl2.core.SecurityContext"> & {
306
342
  * Use `create(SecurityContextSchema)` to create a new message.
307
343
  */
308
344
  export const SecurityContextSchema: GenMessage<SecurityContext> = /*@__PURE__*/
309
- messageDesc(file_flyteidl2_core_security, 4);
345
+ messageDesc(file_flyteidl2_core_security, 5);
310
346