import { apiRequestPost, apiRequestGet } from 'mastodon/api'; import type { ApiAccountJSON } from 'mastodon/api_types/accounts'; import type { ApiRelationshipJSON } from 'mastodon/api_types/relationships'; import type { ApiHashtagJSON } from 'mastodon/api_types/tags'; export const apiSubmitAccountNote = (id: string, value: string) => apiRequestPost(`v1/accounts/${id}/note`, { comment: value, }); export const apiFollowAccount = ( id: string, params?: { reblogs: boolean; }, ) => apiRequestPost(`v1/accounts/${id}/follow`, { ...params, }); export const apiUnfollowAccount = (id: string) => apiRequestPost(`v1/accounts/${id}/unfollow`); export const apiRemoveAccountFromFollowers = (id: string) => apiRequestPost( `v1/accounts/${id}/remove_from_followers`, ); export const apiGetFeaturedTags = (id: string) => apiRequestGet(`v1/accounts/${id}/featured_tags`); export const apiGetEndorsedAccounts = (id: string) => apiRequestGet(`v1/accounts/${id}/endorsements`);