pl-api: pixelfed stories
Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
26
packages/pl-api/lib/params/stories.ts
Normal file
26
packages/pl-api/lib/params/stories.ts
Normal 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 };
|
||||
Reference in New Issue
Block a user