export type DeleteApiApiV1VoiceCallsVoiceCallIdReviewArgs = {voice_call_id: string}; export type DeleteApiApiV1VoiceCallsVoiceCallIdReviewOptions = {baseUrl: string, fetch?: typeof fetch | undefined}; /** * Delete Call Review * * DELETE /api/v1/voice-calls/{voice_call_id}/review */ export const deleteApiApiV1VoiceCallsVoiceCallIdReview = async (args: DeleteApiApiV1VoiceCallsVoiceCallIdReviewArgs, options: DeleteApiApiV1VoiceCallsVoiceCallIdReviewOptions) => { const {baseUrl, fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() const url = `${baseUrl.replace(/\/+$/, '')}/api/v1/voice-calls/${encodeURIComponent(String(args.voice_call_id))}/review${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 };