export type DeleteApiApiGraphchainChainEdgesEdgeIdArgs = {chain: string, edgeId: string}; export type DeleteApiApiGraphchainChainEdgesEdgeIdOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Allowed user roles:


deletes an edge based on from chain and provided edge ID. Must be owner or limited owner * * DELETE /api/graphchain/{chain}/edges/{edgeId} */ export const deleteApiApiGraphchainChainEdgesEdgeId = async (args: DeleteApiApiGraphchainChainEdgesEdgeIdArgs, options?: DeleteApiApiGraphchainChainEdgesEdgeIdOptions) => { const {baseUrl = "https://api.burstiq.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() const url = `${baseUrl.replace(/\/+$/, '')}/api/graphchain/${encodeURIComponent(String(args.chain))}/edges/${encodeURIComponent(String(args.edgeId))}${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 };