@flyteorg/flyteidl 0.21.23 → 0.21.24

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.
@@ -9088,6 +9088,9 @@ export namespace flyteidl {
9088
9088
 
9089
9089
  /** ExecutionClosure workflowId */
9090
9090
  workflowId?: (flyteidl.core.IIdentifier|null);
9091
+
9092
+ /** ExecutionClosure stateChangeDetails */
9093
+ stateChangeDetails?: (flyteidl.admin.IExecutionStateChangeDetails|null);
9091
9094
  }
9092
9095
 
9093
9096
  /** Represents an ExecutionClosure. */
@@ -9138,6 +9141,9 @@ export namespace flyteidl {
9138
9141
  /** ExecutionClosure workflowId. */
9139
9142
  public workflowId?: (flyteidl.core.IIdentifier|null);
9140
9143
 
9144
+ /** ExecutionClosure stateChangeDetails. */
9145
+ public stateChangeDetails?: (flyteidl.admin.IExecutionStateChangeDetails|null);
9146
+
9141
9147
  /** ExecutionClosure outputResult. */
9142
9148
  public outputResult?: ("outputs"|"error"|"abortCause"|"abortMetadata"|"outputData");
9143
9149
 
@@ -9720,6 +9726,180 @@ export namespace flyteidl {
9720
9726
  public static verify(message: { [k: string]: any }): (string|null);
9721
9727
  }
9722
9728
 
9729
+ /** ExecutionState enum. */
9730
+ enum ExecutionState {
9731
+ EXECUTION_ACTIVE = 0,
9732
+ EXECUTION_ARCHIVED = 1
9733
+ }
9734
+
9735
+ /** Properties of an ExecutionUpdateRequest. */
9736
+ interface IExecutionUpdateRequest {
9737
+
9738
+ /** ExecutionUpdateRequest id */
9739
+ id?: (flyteidl.core.IWorkflowExecutionIdentifier|null);
9740
+
9741
+ /** ExecutionUpdateRequest state */
9742
+ state?: (flyteidl.admin.ExecutionState|null);
9743
+ }
9744
+
9745
+ /** Represents an ExecutionUpdateRequest. */
9746
+ class ExecutionUpdateRequest implements IExecutionUpdateRequest {
9747
+
9748
+ /**
9749
+ * Constructs a new ExecutionUpdateRequest.
9750
+ * @param [properties] Properties to set
9751
+ */
9752
+ constructor(properties?: flyteidl.admin.IExecutionUpdateRequest);
9753
+
9754
+ /** ExecutionUpdateRequest id. */
9755
+ public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null);
9756
+
9757
+ /** ExecutionUpdateRequest state. */
9758
+ public state: flyteidl.admin.ExecutionState;
9759
+
9760
+ /**
9761
+ * Creates a new ExecutionUpdateRequest instance using the specified properties.
9762
+ * @param [properties] Properties to set
9763
+ * @returns ExecutionUpdateRequest instance
9764
+ */
9765
+ public static create(properties?: flyteidl.admin.IExecutionUpdateRequest): flyteidl.admin.ExecutionUpdateRequest;
9766
+
9767
+ /**
9768
+ * Encodes the specified ExecutionUpdateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateRequest.verify|verify} messages.
9769
+ * @param message ExecutionUpdateRequest message or plain object to encode
9770
+ * @param [writer] Writer to encode to
9771
+ * @returns Writer
9772
+ */
9773
+ public static encode(message: flyteidl.admin.IExecutionUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
9774
+
9775
+ /**
9776
+ * Decodes an ExecutionUpdateRequest message from the specified reader or buffer.
9777
+ * @param reader Reader or buffer to decode from
9778
+ * @param [length] Message length if known beforehand
9779
+ * @returns ExecutionUpdateRequest
9780
+ * @throws {Error} If the payload is not a reader or valid buffer
9781
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9782
+ */
9783
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionUpdateRequest;
9784
+
9785
+ /**
9786
+ * Verifies an ExecutionUpdateRequest message.
9787
+ * @param message Plain object to verify
9788
+ * @returns `null` if valid, otherwise the reason why it is not
9789
+ */
9790
+ public static verify(message: { [k: string]: any }): (string|null);
9791
+ }
9792
+
9793
+ /** Properties of an ExecutionStateChangeDetails. */
9794
+ interface IExecutionStateChangeDetails {
9795
+
9796
+ /** ExecutionStateChangeDetails state */
9797
+ state?: (flyteidl.admin.ExecutionState|null);
9798
+
9799
+ /** ExecutionStateChangeDetails occurredAt */
9800
+ occurredAt?: (google.protobuf.ITimestamp|null);
9801
+
9802
+ /** ExecutionStateChangeDetails principal */
9803
+ principal?: (string|null);
9804
+ }
9805
+
9806
+ /** Represents an ExecutionStateChangeDetails. */
9807
+ class ExecutionStateChangeDetails implements IExecutionStateChangeDetails {
9808
+
9809
+ /**
9810
+ * Constructs a new ExecutionStateChangeDetails.
9811
+ * @param [properties] Properties to set
9812
+ */
9813
+ constructor(properties?: flyteidl.admin.IExecutionStateChangeDetails);
9814
+
9815
+ /** ExecutionStateChangeDetails state. */
9816
+ public state: flyteidl.admin.ExecutionState;
9817
+
9818
+ /** ExecutionStateChangeDetails occurredAt. */
9819
+ public occurredAt?: (google.protobuf.ITimestamp|null);
9820
+
9821
+ /** ExecutionStateChangeDetails principal. */
9822
+ public principal: string;
9823
+
9824
+ /**
9825
+ * Creates a new ExecutionStateChangeDetails instance using the specified properties.
9826
+ * @param [properties] Properties to set
9827
+ * @returns ExecutionStateChangeDetails instance
9828
+ */
9829
+ public static create(properties?: flyteidl.admin.IExecutionStateChangeDetails): flyteidl.admin.ExecutionStateChangeDetails;
9830
+
9831
+ /**
9832
+ * Encodes the specified ExecutionStateChangeDetails message. Does not implicitly {@link flyteidl.admin.ExecutionStateChangeDetails.verify|verify} messages.
9833
+ * @param message ExecutionStateChangeDetails message or plain object to encode
9834
+ * @param [writer] Writer to encode to
9835
+ * @returns Writer
9836
+ */
9837
+ public static encode(message: flyteidl.admin.IExecutionStateChangeDetails, writer?: $protobuf.Writer): $protobuf.Writer;
9838
+
9839
+ /**
9840
+ * Decodes an ExecutionStateChangeDetails message from the specified reader or buffer.
9841
+ * @param reader Reader or buffer to decode from
9842
+ * @param [length] Message length if known beforehand
9843
+ * @returns ExecutionStateChangeDetails
9844
+ * @throws {Error} If the payload is not a reader or valid buffer
9845
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9846
+ */
9847
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionStateChangeDetails;
9848
+
9849
+ /**
9850
+ * Verifies an ExecutionStateChangeDetails message.
9851
+ * @param message Plain object to verify
9852
+ * @returns `null` if valid, otherwise the reason why it is not
9853
+ */
9854
+ public static verify(message: { [k: string]: any }): (string|null);
9855
+ }
9856
+
9857
+ /** Properties of an ExecutionUpdateResponse. */
9858
+ interface IExecutionUpdateResponse {
9859
+ }
9860
+
9861
+ /** Represents an ExecutionUpdateResponse. */
9862
+ class ExecutionUpdateResponse implements IExecutionUpdateResponse {
9863
+
9864
+ /**
9865
+ * Constructs a new ExecutionUpdateResponse.
9866
+ * @param [properties] Properties to set
9867
+ */
9868
+ constructor(properties?: flyteidl.admin.IExecutionUpdateResponse);
9869
+
9870
+ /**
9871
+ * Creates a new ExecutionUpdateResponse instance using the specified properties.
9872
+ * @param [properties] Properties to set
9873
+ * @returns ExecutionUpdateResponse instance
9874
+ */
9875
+ public static create(properties?: flyteidl.admin.IExecutionUpdateResponse): flyteidl.admin.ExecutionUpdateResponse;
9876
+
9877
+ /**
9878
+ * Encodes the specified ExecutionUpdateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateResponse.verify|verify} messages.
9879
+ * @param message ExecutionUpdateResponse message or plain object to encode
9880
+ * @param [writer] Writer to encode to
9881
+ * @returns Writer
9882
+ */
9883
+ public static encode(message: flyteidl.admin.IExecutionUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer;
9884
+
9885
+ /**
9886
+ * Decodes an ExecutionUpdateResponse message from the specified reader or buffer.
9887
+ * @param reader Reader or buffer to decode from
9888
+ * @param [length] Message length if known beforehand
9889
+ * @returns ExecutionUpdateResponse
9890
+ * @throws {Error} If the payload is not a reader or valid buffer
9891
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9892
+ */
9893
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionUpdateResponse;
9894
+
9895
+ /**
9896
+ * Verifies an ExecutionUpdateResponse message.
9897
+ * @param message Plain object to verify
9898
+ * @returns `null` if valid, otherwise the reason why it is not
9899
+ */
9900
+ public static verify(message: { [k: string]: any }): (string|null);
9901
+ }
9902
+
9723
9903
  /** Properties of a LaunchPlanCreateRequest. */
9724
9904
  interface ILaunchPlanCreateRequest {
9725
9905
 
@@ -15164,6 +15344,20 @@ export namespace flyteidl {
15164
15344
  */
15165
15345
  public getExecution(request: flyteidl.admin.IWorkflowExecutionGetRequest): Promise<flyteidl.admin.Execution>;
15166
15346
 
15347
+ /**
15348
+ * Calls UpdateExecution.
15349
+ * @param request ExecutionUpdateRequest message or plain object
15350
+ * @param callback Node-style callback called with the error, if any, and ExecutionUpdateResponse
15351
+ */
15352
+ public updateExecution(request: flyteidl.admin.IExecutionUpdateRequest, callback: flyteidl.service.AdminService.UpdateExecutionCallback): void;
15353
+
15354
+ /**
15355
+ * Calls UpdateExecution.
15356
+ * @param request ExecutionUpdateRequest message or plain object
15357
+ * @returns Promise
15358
+ */
15359
+ public updateExecution(request: flyteidl.admin.IExecutionUpdateRequest): Promise<flyteidl.admin.ExecutionUpdateResponse>;
15360
+
15167
15361
  /**
15168
15362
  * Calls GetExecutionData.
15169
15363
  * @param request WorkflowExecutionGetDataRequest message or plain object
@@ -15678,6 +15872,13 @@ export namespace flyteidl {
15678
15872
  */
15679
15873
  type GetExecutionCallback = (error: (Error|null), response?: flyteidl.admin.Execution) => void;
15680
15874
 
15875
+ /**
15876
+ * Callback as used by {@link flyteidl.service.AdminService#updateExecution}.
15877
+ * @param error Error, if any
15878
+ * @param [response] ExecutionUpdateResponse
15879
+ */
15880
+ type UpdateExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionUpdateResponse) => void;
15881
+
15681
15882
  /**
15682
15883
  * Callback as used by {@link flyteidl.service.AdminService#getExecutionData}.
15683
15884
  * @param error Error, if any