import { StringDict } from "../../../parsing/index.js"; import { ErrorResponse } from "../../index.js"; import { JobWebhook } from "./jobWebhook.js"; /** * Job information for a V2 polling attempt. */ export declare class Job { /** * UUID of the Job. */ id: string; /** * If an error occurred during processing, contains the problem details. */ error?: ErrorResponse; /** * Date and time of the Job creation. */ createdAt: Date; /** * Date and time of the Job completion. Filled once processing is finished. */ completedAt: Date | null | undefined; /** * UUID of the model to be used for the inference. */ modelId: string; /** * Name of the file sent. */ filename: string; /** * Optional alias for the file. */ alias: string; /** * Status of the job. */ status: string; /** * URL to poll for the job status. */ pollingUrl: string; /** * URL to retrieve the inference results. Will be filled once the inference is ready. */ resultUrl?: string; /** * List of responses from webhooks called. Empty until processing is finished. */ webhooks: Array; constructor(serverResponse: StringDict); }