InterfaceFilterRepository

interface FilterRepository {
    keywords: {
        $select(id: string): {
            fetch(meta?: HttpMetaParams<"none">): Paginator<FilterKeyword, undefined>;
            remove(meta?: HttpMetaParams<"none">): Promise<void>;
            update(params: CreateFilterKeywordParams, meta?: HttpMetaParams<"json">): Promise<FilterKeyword>;
        };
    };
    statuses: {
        $select(id: string): {
            fetch(): Promise<FilterStatus>;
            remove(): Promise<FilterStatus>;
        };
    };
    $select(id: string): {
        keywords: {
            create(params: CreateFilterKeywordParams, meta?: HttpMetaParams<"json">): Promise<FilterKeyword>;
            list(meta?: HttpMetaParams<"none">): Paginator<FilterKeyword[], undefined>;
        };
        statuses: {
            create(params: CreateFilterStatusParams, meta?: HttpMetaParams<"json">): Promise<FilterStatus>;
            list(meta?: HttpMetaParams<"none">): Paginator<FilterStatus[], undefined>;
        };
        fetch(meta?: HttpMetaParams<"none">): Promise<mastodon.v2.Filter>;
        remove(meta?: HttpMetaParams<"none">): Promise<void>;
        update(params?: mastodon.rest.v2.UpdateFilterParams, meta?: HttpMetaParams<"json">): Promise<mastodon.v2.Filter>;
    };
    create(params?: mastodon.rest.v2.CreateFilterParams, meta?: HttpMetaParams<"json">): Promise<mastodon.v2.Filter>;
    list(meta?: HttpMetaParams<"none">): Paginator<mastodon.v2.Filter[], undefined>;
}

Properties

Methods

Properties

keywords: {
    $select(id: string): {
        fetch(meta?: HttpMetaParams<"none">): Paginator<FilterKeyword, undefined>;
        remove(meta?: HttpMetaParams<"none">): Promise<void>;
        update(params: CreateFilterKeywordParams, meta?: HttpMetaParams<"json">): Promise<FilterKeyword>;
    };
}
statuses: {
    $select(id: string): {
        fetch(): Promise<FilterStatus>;
        remove(): Promise<FilterStatus>;
    };
}

Methods