@flyteorg/flyteidl 1.5.20 → 1.5.22

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/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ | 🗑 As of Oct-23 we moved the development of this component to the [monorepo](https://github.com/flyteorg/flyte). 🗑 |
2
+ | - |
3
+
1
4
  # Flyteidl
2
5
 
3
6
  This is one of the core repositories of Flyte. It contains the Specification of the Flyte Language using protobuf messages, the Backend API specification in gRPC, and Swagger REST. The repo contains the generated clients and protocol message structures in multiple languages. Along with the generated code, the repository also contains the Golang clients for Flyte's backend APIs (the services grouped under FlyteAdmin).
@@ -7254,6 +7254,64 @@ export namespace flyteidl {
7254
7254
  public static verify(message: { [k: string]: any }): (string|null);
7255
7255
  }
7256
7256
 
7257
+ /** Properties of an EventReason. */
7258
+ interface IEventReason {
7259
+
7260
+ /** EventReason reason */
7261
+ reason?: (string|null);
7262
+
7263
+ /** EventReason occurredAt */
7264
+ occurredAt?: (google.protobuf.ITimestamp|null);
7265
+ }
7266
+
7267
+ /** Represents an EventReason. */
7268
+ class EventReason implements IEventReason {
7269
+
7270
+ /**
7271
+ * Constructs a new EventReason.
7272
+ * @param [properties] Properties to set
7273
+ */
7274
+ constructor(properties?: flyteidl.event.IEventReason);
7275
+
7276
+ /** EventReason reason. */
7277
+ public reason: string;
7278
+
7279
+ /** EventReason occurredAt. */
7280
+ public occurredAt?: (google.protobuf.ITimestamp|null);
7281
+
7282
+ /**
7283
+ * Creates a new EventReason instance using the specified properties.
7284
+ * @param [properties] Properties to set
7285
+ * @returns EventReason instance
7286
+ */
7287
+ public static create(properties?: flyteidl.event.IEventReason): flyteidl.event.EventReason;
7288
+
7289
+ /**
7290
+ * Encodes the specified EventReason message. Does not implicitly {@link flyteidl.event.EventReason.verify|verify} messages.
7291
+ * @param message EventReason message or plain object to encode
7292
+ * @param [writer] Writer to encode to
7293
+ * @returns Writer
7294
+ */
7295
+ public static encode(message: flyteidl.event.IEventReason, writer?: $protobuf.Writer): $protobuf.Writer;
7296
+
7297
+ /**
7298
+ * Decodes an EventReason message from the specified reader or buffer.
7299
+ * @param reader Reader or buffer to decode from
7300
+ * @param [length] Message length if known beforehand
7301
+ * @returns EventReason
7302
+ * @throws {Error} If the payload is not a reader or valid buffer
7303
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7304
+ */
7305
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.EventReason;
7306
+
7307
+ /**
7308
+ * Verifies an EventReason message.
7309
+ * @param message Plain object to verify
7310
+ * @returns `null` if valid, otherwise the reason why it is not
7311
+ */
7312
+ public static verify(message: { [k: string]: any }): (string|null);
7313
+ }
7314
+
7257
7315
  /** Properties of a TaskExecutionEvent. */
7258
7316
  interface ITaskExecutionEvent {
7259
7317
 
@@ -7302,6 +7360,9 @@ export namespace flyteidl {
7302
7360
  /** TaskExecutionEvent reason */
7303
7361
  reason?: (string|null);
7304
7362
 
7363
+ /** TaskExecutionEvent reasons */
7364
+ reasons?: (flyteidl.event.IEventReason[]|null);
7365
+
7305
7366
  /** TaskExecutionEvent taskType */
7306
7367
  taskType?: (string|null);
7307
7368
 
@@ -7369,6 +7430,9 @@ export namespace flyteidl {
7369
7430
  /** TaskExecutionEvent reason. */
7370
7431
  public reason: string;
7371
7432
 
7433
+ /** TaskExecutionEvent reasons. */
7434
+ public reasons: flyteidl.event.IEventReason[];
7435
+
7372
7436
  /** TaskExecutionEvent taskType. */
7373
7437
  public taskType: string;
7374
7438
 
@@ -17608,6 +17608,135 @@
17608
17608
  return ParentNodeExecutionMetadata;
17609
17609
  })();
17610
17610
 
17611
+ event.EventReason = (function() {
17612
+
17613
+ /**
17614
+ * Properties of an EventReason.
17615
+ * @memberof flyteidl.event
17616
+ * @interface IEventReason
17617
+ * @property {string|null} [reason] EventReason reason
17618
+ * @property {google.protobuf.ITimestamp|null} [occurredAt] EventReason occurredAt
17619
+ */
17620
+
17621
+ /**
17622
+ * Constructs a new EventReason.
17623
+ * @memberof flyteidl.event
17624
+ * @classdesc Represents an EventReason.
17625
+ * @implements IEventReason
17626
+ * @constructor
17627
+ * @param {flyteidl.event.IEventReason=} [properties] Properties to set
17628
+ */
17629
+ function EventReason(properties) {
17630
+ if (properties)
17631
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17632
+ if (properties[keys[i]] != null)
17633
+ this[keys[i]] = properties[keys[i]];
17634
+ }
17635
+
17636
+ /**
17637
+ * EventReason reason.
17638
+ * @member {string} reason
17639
+ * @memberof flyteidl.event.EventReason
17640
+ * @instance
17641
+ */
17642
+ EventReason.prototype.reason = "";
17643
+
17644
+ /**
17645
+ * EventReason occurredAt.
17646
+ * @member {google.protobuf.ITimestamp|null|undefined} occurredAt
17647
+ * @memberof flyteidl.event.EventReason
17648
+ * @instance
17649
+ */
17650
+ EventReason.prototype.occurredAt = null;
17651
+
17652
+ /**
17653
+ * Creates a new EventReason instance using the specified properties.
17654
+ * @function create
17655
+ * @memberof flyteidl.event.EventReason
17656
+ * @static
17657
+ * @param {flyteidl.event.IEventReason=} [properties] Properties to set
17658
+ * @returns {flyteidl.event.EventReason} EventReason instance
17659
+ */
17660
+ EventReason.create = function create(properties) {
17661
+ return new EventReason(properties);
17662
+ };
17663
+
17664
+ /**
17665
+ * Encodes the specified EventReason message. Does not implicitly {@link flyteidl.event.EventReason.verify|verify} messages.
17666
+ * @function encode
17667
+ * @memberof flyteidl.event.EventReason
17668
+ * @static
17669
+ * @param {flyteidl.event.IEventReason} message EventReason message or plain object to encode
17670
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17671
+ * @returns {$protobuf.Writer} Writer
17672
+ */
17673
+ EventReason.encode = function encode(message, writer) {
17674
+ if (!writer)
17675
+ writer = $Writer.create();
17676
+ if (message.reason != null && message.hasOwnProperty("reason"))
17677
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.reason);
17678
+ if (message.occurredAt != null && message.hasOwnProperty("occurredAt"))
17679
+ $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
17680
+ return writer;
17681
+ };
17682
+
17683
+ /**
17684
+ * Decodes an EventReason message from the specified reader or buffer.
17685
+ * @function decode
17686
+ * @memberof flyteidl.event.EventReason
17687
+ * @static
17688
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17689
+ * @param {number} [length] Message length if known beforehand
17690
+ * @returns {flyteidl.event.EventReason} EventReason
17691
+ * @throws {Error} If the payload is not a reader or valid buffer
17692
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17693
+ */
17694
+ EventReason.decode = function decode(reader, length) {
17695
+ if (!(reader instanceof $Reader))
17696
+ reader = $Reader.create(reader);
17697
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.EventReason();
17698
+ while (reader.pos < end) {
17699
+ var tag = reader.uint32();
17700
+ switch (tag >>> 3) {
17701
+ case 1:
17702
+ message.reason = reader.string();
17703
+ break;
17704
+ case 2:
17705
+ message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
17706
+ break;
17707
+ default:
17708
+ reader.skipType(tag & 7);
17709
+ break;
17710
+ }
17711
+ }
17712
+ return message;
17713
+ };
17714
+
17715
+ /**
17716
+ * Verifies an EventReason message.
17717
+ * @function verify
17718
+ * @memberof flyteidl.event.EventReason
17719
+ * @static
17720
+ * @param {Object.<string,*>} message Plain object to verify
17721
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17722
+ */
17723
+ EventReason.verify = function verify(message) {
17724
+ if (typeof message !== "object" || message === null)
17725
+ return "object expected";
17726
+ if (message.reason != null && message.hasOwnProperty("reason"))
17727
+ if (!$util.isString(message.reason))
17728
+ return "reason: string expected";
17729
+ if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) {
17730
+ var error = $root.google.protobuf.Timestamp.verify(message.occurredAt);
17731
+ if (error)
17732
+ return "occurredAt." + error;
17733
+ }
17734
+ return null;
17735
+ };
17736
+
17737
+ return EventReason;
17738
+ })();
17739
+
17611
17740
  event.TaskExecutionEvent = (function() {
17612
17741
 
17613
17742
  /**
@@ -17629,6 +17758,7 @@
17629
17758
  * @property {google.protobuf.IStruct|null} [customInfo] TaskExecutionEvent customInfo
17630
17759
  * @property {number|null} [phaseVersion] TaskExecutionEvent phaseVersion
17631
17760
  * @property {string|null} [reason] TaskExecutionEvent reason
17761
+ * @property {Array.<flyteidl.event.IEventReason>|null} [reasons] TaskExecutionEvent reasons
17632
17762
  * @property {string|null} [taskType] TaskExecutionEvent taskType
17633
17763
  * @property {flyteidl.event.ITaskExecutionMetadata|null} [metadata] TaskExecutionEvent metadata
17634
17764
  * @property {number|null} [eventVersion] TaskExecutionEvent eventVersion
@@ -17645,6 +17775,7 @@
17645
17775
  */
17646
17776
  function TaskExecutionEvent(properties) {
17647
17777
  this.logs = [];
17778
+ this.reasons = [];
17648
17779
  if (properties)
17649
17780
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17650
17781
  if (properties[keys[i]] != null)
@@ -17771,6 +17902,14 @@
17771
17902
  */
17772
17903
  TaskExecutionEvent.prototype.reason = "";
17773
17904
 
17905
+ /**
17906
+ * TaskExecutionEvent reasons.
17907
+ * @member {Array.<flyteidl.event.IEventReason>} reasons
17908
+ * @memberof flyteidl.event.TaskExecutionEvent
17909
+ * @instance
17910
+ */
17911
+ TaskExecutionEvent.prototype.reasons = $util.emptyArray;
17912
+
17774
17913
  /**
17775
17914
  * TaskExecutionEvent taskType.
17776
17915
  * @member {string} taskType
@@ -17891,6 +18030,9 @@
17891
18030
  $root.flyteidl.core.LiteralMap.encode(message.inputData, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
17892
18031
  if (message.reportedAt != null && message.hasOwnProperty("reportedAt"))
17893
18032
  $root.google.protobuf.Timestamp.encode(message.reportedAt, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
18033
+ if (message.reasons != null && message.reasons.length)
18034
+ for (var i = 0; i < message.reasons.length; ++i)
18035
+ $root.flyteidl.event.EventReason.encode(message.reasons[i], writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
17894
18036
  return writer;
17895
18037
  };
17896
18038
 
@@ -17959,6 +18101,11 @@
17959
18101
  case 13:
17960
18102
  message.reason = reader.string();
17961
18103
  break;
18104
+ case 21:
18105
+ if (!(message.reasons && message.reasons.length))
18106
+ message.reasons = [];
18107
+ message.reasons.push($root.flyteidl.event.EventReason.decode(reader, reader.uint32()));
18108
+ break;
17962
18109
  case 14:
17963
18110
  message.taskType = reader.string();
17964
18111
  break;
@@ -18086,6 +18233,15 @@
18086
18233
  if (message.reason != null && message.hasOwnProperty("reason"))
18087
18234
  if (!$util.isString(message.reason))
18088
18235
  return "reason: string expected";
18236
+ if (message.reasons != null && message.hasOwnProperty("reasons")) {
18237
+ if (!Array.isArray(message.reasons))
18238
+ return "reasons: array expected";
18239
+ for (var i = 0; i < message.reasons.length; ++i) {
18240
+ var error = $root.flyteidl.event.EventReason.verify(message.reasons[i]);
18241
+ if (error)
18242
+ return "reasons." + error;
18243
+ }
18244
+ }
18089
18245
  if (message.taskType != null && message.hasOwnProperty("taskType"))
18090
18246
  if (!$util.isString(message.taskType))
18091
18247
  return "taskType: string expected";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "1.5.20",
3
+ "version": "1.5.22",
4
4
  "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -154,6 +154,14 @@ message ParentNodeExecutionMetadata {
154
154
  string node_id = 1;
155
155
  }
156
156
 
157
+ message EventReason {
158
+ // An explanation for this event
159
+ string reason = 1;
160
+
161
+ // The time this reason occurred
162
+ google.protobuf.Timestamp occurred_at = 2;
163
+ }
164
+
157
165
  // Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob.
158
166
  message TaskExecutionEvent {
159
167
  // ID of the task. In combination with the retryAttempt this will indicate
@@ -180,7 +188,6 @@ message TaskExecutionEvent {
180
188
  // by the executor of the task.
181
189
  google.protobuf.Timestamp occurred_at = 7;
182
190
 
183
-
184
191
  oneof input_value {
185
192
  // URI of the input file, it encodes all the information
186
193
  // including Cloud source provider. ie., s3://...
@@ -211,8 +218,11 @@ message TaskExecutionEvent {
211
218
  uint32 phase_version = 12;
212
219
 
213
220
  // An optional explanation for the phase transition.
214
- string reason = 13;
221
+ // Deprecated: Use reasons instead.
222
+ string reason = 13 [deprecated = true];
215
223
 
224
+ // An optional list of explanations for the phase transition.
225
+ repeated EventReason reasons = 21;
216
226
 
217
227
  // A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
218
228
  // this type will be identical, but not all task executions necessarily use pre-registered definitions and this