export type VerificationRequestPublic = {name: string, verifiedOn: string, notes: string}; export type UpdateApiApiGraphchainChainSdoIdVerificationArgs = {chain: string, sdoId: string, body: VerificationRequestPublic}; export type UpdateApiApiGraphchainChainSdoIdVerificationOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Allowed user roles:


add verification data into the SDO; must be owner or limited owner * * PUT /api/graphchain/{chain}/{sdoId}/verification */ export const updateApiApiGraphchainChainSdoIdVerification = async (args: UpdateApiApiGraphchainChainSdoIdVerificationArgs, options?: UpdateApiApiGraphchainChainSdoIdVerificationOptions) => { const {baseUrl = "https://api.burstiq.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") headers.set('accept', "*/*") const url = `${baseUrl.replace(/\/+$/, '')}/api/graphchain/${encodeURIComponent(String(args.chain))}/${encodeURIComponent(String(args.sdoId))}/verification${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "PUT", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.blob() };