Dex TypeScript SDK 1.28.1
    Preparing search index...

    Interface FlowResult

    Describes an observed Flow status and its output-bearing completions.

    interface FlowResult {
        completions: readonly StepCompletion[];
        errorMessage: string | undefined;
        errorType: FlowErrorType | undefined;
        isTerminal: boolean;
        status: FlowStatus;
        singleOutput<Output>(codec?: Codec<Output>): Output;
    }
    Index

    Properties

    completions: readonly StepCompletion[]

    Immutable completions in server collection order. Parallel Step order is not deterministic.

    errorMessage: string | undefined

    Server failure detail when available.

    errorType: FlowErrorType | undefined

    Dex failure category when available.

    isTerminal: boolean

    Whether the observed run is terminal.

    status: FlowStatus

    Observed lifecycle state. A running SubFlow value is a durable snapshot.

    Methods

    • Decodes the output when exactly one completion exists.

      Type Parameters

      • Output

        Expected application output type.

      Parameters

      • Optionalcodec: Codec<Output>

        Codec for the expected output type. Omit this for JSON objects. Scalar wire kinds still need an explicit codec.

      Returns Output

      The only decoded Step output.

      TypeError when nonterminal or when zero or multiple outputs exist.