@flyteorg/flyteidl 1.5.4 → 1.5.6

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.
@@ -5968,8 +5968,8 @@ export namespace flyteidl {
5968
5968
  /** Identity oauth2Client */
5969
5969
  oauth2Client?: (flyteidl.core.IOAuth2Client|null);
5970
5970
 
5971
- /** Identity userIdentifier */
5972
- userIdentifier?: (string|null);
5971
+ /** Identity executionIdentity */
5972
+ executionIdentity?: (string|null);
5973
5973
  }
5974
5974
 
5975
5975
  /** Represents an Identity. */
@@ -5990,8 +5990,8 @@ export namespace flyteidl {
5990
5990
  /** Identity oauth2Client. */
5991
5991
  public oauth2Client?: (flyteidl.core.IOAuth2Client|null);
5992
5992
 
5993
- /** Identity userIdentifier. */
5994
- public userIdentifier: string;
5993
+ /** Identity executionIdentity. */
5994
+ public executionIdentity: string;
5995
5995
 
5996
5996
  /**
5997
5997
  * Creates a new Identity instance using the specified properties.
@@ -19626,6 +19626,9 @@ export namespace flyteidl {
19626
19626
 
19627
19627
  /** GetDataResponse preSignedUrls */
19628
19628
  preSignedUrls?: (flyteidl.service.IPreSignedURLs|null);
19629
+
19630
+ /** GetDataResponse literal */
19631
+ literal?: (flyteidl.core.ILiteral|null);
19629
19632
  }
19630
19633
 
19631
19634
  /** Represents a GetDataResponse. */
@@ -19643,8 +19646,11 @@ export namespace flyteidl {
19643
19646
  /** GetDataResponse preSignedUrls. */
19644
19647
  public preSignedUrls?: (flyteidl.service.IPreSignedURLs|null);
19645
19648
 
19649
+ /** GetDataResponse literal. */
19650
+ public literal?: (flyteidl.core.ILiteral|null);
19651
+
19646
19652
  /** GetDataResponse data. */
19647
- public data?: ("literalMap"|"preSignedUrls");
19653
+ public data?: ("literalMap"|"preSignedUrls"|"literal");
19648
19654
 
19649
19655
  /**
19650
19656
  * Creates a new GetDataResponse instance using the specified properties.
@@ -14264,7 +14264,7 @@
14264
14264
  * @property {string|null} [iamRole] Identity iamRole
14265
14265
  * @property {string|null} [k8sServiceAccount] Identity k8sServiceAccount
14266
14266
  * @property {flyteidl.core.IOAuth2Client|null} [oauth2Client] Identity oauth2Client
14267
- * @property {string|null} [userIdentifier] Identity userIdentifier
14267
+ * @property {string|null} [executionIdentity] Identity executionIdentity
14268
14268
  */
14269
14269
 
14270
14270
  /**
@@ -14307,12 +14307,12 @@
14307
14307
  Identity.prototype.oauth2Client = null;
14308
14308
 
14309
14309
  /**
14310
- * Identity userIdentifier.
14311
- * @member {string} userIdentifier
14310
+ * Identity executionIdentity.
14311
+ * @member {string} executionIdentity
14312
14312
  * @memberof flyteidl.core.Identity
14313
14313
  * @instance
14314
14314
  */
14315
- Identity.prototype.userIdentifier = "";
14315
+ Identity.prototype.executionIdentity = "";
14316
14316
 
14317
14317
  /**
14318
14318
  * Creates a new Identity instance using the specified properties.
@@ -14344,8 +14344,8 @@
14344
14344
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.k8sServiceAccount);
14345
14345
  if (message.oauth2Client != null && message.hasOwnProperty("oauth2Client"))
14346
14346
  $root.flyteidl.core.OAuth2Client.encode(message.oauth2Client, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
14347
- if (message.userIdentifier != null && message.hasOwnProperty("userIdentifier"))
14348
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.userIdentifier);
14347
+ if (message.executionIdentity != null && message.hasOwnProperty("executionIdentity"))
14348
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.executionIdentity);
14349
14349
  return writer;
14350
14350
  };
14351
14351
 
@@ -14377,7 +14377,7 @@
14377
14377
  message.oauth2Client = $root.flyteidl.core.OAuth2Client.decode(reader, reader.uint32());
14378
14378
  break;
14379
14379
  case 4:
14380
- message.userIdentifier = reader.string();
14380
+ message.executionIdentity = reader.string();
14381
14381
  break;
14382
14382
  default:
14383
14383
  reader.skipType(tag & 7);
@@ -14409,9 +14409,9 @@
14409
14409
  if (error)
14410
14410
  return "oauth2Client." + error;
14411
14411
  }
14412
- if (message.userIdentifier != null && message.hasOwnProperty("userIdentifier"))
14413
- if (!$util.isString(message.userIdentifier))
14414
- return "userIdentifier: string expected";
14412
+ if (message.executionIdentity != null && message.hasOwnProperty("executionIdentity"))
14413
+ if (!$util.isString(message.executionIdentity))
14414
+ return "executionIdentity: string expected";
14415
14415
  return null;
14416
14416
  };
14417
14417
 
@@ -45831,6 +45831,7 @@
45831
45831
  * @interface IGetDataResponse
45832
45832
  * @property {flyteidl.core.ILiteralMap|null} [literalMap] GetDataResponse literalMap
45833
45833
  * @property {flyteidl.service.IPreSignedURLs|null} [preSignedUrls] GetDataResponse preSignedUrls
45834
+ * @property {flyteidl.core.ILiteral|null} [literal] GetDataResponse literal
45834
45835
  */
45835
45836
 
45836
45837
  /**
@@ -45864,17 +45865,25 @@
45864
45865
  */
45865
45866
  GetDataResponse.prototype.preSignedUrls = null;
45866
45867
 
45868
+ /**
45869
+ * GetDataResponse literal.
45870
+ * @member {flyteidl.core.ILiteral|null|undefined} literal
45871
+ * @memberof flyteidl.service.GetDataResponse
45872
+ * @instance
45873
+ */
45874
+ GetDataResponse.prototype.literal = null;
45875
+
45867
45876
  // OneOf field names bound to virtual getters and setters
45868
45877
  var $oneOfFields;
45869
45878
 
45870
45879
  /**
45871
45880
  * GetDataResponse data.
45872
- * @member {"literalMap"|"preSignedUrls"|undefined} data
45881
+ * @member {"literalMap"|"preSignedUrls"|"literal"|undefined} data
45873
45882
  * @memberof flyteidl.service.GetDataResponse
45874
45883
  * @instance
45875
45884
  */
45876
45885
  Object.defineProperty(GetDataResponse.prototype, "data", {
45877
- get: $util.oneOfGetter($oneOfFields = ["literalMap", "preSignedUrls"]),
45886
+ get: $util.oneOfGetter($oneOfFields = ["literalMap", "preSignedUrls", "literal"]),
45878
45887
  set: $util.oneOfSetter($oneOfFields)
45879
45888
  });
45880
45889
 
@@ -45906,6 +45915,8 @@
45906
45915
  $root.flyteidl.core.LiteralMap.encode(message.literalMap, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
45907
45916
  if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls"))
45908
45917
  $root.flyteidl.service.PreSignedURLs.encode(message.preSignedUrls, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
45918
+ if (message.literal != null && message.hasOwnProperty("literal"))
45919
+ $root.flyteidl.core.Literal.encode(message.literal, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
45909
45920
  return writer;
45910
45921
  };
45911
45922
 
@@ -45933,6 +45944,9 @@
45933
45944
  case 2:
45934
45945
  message.preSignedUrls = $root.flyteidl.service.PreSignedURLs.decode(reader, reader.uint32());
45935
45946
  break;
45947
+ case 3:
45948
+ message.literal = $root.flyteidl.core.Literal.decode(reader, reader.uint32());
45949
+ break;
45936
45950
  default:
45937
45951
  reader.skipType(tag & 7);
45938
45952
  break;
@@ -45971,6 +45985,16 @@
45971
45985
  return "preSignedUrls." + error;
45972
45986
  }
45973
45987
  }
45988
+ if (message.literal != null && message.hasOwnProperty("literal")) {
45989
+ if (properties.data === 1)
45990
+ return "data: multiple values";
45991
+ properties.data = 1;
45992
+ {
45993
+ var error = $root.flyteidl.core.Literal.verify(message.literal);
45994
+ if (error)
45995
+ return "literal." + error;
45996
+ }
45997
+ }
45974
45998
  return null;
45975
45999
  };
45976
46000
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "1.5.4",
3
+ "version": "1.5.6",
4
4
  "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -70,8 +70,8 @@ message Identity {
70
70
  // making external calls.
71
71
  OAuth2Client oauth2_client = 3;
72
72
 
73
- // user_identifier references the id of the user who executes the task.
74
- string user_identifier = 4;
73
+ // execution_identity references the subject who makes the execution
74
+ string execution_identity = 4;
75
75
  }
76
76
 
77
77
  // OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.
@@ -122,16 +122,21 @@ message GetDataRequest {
122
122
  // backend, identifies a Flyte artifact ([i]nput, [o]utput, flyte [d]eck, etc.).
123
123
  // e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
124
124
  // flyte://v1/proj/development/execid/n2/i (for node execution input)
125
+ // flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
125
126
  string flyte_url = 1;
126
127
  }
127
128
 
128
129
  message GetDataResponse {
129
130
  oneof data {
130
131
  // literal map data will be returned
131
- core.LiteralMap literal_map = 1;
132
+ core.LiteralMap literal_map = 1;
132
133
 
133
134
  // Flyte deck html will be returned as a signed url users can download
134
135
  PreSignedURLs pre_signed_urls = 2;
136
+
137
+ // Single literal will be returned. This is returned when the user/url requests a specific output or input
138
+ // by name. See the o3 example above.
139
+ core.Literal literal = 3;
135
140
  }
136
141
  }
137
142