bigbuffet-rw/packages/pl-api/lib/params/my-account.ts
marcin mikołajczak 199c43d241 pl-api: implement most of Mastodon 4.3.0 api
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-11-01 17:30:32 +01:00

55 lines
1 KiB
TypeScript

import type { PaginationParams } from './common';
/**
* @category Request params
*/
interface GetBookmarksParams extends PaginationParams {
/**
* Bookmark folder ID
* Requires features{@link Features['bookmarkFolders']}.
*/
folder_id?: string;
}
/**
* @category Request params
*/
type GetFavouritesParams = PaginationParams;
/**
* @category Request params
*/
type GetFollowRequestsParams = Omit<PaginationParams, 'min_id'>;
/**
* @category Request params
*/
type GetEndorsementsParams = Omit<PaginationParams, 'min_id'>;
/**
* @category Request params
*/
type GetFollowedTagsParams = PaginationParams;
/**
* @category Request params
*/
interface CreateBookmarkFolderParams {
name: string;
emoji?: string;
}
/**
* @category Request params
*/
type UpdateBookmarkFolderParams = Partial<CreateBookmarkFolderParams>;
export type {
GetBookmarksParams,
GetFavouritesParams,
GetFollowRequestsParams,
GetEndorsementsParams,
GetFollowedTagsParams,
CreateBookmarkFolderParams,
UpdateBookmarkFolderParams,
};