export type DeleteApiApiPublicV1TeamEscalationsIdArgs = {id: string}; export type DeleteApiApiPublicV1TeamEscalationsIdOptions = {baseUrl: string, ApiKey?: string | undefined, fetch?: typeof fetch | undefined}; /** * Delete team escalation settings * * DELETE /api/public/v1/team-escalations/{id} */ export const deleteApiApiPublicV1TeamEscalationsId = async (args: DeleteApiApiPublicV1TeamEscalationsIdArgs, options: DeleteApiApiPublicV1TeamEscalationsIdOptions) => { const {baseUrl, fetch: fetchFn = fetch, ApiKey} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (ApiKey !== undefined) headers.set("Authorization", ApiKey) const url = `${baseUrl.replace(/\/+$/, '')}/api/public/v1/team-escalations/${encodeURIComponent(String(args.id))}${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 };