summaryrefslogtreecommitdiff
path: root/packages/misskey-js/src/consts.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/misskey-js/src/consts.ts')
-rw-r--r--packages/misskey-js/src/consts.ts43
1 files changed, 39 insertions, 4 deletions
diff --git a/packages/misskey-js/src/consts.ts b/packages/misskey-js/src/consts.ts
index 4b269605ac..890b43639d 100644
--- a/packages/misskey-js/src/consts.ts
+++ b/packages/misskey-js/src/consts.ts
@@ -1,11 +1,19 @@
import type { operations } from './autogen/types.js';
import type {
- AbuseReportNotificationRecipient, Ad,
+ AbuseReportNotificationRecipient,
+ Ad,
Announcement,
- EmojiDetailed, InviteCode,
+ EmojiDetailed,
+ Flash,
+ GalleryPost,
+ InviteCode,
MetaDetailed,
Note,
- Role, SystemWebhook, UserLite,
+ Page,
+ Role,
+ ReversiGameDetailed,
+ SystemWebhook,
+ UserLite,
} from './autogen/models.js';
export const notificationTypes = ['note', 'follow', 'mention', 'reply', 'renote', 'quote', 'reaction', 'pollVote', 'pollEnded', 'receiveFollowRequest', 'followRequestAccepted', 'groupInvited', 'app', 'roleAssigned', 'achievementEarned', 'edited'] as const;
@@ -155,6 +163,10 @@ export const moderationLogTypes = [
'createAbuseReportNotificationRecipient',
'updateAbuseReportNotificationRecipient',
'deleteAbuseReportNotificationRecipient',
+ 'deleteAccount',
+ 'deletePage',
+ 'deleteFlash',
+ 'deleteGalleryPost',
] as const;
// See: packages/backend/src/core/ReversiService.ts@L410
@@ -165,7 +177,7 @@ export const reversiUpdateKeys = [
'canPutEverywhere',
'loopedBoard',
'timeLimitForEachTurn',
-] as const;
+] as const satisfies (keyof ReversiGameDetailed)[];
export type ReversiUpdateKey = typeof reversiUpdateKeys[number];
@@ -398,4 +410,27 @@ export type ModerationLogPayloads = {
recipientId: string;
recipient: AbuseReportNotificationRecipient;
};
+ deleteAccount: {
+ userId: string;
+ userUsername: string;
+ userHost: string | null;
+ };
+ deletePage: {
+ pageId: string;
+ pageUserId: string;
+ pageUserUsername: string;
+ page: Page;
+ };
+ deleteFlash: {
+ flashId: string;
+ flashUserId: string;
+ flashUserUsername: string;
+ flash: Flash;
+ };
+ deleteGalleryPost: {
+ postId: string;
+ postUserId: string;
+ postUserUsername: string;
+ post: GalleryPost;
+ };
};