pl-api: pixelfed stories

Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
Nicole Mikołajczyk
2025-05-29 14:54:12 +02:00
parent 92be17d0e2
commit 62f65bfe9d
7 changed files with 274 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
interface CreateStoryPollParams {
/** From 6 to 140 characters. */
question: string;
/** Between 2 and 4 answers. */
answers: string;
can_reply: boolean;
can_react: boolean;
}
type StoryReportType = 'spam' | 'sensitive' | 'abusive' | 'underage' | 'copyright' | 'impersonation' | 'scam' | 'terrorism';
interface CropStoryPhotoParams {
width: number;
height: number;
x: number;
y: number;
}
interface CreateStoryParams {
/** Between 3 and 120 (in seconds). */
duration: number;
can_reply: boolean;
can_react: boolean;
}
export type { CreateStoryPollParams, StoryReportType, CropStoryPhotoParams, CreateStoryParams };