Sporades SDK API
    Preparing search index...

    Type Alias JobState

    JobState: JobSummary & {
        actor:
            | { mode: "current-user"; userId: string }
            | { mode: "privileged-server-role" };
        attemptHistory?: {
            attempt: number;
            code?: string;
            completedAt: string;
            outcome: string;
            startedAt: string;
        }[];
        enqueuedBy: | { mode: "user"; userId: string }
        | { mode: "schedule"; scheduledFor: string; scheduleName: string };
        failure?: { code: string; message: string };
        result?: JsonValue;
    }

    Server-only state for a known Job, including provenance and execution actor.