投票支持

This commit is contained in:
浪子
2026-05-14 19:29:34 +08:00
parent a2badc2d4f
commit e55a1a063d
5 changed files with 819 additions and 42 deletions
+53
View File
@@ -174,6 +174,59 @@ export type CachedStatusAttachment = {
description: string | null;
};
export type Poll = {
id: string;
status_id: string;
user_id: string;
expires_at: string | null;
multiple: number;
hide_totals: number;
created_at: string;
};
export type PollOption = {
poll_id: string;
position: number;
title: string;
};
export type PollVote = {
poll_id: string;
position: number;
voter_actor: string;
created_at: string;
};
export type AccountList = {
id: string;
user_id: string;
title: string;
replies_policy: string;
exclusive: number;
created_at: string;
};
export type PushSubscription = {
id: string;
user_id: string;
endpoint: string;
server_key: string;
auth: string;
alerts_json: string;
policy: string;
created_at: string;
updated_at: string;
};
export type ScheduledStatus = {
id: string;
user_id: string;
params_json: string;
media_ids_json: string;
scheduled_at: string;
created_at: string;
};
export type OAuthToken = {
token: string;
user_id: string;