@flyteorg/flyteidl 1.3.12 → 1.3.13

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.
@@ -15907,6 +15907,9 @@ export namespace flyteidl {
15907
15907
 
15908
15908
  /** TaskExecutionClosure eventVersion */
15909
15909
  eventVersion?: (number|null);
15910
+
15911
+ /** TaskExecutionClosure reasons */
15912
+ reasons?: (flyteidl.admin.IReason[]|null);
15910
15913
  }
15911
15914
 
15912
15915
  /** Represents a TaskExecutionClosure. */
@@ -15960,6 +15963,9 @@ export namespace flyteidl {
15960
15963
  /** TaskExecutionClosure eventVersion. */
15961
15964
  public eventVersion: number;
15962
15965
 
15966
+ /** TaskExecutionClosure reasons. */
15967
+ public reasons: flyteidl.admin.IReason[];
15968
+
15963
15969
  /** TaskExecutionClosure outputResult. */
15964
15970
  public outputResult?: ("outputUri"|"error"|"outputData");
15965
15971
 
@@ -15996,6 +16002,64 @@ export namespace flyteidl {
15996
16002
  public static verify(message: { [k: string]: any }): (string|null);
15997
16003
  }
15998
16004
 
16005
+ /** Properties of a Reason. */
16006
+ interface IReason {
16007
+
16008
+ /** Reason occurredAt */
16009
+ occurredAt?: (google.protobuf.ITimestamp|null);
16010
+
16011
+ /** Reason message */
16012
+ message?: (string|null);
16013
+ }
16014
+
16015
+ /** Represents a Reason. */
16016
+ class Reason implements IReason {
16017
+
16018
+ /**
16019
+ * Constructs a new Reason.
16020
+ * @param [properties] Properties to set
16021
+ */
16022
+ constructor(properties?: flyteidl.admin.IReason);
16023
+
16024
+ /** Reason occurredAt. */
16025
+ public occurredAt?: (google.protobuf.ITimestamp|null);
16026
+
16027
+ /** Reason message. */
16028
+ public message: string;
16029
+
16030
+ /**
16031
+ * Creates a new Reason instance using the specified properties.
16032
+ * @param [properties] Properties to set
16033
+ * @returns Reason instance
16034
+ */
16035
+ public static create(properties?: flyteidl.admin.IReason): flyteidl.admin.Reason;
16036
+
16037
+ /**
16038
+ * Encodes the specified Reason message. Does not implicitly {@link flyteidl.admin.Reason.verify|verify} messages.
16039
+ * @param message Reason message or plain object to encode
16040
+ * @param [writer] Writer to encode to
16041
+ * @returns Writer
16042
+ */
16043
+ public static encode(message: flyteidl.admin.IReason, writer?: $protobuf.Writer): $protobuf.Writer;
16044
+
16045
+ /**
16046
+ * Decodes a Reason message from the specified reader or buffer.
16047
+ * @param reader Reader or buffer to decode from
16048
+ * @param [length] Message length if known beforehand
16049
+ * @returns Reason
16050
+ * @throws {Error} If the payload is not a reader or valid buffer
16051
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16052
+ */
16053
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Reason;
16054
+
16055
+ /**
16056
+ * Verifies a Reason message.
16057
+ * @param message Plain object to verify
16058
+ * @returns `null` if valid, otherwise the reason why it is not
16059
+ */
16060
+ public static verify(message: { [k: string]: any }): (string|null);
16061
+ }
16062
+
15999
16063
  /** Properties of a TaskExecutionGetDataRequest. */
16000
16064
  interface ITaskExecutionGetDataRequest {
16001
16065
 
@@ -37889,6 +37889,7 @@
37889
37889
  * @property {string|null} [taskType] TaskExecutionClosure taskType
37890
37890
  * @property {flyteidl.event.ITaskExecutionMetadata|null} [metadata] TaskExecutionClosure metadata
37891
37891
  * @property {number|null} [eventVersion] TaskExecutionClosure eventVersion
37892
+ * @property {Array.<flyteidl.admin.IReason>|null} [reasons] TaskExecutionClosure reasons
37892
37893
  */
37893
37894
 
37894
37895
  /**
@@ -37901,6 +37902,7 @@
37901
37902
  */
37902
37903
  function TaskExecutionClosure(properties) {
37903
37904
  this.logs = [];
37905
+ this.reasons = [];
37904
37906
  if (properties)
37905
37907
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
37906
37908
  if (properties[keys[i]] != null)
@@ -38019,6 +38021,14 @@
38019
38021
  */
38020
38022
  TaskExecutionClosure.prototype.eventVersion = 0;
38021
38023
 
38024
+ /**
38025
+ * TaskExecutionClosure reasons.
38026
+ * @member {Array.<flyteidl.admin.IReason>} reasons
38027
+ * @memberof flyteidl.admin.TaskExecutionClosure
38028
+ * @instance
38029
+ */
38030
+ TaskExecutionClosure.prototype.reasons = $util.emptyArray;
38031
+
38022
38032
  // OneOf field names bound to virtual getters and setters
38023
38033
  var $oneOfFields;
38024
38034
 
@@ -38086,6 +38096,9 @@
38086
38096
  $root.flyteidl.event.TaskExecutionMetadata.encode(message.metadata, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
38087
38097
  if (message.eventVersion != null && message.hasOwnProperty("eventVersion"))
38088
38098
  writer.uint32(/* id 17, wireType 0 =*/136).int32(message.eventVersion);
38099
+ if (message.reasons != null && message.reasons.length)
38100
+ for (var i = 0; i < message.reasons.length; ++i)
38101
+ $root.flyteidl.admin.Reason.encode(message.reasons[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
38089
38102
  return writer;
38090
38103
  };
38091
38104
 
@@ -38151,6 +38164,11 @@
38151
38164
  case 17:
38152
38165
  message.eventVersion = reader.int32();
38153
38166
  break;
38167
+ case 18:
38168
+ if (!(message.reasons && message.reasons.length))
38169
+ message.reasons = [];
38170
+ message.reasons.push($root.flyteidl.admin.Reason.decode(reader, reader.uint32()));
38171
+ break;
38154
38172
  default:
38155
38173
  reader.skipType(tag & 7);
38156
38174
  break;
@@ -38258,12 +38276,150 @@
38258
38276
  if (message.eventVersion != null && message.hasOwnProperty("eventVersion"))
38259
38277
  if (!$util.isInteger(message.eventVersion))
38260
38278
  return "eventVersion: integer expected";
38279
+ if (message.reasons != null && message.hasOwnProperty("reasons")) {
38280
+ if (!Array.isArray(message.reasons))
38281
+ return "reasons: array expected";
38282
+ for (var i = 0; i < message.reasons.length; ++i) {
38283
+ var error = $root.flyteidl.admin.Reason.verify(message.reasons[i]);
38284
+ if (error)
38285
+ return "reasons." + error;
38286
+ }
38287
+ }
38261
38288
  return null;
38262
38289
  };
38263
38290
 
38264
38291
  return TaskExecutionClosure;
38265
38292
  })();
38266
38293
 
38294
+ admin.Reason = (function() {
38295
+
38296
+ /**
38297
+ * Properties of a Reason.
38298
+ * @memberof flyteidl.admin
38299
+ * @interface IReason
38300
+ * @property {google.protobuf.ITimestamp|null} [occurredAt] Reason occurredAt
38301
+ * @property {string|null} [message] Reason message
38302
+ */
38303
+
38304
+ /**
38305
+ * Constructs a new Reason.
38306
+ * @memberof flyteidl.admin
38307
+ * @classdesc Represents a Reason.
38308
+ * @implements IReason
38309
+ * @constructor
38310
+ * @param {flyteidl.admin.IReason=} [properties] Properties to set
38311
+ */
38312
+ function Reason(properties) {
38313
+ if (properties)
38314
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
38315
+ if (properties[keys[i]] != null)
38316
+ this[keys[i]] = properties[keys[i]];
38317
+ }
38318
+
38319
+ /**
38320
+ * Reason occurredAt.
38321
+ * @member {google.protobuf.ITimestamp|null|undefined} occurredAt
38322
+ * @memberof flyteidl.admin.Reason
38323
+ * @instance
38324
+ */
38325
+ Reason.prototype.occurredAt = null;
38326
+
38327
+ /**
38328
+ * Reason message.
38329
+ * @member {string} message
38330
+ * @memberof flyteidl.admin.Reason
38331
+ * @instance
38332
+ */
38333
+ Reason.prototype.message = "";
38334
+
38335
+ /**
38336
+ * Creates a new Reason instance using the specified properties.
38337
+ * @function create
38338
+ * @memberof flyteidl.admin.Reason
38339
+ * @static
38340
+ * @param {flyteidl.admin.IReason=} [properties] Properties to set
38341
+ * @returns {flyteidl.admin.Reason} Reason instance
38342
+ */
38343
+ Reason.create = function create(properties) {
38344
+ return new Reason(properties);
38345
+ };
38346
+
38347
+ /**
38348
+ * Encodes the specified Reason message. Does not implicitly {@link flyteidl.admin.Reason.verify|verify} messages.
38349
+ * @function encode
38350
+ * @memberof flyteidl.admin.Reason
38351
+ * @static
38352
+ * @param {flyteidl.admin.IReason} message Reason message or plain object to encode
38353
+ * @param {$protobuf.Writer} [writer] Writer to encode to
38354
+ * @returns {$protobuf.Writer} Writer
38355
+ */
38356
+ Reason.encode = function encode(message, writer) {
38357
+ if (!writer)
38358
+ writer = $Writer.create();
38359
+ if (message.occurredAt != null && message.hasOwnProperty("occurredAt"))
38360
+ $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
38361
+ if (message.message != null && message.hasOwnProperty("message"))
38362
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
38363
+ return writer;
38364
+ };
38365
+
38366
+ /**
38367
+ * Decodes a Reason message from the specified reader or buffer.
38368
+ * @function decode
38369
+ * @memberof flyteidl.admin.Reason
38370
+ * @static
38371
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
38372
+ * @param {number} [length] Message length if known beforehand
38373
+ * @returns {flyteidl.admin.Reason} Reason
38374
+ * @throws {Error} If the payload is not a reader or valid buffer
38375
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38376
+ */
38377
+ Reason.decode = function decode(reader, length) {
38378
+ if (!(reader instanceof $Reader))
38379
+ reader = $Reader.create(reader);
38380
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Reason();
38381
+ while (reader.pos < end) {
38382
+ var tag = reader.uint32();
38383
+ switch (tag >>> 3) {
38384
+ case 1:
38385
+ message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
38386
+ break;
38387
+ case 2:
38388
+ message.message = reader.string();
38389
+ break;
38390
+ default:
38391
+ reader.skipType(tag & 7);
38392
+ break;
38393
+ }
38394
+ }
38395
+ return message;
38396
+ };
38397
+
38398
+ /**
38399
+ * Verifies a Reason message.
38400
+ * @function verify
38401
+ * @memberof flyteidl.admin.Reason
38402
+ * @static
38403
+ * @param {Object.<string,*>} message Plain object to verify
38404
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
38405
+ */
38406
+ Reason.verify = function verify(message) {
38407
+ if (typeof message !== "object" || message === null)
38408
+ return "object expected";
38409
+ if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) {
38410
+ var error = $root.google.protobuf.Timestamp.verify(message.occurredAt);
38411
+ if (error)
38412
+ return "occurredAt." + error;
38413
+ }
38414
+ if (message.message != null && message.hasOwnProperty("message"))
38415
+ if (!$util.isString(message.message))
38416
+ return "message: string expected";
38417
+ return null;
38418
+ };
38419
+
38420
+ return Reason;
38421
+ })();
38422
+
38267
38423
  admin.TaskExecutionGetDataRequest = (function() {
38268
38424
 
38269
38425
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "1.3.12",
3
+ "version": "1.3.13",
4
4
  "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -123,6 +123,19 @@ message TaskExecutionClosure {
123
123
  // TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
124
124
  // in this message.
125
125
  int32 event_version = 17;
126
+
127
+ // A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
128
+ // as previously done, is much more valuable in visualizing and understanding historical evaluations.
129
+ repeated Reason reasons = 18;
130
+ }
131
+
132
+ // Reason is a single message annotated with a timestamp to indicate the instant the reason occurred.
133
+ message Reason {
134
+ // occurred_at is the timestamp indicating the instant that this reason happened.
135
+ google.protobuf.Timestamp occurred_at = 1;
136
+
137
+ // message is the explanation for the most recent phase transition or status update.
138
+ string message = 2;
126
139
  }
127
140
 
128
141
  // Request structure to fetch inputs and output for a task execution.