pl-api: allow interaction policies for individual statuses

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-10-28 00:18:08 +01:00
parent 88c1b3d018
commit df430d948f

View file

@ -1,4 +1,5 @@
import type { PaginationParams } from './common';
import { UpdateInteractionPoliciesParams } from './settings';
interface CreateStatusWithContent {
/** The text content of the status. If `media_ids` is provided, this becomes optional. Attaching a `poll` is optional while `status` is provided. */
@ -83,6 +84,9 @@ interface CreateStatusOptionalParams {
status_map?: Record<string, string>;
spoiler_text_map?: Record<string, string>;
/** The 'interaction_policy' field can be used to set an interaction policy for this status. */
interaction_policy?: UpdateInteractionPoliciesParams['public'];
}
type CreateStatusParams = (CreateStatusWithContent | CreateStatusWithMedia) & CreateStatusOptionalParams;