// @ts-ignore /* eslint-disable */ import request from '@repo/api-client' /** Retrieve all executions Retrieve all executions from your instance. GET /executions */ export async function getExecutions( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.getExecutionsParams, options?: { [key: string]: any } ) { return request('/executions', { method: 'GET', params: { // limit has a default value: 100 limit: '100', ...params }, ...(options || {}) }) } /** Retrieve an execution Retrieve an execution from your instance. GET /executions/${param0} */ export async function getExecutionsId( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.getExecutionsIdParams, options?: { [key: string]: any } ) { const { id: param0, ...queryParams } = params return request(`/executions/${param0}`, { method: 'GET', params: { ...queryParams }, ...(options || {}) }) } /** Delete an execution Deletes an execution from your instance. DELETE /executions/${param0} */ export async function deleteExecutionsId( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.deleteExecutionsIdParams, options?: { [key: string]: any } ) { const { id: param0, ...queryParams } = params return request(`/executions/${param0}`, { method: 'DELETE', params: { ...queryParams }, ...(options || {}) }) } /** Retry an execution Retry an execution from your instance. POST /executions/${param0}/retry */ export async function postExecutionsIdRetry( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.postExecutionsIdRetryParams, body: { /** Whether to load the currently saved workflow to execute instead of the one saved at the time of the execution. If set to true, it will retry with the latest version of the workflow. */ loadWorkflow?: boolean }, options?: { [key: string]: any } ) { const { id: param0, ...queryParams } = params return request(`/executions/${param0}/retry`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, params: { ...queryParams }, data: body, ...(options || {}) }) }