import type * as Extend from "../../../../index"; /** * @example * { * nextPageToken: "xK9mLPqRtN3vS8wF5hB2cQ==:zWvUxYjM4nKpL7aDgE9HbTcR2mAyX3/Q+CNkfBSw1dZ=" * } */ export interface WorkflowRunsListRequest { status?: Extend.WorkflowRunStatus; /** * Filters workflow runs by the workflow ID. If not provided, runs for all workflows are returned. * * Example: `"workflow_BMdfq_yWM3sT-ZzvCnA3f"` */ workflowId?: string; /** * Filters workflow runs by the batch ID. This is useful for fetching all runs for a given batch created via the [Batch Run Workflow](https://docs.extend.ai/2026-02-09/developers/api-reference/endpoints/workflow/batch-create-workflow-runs) endpoint. * * Example: `"batch_7Ws31-F5"` */ batchId?: string; /** * Filters runs by the name of the file. Only returns runs where the file name contains this string. * * Example: `"invoice"` */ fileNameContains?: string; sortBy?: Extend.SortBy; sortDir?: Extend.SortDir; nextPageToken?: Extend.NextPageToken; maxPageSize?: Extend.MaxPageSize; /** 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; }