export type DeleteApiApiGraphchainEdgeFromDictFromSdoIdLabelToDictToSdoIdArgs = {fromDict: string, fromSdoId: string, label: string, toDict: string, toSdoId: string};
export type DeleteApiApiGraphchainEdgeFromDictFromSdoIdLabelToDictToSdoIdOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined};
/**
* Allowed user roles:
deletes an edge with all 5 identifiers; must be owner or limited owner
*
* DELETE /api/graphchain/edge/{fromDict}/{fromSdoId}/{label}/{toDict}/{toSdoId}
*/
export const deleteApiApiGraphchainEdgeFromDictFromSdoIdLabelToDictToSdoId = async (args: DeleteApiApiGraphchainEdgeFromDictFromSdoIdLabelToDictToSdoIdArgs, options?: DeleteApiApiGraphchainEdgeFromDictFromSdoIdLabelToDictToSdoIdOptions) => {
const {baseUrl = "https://api.burstiq.com", fetch: fetchFn = fetch} = options ?? {}
const query = new URLSearchParams()
const headers = new Headers()
const url = `${baseUrl.replace(/\/+$/, '')}/api/graphchain/edge/${encodeURIComponent(String(args.fromDict))}/${encodeURIComponent(String(args.fromSdoId))}/${encodeURIComponent(String(args.label))}/${encodeURIComponent(String(args.toDict))}/${encodeURIComponent(String(args.toSdoId))}${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
};