From 5032cb1c072a5f160947e6e6873be2f5db77571c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Sun, 27 Jul 2025 11:58:12 +0200 Subject: [PATCH] pl-api: support `legal` report category MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-api/lib/params/admin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pl-api/lib/params/admin.ts b/packages/pl-api/lib/params/admin.ts index cb9fb3206..b320ad458 100644 --- a/packages/pl-api/lib/params/admin.ts +++ b/packages/pl-api/lib/params/admin.ts @@ -98,8 +98,8 @@ interface AdminGetReportsParams extends PaginationParams { * @category Request params */ interface AdminUpdateReportParams { - /** String. Change the classification of the report to `spam`, `violation`, or `other`. */ - category?: 'spam' | 'violation' | 'other'; + /** String. Change the classification of the report to `spam`, `legal`, `violation`, or `other`. */ + category?: 'spam' | 'legal' | 'violation' | 'other'; /** Array of Integer. For `violation` category reports, specify the ID of the exact rules broken. Rules and their IDs are available via [GET /api/v1/instance/rules](https://docs.joinmastodon.org/methods/instance/#rules) and [GET /api/v1/instance](https://docs.joinmastodon.org/methods/instance/#get). */ rule_ids?: string[]; }