export type UpdateApiApiAgentExecutionIdResumeArgs = {executionId: string}; export type UpdateApiApiAgentExecutionIdResumeOptions = {baseUrl?: string | undefined, apiKey?: string | undefined, fetch?: typeof fetch | undefined}; /** * PUT /api/agent/{executionId}/resume */ export const updateApiApiAgentExecutionIdResume = async (args: UpdateApiApiAgentExecutionIdResumeArgs, options?: UpdateApiApiAgentExecutionIdResumeOptions) => { const {baseUrl = "https://developer.orkescloud.com", fetch: fetchFn = fetch, apiKey} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (apiKey !== undefined) headers.set("X-Authorization", apiKey) const url = `${baseUrl.replace(/\/+$/, '')}/api/agent/${encodeURIComponent(String(args.executionId))}/resume${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "PUT", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };