import type * as Extend from "../../../../index"; /** * @example * { * nextPageToken: "xK9mLPqRtN3vS8wF5hB2cQ==:zWvUxYjM4nKpL7aDgE9HbTcR2mAyX3/Q+CNkfBSw1dZ=" * } */ export interface ProcessorRunListRequest { /** * Filters processor runs by their status. If not provided, no filter is applied. * * The status of a processor run: * * `"PENDING"` - The processor run has not started yet * * `"PROCESSING"` - The processor run is in progress * * `"PROCESSED"` - The processor run completed successfully * * `"FAILED"` - The processor run encountered an error * * `"CANCELLED"` - The processor run was cancelled */ status?: Extend.LegacyProcessorStatus; /** * Filters processor runs by the processor ID. If not provided, runs for all processors are returned. * * Example: `"ex_BMdfq_yWM3sT-ZzvCnA3f"` */ processorId?: string; /** * Filters processor runs by the processor type. If not provided, runs for all processor types are returned. * * Example: `"EXTRACT"` */ processorType?: Extend.LegacyProcessorType; /** * Filters processor runs by the source ID. The source ID corresponds to the entity that created the processor run. * * Example: `"workflow_run_123"` */ sourceId?: string; /** * Filters processor runs by the source that created them. If not provided, runs from all sources are returned. * * The source of the processor run: * * `"ADMIN"` - Created by admin * * `"BATCH_PROCESSOR_RUN"` - Created from a batch processor run * * `"PLAYGROUND"` - Created from playground * * `"WORKFLOW_CONFIGURATION"` - Created from workflow configuration * * `"WORKFLOW_RUN"` - Created from a workflow run * * `"STUDIO"` - Created from Studio * * `"API"` - Created via API */ source?: Extend.ProcessorRunListRequestSource; /** * Filters processor runs by the name of the file. Only returns processor runs where the file name contains this string. * * Example: `"invoice"` */ fileNameContains?: string; /** Sorts the processor runs by the given field. */ sortBy?: Extend.LegacySortByEnum; /** Sorts the processor runs in ascending or descending order. Ascending order means the earliest processor run is returned first. */ sortDir?: Extend.LegacySortDirEnum; nextPageToken?: Extend.LegacyNextPageToken; maxPageSize?: Extend.LegacyMaxPageSize; /** The workspace ID to target. **Required** when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See [Authentication](https://docs.extend.ai/2026-02-09/developers/authentication) for details on API key scopes. */ "x-extend-workspace-id"?: string; }