/** * incident.io * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime.js'; import { type WorkflowRunsListResultV2 } from '../models/WorkflowRunsListResultV2.js'; import { type WorkflowRunsShowResultV2 } from '../models/WorkflowRunsShowResultV2.js'; export interface WorkflowRunsV2ListRequest { /** * Unique identifier for the workflow to filter by */ workflow_id?: string; /** * Unique identifier for the incident to filter by */ incident_id?: string; /** * Filter on workflow run created at timestamp. The accepted operators are 'gte', 'lte' and 'date_range'. */ created_at?: { [key: string]: Array; }; /** * Number of workflow runs to return per page */ page_size?: number; /** * A workflow run's ID. This endpoint will return a list of workflow runs after this ID in relation to the API response order. */ after?: string; } export interface WorkflowRunsV2ShowRequest { /** * Unique identifier for the workflow run */ id: string; } /** * */ export declare class WorkflowRunsV2Api extends runtime.BaseAPI { /** * Creates request options for workflowRunsV2List without sending the request */ workflowRunsV2ListRequestOpts(requestParameters: WorkflowRunsV2ListRequest): Promise; /** * List workflow runs, newest first. Cancelled runs are never returned. The webhook delivery on each step omits the headers and bodies. Fetch a single run to see them. You can filter on when a run was created: ``` # Runs created on or after a date curl \'https://api.incident.io/v2/workflow_runs?created_at[gte]=2026-07-01\' # Runs created on or before a date curl \'https://api.incident.io/v2/workflow_runs?created_at[lte]=2026-07-31\' # Runs created between two dates curl \'https://api.incident.io/v2/workflow_runs?created_at[date_range]=2026-07-01~2026-07-31\' ``` Paginate by passing the last run\'s ID as `after`. The response\'s `pagination_meta.after` carries the value to send next, and is absent on the last page. An `after` that isn\'t a run in your organisation returns 404. * List WorkflowRuns V2 */ workflowRunsV2ListRaw(requestParameters: WorkflowRunsV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List workflow runs, newest first. Cancelled runs are never returned. The webhook delivery on each step omits the headers and bodies. Fetch a single run to see them. You can filter on when a run was created: ``` # Runs created on or after a date curl \'https://api.incident.io/v2/workflow_runs?created_at[gte]=2026-07-01\' # Runs created on or before a date curl \'https://api.incident.io/v2/workflow_runs?created_at[lte]=2026-07-31\' # Runs created between two dates curl \'https://api.incident.io/v2/workflow_runs?created_at[date_range]=2026-07-01~2026-07-31\' ``` Paginate by passing the last run\'s ID as `after`. The response\'s `pagination_meta.after` carries the value to send next, and is absent on the last page. An `after` that isn\'t a run in your organisation returns 404. * List WorkflowRuns V2 */ workflowRunsV2List(requestParameters?: WorkflowRunsV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for workflowRunsV2Show without sending the request */ workflowRunsV2ShowRequestOpts(requestParameters: WorkflowRunsV2ShowRequest): Promise; /** * Show a single workflow run, including the full webhook delivery for any step that sent one. A delivery is kept for 7 days. After that `webhook_delivery_state` becomes `expired` and the delivery itself is absent: the step still ran and may well have succeeded, so an expired delivery must not be read as a failure. This may return a cancelled run, in which case `cancelled_at` is set. * Show WorkflowRuns V2 */ workflowRunsV2ShowRaw(requestParameters: WorkflowRunsV2ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Show a single workflow run, including the full webhook delivery for any step that sent one. A delivery is kept for 7 days. After that `webhook_delivery_state` becomes `expired` and the delivery itself is absent: the step still ran and may well have succeeded, so an expired delivery must not be read as a failure. This may return a cancelled run, in which case `cancelled_at` is set. * Show WorkflowRuns V2 */ workflowRunsV2Show(requestParameters: WorkflowRunsV2ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }