import { dropboxRpc } from './request.ts' export type DropboxAccount = { account_id: string name: { display_name: string familiar_name: string given_name: string surname: string } email: string email_verified: boolean disabled: boolean country?: string locale?: string referral_link?: string account_type?: { '.tag': string } profile_photo_url?: string } /** * Return the account connected through the saved `dropbox` OAuth integration. * @example * import getCurrentAccount from 'kody:@kentcdodds/dropbox/get-current-account' * const account = await getCurrentAccount() */ export default async function getCurrentAccount(): Promise { return dropboxRpc('users/get_current_account') }