@cfxlabsinc/b2b-services
    Preparing search index...

    One activity of a workflow run, assembled from its history events.

    type WorkflowActivityRecord = {
        activityId: string;
        activityType: string;
        attempt: number;
        closedAt: Date | null;
        failure: WorkflowFailureSummary | null;
        input: unknown[];
        maximumAttempts: number | null;
        result: unknown;
        scheduledAt: Date;
        status:
            | "scheduled"
            | "running"
            | "completed"
            | "failed"
            | "timed_out"
            | "canceled";
    }
    Index
    activityId: string
    activityType: string
    attempt: number

    The attempt that ended it, or the current attempt while pending; 1 when unknown.

    closedAt: Date | null
    failure: WorkflowFailureSummary | null

    The terminal failure, or the last failure while pending or retrying.

    input: unknown[]
    maximumAttempts: number | null

    From the scheduled retry policy; null when unlimited or absent.

    result: unknown

    The decoded first result payload; undefined unless completed.

    scheduledAt: Date
    status:
        | "scheduled"
        | "running"
        | "completed"
        | "failed"
        | "timed_out"
        | "canceled"