export type DeleteApiCallingV1ConferencesIdConferenceIdOptions = {baseUrl?: string | undefined, Basic?: {username: string, password: string} | undefined, fetch?: typeof fetch | undefined}; /** * Kick Conference All * * DELETE /calling/v1/conferences/id/{conferenceId} * * Also accepts auth: Signed */ export const deleteApiCallingV1ConferencesIdConferenceId = async (options?: DeleteApiCallingV1ConferencesIdConferenceIdOptions) => { const {baseUrl = "https://calling.api.sinch.com", fetch: fetchFn = fetch, Basic} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (Basic !== undefined) headers.set('authorization', `Basic ${btoa(`${Basic.username}:${Basic.password}`)}`) const url = `${baseUrl.replace(/\/+$/, '')}/calling/v1/conferences/id/${encodeURIComponent(String(args.conferenceId))}${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 };