export type ArmProfileId = string; export type DeleteApiV1ArmProfilesIdArgs = {id: ArmProfileId}; export type DeleteApiV1ArmProfilesIdOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Delete arm profile * * DELETE /v1/arm-profiles/{id} */ export const deleteApiV1ArmProfilesId = async (args: DeleteApiV1ArmProfilesIdArgs, options?: DeleteApiV1ArmProfilesIdOptions) => { const {baseUrl = "https://api.ui.com/v1/connector/consoles/942A6FF664C0000000000964970E0000000009E710560000000068A9873F:9999999999/proxy/protect/integration", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() const url = `${baseUrl.replace(/\/+$/, '')}/v1/arm-profiles/${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 };