Files
ncd-fe/packages/pl-api/lib/params/stories.ts
nicole mikołajczyk ad00129411 pl-api: migrate to oxfmt+oxlint
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
2026-02-15 03:00:05 +01:00

35 lines
665 B
TypeScript

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 };