2023-09-21 09:48:15 +00:00
|
|
|
export const notificationTypes = ['note', 'follow', 'mention', 'reply', 'renote', 'quote', 'reaction', 'pollVote', 'pollEnded', 'receiveFollowRequest', 'followRequestAccepted', 'groupInvited', 'app'] as const;
|
2023-03-30 00:33:19 +00:00
|
|
|
|
|
|
|
export const noteVisibilities = ['public', 'home', 'followers', 'specified'] as const;
|
|
|
|
|
|
|
|
export const mutedNoteReasons = ['word', 'manual', 'spam', 'other'] as const;
|
|
|
|
|
|
|
|
export const ffVisibility = ['public', 'followers', 'private'] as const;
|
|
|
|
|
|
|
|
export const permissions = [
|
|
|
|
'read:account',
|
|
|
|
'write:account',
|
|
|
|
'read:blocks',
|
|
|
|
'write:blocks',
|
|
|
|
'read:drive',
|
|
|
|
'write:drive',
|
|
|
|
'read:favorites',
|
|
|
|
'write:favorites',
|
|
|
|
'read:following',
|
|
|
|
'write:following',
|
|
|
|
'read:messaging',
|
|
|
|
'write:messaging',
|
|
|
|
'read:mutes',
|
|
|
|
'write:mutes',
|
|
|
|
'write:notes',
|
|
|
|
'read:notifications',
|
|
|
|
'write:notifications',
|
|
|
|
'read:reactions',
|
|
|
|
'write:reactions',
|
|
|
|
'write:votes',
|
|
|
|
'read:pages',
|
|
|
|
'write:pages',
|
|
|
|
'write:page-likes',
|
|
|
|
'read:page-likes',
|
|
|
|
'read:user-groups',
|
|
|
|
'write:user-groups',
|
|
|
|
'read:channels',
|
|
|
|
'write:channels',
|
|
|
|
'read:gallery',
|
|
|
|
'write:gallery',
|
|
|
|
'read:gallery-likes',
|
|
|
|
'write:gallery-likes',
|
2023-08-21 04:01:08 +00:00
|
|
|
'read:flash',
|
|
|
|
'write:flash',
|
|
|
|
'read:flash-likes',
|
|
|
|
'write:flash-likes',
|
2023-03-30 00:33:19 +00:00
|
|
|
];
|
2023-09-23 09:28:16 +00:00
|
|
|
|
|
|
|
export const moderationLogTypes = [
|
|
|
|
'updateServerSettings',
|
|
|
|
'suspend',
|
|
|
|
'unsuspend',
|
|
|
|
'updateUserNote',
|
|
|
|
'addCustomEmoji',
|
|
|
|
'assignRole',
|
|
|
|
'unassignRole',
|
|
|
|
'updateRole',
|
|
|
|
'deleteRole',
|
|
|
|
'clearQueue',
|
|
|
|
'promoteQueue',
|
|
|
|
'deleteDriveFile',
|
|
|
|
'deleteNote',
|
|
|
|
'createGlobalAnnouncement',
|
|
|
|
'createUserAnnouncement',
|
2023-09-23 11:50:02 +00:00
|
|
|
'resetPassword',
|
|
|
|
'suspendRemoteInstance',
|
|
|
|
'unsuspendRemoteInstance',
|
2023-09-23 09:28:16 +00:00
|
|
|
] as const;
|
|
|
|
|
|
|
|
export type ModerationLogPayloads = {
|
|
|
|
updateServerSettings: {
|
|
|
|
before: any | null;
|
|
|
|
after: any | null;
|
|
|
|
};
|
|
|
|
suspend: {
|
|
|
|
targetId: string;
|
|
|
|
};
|
|
|
|
unsuspend: {
|
|
|
|
targetId: string;
|
|
|
|
};
|
|
|
|
updateUserNote: {
|
|
|
|
userId: string;
|
|
|
|
before: string | null;
|
|
|
|
after: string | null;
|
|
|
|
};
|
|
|
|
addCustomEmoji: {
|
|
|
|
emojiId: string;
|
|
|
|
};
|
|
|
|
assignRole: {
|
|
|
|
userId: string;
|
|
|
|
roleId: string;
|
|
|
|
roleName: string;
|
|
|
|
expiresAt: string | null;
|
|
|
|
};
|
|
|
|
unassignRole: {
|
|
|
|
userId: string;
|
|
|
|
roleId: string;
|
|
|
|
roleName: string;
|
|
|
|
};
|
|
|
|
updateRole: {
|
|
|
|
roleId: string;
|
|
|
|
before: any;
|
|
|
|
after: any;
|
|
|
|
};
|
|
|
|
deleteRole: {
|
|
|
|
roleId: string;
|
2023-09-24 01:33:30 +00:00
|
|
|
role: any;
|
2023-09-23 09:28:16 +00:00
|
|
|
};
|
|
|
|
clearQueue: Record<string, never>;
|
|
|
|
promoteQueue: Record<string, never>;
|
|
|
|
deleteDriveFile: {
|
|
|
|
fileId: string;
|
|
|
|
fileUserId: string | null;
|
|
|
|
};
|
|
|
|
deleteNote: {
|
|
|
|
noteId: string;
|
|
|
|
noteUserId: string;
|
|
|
|
note: any;
|
|
|
|
};
|
|
|
|
createGlobalAnnouncement: {
|
|
|
|
announcementId: string;
|
|
|
|
announcement: any;
|
|
|
|
};
|
|
|
|
createUserAnnouncement: {
|
|
|
|
announcementId: string;
|
|
|
|
announcement: any;
|
|
|
|
userId: string;
|
|
|
|
};
|
2023-09-23 11:50:02 +00:00
|
|
|
resetPassword: {
|
|
|
|
targetId: string;
|
|
|
|
};
|
|
|
|
suspendRemoteInstance: {
|
|
|
|
id: string;
|
|
|
|
host: string;
|
|
|
|
};
|
|
|
|
unsuspendRemoteInstance: {
|
|
|
|
id: string;
|
|
|
|
host: string;
|
|
|
|
};
|
2023-09-23 09:28:16 +00:00
|
|
|
};
|