export type DeleteApiResumesIdPasswordArgs = {id: string}; export type DeleteApiResumesIdPasswordOptions = {baseUrl?: string | undefined, apiKey?: string | undefined, fetch?: typeof fetch | undefined}; /** * Remove resume password * * DELETE /resumes/{id}/password */ export const deleteApiResumesIdPassword = async (args: DeleteApiResumesIdPasswordArgs, options?: DeleteApiResumesIdPasswordOptions) => { const {baseUrl = "http://localhost:3000/api/openapi", fetch: fetchFn = fetch, apiKey} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (apiKey !== undefined) headers.set("x-api-key", apiKey) const url = `${baseUrl.replace(/\/+$/, '')}/resumes/${encodeURIComponent(String(args.id))}/password${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "DELETE", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };