pl-api: allow interaction policies for individual statuses
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
88c1b3d018
commit
df430d948f
1 changed files with 4 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
import type { PaginationParams } from './common';
|
import type { PaginationParams } from './common';
|
||||||
|
import { UpdateInteractionPoliciesParams } from './settings';
|
||||||
|
|
||||||
interface CreateStatusWithContent {
|
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. */
|
/** 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>;
|
status_map?: Record<string, string>;
|
||||||
spoiler_text_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;
|
type CreateStatusParams = (CreateStatusWithContent | CreateStatusWithMedia) & CreateStatusOptionalParams;
|
||||||
|
|
Loading…
Reference in a new issue