export type DeleteApiResourcesSsoV1ConfigurationsExcludedEmailsEmailArgs = {email: string}; export type DeleteApiResourcesSsoV1ConfigurationsExcludedEmailsEmailOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Delete SSO excluded email * * DELETE /resources/sso/v1/configurations/excluded-emails/{email} */ export const deleteApiResourcesSsoV1ConfigurationsExcludedEmailsEmail = async (args: DeleteApiResourcesSsoV1ConfigurationsExcludedEmailsEmailArgs, options?: DeleteApiResourcesSsoV1ConfigurationsExcludedEmailsEmailOptions) => { const {baseUrl = "http://localhost:8181", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() const url = `${baseUrl.replace(/\/+$/, '')}/resources/sso/v1/configurations/excluded-emails/${encodeURIComponent(String(args.email))}${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 };