import client from '../client' ; import { AxiosRequestConfig } from 'axios' ; export interface UpdateArgs { metadata : Record < string , any > ; } export async function accountUpdate ( opts , context ) { const { metadata } = opts || { } ; const res = await client . put ( `/account` , { metadata } , context ) ; return res ?. data ?. data [ 0 ] ; }