export type ResumeWeb3ActionsPayload = {actions: Array}; export type CreateApiV1AccountAccountSlugProjectProjectSlugActionsResumeArgs = {accountSlug: string, projectSlug: string, body: ResumeWeb3ActionsPayload}; export type CreateApiV1AccountAccountSlugProjectProjectSlugActionsResumeOptions = {baseUrl?: string | undefined, ApiKeyAuth?: string | undefined, fetch?: typeof fetch | undefined}; /** * Resume all Web3 Actions * * POST /v1/account/{accountSlug}/project/{projectSlug}/actions/resume * * Also accepts auth: BearerAuth */ export const createApiV1AccountAccountSlugProjectProjectSlugActionsResume = async (args: CreateApiV1AccountAccountSlugProjectProjectSlugActionsResumeArgs, options?: CreateApiV1AccountAccountSlugProjectProjectSlugActionsResumeOptions) => { const {baseUrl = "https://api.tenderly.co/api", fetch: fetchFn = fetch, ApiKeyAuth} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") if (ApiKeyAuth !== undefined) headers.set("X-Access-Key", ApiKeyAuth) const url = `${baseUrl.replace(/\/+$/, '')}/v1/account/${encodeURIComponent(String(args.accountSlug))}/project/${encodeURIComponent(String(args.projectSlug))}/actions/resume${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };