@flyteorg/flyteidl 1.1.21 → 1.2.0

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.
@@ -15505,6 +15505,171 @@ export namespace flyteidl {
15505
15505
  public static verify(message: { [k: string]: any }): (string|null);
15506
15506
  }
15507
15507
 
15508
+ /** Properties of a WorkflowErrorExistsDifferentStructure. */
15509
+ interface IWorkflowErrorExistsDifferentStructure {
15510
+
15511
+ /** WorkflowErrorExistsDifferentStructure id */
15512
+ id?: (flyteidl.core.IIdentifier|null);
15513
+ }
15514
+
15515
+ /** Represents a WorkflowErrorExistsDifferentStructure. */
15516
+ class WorkflowErrorExistsDifferentStructure implements IWorkflowErrorExistsDifferentStructure {
15517
+
15518
+ /**
15519
+ * Constructs a new WorkflowErrorExistsDifferentStructure.
15520
+ * @param [properties] Properties to set
15521
+ */
15522
+ constructor(properties?: flyteidl.admin.IWorkflowErrorExistsDifferentStructure);
15523
+
15524
+ /** WorkflowErrorExistsDifferentStructure id. */
15525
+ public id?: (flyteidl.core.IIdentifier|null);
15526
+
15527
+ /**
15528
+ * Creates a new WorkflowErrorExistsDifferentStructure instance using the specified properties.
15529
+ * @param [properties] Properties to set
15530
+ * @returns WorkflowErrorExistsDifferentStructure instance
15531
+ */
15532
+ public static create(properties?: flyteidl.admin.IWorkflowErrorExistsDifferentStructure): flyteidl.admin.WorkflowErrorExistsDifferentStructure;
15533
+
15534
+ /**
15535
+ * Encodes the specified WorkflowErrorExistsDifferentStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsDifferentStructure.verify|verify} messages.
15536
+ * @param message WorkflowErrorExistsDifferentStructure message or plain object to encode
15537
+ * @param [writer] Writer to encode to
15538
+ * @returns Writer
15539
+ */
15540
+ public static encode(message: flyteidl.admin.IWorkflowErrorExistsDifferentStructure, writer?: $protobuf.Writer): $protobuf.Writer;
15541
+
15542
+ /**
15543
+ * Decodes a WorkflowErrorExistsDifferentStructure message from the specified reader or buffer.
15544
+ * @param reader Reader or buffer to decode from
15545
+ * @param [length] Message length if known beforehand
15546
+ * @returns WorkflowErrorExistsDifferentStructure
15547
+ * @throws {Error} If the payload is not a reader or valid buffer
15548
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15549
+ */
15550
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowErrorExistsDifferentStructure;
15551
+
15552
+ /**
15553
+ * Verifies a WorkflowErrorExistsDifferentStructure message.
15554
+ * @param message Plain object to verify
15555
+ * @returns `null` if valid, otherwise the reason why it is not
15556
+ */
15557
+ public static verify(message: { [k: string]: any }): (string|null);
15558
+ }
15559
+
15560
+ /** Properties of a WorkflowErrorExistsIdenticalStructure. */
15561
+ interface IWorkflowErrorExistsIdenticalStructure {
15562
+
15563
+ /** WorkflowErrorExistsIdenticalStructure id */
15564
+ id?: (flyteidl.core.IIdentifier|null);
15565
+ }
15566
+
15567
+ /** Represents a WorkflowErrorExistsIdenticalStructure. */
15568
+ class WorkflowErrorExistsIdenticalStructure implements IWorkflowErrorExistsIdenticalStructure {
15569
+
15570
+ /**
15571
+ * Constructs a new WorkflowErrorExistsIdenticalStructure.
15572
+ * @param [properties] Properties to set
15573
+ */
15574
+ constructor(properties?: flyteidl.admin.IWorkflowErrorExistsIdenticalStructure);
15575
+
15576
+ /** WorkflowErrorExistsIdenticalStructure id. */
15577
+ public id?: (flyteidl.core.IIdentifier|null);
15578
+
15579
+ /**
15580
+ * Creates a new WorkflowErrorExistsIdenticalStructure instance using the specified properties.
15581
+ * @param [properties] Properties to set
15582
+ * @returns WorkflowErrorExistsIdenticalStructure instance
15583
+ */
15584
+ public static create(properties?: flyteidl.admin.IWorkflowErrorExistsIdenticalStructure): flyteidl.admin.WorkflowErrorExistsIdenticalStructure;
15585
+
15586
+ /**
15587
+ * Encodes the specified WorkflowErrorExistsIdenticalStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsIdenticalStructure.verify|verify} messages.
15588
+ * @param message WorkflowErrorExistsIdenticalStructure message or plain object to encode
15589
+ * @param [writer] Writer to encode to
15590
+ * @returns Writer
15591
+ */
15592
+ public static encode(message: flyteidl.admin.IWorkflowErrorExistsIdenticalStructure, writer?: $protobuf.Writer): $protobuf.Writer;
15593
+
15594
+ /**
15595
+ * Decodes a WorkflowErrorExistsIdenticalStructure message from the specified reader or buffer.
15596
+ * @param reader Reader or buffer to decode from
15597
+ * @param [length] Message length if known beforehand
15598
+ * @returns WorkflowErrorExistsIdenticalStructure
15599
+ * @throws {Error} If the payload is not a reader or valid buffer
15600
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15601
+ */
15602
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowErrorExistsIdenticalStructure;
15603
+
15604
+ /**
15605
+ * Verifies a WorkflowErrorExistsIdenticalStructure message.
15606
+ * @param message Plain object to verify
15607
+ * @returns `null` if valid, otherwise the reason why it is not
15608
+ */
15609
+ public static verify(message: { [k: string]: any }): (string|null);
15610
+ }
15611
+
15612
+ /** Properties of a CreateWorkflowFailureReason. */
15613
+ interface ICreateWorkflowFailureReason {
15614
+
15615
+ /** CreateWorkflowFailureReason existsDifferentStructure */
15616
+ existsDifferentStructure?: (flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null);
15617
+
15618
+ /** CreateWorkflowFailureReason existsIdenticalStructure */
15619
+ existsIdenticalStructure?: (flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null);
15620
+ }
15621
+
15622
+ /** Represents a CreateWorkflowFailureReason. */
15623
+ class CreateWorkflowFailureReason implements ICreateWorkflowFailureReason {
15624
+
15625
+ /**
15626
+ * Constructs a new CreateWorkflowFailureReason.
15627
+ * @param [properties] Properties to set
15628
+ */
15629
+ constructor(properties?: flyteidl.admin.ICreateWorkflowFailureReason);
15630
+
15631
+ /** CreateWorkflowFailureReason existsDifferentStructure. */
15632
+ public existsDifferentStructure?: (flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null);
15633
+
15634
+ /** CreateWorkflowFailureReason existsIdenticalStructure. */
15635
+ public existsIdenticalStructure?: (flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null);
15636
+
15637
+ /** CreateWorkflowFailureReason reason. */
15638
+ public reason?: ("existsDifferentStructure"|"existsIdenticalStructure");
15639
+
15640
+ /**
15641
+ * Creates a new CreateWorkflowFailureReason instance using the specified properties.
15642
+ * @param [properties] Properties to set
15643
+ * @returns CreateWorkflowFailureReason instance
15644
+ */
15645
+ public static create(properties?: flyteidl.admin.ICreateWorkflowFailureReason): flyteidl.admin.CreateWorkflowFailureReason;
15646
+
15647
+ /**
15648
+ * Encodes the specified CreateWorkflowFailureReason message. Does not implicitly {@link flyteidl.admin.CreateWorkflowFailureReason.verify|verify} messages.
15649
+ * @param message CreateWorkflowFailureReason message or plain object to encode
15650
+ * @param [writer] Writer to encode to
15651
+ * @returns Writer
15652
+ */
15653
+ public static encode(message: flyteidl.admin.ICreateWorkflowFailureReason, writer?: $protobuf.Writer): $protobuf.Writer;
15654
+
15655
+ /**
15656
+ * Decodes a CreateWorkflowFailureReason message from the specified reader or buffer.
15657
+ * @param reader Reader or buffer to decode from
15658
+ * @param [length] Message length if known beforehand
15659
+ * @returns CreateWorkflowFailureReason
15660
+ * @throws {Error} If the payload is not a reader or valid buffer
15661
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15662
+ */
15663
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.CreateWorkflowFailureReason;
15664
+
15665
+ /**
15666
+ * Verifies a CreateWorkflowFailureReason message.
15667
+ * @param message Plain object to verify
15668
+ * @returns `null` if valid, otherwise the reason why it is not
15669
+ */
15670
+ public static verify(message: { [k: string]: any }): (string|null);
15671
+ }
15672
+
15508
15673
  /** Properties of a WorkflowAttributes. */
15509
15674
  interface IWorkflowAttributes {
15510
15675
 
@@ -17204,6 +17369,9 @@ export namespace flyteidl {
17204
17369
 
17205
17370
  /** PublicClientAuthConfigResponse serviceHttpEndpoint */
17206
17371
  serviceHttpEndpoint?: (string|null);
17372
+
17373
+ /** PublicClientAuthConfigResponse audience */
17374
+ audience?: (string|null);
17207
17375
  }
17208
17376
 
17209
17377
  /** Represents a PublicClientAuthConfigResponse. */
@@ -17230,6 +17398,9 @@ export namespace flyteidl {
17230
17398
  /** PublicClientAuthConfigResponse serviceHttpEndpoint. */
17231
17399
  public serviceHttpEndpoint: string;
17232
17400
 
17401
+ /** PublicClientAuthConfigResponse audience. */
17402
+ public audience: string;
17403
+
17233
17404
  /**
17234
17405
  * Creates a new PublicClientAuthConfigResponse instance using the specified properties.
17235
17406
  * @param [properties] Properties to set
@@ -36926,6 +36926,384 @@ export const flyteidl = $root.flyteidl = (() => {
36926
36926
  return WorkflowClosure;
36927
36927
  })();
36928
36928
 
36929
+ admin.WorkflowErrorExistsDifferentStructure = (function() {
36930
+
36931
+ /**
36932
+ * Properties of a WorkflowErrorExistsDifferentStructure.
36933
+ * @memberof flyteidl.admin
36934
+ * @interface IWorkflowErrorExistsDifferentStructure
36935
+ * @property {flyteidl.core.IIdentifier|null} [id] WorkflowErrorExistsDifferentStructure id
36936
+ */
36937
+
36938
+ /**
36939
+ * Constructs a new WorkflowErrorExistsDifferentStructure.
36940
+ * @memberof flyteidl.admin
36941
+ * @classdesc Represents a WorkflowErrorExistsDifferentStructure.
36942
+ * @implements IWorkflowErrorExistsDifferentStructure
36943
+ * @constructor
36944
+ * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure=} [properties] Properties to set
36945
+ */
36946
+ function WorkflowErrorExistsDifferentStructure(properties) {
36947
+ if (properties)
36948
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
36949
+ if (properties[keys[i]] != null)
36950
+ this[keys[i]] = properties[keys[i]];
36951
+ }
36952
+
36953
+ /**
36954
+ * WorkflowErrorExistsDifferentStructure id.
36955
+ * @member {flyteidl.core.IIdentifier|null|undefined} id
36956
+ * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure
36957
+ * @instance
36958
+ */
36959
+ WorkflowErrorExistsDifferentStructure.prototype.id = null;
36960
+
36961
+ /**
36962
+ * Creates a new WorkflowErrorExistsDifferentStructure instance using the specified properties.
36963
+ * @function create
36964
+ * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure
36965
+ * @static
36966
+ * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure=} [properties] Properties to set
36967
+ * @returns {flyteidl.admin.WorkflowErrorExistsDifferentStructure} WorkflowErrorExistsDifferentStructure instance
36968
+ */
36969
+ WorkflowErrorExistsDifferentStructure.create = function create(properties) {
36970
+ return new WorkflowErrorExistsDifferentStructure(properties);
36971
+ };
36972
+
36973
+ /**
36974
+ * Encodes the specified WorkflowErrorExistsDifferentStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsDifferentStructure.verify|verify} messages.
36975
+ * @function encode
36976
+ * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure
36977
+ * @static
36978
+ * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure} message WorkflowErrorExistsDifferentStructure message or plain object to encode
36979
+ * @param {$protobuf.Writer} [writer] Writer to encode to
36980
+ * @returns {$protobuf.Writer} Writer
36981
+ */
36982
+ WorkflowErrorExistsDifferentStructure.encode = function encode(message, writer) {
36983
+ if (!writer)
36984
+ writer = $Writer.create();
36985
+ if (message.id != null && message.hasOwnProperty("id"))
36986
+ $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
36987
+ return writer;
36988
+ };
36989
+
36990
+ /**
36991
+ * Decodes a WorkflowErrorExistsDifferentStructure message from the specified reader or buffer.
36992
+ * @function decode
36993
+ * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure
36994
+ * @static
36995
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
36996
+ * @param {number} [length] Message length if known beforehand
36997
+ * @returns {flyteidl.admin.WorkflowErrorExistsDifferentStructure} WorkflowErrorExistsDifferentStructure
36998
+ * @throws {Error} If the payload is not a reader or valid buffer
36999
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37000
+ */
37001
+ WorkflowErrorExistsDifferentStructure.decode = function decode(reader, length) {
37002
+ if (!(reader instanceof $Reader))
37003
+ reader = $Reader.create(reader);
37004
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure();
37005
+ while (reader.pos < end) {
37006
+ let tag = reader.uint32();
37007
+ switch (tag >>> 3) {
37008
+ case 1:
37009
+ message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32());
37010
+ break;
37011
+ default:
37012
+ reader.skipType(tag & 7);
37013
+ break;
37014
+ }
37015
+ }
37016
+ return message;
37017
+ };
37018
+
37019
+ /**
37020
+ * Verifies a WorkflowErrorExistsDifferentStructure message.
37021
+ * @function verify
37022
+ * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure
37023
+ * @static
37024
+ * @param {Object.<string,*>} message Plain object to verify
37025
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
37026
+ */
37027
+ WorkflowErrorExistsDifferentStructure.verify = function verify(message) {
37028
+ if (typeof message !== "object" || message === null)
37029
+ return "object expected";
37030
+ if (message.id != null && message.hasOwnProperty("id")) {
37031
+ let error = $root.flyteidl.core.Identifier.verify(message.id);
37032
+ if (error)
37033
+ return "id." + error;
37034
+ }
37035
+ return null;
37036
+ };
37037
+
37038
+ return WorkflowErrorExistsDifferentStructure;
37039
+ })();
37040
+
37041
+ admin.WorkflowErrorExistsIdenticalStructure = (function() {
37042
+
37043
+ /**
37044
+ * Properties of a WorkflowErrorExistsIdenticalStructure.
37045
+ * @memberof flyteidl.admin
37046
+ * @interface IWorkflowErrorExistsIdenticalStructure
37047
+ * @property {flyteidl.core.IIdentifier|null} [id] WorkflowErrorExistsIdenticalStructure id
37048
+ */
37049
+
37050
+ /**
37051
+ * Constructs a new WorkflowErrorExistsIdenticalStructure.
37052
+ * @memberof flyteidl.admin
37053
+ * @classdesc Represents a WorkflowErrorExistsIdenticalStructure.
37054
+ * @implements IWorkflowErrorExistsIdenticalStructure
37055
+ * @constructor
37056
+ * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure=} [properties] Properties to set
37057
+ */
37058
+ function WorkflowErrorExistsIdenticalStructure(properties) {
37059
+ if (properties)
37060
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
37061
+ if (properties[keys[i]] != null)
37062
+ this[keys[i]] = properties[keys[i]];
37063
+ }
37064
+
37065
+ /**
37066
+ * WorkflowErrorExistsIdenticalStructure id.
37067
+ * @member {flyteidl.core.IIdentifier|null|undefined} id
37068
+ * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure
37069
+ * @instance
37070
+ */
37071
+ WorkflowErrorExistsIdenticalStructure.prototype.id = null;
37072
+
37073
+ /**
37074
+ * Creates a new WorkflowErrorExistsIdenticalStructure instance using the specified properties.
37075
+ * @function create
37076
+ * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure
37077
+ * @static
37078
+ * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure=} [properties] Properties to set
37079
+ * @returns {flyteidl.admin.WorkflowErrorExistsIdenticalStructure} WorkflowErrorExistsIdenticalStructure instance
37080
+ */
37081
+ WorkflowErrorExistsIdenticalStructure.create = function create(properties) {
37082
+ return new WorkflowErrorExistsIdenticalStructure(properties);
37083
+ };
37084
+
37085
+ /**
37086
+ * Encodes the specified WorkflowErrorExistsIdenticalStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsIdenticalStructure.verify|verify} messages.
37087
+ * @function encode
37088
+ * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure
37089
+ * @static
37090
+ * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure} message WorkflowErrorExistsIdenticalStructure message or plain object to encode
37091
+ * @param {$protobuf.Writer} [writer] Writer to encode to
37092
+ * @returns {$protobuf.Writer} Writer
37093
+ */
37094
+ WorkflowErrorExistsIdenticalStructure.encode = function encode(message, writer) {
37095
+ if (!writer)
37096
+ writer = $Writer.create();
37097
+ if (message.id != null && message.hasOwnProperty("id"))
37098
+ $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
37099
+ return writer;
37100
+ };
37101
+
37102
+ /**
37103
+ * Decodes a WorkflowErrorExistsIdenticalStructure message from the specified reader or buffer.
37104
+ * @function decode
37105
+ * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure
37106
+ * @static
37107
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
37108
+ * @param {number} [length] Message length if known beforehand
37109
+ * @returns {flyteidl.admin.WorkflowErrorExistsIdenticalStructure} WorkflowErrorExistsIdenticalStructure
37110
+ * @throws {Error} If the payload is not a reader or valid buffer
37111
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37112
+ */
37113
+ WorkflowErrorExistsIdenticalStructure.decode = function decode(reader, length) {
37114
+ if (!(reader instanceof $Reader))
37115
+ reader = $Reader.create(reader);
37116
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure();
37117
+ while (reader.pos < end) {
37118
+ let tag = reader.uint32();
37119
+ switch (tag >>> 3) {
37120
+ case 1:
37121
+ message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32());
37122
+ break;
37123
+ default:
37124
+ reader.skipType(tag & 7);
37125
+ break;
37126
+ }
37127
+ }
37128
+ return message;
37129
+ };
37130
+
37131
+ /**
37132
+ * Verifies a WorkflowErrorExistsIdenticalStructure message.
37133
+ * @function verify
37134
+ * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure
37135
+ * @static
37136
+ * @param {Object.<string,*>} message Plain object to verify
37137
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
37138
+ */
37139
+ WorkflowErrorExistsIdenticalStructure.verify = function verify(message) {
37140
+ if (typeof message !== "object" || message === null)
37141
+ return "object expected";
37142
+ if (message.id != null && message.hasOwnProperty("id")) {
37143
+ let error = $root.flyteidl.core.Identifier.verify(message.id);
37144
+ if (error)
37145
+ return "id." + error;
37146
+ }
37147
+ return null;
37148
+ };
37149
+
37150
+ return WorkflowErrorExistsIdenticalStructure;
37151
+ })();
37152
+
37153
+ admin.CreateWorkflowFailureReason = (function() {
37154
+
37155
+ /**
37156
+ * Properties of a CreateWorkflowFailureReason.
37157
+ * @memberof flyteidl.admin
37158
+ * @interface ICreateWorkflowFailureReason
37159
+ * @property {flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null} [existsDifferentStructure] CreateWorkflowFailureReason existsDifferentStructure
37160
+ * @property {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null} [existsIdenticalStructure] CreateWorkflowFailureReason existsIdenticalStructure
37161
+ */
37162
+
37163
+ /**
37164
+ * Constructs a new CreateWorkflowFailureReason.
37165
+ * @memberof flyteidl.admin
37166
+ * @classdesc Represents a CreateWorkflowFailureReason.
37167
+ * @implements ICreateWorkflowFailureReason
37168
+ * @constructor
37169
+ * @param {flyteidl.admin.ICreateWorkflowFailureReason=} [properties] Properties to set
37170
+ */
37171
+ function CreateWorkflowFailureReason(properties) {
37172
+ if (properties)
37173
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
37174
+ if (properties[keys[i]] != null)
37175
+ this[keys[i]] = properties[keys[i]];
37176
+ }
37177
+
37178
+ /**
37179
+ * CreateWorkflowFailureReason existsDifferentStructure.
37180
+ * @member {flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null|undefined} existsDifferentStructure
37181
+ * @memberof flyteidl.admin.CreateWorkflowFailureReason
37182
+ * @instance
37183
+ */
37184
+ CreateWorkflowFailureReason.prototype.existsDifferentStructure = null;
37185
+
37186
+ /**
37187
+ * CreateWorkflowFailureReason existsIdenticalStructure.
37188
+ * @member {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null|undefined} existsIdenticalStructure
37189
+ * @memberof flyteidl.admin.CreateWorkflowFailureReason
37190
+ * @instance
37191
+ */
37192
+ CreateWorkflowFailureReason.prototype.existsIdenticalStructure = null;
37193
+
37194
+ // OneOf field names bound to virtual getters and setters
37195
+ let $oneOfFields;
37196
+
37197
+ /**
37198
+ * CreateWorkflowFailureReason reason.
37199
+ * @member {"existsDifferentStructure"|"existsIdenticalStructure"|undefined} reason
37200
+ * @memberof flyteidl.admin.CreateWorkflowFailureReason
37201
+ * @instance
37202
+ */
37203
+ Object.defineProperty(CreateWorkflowFailureReason.prototype, "reason", {
37204
+ get: $util.oneOfGetter($oneOfFields = ["existsDifferentStructure", "existsIdenticalStructure"]),
37205
+ set: $util.oneOfSetter($oneOfFields)
37206
+ });
37207
+
37208
+ /**
37209
+ * Creates a new CreateWorkflowFailureReason instance using the specified properties.
37210
+ * @function create
37211
+ * @memberof flyteidl.admin.CreateWorkflowFailureReason
37212
+ * @static
37213
+ * @param {flyteidl.admin.ICreateWorkflowFailureReason=} [properties] Properties to set
37214
+ * @returns {flyteidl.admin.CreateWorkflowFailureReason} CreateWorkflowFailureReason instance
37215
+ */
37216
+ CreateWorkflowFailureReason.create = function create(properties) {
37217
+ return new CreateWorkflowFailureReason(properties);
37218
+ };
37219
+
37220
+ /**
37221
+ * Encodes the specified CreateWorkflowFailureReason message. Does not implicitly {@link flyteidl.admin.CreateWorkflowFailureReason.verify|verify} messages.
37222
+ * @function encode
37223
+ * @memberof flyteidl.admin.CreateWorkflowFailureReason
37224
+ * @static
37225
+ * @param {flyteidl.admin.ICreateWorkflowFailureReason} message CreateWorkflowFailureReason message or plain object to encode
37226
+ * @param {$protobuf.Writer} [writer] Writer to encode to
37227
+ * @returns {$protobuf.Writer} Writer
37228
+ */
37229
+ CreateWorkflowFailureReason.encode = function encode(message, writer) {
37230
+ if (!writer)
37231
+ writer = $Writer.create();
37232
+ if (message.existsDifferentStructure != null && message.hasOwnProperty("existsDifferentStructure"))
37233
+ $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure.encode(message.existsDifferentStructure, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
37234
+ if (message.existsIdenticalStructure != null && message.hasOwnProperty("existsIdenticalStructure"))
37235
+ $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure.encode(message.existsIdenticalStructure, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
37236
+ return writer;
37237
+ };
37238
+
37239
+ /**
37240
+ * Decodes a CreateWorkflowFailureReason message from the specified reader or buffer.
37241
+ * @function decode
37242
+ * @memberof flyteidl.admin.CreateWorkflowFailureReason
37243
+ * @static
37244
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
37245
+ * @param {number} [length] Message length if known beforehand
37246
+ * @returns {flyteidl.admin.CreateWorkflowFailureReason} CreateWorkflowFailureReason
37247
+ * @throws {Error} If the payload is not a reader or valid buffer
37248
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37249
+ */
37250
+ CreateWorkflowFailureReason.decode = function decode(reader, length) {
37251
+ if (!(reader instanceof $Reader))
37252
+ reader = $Reader.create(reader);
37253
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateWorkflowFailureReason();
37254
+ while (reader.pos < end) {
37255
+ let tag = reader.uint32();
37256
+ switch (tag >>> 3) {
37257
+ case 1:
37258
+ message.existsDifferentStructure = $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure.decode(reader, reader.uint32());
37259
+ break;
37260
+ case 2:
37261
+ message.existsIdenticalStructure = $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure.decode(reader, reader.uint32());
37262
+ break;
37263
+ default:
37264
+ reader.skipType(tag & 7);
37265
+ break;
37266
+ }
37267
+ }
37268
+ return message;
37269
+ };
37270
+
37271
+ /**
37272
+ * Verifies a CreateWorkflowFailureReason message.
37273
+ * @function verify
37274
+ * @memberof flyteidl.admin.CreateWorkflowFailureReason
37275
+ * @static
37276
+ * @param {Object.<string,*>} message Plain object to verify
37277
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
37278
+ */
37279
+ CreateWorkflowFailureReason.verify = function verify(message) {
37280
+ if (typeof message !== "object" || message === null)
37281
+ return "object expected";
37282
+ let properties = {};
37283
+ if (message.existsDifferentStructure != null && message.hasOwnProperty("existsDifferentStructure")) {
37284
+ properties.reason = 1;
37285
+ {
37286
+ let error = $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure.verify(message.existsDifferentStructure);
37287
+ if (error)
37288
+ return "existsDifferentStructure." + error;
37289
+ }
37290
+ }
37291
+ if (message.existsIdenticalStructure != null && message.hasOwnProperty("existsIdenticalStructure")) {
37292
+ if (properties.reason === 1)
37293
+ return "reason: multiple values";
37294
+ properties.reason = 1;
37295
+ {
37296
+ let error = $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure.verify(message.existsIdenticalStructure);
37297
+ if (error)
37298
+ return "existsIdenticalStructure." + error;
37299
+ }
37300
+ }
37301
+ return null;
37302
+ };
37303
+
37304
+ return CreateWorkflowFailureReason;
37305
+ })();
37306
+
36929
37307
  admin.WorkflowAttributes = (function() {
36930
37308
 
36931
37309
  /**
@@ -40040,6 +40418,7 @@ export const flyteidl = $root.flyteidl = (() => {
40040
40418
  * @property {Array.<string>|null} [scopes] PublicClientAuthConfigResponse scopes
40041
40419
  * @property {string|null} [authorizationMetadataKey] PublicClientAuthConfigResponse authorizationMetadataKey
40042
40420
  * @property {string|null} [serviceHttpEndpoint] PublicClientAuthConfigResponse serviceHttpEndpoint
40421
+ * @property {string|null} [audience] PublicClientAuthConfigResponse audience
40043
40422
  */
40044
40423
 
40045
40424
  /**
@@ -40098,6 +40477,14 @@ export const flyteidl = $root.flyteidl = (() => {
40098
40477
  */
40099
40478
  PublicClientAuthConfigResponse.prototype.serviceHttpEndpoint = "";
40100
40479
 
40480
+ /**
40481
+ * PublicClientAuthConfigResponse audience.
40482
+ * @member {string} audience
40483
+ * @memberof flyteidl.service.PublicClientAuthConfigResponse
40484
+ * @instance
40485
+ */
40486
+ PublicClientAuthConfigResponse.prototype.audience = "";
40487
+
40101
40488
  /**
40102
40489
  * Creates a new PublicClientAuthConfigResponse instance using the specified properties.
40103
40490
  * @function create
@@ -40133,6 +40520,8 @@ export const flyteidl = $root.flyteidl = (() => {
40133
40520
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.authorizationMetadataKey);
40134
40521
  if (message.serviceHttpEndpoint != null && message.hasOwnProperty("serviceHttpEndpoint"))
40135
40522
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.serviceHttpEndpoint);
40523
+ if (message.audience != null && message.hasOwnProperty("audience"))
40524
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.audience);
40136
40525
  return writer;
40137
40526
  };
40138
40527
 
@@ -40171,6 +40560,9 @@ export const flyteidl = $root.flyteidl = (() => {
40171
40560
  case 5:
40172
40561
  message.serviceHttpEndpoint = reader.string();
40173
40562
  break;
40563
+ case 6:
40564
+ message.audience = reader.string();
40565
+ break;
40174
40566
  default:
40175
40567
  reader.skipType(tag & 7);
40176
40568
  break;
@@ -40209,6 +40601,9 @@ export const flyteidl = $root.flyteidl = (() => {
40209
40601
  if (message.serviceHttpEndpoint != null && message.hasOwnProperty("serviceHttpEndpoint"))
40210
40602
  if (!$util.isString(message.serviceHttpEndpoint))
40211
40603
  return "serviceHttpEndpoint: string expected";
40604
+ if (message.audience != null && message.hasOwnProperty("audience"))
40605
+ if (!$util.isString(message.audience))
40606
+ return "audience: string expected";
40212
40607
  return null;
40213
40608
  };
40214
40609
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "1.1.21",
3
+ "version": "1.2.0",
4
4
  "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -3566,6 +3566,28 @@ flyteidl/admin/workflow.proto
3566
3566
 
3567
3567
 
3568
3568
 
3569
+ .. _ref_flyteidl.admin.CreateWorkflowFailureReason:
3570
+
3571
+ CreateWorkflowFailureReason
3572
+ ------------------------------------------------------------------
3573
+
3574
+ When a CreateWorkflowRequest failes due to matching id
3575
+
3576
+
3577
+
3578
+ .. csv-table:: CreateWorkflowFailureReason type fields
3579
+ :header: "Field", "Type", "Label", "Description"
3580
+ :widths: auto
3581
+
3582
+ "exists_different_structure", ":ref:`ref_flyteidl.admin.WorkflowErrorExistsDifferentStructure`", "", ""
3583
+ "exists_identical_structure", ":ref:`ref_flyteidl.admin.WorkflowErrorExistsIdenticalStructure`", "", ""
3584
+
3585
+
3586
+
3587
+
3588
+
3589
+
3590
+
3569
3591
  .. _ref_flyteidl.admin.Workflow:
3570
3592
 
3571
3593
  Workflow
@@ -3649,6 +3671,48 @@ Purposefully empty, may be populated in the future.
3649
3671
 
3650
3672
 
3651
3673
 
3674
+ .. _ref_flyteidl.admin.WorkflowErrorExistsDifferentStructure:
3675
+
3676
+ WorkflowErrorExistsDifferentStructure
3677
+ ------------------------------------------------------------------
3678
+
3679
+ The workflow id is already used and the structure is different
3680
+
3681
+
3682
+
3683
+ .. csv-table:: WorkflowErrorExistsDifferentStructure type fields
3684
+ :header: "Field", "Type", "Label", "Description"
3685
+ :widths: auto
3686
+
3687
+ "id", ":ref:`ref_flyteidl.core.Identifier`", "", ""
3688
+
3689
+
3690
+
3691
+
3692
+
3693
+
3694
+
3695
+ .. _ref_flyteidl.admin.WorkflowErrorExistsIdenticalStructure:
3696
+
3697
+ WorkflowErrorExistsIdenticalStructure
3698
+ ------------------------------------------------------------------
3699
+
3700
+ The workflow id is already used with an identical sctructure
3701
+
3702
+
3703
+
3704
+ .. csv-table:: WorkflowErrorExistsIdenticalStructure type fields
3705
+ :header: "Field", "Type", "Label", "Description"
3706
+ :widths: auto
3707
+
3708
+ "id", ":ref:`ref_flyteidl.core.Identifier`", "", ""
3709
+
3710
+
3711
+
3712
+
3713
+
3714
+
3715
+
3652
3716
  .. _ref_flyteidl.admin.WorkflowList:
3653
3717
 
3654
3718
  WorkflowList
@@ -3233,7 +3233,6 @@ Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
3233
3233
  Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
3234
3234
  .setNanos((int) ((millis % 1000) * 1000000)).build();
3235
3235
 
3236
-
3237
3236
  Example 5: Compute Timestamp from Java `Instant.now()`.
3238
3237
 
3239
3238
  Instant now = Instant.now();
@@ -3242,7 +3241,6 @@ Example 5: Compute Timestamp from Java `Instant.now()`.
3242
3241
  Timestamp.newBuilder().setSeconds(now.getEpochSecond())
3243
3242
  .setNanos(now.getNano()).build();
3244
3243
 
3245
-
3246
3244
  Example 6: Compute Timestamp from current time in Python.
3247
3245
 
3248
3246
  timestamp = Timestamp()
@@ -942,7 +942,6 @@ Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
942
942
  Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
943
943
  .setNanos((int) ((millis % 1000) * 1000000)).build();
944
944
 
945
-
946
945
  Example 5: Compute Timestamp from Java `Instant.now()`.
947
946
 
948
947
  Instant now = Instant.now();
@@ -951,7 +950,6 @@ Example 5: Compute Timestamp from Java `Instant.now()`.
951
950
  Timestamp.newBuilder().setSeconds(now.getEpochSecond())
952
951
  .setNanos(now.getNano()).build();
953
952
 
954
-
955
953
  Example 6: Compute Timestamp from current time in Python.
956
954
 
957
955
  timestamp = Timestamp()
@@ -401,7 +401,6 @@ Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
401
401
  Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
402
402
  .setNanos((int) ((millis % 1000) * 1000000)).build();
403
403
 
404
-
405
404
  Example 5: Compute Timestamp from Java `Instant.now()`.
406
405
 
407
406
  Instant now = Instant.now();
@@ -410,7 +409,6 @@ Example 5: Compute Timestamp from Java `Instant.now()`.
410
409
  Timestamp.newBuilder().setSeconds(now.getEpochSecond())
411
410
  .setNanos(now.getNano()).build();
412
411
 
413
-
414
412
  Example 6: Compute Timestamp from current time in Python.
415
413
 
416
414
  timestamp = Timestamp()
@@ -181,6 +181,7 @@ FlyteClientResponse encapsulates public information that flyte clients (CLIs...
181
181
  "scopes", ":ref:`ref_string`", "repeated", "scopes to request when initiating OAuth2 authorization requests."
182
182
  "authorization_metadata_key", ":ref:`ref_string`", "", "Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the default http `Authorization` header."
183
183
  "service_http_endpoint", ":ref:`ref_string`", "", "ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between SSL or no SSL connections."
184
+ "audience", ":ref:`ref_string`", "", "audience to use when initiating OAuth2 authorization requests."
184
185
 
185
186
 
186
187
 
@@ -65,3 +65,21 @@ message WorkflowClosure {
65
65
  // Time at which the workflow was created.
66
66
  google.protobuf.Timestamp created_at = 2;
67
67
  }
68
+
69
+ // The workflow id is already used and the structure is different
70
+ message WorkflowErrorExistsDifferentStructure {
71
+ core.Identifier id = 1;
72
+ }
73
+
74
+ // The workflow id is already used with an identical sctructure
75
+ message WorkflowErrorExistsIdenticalStructure {
76
+ core.Identifier id = 1;
77
+ }
78
+
79
+ // When a CreateWorkflowRequest failes due to matching id
80
+ message CreateWorkflowFailureReason {
81
+ oneof reason {
82
+ WorkflowErrorExistsDifferentStructure exists_different_structure = 1;
83
+ WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2;
84
+ }
85
+ }
@@ -63,6 +63,8 @@ message PublicClientAuthConfigResponse {
63
63
  // to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
64
64
  // SSL or no SSL connections.
65
65
  string service_http_endpoint = 5;
66
+ // audience to use when initiating OAuth2 authorization requests.
67
+ string audience = 6;
66
68
  }
67
69
 
68
70
  // The following defines an RPC service that is also served over HTTP via grpc-gateway.