import _m0 from 'protobufjs/minimal'; import { Duration } from '../../../../../google/protobuf/duration'; export declare const protobufPackage = "yandex.cloud.serverless.workflows.v1"; export interface HistoryEntry { /** ID of the Workflow step. */ id: string; /** Title of the Workflow step. */ title: string; /** Description of the Workflow step. */ description: string; /** Start timestamp for the Workflow step. */ startedAt?: Date; /** Duration of the Workflow step. */ duration?: Duration; /** Input data for the Workflow step. */ input?: HistoryEntryInput; /** Result of the Workflow step. */ output?: HistoryEntryOutput; /** Error details, in case Workflow step failed. */ error?: HistoryEntryError; /** Status of the Workflow step. */ status: HistoryEntry_Status; /** Type of the Workflow step (for example, FunctionCall or HttpCall). */ type: string; /** Number of attempts (including all retries of unsuccessful attempts). Value "1" means there were no retries. */ attempts: number; /** Last received error details in case of retries. */ lastError?: HistoryEntryError; } export declare enum HistoryEntry_Status { STATUS_UNSPECIFIED = 0, /** SCHEDULED - Step execution is being scheduled. */ SCHEDULED = 1, /** STARTED - Step execution is started. */ STARTED = 2, /** COMPLETED - Step execution is completed. */ COMPLETED = 3, /** FAILED - Step execution is failed. */ FAILED = 4, /** CANCEL_REQUESTED - Step execution is requested to be cancelled. */ CANCEL_REQUESTED = 5, /** CANCELLED - Step execution is canceled. */ CANCELLED = 6, UNRECOGNIZED = -1 } export declare function historyEntry_StatusFromJSON(object: any): HistoryEntry_Status; export declare function historyEntry_StatusToJSON(object: HistoryEntry_Status): string; export interface HistoryEntry_FailedAttempt { /** Start timestamp for the attempt. */ startedAt?: Date; /** Duration of the attempt. */ duration?: Duration; /** Error details. */ error?: HistoryEntryError; } export interface HistoryEntryInput { /** JSON input data for the Workflow step. */ inputJson: string | undefined; } export interface HistoryEntryOutput { /** JSON result for the Workflow step. */ outputJson: string | undefined; } export interface HistoryEntryError { /** Error message of the Workflow step. */ message: string; /** Error code of the Workflow step. */ errorCode: string; } export declare const HistoryEntry: { encode(message: HistoryEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): HistoryEntry; fromJSON(object: any): HistoryEntry; toJSON(message: HistoryEntry): unknown; fromPartial, never>) | undefined; input?: ({ inputJson?: string | undefined; } & { inputJson?: string | undefined; } & Record, never>) | undefined; output?: ({ outputJson?: string | undefined; } & { outputJson?: string | undefined; } & Record, never>) | undefined; error?: ({ message?: string | undefined; errorCode?: string | undefined; } & { message?: string | undefined; errorCode?: string | undefined; } & Record, never>) | undefined; status?: HistoryEntry_Status | undefined; type?: string | undefined; attempts?: number | undefined; lastError?: ({ message?: string | undefined; errorCode?: string | undefined; } & { message?: string | undefined; errorCode?: string | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): HistoryEntry; }; export declare const HistoryEntry_FailedAttempt: { encode(message: HistoryEntry_FailedAttempt, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): HistoryEntry_FailedAttempt; fromJSON(object: any): HistoryEntry_FailedAttempt; toJSON(message: HistoryEntry_FailedAttempt): unknown; fromPartial, never>) | undefined; error?: ({ message?: string | undefined; errorCode?: string | undefined; } & { message?: string | undefined; errorCode?: string | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): HistoryEntry_FailedAttempt; }; export declare const HistoryEntryInput: { encode(message: HistoryEntryInput, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): HistoryEntryInput; fromJSON(object: any): HistoryEntryInput; toJSON(message: HistoryEntryInput): unknown; fromPartial, never>>(object: I): HistoryEntryInput; }; export declare const HistoryEntryOutput: { encode(message: HistoryEntryOutput, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): HistoryEntryOutput; fromJSON(object: any): HistoryEntryOutput; toJSON(message: HistoryEntryOutput): unknown; fromPartial, never>>(object: I): HistoryEntryOutput; }; export declare const HistoryEntryError: { encode(message: HistoryEntryError, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): HistoryEntryError; fromJSON(object: any): HistoryEntryError; toJSON(message: HistoryEntryError): unknown; fromPartial, never>>(object: I): HistoryEntryError; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & Record>, never>; export {};