@admin I think I get it now. I am able to recreate what my client was expecting with the following code. It needed a body property with the data and a headers property with a permanent-link property. Thanks
const body = await response.text(); const permanentLink = await response.headers.get('permanent-link'); return {data:{body,headers:{'permanent-link':permanentLink}}};