InterfaceAccountRepository

interface AccountRepository {
    familiarFollowers: {
        fetch(id: string[], meta?: HttpMetaParams<"none">): Promise<FamiliarFollowers[]>;
    };
    relationships: {
        fetch(params: FetchRelationshipsParams, meta?: HttpMetaParams<"none">): Promise<Relationship[]>;
    };
    search: {
        list(params?: SearchAccountsParams, meta?: HttpMetaParams<"none">): Paginator<mastodon.v1.Account[], SearchAccountsParams>;
    };
    $select(id: string): {
        featuredTags: {
            list(meta?: HttpMetaParams<"none">): Paginator<FeaturedTag[], undefined>;
        };
        followers: {
            list(params?: DefaultPaginationParams, meta?: HttpMetaParams<"none">): Paginator<mastodon.v1.Account[], DefaultPaginationParams>;
        };
        following: {
            list(params?: DefaultPaginationParams, meta?: HttpMetaParams<"none">): Paginator<mastodon.v1.Account[], DefaultPaginationParams>;
        };
        identityProofs: {
            list(meta?: HttpMetaParams<"none">): Paginator<IdentityProof[], undefined>;
        };
        lists: {
            list(meta?: HttpMetaParams<"none">): Paginator<List[], undefined>;
        };
        note: {
            create(params: CreateAccountNoteParams, meta?: HttpMetaParams<"json">): Promise<Relationship>;
        };
        statuses: {
            list(params?: ListAccountStatusesParams, meta?: HttpMetaParams<"none">): Paginator<Status[], ListAccountStatusesParams>;
        };
        block(meta?: HttpMetaParams<"none">): Promise<Relationship>;
        fetch(meta?: HttpMetaParams<"none">): Promise<mastodon.v1.Account>;
        follow(params?: FollowAccountParams, meta?: HttpMetaParams<"json">): Promise<Relationship>;
        mute(params?: MuteAccountParams, meta?: HttpMetaParams<"json">): Promise<Relationship>;
        pin(meta?: HttpMetaParams<"none">): Promise<Relationship>;
        removeFromFollowers(meta?: HttpMetaParams<"none">): Promise<void>;
        unblock(meta?: HttpMetaParams<"none">): Promise<Relationship>;
        unfollow(params?: FollowAccountParams, meta?: HttpMetaParams<"json">): Promise<Relationship>;
        unmute(meta?: HttpMetaParams<"none">): Promise<Relationship>;
        unpin(meta?: HttpMetaParams<"none">): Promise<Relationship>;
    };
    create(params: CreateAccountParams, meta?: HttpMetaParams<"multipart-form">): Promise<Token>;
    fetch(params: FetchAccountsParams, meta?: HttpMetaParams<"none">): Promise<mastodon.v1.Account[]>;
    lookup(params: LookupAccountParams, meta?: HttpMetaParams<"none">): Promise<mastodon.v1.Account>;
    updateCredentials(params: UpdateCredentialsParams, meta?: HttpMetaParams<"multipart-form">): Promise<AccountCredentials>;
    verifyCredentials(meta?: HttpMetaParams<"none">): Promise<AccountCredentials>;
}

Properties

familiarFollowers: {
    fetch(id: string[], meta?: HttpMetaParams<"none">): Promise<FamiliarFollowers[]>;
}

Type declaration

relationships: {
    fetch(params: FetchRelationshipsParams, meta?: HttpMetaParams<"none">): Promise<Relationship[]>;
}

Type declaration

search: {
    list(params?: SearchAccountsParams, meta?: HttpMetaParams<"none">): Paginator<mastodon.v1.Account[], SearchAccountsParams>;
}

Type declaration

Methods