// packages/abstract-apis/src/functions/share_utils.ts import { getAuthorizationHeader } from '@putkoff/abstract-utilities'; export async function fetchSharePatch( opts: any ): Promise { const url = `https://api.abstractendeavors.com/secure-files/files/share`; const res = await fetch(url, { method: 'POST', headers: getAuthorizationHeader({ 'Content-Type': 'application/json' }), credentials: 'include', body: JSON.stringify(opts), }); if (!res.ok) { throw new Error(`Patch failed: ${res.status} ${res.statusText}`); } return res.json(); }