From df430d948f1a6c6512c61d66b25b495d408bace5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Mon, 28 Oct 2024 00:18:08 +0100 Subject: [PATCH] pl-api: allow interaction policies for individual statuses MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-api/lib/params/statuses.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/pl-api/lib/params/statuses.ts b/packages/pl-api/lib/params/statuses.ts index 3b8a5bd68..e9e35015b 100644 --- a/packages/pl-api/lib/params/statuses.ts +++ b/packages/pl-api/lib/params/statuses.ts @@ -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; spoiler_text_map?: Record; + + /** The 'interaction_policy' field can be used to set an interaction policy for this status. */ + interaction_policy?: UpdateInteractionPoliciesParams['public']; } type CreateStatusParams = (CreateStatusWithContent | CreateStatusWithMedia) & CreateStatusOptionalParams;