@flyteorg/flyteidl 1.15.0 → 1.15.2

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.
@@ -4598,6 +4598,9 @@ export namespace flyteidl {
4598
4598
 
4599
4599
  /** ArrayNode dataMode */
4600
4600
  dataMode?: (flyteidl.core.ArrayNode.DataMode|null);
4601
+
4602
+ /** ArrayNode boundInputs */
4603
+ boundInputs?: (string[]|null);
4601
4604
  }
4602
4605
 
4603
4606
  /** Represents an ArrayNode. */
@@ -4630,6 +4633,9 @@ export namespace flyteidl {
4630
4633
  /** ArrayNode dataMode. */
4631
4634
  public dataMode: flyteidl.core.ArrayNode.DataMode;
4632
4635
 
4636
+ /** ArrayNode boundInputs. */
4637
+ public boundInputs: string[];
4638
+
4633
4639
  /** ArrayNode parallelismOption. */
4634
4640
  public parallelismOption?: "parallelism";
4635
4641
 
@@ -10060,6 +10066,9 @@ export namespace flyteidl {
10060
10066
 
10061
10067
  /** GetTaskRequest taskCategory */
10062
10068
  taskCategory?: (flyteidl.admin.ITaskCategory|null);
10069
+
10070
+ /** GetTaskRequest outputPrefix */
10071
+ outputPrefix?: (string|null);
10063
10072
  }
10064
10073
 
10065
10074
  /** Represents a GetTaskRequest. */
@@ -10080,6 +10089,9 @@ export namespace flyteidl {
10080
10089
  /** GetTaskRequest taskCategory. */
10081
10090
  public taskCategory?: (flyteidl.admin.ITaskCategory|null);
10082
10091
 
10092
+ /** GetTaskRequest outputPrefix. */
10093
+ public outputPrefix: string;
10094
+
10083
10095
  /**
10084
10096
  * Creates a new GetTaskRequest instance using the specified properties.
10085
10097
  * @param [properties] Properties to set
@@ -10961,11 +10973,85 @@ export namespace flyteidl {
10961
10973
  public static verify(message: { [k: string]: any }): (string|null);
10962
10974
  }
10963
10975
 
10976
+ /** LogLineOriginator enum. */
10977
+ enum LogLineOriginator {
10978
+ UNKNOWN = 0,
10979
+ USER = 1,
10980
+ SYSTEM = 2
10981
+ }
10982
+
10983
+ /** Properties of a LogLine. */
10984
+ interface ILogLine {
10985
+
10986
+ /** LogLine timestamp */
10987
+ timestamp?: (google.protobuf.ITimestamp|null);
10988
+
10989
+ /** LogLine message */
10990
+ message?: (string|null);
10991
+
10992
+ /** LogLine originator */
10993
+ originator?: (flyteidl.admin.LogLineOriginator|null);
10994
+ }
10995
+
10996
+ /** Represents a LogLine. */
10997
+ class LogLine implements ILogLine {
10998
+
10999
+ /**
11000
+ * Constructs a new LogLine.
11001
+ * @param [properties] Properties to set
11002
+ */
11003
+ constructor(properties?: flyteidl.admin.ILogLine);
11004
+
11005
+ /** LogLine timestamp. */
11006
+ public timestamp?: (google.protobuf.ITimestamp|null);
11007
+
11008
+ /** LogLine message. */
11009
+ public message: string;
11010
+
11011
+ /** LogLine originator. */
11012
+ public originator: flyteidl.admin.LogLineOriginator;
11013
+
11014
+ /**
11015
+ * Creates a new LogLine instance using the specified properties.
11016
+ * @param [properties] Properties to set
11017
+ * @returns LogLine instance
11018
+ */
11019
+ public static create(properties?: flyteidl.admin.ILogLine): flyteidl.admin.LogLine;
11020
+
11021
+ /**
11022
+ * Encodes the specified LogLine message. Does not implicitly {@link flyteidl.admin.LogLine.verify|verify} messages.
11023
+ * @param message LogLine message or plain object to encode
11024
+ * @param [writer] Writer to encode to
11025
+ * @returns Writer
11026
+ */
11027
+ public static encode(message: flyteidl.admin.ILogLine, writer?: $protobuf.Writer): $protobuf.Writer;
11028
+
11029
+ /**
11030
+ * Decodes a LogLine message from the specified reader or buffer.
11031
+ * @param reader Reader or buffer to decode from
11032
+ * @param [length] Message length if known beforehand
11033
+ * @returns LogLine
11034
+ * @throws {Error} If the payload is not a reader or valid buffer
11035
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11036
+ */
11037
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LogLine;
11038
+
11039
+ /**
11040
+ * Verifies a LogLine message.
11041
+ * @param message Plain object to verify
11042
+ * @returns `null` if valid, otherwise the reason why it is not
11043
+ */
11044
+ public static verify(message: { [k: string]: any }): (string|null);
11045
+ }
11046
+
10964
11047
  /** Properties of a GetTaskLogsResponseBody. */
10965
11048
  interface IGetTaskLogsResponseBody {
10966
11049
 
10967
11050
  /** GetTaskLogsResponseBody results */
10968
11051
  results?: (string[]|null);
11052
+
11053
+ /** GetTaskLogsResponseBody structuredLines */
11054
+ structuredLines?: (flyteidl.admin.ILogLine[]|null);
10969
11055
  }
10970
11056
 
10971
11057
  /** Represents a GetTaskLogsResponseBody. */
@@ -10980,6 +11066,9 @@ export namespace flyteidl {
10980
11066
  /** GetTaskLogsResponseBody results. */
10981
11067
  public results: string[];
10982
11068
 
11069
+ /** GetTaskLogsResponseBody structuredLines. */
11070
+ public structuredLines: flyteidl.admin.ILogLine[];
11071
+
10983
11072
  /**
10984
11073
  * Creates a new GetTaskLogsResponseBody instance using the specified properties.
10985
11074
  * @param [properties] Properties to set
@@ -12064,6 +12153,9 @@ export namespace flyteidl {
12064
12153
 
12065
12154
  /** EmailNotification recipientsEmail */
12066
12155
  recipientsEmail?: (string[]|null);
12156
+
12157
+ /** EmailNotification template */
12158
+ template?: (string|null);
12067
12159
  }
12068
12160
 
12069
12161
  /** Represents an EmailNotification. */
@@ -12078,6 +12170,9 @@ export namespace flyteidl {
12078
12170
  /** EmailNotification recipientsEmail. */
12079
12171
  public recipientsEmail: string[];
12080
12172
 
12173
+ /** EmailNotification template. */
12174
+ public template: string;
12175
+
12081
12176
  /**
12082
12177
  * Creates a new EmailNotification instance using the specified properties.
12083
12178
  * @param [properties] Properties to set
@@ -12116,6 +12211,9 @@ export namespace flyteidl {
12116
12211
 
12117
12212
  /** PagerDutyNotification recipientsEmail */
12118
12213
  recipientsEmail?: (string[]|null);
12214
+
12215
+ /** PagerDutyNotification template */
12216
+ template?: (string|null);
12119
12217
  }
12120
12218
 
12121
12219
  /** Represents a PagerDutyNotification. */
@@ -12130,6 +12228,9 @@ export namespace flyteidl {
12130
12228
  /** PagerDutyNotification recipientsEmail. */
12131
12229
  public recipientsEmail: string[];
12132
12230
 
12231
+ /** PagerDutyNotification template. */
12232
+ public template: string;
12233
+
12133
12234
  /**
12134
12235
  * Creates a new PagerDutyNotification instance using the specified properties.
12135
12236
  * @param [properties] Properties to set
@@ -12168,6 +12269,9 @@ export namespace flyteidl {
12168
12269
 
12169
12270
  /** SlackNotification recipientsEmail */
12170
12271
  recipientsEmail?: (string[]|null);
12272
+
12273
+ /** SlackNotification template */
12274
+ template?: (string|null);
12171
12275
  }
12172
12276
 
12173
12277
  /** Represents a SlackNotification. */
@@ -12182,6 +12286,9 @@ export namespace flyteidl {
12182
12286
  /** SlackNotification recipientsEmail. */
12183
12287
  public recipientsEmail: string[];
12184
12288
 
12289
+ /** SlackNotification template. */
12290
+ public template: string;
12291
+
12185
12292
  /**
12186
12293
  * Creates a new SlackNotification instance using the specified properties.
12187
12294
  * @param [properties] Properties to set
@@ -11008,6 +11008,7 @@
11008
11008
  * @property {flyteidl.core.ArrayNode.ExecutionMode|null} [executionMode] ArrayNode executionMode
11009
11009
  * @property {google.protobuf.IBoolValue|null} [isOriginalSubNodeInterface] ArrayNode isOriginalSubNodeInterface
11010
11010
  * @property {flyteidl.core.ArrayNode.DataMode|null} [dataMode] ArrayNode dataMode
11011
+ * @property {Array.<string>|null} [boundInputs] ArrayNode boundInputs
11011
11012
  */
11012
11013
 
11013
11014
  /**
@@ -11019,6 +11020,7 @@
11019
11020
  * @param {flyteidl.core.IArrayNode=} [properties] Properties to set
11020
11021
  */
11021
11022
  function ArrayNode(properties) {
11023
+ this.boundInputs = [];
11022
11024
  if (properties)
11023
11025
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
11024
11026
  if (properties[keys[i]] != null)
@@ -11081,6 +11083,14 @@
11081
11083
  */
11082
11084
  ArrayNode.prototype.dataMode = 0;
11083
11085
 
11086
+ /**
11087
+ * ArrayNode boundInputs.
11088
+ * @member {Array.<string>} boundInputs
11089
+ * @memberof flyteidl.core.ArrayNode
11090
+ * @instance
11091
+ */
11092
+ ArrayNode.prototype.boundInputs = $util.emptyArray;
11093
+
11084
11094
  // OneOf field names bound to virtual getters and setters
11085
11095
  var $oneOfFields;
11086
11096
 
@@ -11144,6 +11154,9 @@
11144
11154
  $root.google.protobuf.BoolValue.encode(message.isOriginalSubNodeInterface, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
11145
11155
  if (message.dataMode != null && message.hasOwnProperty("dataMode"))
11146
11156
  writer.uint32(/* id 7, wireType 0 =*/56).int32(message.dataMode);
11157
+ if (message.boundInputs != null && message.boundInputs.length)
11158
+ for (var i = 0; i < message.boundInputs.length; ++i)
11159
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.boundInputs[i]);
11147
11160
  return writer;
11148
11161
  };
11149
11162
 
@@ -11186,6 +11199,11 @@
11186
11199
  case 7:
11187
11200
  message.dataMode = reader.int32();
11188
11201
  break;
11202
+ case 8:
11203
+ if (!(message.boundInputs && message.boundInputs.length))
11204
+ message.boundInputs = [];
11205
+ message.boundInputs.push(reader.string());
11206
+ break;
11189
11207
  default:
11190
11208
  reader.skipType(tag & 7);
11191
11209
  break;
@@ -11249,6 +11267,13 @@
11249
11267
  case 1:
11250
11268
  break;
11251
11269
  }
11270
+ if (message.boundInputs != null && message.hasOwnProperty("boundInputs")) {
11271
+ if (!Array.isArray(message.boundInputs))
11272
+ return "boundInputs: array expected";
11273
+ for (var i = 0; i < message.boundInputs.length; ++i)
11274
+ if (!$util.isString(message.boundInputs[i]))
11275
+ return "boundInputs: string[] expected";
11276
+ }
11252
11277
  return null;
11253
11278
  };
11254
11279
 
@@ -24804,6 +24829,7 @@
24804
24829
  * @property {string|null} [taskType] GetTaskRequest taskType
24805
24830
  * @property {Uint8Array|null} [resourceMeta] GetTaskRequest resourceMeta
24806
24831
  * @property {flyteidl.admin.ITaskCategory|null} [taskCategory] GetTaskRequest taskCategory
24832
+ * @property {string|null} [outputPrefix] GetTaskRequest outputPrefix
24807
24833
  */
24808
24834
 
24809
24835
  /**
@@ -24845,6 +24871,14 @@
24845
24871
  */
24846
24872
  GetTaskRequest.prototype.taskCategory = null;
24847
24873
 
24874
+ /**
24875
+ * GetTaskRequest outputPrefix.
24876
+ * @member {string} outputPrefix
24877
+ * @memberof flyteidl.admin.GetTaskRequest
24878
+ * @instance
24879
+ */
24880
+ GetTaskRequest.prototype.outputPrefix = "";
24881
+
24848
24882
  /**
24849
24883
  * Creates a new GetTaskRequest instance using the specified properties.
24850
24884
  * @function create
@@ -24875,6 +24909,8 @@
24875
24909
  writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta);
24876
24910
  if (message.taskCategory != null && message.hasOwnProperty("taskCategory"))
24877
24911
  $root.flyteidl.admin.TaskCategory.encode(message.taskCategory, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
24912
+ if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix"))
24913
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.outputPrefix);
24878
24914
  return writer;
24879
24915
  };
24880
24916
 
@@ -24905,6 +24941,9 @@
24905
24941
  case 3:
24906
24942
  message.taskCategory = $root.flyteidl.admin.TaskCategory.decode(reader, reader.uint32());
24907
24943
  break;
24944
+ case 4:
24945
+ message.outputPrefix = reader.string();
24946
+ break;
24908
24947
  default:
24909
24948
  reader.skipType(tag & 7);
24910
24949
  break;
@@ -24935,6 +24974,9 @@
24935
24974
  if (error)
24936
24975
  return "taskCategory." + error;
24937
24976
  }
24977
+ if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix"))
24978
+ if (!$util.isString(message.outputPrefix))
24979
+ return "outputPrefix: string expected";
24938
24980
  return null;
24939
24981
  };
24940
24982
 
@@ -26918,6 +26960,174 @@
26918
26960
  return GetTaskLogsResponseHeader;
26919
26961
  })();
26920
26962
 
26963
+ /**
26964
+ * LogLineOriginator enum.
26965
+ * @name flyteidl.admin.LogLineOriginator
26966
+ * @enum {string}
26967
+ * @property {number} UNKNOWN=0 UNKNOWN value
26968
+ * @property {number} USER=1 USER value
26969
+ * @property {number} SYSTEM=2 SYSTEM value
26970
+ */
26971
+ admin.LogLineOriginator = (function() {
26972
+ var valuesById = {}, values = Object.create(valuesById);
26973
+ values[valuesById[0] = "UNKNOWN"] = 0;
26974
+ values[valuesById[1] = "USER"] = 1;
26975
+ values[valuesById[2] = "SYSTEM"] = 2;
26976
+ return values;
26977
+ })();
26978
+
26979
+ admin.LogLine = (function() {
26980
+
26981
+ /**
26982
+ * Properties of a LogLine.
26983
+ * @memberof flyteidl.admin
26984
+ * @interface ILogLine
26985
+ * @property {google.protobuf.ITimestamp|null} [timestamp] LogLine timestamp
26986
+ * @property {string|null} [message] LogLine message
26987
+ * @property {flyteidl.admin.LogLineOriginator|null} [originator] LogLine originator
26988
+ */
26989
+
26990
+ /**
26991
+ * Constructs a new LogLine.
26992
+ * @memberof flyteidl.admin
26993
+ * @classdesc Represents a LogLine.
26994
+ * @implements ILogLine
26995
+ * @constructor
26996
+ * @param {flyteidl.admin.ILogLine=} [properties] Properties to set
26997
+ */
26998
+ function LogLine(properties) {
26999
+ if (properties)
27000
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
27001
+ if (properties[keys[i]] != null)
27002
+ this[keys[i]] = properties[keys[i]];
27003
+ }
27004
+
27005
+ /**
27006
+ * LogLine timestamp.
27007
+ * @member {google.protobuf.ITimestamp|null|undefined} timestamp
27008
+ * @memberof flyteidl.admin.LogLine
27009
+ * @instance
27010
+ */
27011
+ LogLine.prototype.timestamp = null;
27012
+
27013
+ /**
27014
+ * LogLine message.
27015
+ * @member {string} message
27016
+ * @memberof flyteidl.admin.LogLine
27017
+ * @instance
27018
+ */
27019
+ LogLine.prototype.message = "";
27020
+
27021
+ /**
27022
+ * LogLine originator.
27023
+ * @member {flyteidl.admin.LogLineOriginator} originator
27024
+ * @memberof flyteidl.admin.LogLine
27025
+ * @instance
27026
+ */
27027
+ LogLine.prototype.originator = 0;
27028
+
27029
+ /**
27030
+ * Creates a new LogLine instance using the specified properties.
27031
+ * @function create
27032
+ * @memberof flyteidl.admin.LogLine
27033
+ * @static
27034
+ * @param {flyteidl.admin.ILogLine=} [properties] Properties to set
27035
+ * @returns {flyteidl.admin.LogLine} LogLine instance
27036
+ */
27037
+ LogLine.create = function create(properties) {
27038
+ return new LogLine(properties);
27039
+ };
27040
+
27041
+ /**
27042
+ * Encodes the specified LogLine message. Does not implicitly {@link flyteidl.admin.LogLine.verify|verify} messages.
27043
+ * @function encode
27044
+ * @memberof flyteidl.admin.LogLine
27045
+ * @static
27046
+ * @param {flyteidl.admin.ILogLine} message LogLine message or plain object to encode
27047
+ * @param {$protobuf.Writer} [writer] Writer to encode to
27048
+ * @returns {$protobuf.Writer} Writer
27049
+ */
27050
+ LogLine.encode = function encode(message, writer) {
27051
+ if (!writer)
27052
+ writer = $Writer.create();
27053
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
27054
+ $root.google.protobuf.Timestamp.encode(message.timestamp, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
27055
+ if (message.message != null && message.hasOwnProperty("message"))
27056
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
27057
+ if (message.originator != null && message.hasOwnProperty("originator"))
27058
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.originator);
27059
+ return writer;
27060
+ };
27061
+
27062
+ /**
27063
+ * Decodes a LogLine message from the specified reader or buffer.
27064
+ * @function decode
27065
+ * @memberof flyteidl.admin.LogLine
27066
+ * @static
27067
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
27068
+ * @param {number} [length] Message length if known beforehand
27069
+ * @returns {flyteidl.admin.LogLine} LogLine
27070
+ * @throws {Error} If the payload is not a reader or valid buffer
27071
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27072
+ */
27073
+ LogLine.decode = function decode(reader, length) {
27074
+ if (!(reader instanceof $Reader))
27075
+ reader = $Reader.create(reader);
27076
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LogLine();
27077
+ while (reader.pos < end) {
27078
+ var tag = reader.uint32();
27079
+ switch (tag >>> 3) {
27080
+ case 1:
27081
+ message.timestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
27082
+ break;
27083
+ case 2:
27084
+ message.message = reader.string();
27085
+ break;
27086
+ case 3:
27087
+ message.originator = reader.int32();
27088
+ break;
27089
+ default:
27090
+ reader.skipType(tag & 7);
27091
+ break;
27092
+ }
27093
+ }
27094
+ return message;
27095
+ };
27096
+
27097
+ /**
27098
+ * Verifies a LogLine message.
27099
+ * @function verify
27100
+ * @memberof flyteidl.admin.LogLine
27101
+ * @static
27102
+ * @param {Object.<string,*>} message Plain object to verify
27103
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
27104
+ */
27105
+ LogLine.verify = function verify(message) {
27106
+ if (typeof message !== "object" || message === null)
27107
+ return "object expected";
27108
+ if (message.timestamp != null && message.hasOwnProperty("timestamp")) {
27109
+ var error = $root.google.protobuf.Timestamp.verify(message.timestamp);
27110
+ if (error)
27111
+ return "timestamp." + error;
27112
+ }
27113
+ if (message.message != null && message.hasOwnProperty("message"))
27114
+ if (!$util.isString(message.message))
27115
+ return "message: string expected";
27116
+ if (message.originator != null && message.hasOwnProperty("originator"))
27117
+ switch (message.originator) {
27118
+ default:
27119
+ return "originator: enum value expected";
27120
+ case 0:
27121
+ case 1:
27122
+ case 2:
27123
+ break;
27124
+ }
27125
+ return null;
27126
+ };
27127
+
27128
+ return LogLine;
27129
+ })();
27130
+
26921
27131
  admin.GetTaskLogsResponseBody = (function() {
26922
27132
 
26923
27133
  /**
@@ -26925,6 +27135,7 @@
26925
27135
  * @memberof flyteidl.admin
26926
27136
  * @interface IGetTaskLogsResponseBody
26927
27137
  * @property {Array.<string>|null} [results] GetTaskLogsResponseBody results
27138
+ * @property {Array.<flyteidl.admin.ILogLine>|null} [structuredLines] GetTaskLogsResponseBody structuredLines
26928
27139
  */
26929
27140
 
26930
27141
  /**
@@ -26937,6 +27148,7 @@
26937
27148
  */
26938
27149
  function GetTaskLogsResponseBody(properties) {
26939
27150
  this.results = [];
27151
+ this.structuredLines = [];
26940
27152
  if (properties)
26941
27153
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
26942
27154
  if (properties[keys[i]] != null)
@@ -26951,6 +27163,14 @@
26951
27163
  */
26952
27164
  GetTaskLogsResponseBody.prototype.results = $util.emptyArray;
26953
27165
 
27166
+ /**
27167
+ * GetTaskLogsResponseBody structuredLines.
27168
+ * @member {Array.<flyteidl.admin.ILogLine>} structuredLines
27169
+ * @memberof flyteidl.admin.GetTaskLogsResponseBody
27170
+ * @instance
27171
+ */
27172
+ GetTaskLogsResponseBody.prototype.structuredLines = $util.emptyArray;
27173
+
26954
27174
  /**
26955
27175
  * Creates a new GetTaskLogsResponseBody instance using the specified properties.
26956
27176
  * @function create
@@ -26978,6 +27198,9 @@
26978
27198
  if (message.results != null && message.results.length)
26979
27199
  for (var i = 0; i < message.results.length; ++i)
26980
27200
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]);
27201
+ if (message.structuredLines != null && message.structuredLines.length)
27202
+ for (var i = 0; i < message.structuredLines.length; ++i)
27203
+ $root.flyteidl.admin.LogLine.encode(message.structuredLines[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
26981
27204
  return writer;
26982
27205
  };
26983
27206
 
@@ -27004,6 +27227,11 @@
27004
27227
  message.results = [];
27005
27228
  message.results.push(reader.string());
27006
27229
  break;
27230
+ case 2:
27231
+ if (!(message.structuredLines && message.structuredLines.length))
27232
+ message.structuredLines = [];
27233
+ message.structuredLines.push($root.flyteidl.admin.LogLine.decode(reader, reader.uint32()));
27234
+ break;
27007
27235
  default:
27008
27236
  reader.skipType(tag & 7);
27009
27237
  break;
@@ -27030,6 +27258,15 @@
27030
27258
  if (!$util.isString(message.results[i]))
27031
27259
  return "results: string[] expected";
27032
27260
  }
27261
+ if (message.structuredLines != null && message.hasOwnProperty("structuredLines")) {
27262
+ if (!Array.isArray(message.structuredLines))
27263
+ return "structuredLines: array expected";
27264
+ for (var i = 0; i < message.structuredLines.length; ++i) {
27265
+ var error = $root.flyteidl.admin.LogLine.verify(message.structuredLines[i]);
27266
+ if (error)
27267
+ return "structuredLines." + error;
27268
+ }
27269
+ }
27033
27270
  return null;
27034
27271
  };
27035
27272
 
@@ -29495,6 +29732,7 @@
29495
29732
  * @memberof flyteidl.admin
29496
29733
  * @interface IEmailNotification
29497
29734
  * @property {Array.<string>|null} [recipientsEmail] EmailNotification recipientsEmail
29735
+ * @property {string|null} [template] EmailNotification template
29498
29736
  */
29499
29737
 
29500
29738
  /**
@@ -29521,6 +29759,14 @@
29521
29759
  */
29522
29760
  EmailNotification.prototype.recipientsEmail = $util.emptyArray;
29523
29761
 
29762
+ /**
29763
+ * EmailNotification template.
29764
+ * @member {string} template
29765
+ * @memberof flyteidl.admin.EmailNotification
29766
+ * @instance
29767
+ */
29768
+ EmailNotification.prototype.template = "";
29769
+
29524
29770
  /**
29525
29771
  * Creates a new EmailNotification instance using the specified properties.
29526
29772
  * @function create
@@ -29548,6 +29794,8 @@
29548
29794
  if (message.recipientsEmail != null && message.recipientsEmail.length)
29549
29795
  for (var i = 0; i < message.recipientsEmail.length; ++i)
29550
29796
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]);
29797
+ if (message.template != null && message.hasOwnProperty("template"))
29798
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.template);
29551
29799
  return writer;
29552
29800
  };
29553
29801
 
@@ -29574,6 +29822,9 @@
29574
29822
  message.recipientsEmail = [];
29575
29823
  message.recipientsEmail.push(reader.string());
29576
29824
  break;
29825
+ case 2:
29826
+ message.template = reader.string();
29827
+ break;
29577
29828
  default:
29578
29829
  reader.skipType(tag & 7);
29579
29830
  break;
@@ -29600,6 +29851,9 @@
29600
29851
  if (!$util.isString(message.recipientsEmail[i]))
29601
29852
  return "recipientsEmail: string[] expected";
29602
29853
  }
29854
+ if (message.template != null && message.hasOwnProperty("template"))
29855
+ if (!$util.isString(message.template))
29856
+ return "template: string expected";
29603
29857
  return null;
29604
29858
  };
29605
29859
 
@@ -29613,6 +29867,7 @@
29613
29867
  * @memberof flyteidl.admin
29614
29868
  * @interface IPagerDutyNotification
29615
29869
  * @property {Array.<string>|null} [recipientsEmail] PagerDutyNotification recipientsEmail
29870
+ * @property {string|null} [template] PagerDutyNotification template
29616
29871
  */
29617
29872
 
29618
29873
  /**
@@ -29639,6 +29894,14 @@
29639
29894
  */
29640
29895
  PagerDutyNotification.prototype.recipientsEmail = $util.emptyArray;
29641
29896
 
29897
+ /**
29898
+ * PagerDutyNotification template.
29899
+ * @member {string} template
29900
+ * @memberof flyteidl.admin.PagerDutyNotification
29901
+ * @instance
29902
+ */
29903
+ PagerDutyNotification.prototype.template = "";
29904
+
29642
29905
  /**
29643
29906
  * Creates a new PagerDutyNotification instance using the specified properties.
29644
29907
  * @function create
@@ -29666,6 +29929,8 @@
29666
29929
  if (message.recipientsEmail != null && message.recipientsEmail.length)
29667
29930
  for (var i = 0; i < message.recipientsEmail.length; ++i)
29668
29931
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]);
29932
+ if (message.template != null && message.hasOwnProperty("template"))
29933
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.template);
29669
29934
  return writer;
29670
29935
  };
29671
29936
 
@@ -29692,6 +29957,9 @@
29692
29957
  message.recipientsEmail = [];
29693
29958
  message.recipientsEmail.push(reader.string());
29694
29959
  break;
29960
+ case 2:
29961
+ message.template = reader.string();
29962
+ break;
29695
29963
  default:
29696
29964
  reader.skipType(tag & 7);
29697
29965
  break;
@@ -29718,6 +29986,9 @@
29718
29986
  if (!$util.isString(message.recipientsEmail[i]))
29719
29987
  return "recipientsEmail: string[] expected";
29720
29988
  }
29989
+ if (message.template != null && message.hasOwnProperty("template"))
29990
+ if (!$util.isString(message.template))
29991
+ return "template: string expected";
29721
29992
  return null;
29722
29993
  };
29723
29994
 
@@ -29731,6 +30002,7 @@
29731
30002
  * @memberof flyteidl.admin
29732
30003
  * @interface ISlackNotification
29733
30004
  * @property {Array.<string>|null} [recipientsEmail] SlackNotification recipientsEmail
30005
+ * @property {string|null} [template] SlackNotification template
29734
30006
  */
29735
30007
 
29736
30008
  /**
@@ -29757,6 +30029,14 @@
29757
30029
  */
29758
30030
  SlackNotification.prototype.recipientsEmail = $util.emptyArray;
29759
30031
 
30032
+ /**
30033
+ * SlackNotification template.
30034
+ * @member {string} template
30035
+ * @memberof flyteidl.admin.SlackNotification
30036
+ * @instance
30037
+ */
30038
+ SlackNotification.prototype.template = "";
30039
+
29760
30040
  /**
29761
30041
  * Creates a new SlackNotification instance using the specified properties.
29762
30042
  * @function create
@@ -29784,6 +30064,8 @@
29784
30064
  if (message.recipientsEmail != null && message.recipientsEmail.length)
29785
30065
  for (var i = 0; i < message.recipientsEmail.length; ++i)
29786
30066
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]);
30067
+ if (message.template != null && message.hasOwnProperty("template"))
30068
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.template);
29787
30069
  return writer;
29788
30070
  };
29789
30071
 
@@ -29810,6 +30092,9 @@
29810
30092
  message.recipientsEmail = [];
29811
30093
  message.recipientsEmail.push(reader.string());
29812
30094
  break;
30095
+ case 2:
30096
+ message.template = reader.string();
30097
+ break;
29813
30098
  default:
29814
30099
  reader.skipType(tag & 7);
29815
30100
  break;
@@ -29836,6 +30121,9 @@
29836
30121
  if (!$util.isString(message.recipientsEmail[i]))
29837
30122
  return "recipientsEmail: string[] expected";
29838
30123
  }
30124
+ if (message.template != null && message.hasOwnProperty("template"))
30125
+ if (!$util.isString(message.template))
30126
+ return "template: string expected";
29839
30127
  return null;
29840
30128
  };
29841
30129
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "1.15.0",
3
+ "version": "1.15.2",
4
4
  "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -110,12 +110,15 @@ message ExecuteTaskSyncResponse {
110
110
 
111
111
  // A message used to fetch a job resource from flyte agent server.
112
112
  message GetTaskRequest {
113
+ reserved 5;
113
114
  // A predefined yet extensible Task type identifier.
114
115
  string task_type = 1 [deprecated = true];
115
116
  // Metadata about the resource to be pass to the agent.
116
117
  bytes resource_meta = 2;
117
118
  // A predefined yet extensible Task type identifier.
118
119
  TaskCategory task_category = 3;
120
+ // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
121
+ string output_prefix = 4;
119
122
  }
120
123
 
121
124
  // Response to get an individual task resource.
@@ -246,9 +249,36 @@ message GetTaskLogsResponseHeader {
246
249
  string token = 1;
247
250
  }
248
251
 
252
+ enum LogLineOriginator {
253
+ // The originator of the log line is unknown.
254
+ UNKNOWN = 0;
255
+
256
+ // The originator of the log line is the user application.
257
+ USER = 1;
258
+
259
+ // The originator of the log line is the system.
260
+ SYSTEM = 2;
261
+ }
262
+
263
+ message LogLine {
264
+ google.protobuf.Timestamp timestamp = 1;
265
+
266
+ // Each line is separated by either CRLF, CR or LF, which are included
267
+ // at the ends of the lines. This lets clients know whether log emitter
268
+ // wanted to overwrite the previous line (LF) or append a new line (CRLF).
269
+ string message = 2;
270
+
271
+ LogLineOriginator originator = 3;
272
+ }
273
+
249
274
  message GetTaskLogsResponseBody {
250
275
  // The execution log results.
251
- repeated string results = 1;
276
+ repeated string results = 1 [deprecated = true];
277
+
278
+ // Each line is separated by either CRLF, CR or LF, which are included
279
+ // at the ends of the lines. This lets clients know whether log emitter
280
+ // wanted to overwrite the previous line (LF) or append a new line (CRLF).
281
+ repeated LogLine structured_lines = 2;
252
282
  }
253
283
 
254
284
  // A response containing the logs for a task execution.
@@ -229,6 +229,9 @@ message EmailNotification {
229
229
  // The list of email addresses recipients for this notification.
230
230
  // +required
231
231
  repeated string recipients_email = 1;
232
+ // The template to use for this notification.
233
+ // +optional
234
+ string template = 2;
232
235
  }
233
236
 
234
237
  // Defines a pager duty notification specification.
@@ -236,6 +239,9 @@ message PagerDutyNotification {
236
239
  // Currently, PagerDuty notifications leverage email to trigger a notification.
237
240
  // +required
238
241
  repeated string recipients_email = 1;
242
+ // The template to use for this notification.
243
+ // +optional
244
+ string template = 2;
239
245
  }
240
246
 
241
247
  // Defines a slack notification specification.
@@ -243,6 +249,9 @@ message SlackNotification {
243
249
  // Currently, Slack notifications leverage email to trigger a notification.
244
250
  // +required
245
251
  repeated string recipients_email = 1;
252
+ // The template to use for this notification.
253
+ // +optional
254
+ string template = 2;
246
255
  }
247
256
 
248
257
  // Represents a structure for notifications based on execution status.
@@ -189,6 +189,8 @@ message ExecutionClosure {
189
189
 
190
190
  // Provides the details of the last stage change
191
191
  ExecutionStateChangeDetails state_change_details = 14;
192
+
193
+ reserved 15;
192
194
  }
193
195
 
194
196
  // Represents system, rather than user-facing, metadata about an execution.
@@ -342,6 +344,8 @@ message ExecutionSpec {
342
344
 
343
345
  // Execution environment assignments to be set for the execution.
344
346
  repeated core.ExecutionEnvAssignment execution_env_assignments = 26;
347
+
348
+ reserved 27;
345
349
  }
346
350
 
347
351
  // Request to terminate an in-progress execution. This action is irreversible.
@@ -167,6 +167,9 @@ message ArrayNode {
167
167
 
168
168
  // data_mode determines how input data is passed to the sub-nodes
169
169
  DataMode data_mode = 7;
170
+
171
+ //+optional. Specifies input bindings that are not mapped over for the node.
172
+ repeated string bound_inputs = 8;
170
173
  }
171
174
 
172
175
  // Defines extra information about the Node.