From dceb64944c6fbc946fb1e39331553e82edda9982 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 8 Jun 2021 14:09:32 +0900 Subject: [PATCH] Remove endpoint descriptions #6627 --- src/server/api/endpoints.ts | 3 - .../api/endpoints/admin/abuse-user-reports.ts | 5 - .../api/endpoints/admin/accounts/create.ts | 5 - .../endpoints/admin/announcements/create.ts | 5 - .../endpoints/admin/announcements/delete.ts | 5 - .../api/endpoints/admin/announcements/list.ts | 5 - .../endpoints/admin/announcements/update.ts | 5 - .../admin/delete-all-files-of-a-user.ts | 9 - src/server/api/endpoints/admin/delete-logs.ts | 5 - .../admin/drive/clean-remote-files.ts | 5 - .../api/endpoints/admin/drive/cleanup.ts | 5 - src/server/api/endpoints/admin/drive/files.ts | 5 - src/server/api/endpoints/admin/emoji/add.ts | 4 - src/server/api/endpoints/admin/emoji/copy.ts | 5 - .../api/endpoints/admin/emoji/list-remote.ts | 5 - src/server/api/endpoints/admin/emoji/list.ts | 5 - .../api/endpoints/admin/emoji/remove.ts | 4 - .../api/endpoints/admin/emoji/update.ts | 4 - .../admin/federation/delete-all-files.ts | 5 - .../admin/federation/remove-all-following.ts | 5 - .../admin/federation/update-instance.ts | 5 - .../api/endpoints/admin/get-table-stats.ts | 5 - src/server/api/endpoints/admin/invite.ts | 5 - src/server/api/endpoints/admin/logs.ts | 5 - .../api/endpoints/admin/moderators/add.ts | 9 - .../api/endpoints/admin/moderators/remove.ts | 9 - .../api/endpoints/admin/promo/create.ts | 5 - src/server/api/endpoints/admin/queue/clear.ts | 5 - .../endpoints/admin/queue/deliver-delayed.ts | 5 - .../endpoints/admin/queue/inbox-delayed.ts | 5 - src/server/api/endpoints/admin/queue/jobs.ts | 5 - src/server/api/endpoints/admin/queue/stats.ts | 5 - src/server/api/endpoints/admin/relays/add.ts | 5 - src/server/api/endpoints/admin/relays/list.ts | 5 - .../api/endpoints/admin/relays/remove.ts | 5 - .../api/endpoints/admin/reset-password.ts | 9 - .../admin/resolve-abuse-user-report.ts | 5 - .../api/endpoints/admin/resync-chart.ts | 5 - src/server/api/endpoints/admin/send-email.ts | 5 - src/server/api/endpoints/admin/server-info.ts | 5 - .../endpoints/admin/show-moderation-logs.ts | 5 - src/server/api/endpoints/admin/show-user.ts | 9 - src/server/api/endpoints/admin/show-users.ts | 5 - .../api/endpoints/admin/silence-user.ts | 9 - .../api/endpoints/admin/suspend-user.ts | 9 - .../api/endpoints/admin/unsilence-user.ts | 9 - .../api/endpoints/admin/unsuspend-user.ts | 9 - src/server/api/endpoints/admin/update-meta.ts | 159 ------------------ src/server/api/endpoints/admin/vacuum.ts | 5 - src/server/api/endpoints/announcements.ts | 5 - src/server/api/endpoints/antennas/create.ts | 5 - src/server/api/endpoints/antennas/delete.ts | 5 - src/server/api/endpoints/antennas/list.ts | 5 - src/server/api/endpoints/antennas/notes.ts | 5 - src/server/api/endpoints/antennas/show.ts | 5 - src/server/api/endpoints/antennas/update.ts | 5 - src/server/api/endpoints/ap/get.ts | 8 - src/server/api/endpoints/ap/show.ts | 8 - src/server/api/endpoints/app/create.ts | 21 --- .../api/endpoints/auth/session/generate.ts | 9 - src/server/api/endpoints/auth/session/show.ts | 4 - .../api/endpoints/auth/session/userkey.ts | 8 - src/server/api/endpoints/blocking/create.ts | 9 - src/server/api/endpoints/blocking/delete.ts | 9 - src/server/api/endpoints/blocking/list.ts | 5 - src/server/api/endpoints/channels/timeline.ts | 18 -- .../api/endpoints/charts/active-users.ts | 10 -- src/server/api/endpoints/charts/drive.ts | 10 -- src/server/api/endpoints/charts/federation.ts | 10 -- src/server/api/endpoints/charts/hashtag.ts | 13 -- src/server/api/endpoints/charts/instance.ts | 14 -- src/server/api/endpoints/charts/network.ts | 10 -- src/server/api/endpoints/charts/notes.ts | 10 -- src/server/api/endpoints/charts/user/drive.ts | 14 -- .../api/endpoints/charts/user/following.ts | 14 -- src/server/api/endpoints/charts/user/notes.ts | 14 -- .../api/endpoints/charts/user/reactions.ts | 14 -- src/server/api/endpoints/charts/users.ts | 10 -- src/server/api/endpoints/drive.ts | 5 - src/server/api/endpoints/drive/files.ts | 5 - .../endpoints/drive/files/attached-notes.ts | 9 - .../endpoints/drive/files/check-existence.ts | 8 - .../api/endpoints/drive/files/create.ts | 18 -- .../api/endpoints/drive/files/delete.ts | 9 - .../api/endpoints/drive/files/find-by-hash.ts | 7 - src/server/api/endpoints/drive/files/find.ts | 3 - src/server/api/endpoints/drive/files/show.ts | 13 -- .../api/endpoints/drive/files/update.ts | 22 --- .../endpoints/drive/files/upload-from-url.ts | 11 -- src/server/api/endpoints/drive/folders.ts | 5 - .../api/endpoints/drive/folders/create.ts | 13 -- .../api/endpoints/drive/folders/delete.ts | 9 - .../api/endpoints/drive/folders/find.ts | 3 - .../api/endpoints/drive/folders/show.ts | 9 - .../api/endpoints/drive/folders/update.ts | 17 -- src/server/api/endpoints/endpoints.ts | 5 - .../federation/update-remote-user.ts | 9 - src/server/api/endpoints/following/create.ts | 9 - src/server/api/endpoints/following/delete.ts | 9 - .../endpoints/following/requests/accept.ts | 9 - .../endpoints/following/requests/cancel.ts | 9 - .../api/endpoints/following/requests/list.ts | 5 - .../endpoints/following/requests/reject.ts | 9 - .../games/reversi/games/surrender.ts | 7 - .../api/endpoints/games/reversi/match.ts | 4 - src/server/api/endpoints/hashtags/search.ts | 13 -- src/server/api/endpoints/hashtags/show.ts | 8 - src/server/api/endpoints/i.ts | 4 - src/server/api/endpoints/i/favorites.ts | 5 - src/server/api/endpoints/i/notifications.ts | 5 - src/server/api/endpoints/i/page-likes.ts | 5 - src/server/api/endpoints/i/pages.ts | 5 - src/server/api/endpoints/i/pin.ts | 8 - .../i/read-all-messaging-messages.ts | 5 - .../api/endpoints/i/read-all-unread-notes.ts | 5 - .../api/endpoints/i/read-announcement.ts | 5 - src/server/api/endpoints/i/unpin.ts | 8 - src/server/api/endpoints/i/update.ts | 53 ------ .../api/endpoints/i/user-group-invites.ts | 5 - src/server/api/endpoints/messaging/history.ts | 5 - .../api/endpoints/messaging/messages.ts | 13 -- .../endpoints/messaging/messages/create.ts | 13 -- .../endpoints/messaging/messages/delete.ts | 9 - .../api/endpoints/messaging/messages/read.ts | 9 - src/server/api/endpoints/meta.ts | 5 - src/server/api/endpoints/mute/create.ts | 9 - src/server/api/endpoints/mute/delete.ts | 9 - src/server/api/endpoints/mute/list.ts | 5 - src/server/api/endpoints/my/apps.ts | 5 - src/server/api/endpoints/notes.ts | 19 --- src/server/api/endpoints/notes/children.ts | 9 - .../api/endpoints/notes/conversation.ts | 9 - src/server/api/endpoints/notes/create.ts | 49 ------ src/server/api/endpoints/notes/delete.ts | 9 - .../api/endpoints/notes/favorites/create.ts | 9 - .../api/endpoints/notes/favorites/delete.ts | 9 - src/server/api/endpoints/notes/featured.ts | 8 - .../api/endpoints/notes/global-timeline.ts | 7 - .../api/endpoints/notes/hybrid-timeline.ts | 31 ---- .../api/endpoints/notes/local-timeline.ts | 13 -- src/server/api/endpoints/notes/mentions.ts | 5 - .../endpoints/notes/polls/recommendation.ts | 5 - src/server/api/endpoints/notes/polls/vote.ts | 9 - src/server/api/endpoints/notes/reactions.ts | 9 - .../api/endpoints/notes/reactions/create.ts | 11 -- .../api/endpoints/notes/reactions/delete.ts | 9 - src/server/api/endpoints/notes/renotes.ts | 9 - src/server/api/endpoints/notes/replies.ts | 15 -- .../api/endpoints/notes/search-by-tag.ts | 28 --- src/server/api/endpoints/notes/search.ts | 5 - src/server/api/endpoints/notes/show.ts | 9 - src/server/api/endpoints/notes/state.ts | 9 - src/server/api/endpoints/notes/timeline.ts | 32 ---- src/server/api/endpoints/notes/unrenote.ts | 8 - .../api/endpoints/notes/user-list-timeline.ts | 35 ---- .../api/endpoints/notes/watching/create.ts | 9 - .../api/endpoints/notes/watching/delete.ts | 9 - .../api/endpoints/notifications/create.ts | 4 - .../notifications/mark-all-as-read.ts | 5 - src/server/api/endpoints/pages/create.ts | 4 - src/server/api/endpoints/pages/delete.ts | 8 - src/server/api/endpoints/pages/like.ts | 8 - src/server/api/endpoints/pages/show.ts | 8 - src/server/api/endpoints/pages/unlike.ts | 8 - src/server/api/endpoints/pages/update.ts | 8 - src/server/api/endpoints/promo/read.ts | 5 - src/server/api/endpoints/room/show.ts | 8 - src/server/api/endpoints/stats.ts | 5 - .../api/endpoints/username/available.ts | 5 - src/server/api/endpoints/users.ts | 5 - src/server/api/endpoints/users/followers.ts | 9 - src/server/api/endpoints/users/following.ts | 9 - .../users/get-frequently-replied-users.ts | 4 - .../api/endpoints/users/groups/create.ts | 5 - .../api/endpoints/users/groups/delete.ts | 9 - .../users/groups/invitations/accept.ts | 9 - .../users/groups/invitations/reject.ts | 9 - .../api/endpoints/users/groups/invite.ts | 9 - .../api/endpoints/users/groups/joined.ts | 4 - .../api/endpoints/users/groups/owned.ts | 4 - src/server/api/endpoints/users/groups/pull.ts | 9 - src/server/api/endpoints/users/groups/show.ts | 5 - .../api/endpoints/users/groups/transfer.ts | 9 - .../api/endpoints/users/groups/update.ts | 13 -- .../api/endpoints/users/lists/create.ts | 5 - .../api/endpoints/users/lists/delete.ts | 9 - src/server/api/endpoints/users/lists/list.ts | 4 - src/server/api/endpoints/users/lists/pull.ts | 9 - src/server/api/endpoints/users/lists/push.ts | 9 - src/server/api/endpoints/users/lists/show.ts | 5 - .../api/endpoints/users/lists/update.ts | 13 -- src/server/api/endpoints/users/notes.ts | 39 ----- .../api/endpoints/users/recommendation.ts | 4 - src/server/api/endpoints/users/relation.ts | 7 - .../api/endpoints/users/report-abuse.ts | 11 -- .../users/search-by-username-and-host.ts | 19 --- src/server/api/endpoints/users/search.ts | 19 --- src/server/api/endpoints/users/show.ts | 11 -- 198 files changed, 1904 deletions(-) diff --git a/src/server/api/endpoints.ts b/src/server/api/endpoints.ts index 9847cd2bb..24b58b873 100644 --- a/src/server/api/endpoints.ts +++ b/src/server/api/endpoints.ts @@ -8,15 +8,12 @@ export type Param = { transform?: any; default?: any; deprecated?: boolean; - desc?: { [key: string]: string }; ref?: string; }; export interface IEndpointMeta { stability?: string; //'deprecated' | 'experimental' | 'stable'; - desc?: { [key: string]: string }; - tags?: string[]; params?: { diff --git a/src/server/api/endpoints/admin/abuse-user-reports.ts b/src/server/api/endpoints/admin/abuse-user-reports.ts index bbb696394..d09c9d0ef 100644 --- a/src/server/api/endpoints/admin/abuse-user-reports.ts +++ b/src/server/api/endpoints/admin/abuse-user-reports.ts @@ -5,11 +5,6 @@ import { AbuseUserReports } from '../../../../models'; import { makePaginationQuery } from '../../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': '通報一覧を表示します。', - 'en-US': 'Show list of abuse user reports.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/accounts/create.ts b/src/server/api/endpoints/admin/accounts/create.ts index 9e3fc46ac..e232031d3 100644 --- a/src/server/api/endpoints/admin/accounts/create.ts +++ b/src/server/api/endpoints/admin/accounts/create.ts @@ -3,11 +3,6 @@ import { Users } from '../../../../../models'; import { signup } from '../../../common/signup'; export const meta = { - desc: { - 'ja-JP': 'アカウントを作成します。', - 'en-US': 'Create a account.' - }, - tags: ['admin'], params: { diff --git a/src/server/api/endpoints/admin/announcements/create.ts b/src/server/api/endpoints/admin/announcements/create.ts index 3675e50ba..8d121c484 100644 --- a/src/server/api/endpoints/admin/announcements/create.ts +++ b/src/server/api/endpoints/admin/announcements/create.ts @@ -4,11 +4,6 @@ import { Announcements } from '../../../../../models'; import { genId } from '@/misc/gen-id'; export const meta = { - desc: { - 'ja-JP': 'アナウンスを作成します。', - 'en-US': 'Create a announcement.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/announcements/delete.ts b/src/server/api/endpoints/admin/announcements/delete.ts index 44a46ae43..6c28054da 100644 --- a/src/server/api/endpoints/admin/announcements/delete.ts +++ b/src/server/api/endpoints/admin/announcements/delete.ts @@ -10,11 +10,6 @@ export const meta = { requireCredential: true as const, requireModerator: true, - desc: { - 'ja-JP': 'アナウンスを削除します。', - 'en-US': 'Delete a announcement.' - }, - params: { id: { validator: $.type(ID) diff --git a/src/server/api/endpoints/admin/announcements/list.ts b/src/server/api/endpoints/admin/announcements/list.ts index a42f24c45..94a830dba 100644 --- a/src/server/api/endpoints/admin/announcements/list.ts +++ b/src/server/api/endpoints/admin/announcements/list.ts @@ -5,11 +5,6 @@ import { Announcements, AnnouncementReads } from '../../../../../models'; import { makePaginationQuery } from '../../../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': 'アナウンスのリストを表示します。', - 'en-US': 'List announcements.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/announcements/update.ts b/src/server/api/endpoints/admin/announcements/update.ts index c869e7c9c..6e9a43d34 100644 --- a/src/server/api/endpoints/admin/announcements/update.ts +++ b/src/server/api/endpoints/admin/announcements/update.ts @@ -5,11 +5,6 @@ import { Announcements } from '../../../../../models'; import { ApiError } from '../../../error'; export const meta = { - desc: { - 'ja-JP': 'アナウンスの内容を変更します。', - 'en-US': 'Update a annoucement.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/delete-all-files-of-a-user.ts b/src/server/api/endpoints/admin/delete-all-files-of-a-user.ts index 8143239b5..3d49689cd 100644 --- a/src/server/api/endpoints/admin/delete-all-files-of-a-user.ts +++ b/src/server/api/endpoints/admin/delete-all-files-of-a-user.ts @@ -5,11 +5,6 @@ import { DriveFiles } from '../../../../models'; import { ID } from '@/misc/cafy-id'; export const meta = { - desc: { - 'ja-JP': '対象のユーザーのファイルを全て削除します。', - 'en-US': 'Delete all files to specified user.' - }, - tags: ['admin'], requireCredential: true as const, @@ -18,10 +13,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーID', - 'en-US': 'The user ID which you want to suspend' - } }, } }; diff --git a/src/server/api/endpoints/admin/delete-logs.ts b/src/server/api/endpoints/admin/delete-logs.ts index 1caea46ea..410588bc0 100644 --- a/src/server/api/endpoints/admin/delete-logs.ts +++ b/src/server/api/endpoints/admin/delete-logs.ts @@ -2,11 +2,6 @@ import define from '../../define'; import { Logs } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': 'ログを全て削除します。', - 'en-US': 'Delete all logs.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/drive/clean-remote-files.ts b/src/server/api/endpoints/admin/drive/clean-remote-files.ts index 20856da1c..5a5adb8a8 100644 --- a/src/server/api/endpoints/admin/drive/clean-remote-files.ts +++ b/src/server/api/endpoints/admin/drive/clean-remote-files.ts @@ -2,11 +2,6 @@ import define from '../../../define'; import { createCleanRemoteFilesJob } from '../../../../../queue'; export const meta = { - desc: { - 'ja-JP': 'キャッシュされたリモートファイルをすべて削除します。', - 'en-US': 'Deletes all cached remote files.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/drive/cleanup.ts b/src/server/api/endpoints/admin/drive/cleanup.ts index f4867597f..b76236a7f 100644 --- a/src/server/api/endpoints/admin/drive/cleanup.ts +++ b/src/server/api/endpoints/admin/drive/cleanup.ts @@ -4,11 +4,6 @@ import { deleteFile } from '../../../../../services/drive/delete-file'; import { DriveFiles } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '使用されていないユーザーのファイルを削除します。', - 'en-US': 'Delete the unused user\'s files.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/drive/files.ts b/src/server/api/endpoints/admin/drive/files.ts index 1a5c940f1..efeef83ca 100644 --- a/src/server/api/endpoints/admin/drive/files.ts +++ b/src/server/api/endpoints/admin/drive/files.ts @@ -5,11 +5,6 @@ import { makePaginationQuery } from '../../../common/make-pagination-query'; import { ID } from '@/misc/cafy-id'; export const meta = { - desc: { - 'ja-JP': '管理用のドライブの一覧を表示します。', - 'en-US': 'Displays a list of management drives.' - }, - tags: ['admin'], requireCredential: false as const, diff --git a/src/server/api/endpoints/admin/emoji/add.ts b/src/server/api/endpoints/admin/emoji/add.ts index 04eac79d6..0d4550bf3 100644 --- a/src/server/api/endpoints/admin/emoji/add.ts +++ b/src/server/api/endpoints/admin/emoji/add.ts @@ -10,10 +10,6 @@ import rndstr from 'rndstr'; import { publishBroadcastStream } from '../../../../../services/stream'; export const meta = { - desc: { - 'ja-JP': 'カスタム絵文字を追加します。' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/emoji/copy.ts b/src/server/api/endpoints/admin/emoji/copy.ts index 7df783007..780780972 100644 --- a/src/server/api/endpoints/admin/emoji/copy.ts +++ b/src/server/api/endpoints/admin/emoji/copy.ts @@ -9,11 +9,6 @@ import { ID } from '@/misc/cafy-id'; import uploadFromUrl from '../../../../../services/drive/upload-from-url'; export const meta = { - desc: { - 'ja-JP': '選択したカスタム絵文字をコピーします。', - 'en-US': 'Copies the selected custom emoji.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/emoji/list-remote.ts b/src/server/api/endpoints/admin/emoji/list-remote.ts index 6a4e86c34..bd0b3dfc3 100644 --- a/src/server/api/endpoints/admin/emoji/list-remote.ts +++ b/src/server/api/endpoints/admin/emoji/list-remote.ts @@ -6,11 +6,6 @@ import { makePaginationQuery } from '../../../common/make-pagination-query'; import { ID } from '@/misc/cafy-id'; export const meta = { - desc: { - 'ja-JP': 'リモートのカスタム絵文字一覧を取得します。', - 'en-US': 'Gets a list of remote custom emojis.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/emoji/list.ts b/src/server/api/endpoints/admin/emoji/list.ts index 9e50ce61c..4473fbdd1 100644 --- a/src/server/api/endpoints/admin/emoji/list.ts +++ b/src/server/api/endpoints/admin/emoji/list.ts @@ -6,11 +6,6 @@ import { ID } from '@/misc/cafy-id'; import { Emoji } from '../../../../../models/entities/emoji'; export const meta = { - desc: { - 'ja-JP': 'カスタム絵文字一覧を取得します。', - 'en-US': 'List custom emojis.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/emoji/remove.ts b/src/server/api/endpoints/admin/emoji/remove.ts index 3f87dded3..22bbc76e7 100644 --- a/src/server/api/endpoints/admin/emoji/remove.ts +++ b/src/server/api/endpoints/admin/emoji/remove.ts @@ -7,10 +7,6 @@ import { insertModerationLog } from '../../../../../services/insert-moderation-l import { ApiError } from '../../../error'; export const meta = { - desc: { - 'ja-JP': 'カスタム絵文字を削除します。' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/emoji/update.ts b/src/server/api/endpoints/admin/emoji/update.ts index 2fa6587e2..70589d5cf 100644 --- a/src/server/api/endpoints/admin/emoji/update.ts +++ b/src/server/api/endpoints/admin/emoji/update.ts @@ -6,10 +6,6 @@ import { getConnection } from 'typeorm'; import { ApiError } from '../../../error'; export const meta = { - desc: { - 'ja-JP': 'カスタム絵文字を更新します。' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/federation/delete-all-files.ts b/src/server/api/endpoints/admin/federation/delete-all-files.ts index c0a8c94f4..eef53cd92 100644 --- a/src/server/api/endpoints/admin/federation/delete-all-files.ts +++ b/src/server/api/endpoints/admin/federation/delete-all-files.ts @@ -4,11 +4,6 @@ import { deleteFile } from '../../../../../services/drive/delete-file'; import { DriveFiles } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したドメインのファイルを全て削除します。', - 'en-US': 'Deletes all files in the specified domain.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/federation/remove-all-following.ts b/src/server/api/endpoints/admin/federation/remove-all-following.ts index 4a6f6e626..e59319355 100644 --- a/src/server/api/endpoints/admin/federation/remove-all-following.ts +++ b/src/server/api/endpoints/admin/federation/remove-all-following.ts @@ -4,11 +4,6 @@ import deleteFollowing from '../../../../../services/following/delete'; import { Followings, Users } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したドメインの全ユーザーのフォローを全て解除します。', - 'en-US': 'Unfollow all users in the specified domain.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/federation/update-instance.ts b/src/server/api/endpoints/admin/federation/update-instance.ts index 3e9d243d7..2d559e43e 100644 --- a/src/server/api/endpoints/admin/federation/update-instance.ts +++ b/src/server/api/endpoints/admin/federation/update-instance.ts @@ -4,11 +4,6 @@ import { Instances } from '../../../../../models'; import { toPuny } from '@/misc/convert-host'; export const meta = { - desc: { - 'ja-JP': '指定したドメインのアクティビティの配信を停止するかを選択します。', - 'en-US': 'Select whether to undeliver the activity for the specified domain.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/get-table-stats.ts b/src/server/api/endpoints/admin/get-table-stats.ts index 351c23003..bce813232 100644 --- a/src/server/api/endpoints/admin/get-table-stats.ts +++ b/src/server/api/endpoints/admin/get-table-stats.ts @@ -5,11 +5,6 @@ export const meta = { requireCredential: true as const, requireModerator: true, - desc: { - 'ja-JP': 'テーブル情報を取得します。', - 'en-US': 'Get table stats' - }, - tags: ['admin'], params: { diff --git a/src/server/api/endpoints/admin/invite.ts b/src/server/api/endpoints/admin/invite.ts index 2a87fae71..8ce641521 100644 --- a/src/server/api/endpoints/admin/invite.ts +++ b/src/server/api/endpoints/admin/invite.ts @@ -4,11 +4,6 @@ import { RegistrationTickets } from '../../../../models'; import { genId } from '@/misc/gen-id'; export const meta = { - desc: { - 'ja-JP': '招待コードを発行します。', - 'en-US': 'Issue an invitation code.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/logs.ts b/src/server/api/endpoints/admin/logs.ts index 5e19b1a6f..cb49bf602 100644 --- a/src/server/api/endpoints/admin/logs.ts +++ b/src/server/api/endpoints/admin/logs.ts @@ -4,11 +4,6 @@ import { Logs } from '../../../../models'; import { Brackets } from 'typeorm'; export const meta = { - desc: { - 'ja-JP': 'ログを表示します。', - 'en-US': 'Show logs.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/moderators/add.ts b/src/server/api/endpoints/admin/moderators/add.ts index a96cf35db..2b4e8a801 100644 --- a/src/server/api/endpoints/admin/moderators/add.ts +++ b/src/server/api/endpoints/admin/moderators/add.ts @@ -4,11 +4,6 @@ import define from '../../../define'; import { Users } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーをモデレーターにします。', - 'en-US': 'Mark a user as moderator.' - }, - tags: ['admin'], requireCredential: true as const, @@ -17,10 +12,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーID', - 'en-US': 'The user ID' - } }, } }; diff --git a/src/server/api/endpoints/admin/moderators/remove.ts b/src/server/api/endpoints/admin/moderators/remove.ts index c9c884092..fd6e29df5 100644 --- a/src/server/api/endpoints/admin/moderators/remove.ts +++ b/src/server/api/endpoints/admin/moderators/remove.ts @@ -4,11 +4,6 @@ import define from '../../../define'; import { Users } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーをモデレーター解除します。', - 'en-US': 'Unmark a user as moderator.' - }, - tags: ['admin'], requireCredential: true as const, @@ -17,10 +12,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーID', - 'en-US': 'The user ID' - } }, } }; diff --git a/src/server/api/endpoints/admin/promo/create.ts b/src/server/api/endpoints/admin/promo/create.ts index 3ee161614..8468ab654 100644 --- a/src/server/api/endpoints/admin/promo/create.ts +++ b/src/server/api/endpoints/admin/promo/create.ts @@ -6,11 +6,6 @@ import { getNote } from '../../../common/getters'; import { PromoNotes } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': 'プロモーションを作成します。', - 'en-US': 'Create a promotion.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/queue/clear.ts b/src/server/api/endpoints/admin/queue/clear.ts index bc55a02ec..0375f55f0 100644 --- a/src/server/api/endpoints/admin/queue/clear.ts +++ b/src/server/api/endpoints/admin/queue/clear.ts @@ -3,11 +3,6 @@ import { destroy } from '../../../../../queue'; import { insertModerationLog } from '../../../../../services/insert-moderation-log'; export const meta = { - desc: { - 'ja-JP': 'ジョブキューを全て削除します。', - 'en-US': 'Delete all job queues.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/queue/deliver-delayed.ts b/src/server/api/endpoints/admin/queue/deliver-delayed.ts index 1de5b060e..8b70fa668 100644 --- a/src/server/api/endpoints/admin/queue/deliver-delayed.ts +++ b/src/server/api/endpoints/admin/queue/deliver-delayed.ts @@ -3,11 +3,6 @@ import { URL } from 'url'; import define from '../../../define'; export const meta = { - desc: { - 'ja-JP': '他サーバーへ送るキューの遅延一覧を返します。', - 'en-US': 'Returns a list of delays in queues sent to other servers.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/queue/inbox-delayed.ts b/src/server/api/endpoints/admin/queue/inbox-delayed.ts index 3599c012a..437027eea 100644 --- a/src/server/api/endpoints/admin/queue/inbox-delayed.ts +++ b/src/server/api/endpoints/admin/queue/inbox-delayed.ts @@ -3,11 +3,6 @@ import define from '../../../define'; import { inboxQueue } from '../../../../../queue'; export const meta = { - desc: { - 'ja-JP': 'このサーバーへのキューの遅延一覧を返します。', - 'en-US': 'Returns a list of queue delays to this server.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/queue/jobs.ts b/src/server/api/endpoints/admin/queue/jobs.ts index ffae1426b..c426e5f39 100644 --- a/src/server/api/endpoints/admin/queue/jobs.ts +++ b/src/server/api/endpoints/admin/queue/jobs.ts @@ -3,11 +3,6 @@ import $ from 'cafy'; import define from '../../../define'; export const meta = { - desc: { - 'ja-JP': 'ジョブ一覧を表示します。', - 'en-US': 'Display the job list.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/queue/stats.ts b/src/server/api/endpoints/admin/queue/stats.ts index cc1cf8a9e..38f18459d 100644 --- a/src/server/api/endpoints/admin/queue/stats.ts +++ b/src/server/api/endpoints/admin/queue/stats.ts @@ -2,11 +2,6 @@ import { deliverQueue, inboxQueue, dbQueue, objectStorageQueue } from '@/queue/q import define from '../../../define'; export const meta = { - desc: { - 'ja-JP': 'キューの状態を返します。', - 'en-US': 'Returns the status of the queue.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/relays/add.ts b/src/server/api/endpoints/admin/relays/add.ts index e10bd92c8..54d292ad5 100644 --- a/src/server/api/endpoints/admin/relays/add.ts +++ b/src/server/api/endpoints/admin/relays/add.ts @@ -5,11 +5,6 @@ import { addRelay } from '../../../../../services/relay'; import { ApiError } from '../../../error'; export const meta = { - desc: { - 'ja-JP': 'リレーを追加します。', - 'en-US': 'Add relay' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/relays/list.ts b/src/server/api/endpoints/admin/relays/list.ts index da05ac0a2..9f2474f10 100644 --- a/src/server/api/endpoints/admin/relays/list.ts +++ b/src/server/api/endpoints/admin/relays/list.ts @@ -2,11 +2,6 @@ import define from '../../../define'; import { listRelay } from '../../../../../services/relay'; export const meta = { - desc: { - 'ja-JP': 'リレー一覧を表示します。', - 'en-US': 'List relay' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/relays/remove.ts b/src/server/api/endpoints/admin/relays/remove.ts index 572d51cfc..220efab40 100644 --- a/src/server/api/endpoints/admin/relays/remove.ts +++ b/src/server/api/endpoints/admin/relays/remove.ts @@ -3,11 +3,6 @@ import define from '../../../define'; import { removeRelay } from '../../../../../services/relay'; export const meta = { - desc: { - 'ja-JP': 'リレーを削除します。', - 'en-US': 'Remove relay' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/reset-password.ts b/src/server/api/endpoints/admin/reset-password.ts index a316ef9c1..6ff49d83d 100644 --- a/src/server/api/endpoints/admin/reset-password.ts +++ b/src/server/api/endpoints/admin/reset-password.ts @@ -6,11 +6,6 @@ import rndstr from 'rndstr'; import { Users, UserProfiles } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーのパスワードをリセットします。', - 'en-US': 'Reset password to specified user.' - }, - tags: ['admin'], requireCredential: true as const, @@ -19,10 +14,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーID', - 'en-US': 'The user ID which you want to suspend' - } }, }, diff --git a/src/server/api/endpoints/admin/resolve-abuse-user-report.ts b/src/server/api/endpoints/admin/resolve-abuse-user-report.ts index 144695182..38a5e8137 100644 --- a/src/server/api/endpoints/admin/resolve-abuse-user-report.ts +++ b/src/server/api/endpoints/admin/resolve-abuse-user-report.ts @@ -4,11 +4,6 @@ import define from '../../define'; import { AbuseUserReports } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した通報を解決済みにします。', - 'en-US': 'Marks the specified report as resolved.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/resync-chart.ts b/src/server/api/endpoints/admin/resync-chart.ts index 13254a3ca..84e19d37e 100644 --- a/src/server/api/endpoints/admin/resync-chart.ts +++ b/src/server/api/endpoints/admin/resync-chart.ts @@ -3,11 +3,6 @@ import { driveChart, notesChart, usersChart, instanceChart } from '../../../../s import { insertModerationLog } from '../../../../services/insert-moderation-log'; export const meta = { - desc: { - 'ja-JP': 'チャートを再同期します。', - 'en-US': 'Resync the chart.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/send-email.ts b/src/server/api/endpoints/admin/send-email.ts index 51f92230a..c0e77e162 100644 --- a/src/server/api/endpoints/admin/send-email.ts +++ b/src/server/api/endpoints/admin/send-email.ts @@ -3,11 +3,6 @@ import define from '../../define'; import { sendEmail } from '../../../../services/send-email'; export const meta = { - desc: { - 'ja-JP': 'メールを送信します。', - 'en-US': 'Send a mail.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/server-info.ts b/src/server/api/endpoints/admin/server-info.ts index 33e619097..1373802f3 100644 --- a/src/server/api/endpoints/admin/server-info.ts +++ b/src/server/api/endpoints/admin/server-info.ts @@ -8,11 +8,6 @@ export const meta = { requireCredential: true as const, requireModerator: true, - desc: { - 'ja-JP': 'サーバー情報を表示します。', - 'en-US': 'Show server information.' - }, - tags: ['admin', 'meta'], params: { diff --git a/src/server/api/endpoints/admin/show-moderation-logs.ts b/src/server/api/endpoints/admin/show-moderation-logs.ts index 59e6f0033..cfceab946 100644 --- a/src/server/api/endpoints/admin/show-moderation-logs.ts +++ b/src/server/api/endpoints/admin/show-moderation-logs.ts @@ -5,11 +5,6 @@ import { ModerationLogs } from '../../../../models'; import { makePaginationQuery } from '../../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': 'モデレーションログ一覧を表示します。', - 'en-US': 'Display the moderation log list.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/show-user.ts b/src/server/api/endpoints/admin/show-user.ts index 52c4458c3..b1132ac20 100644 --- a/src/server/api/endpoints/admin/show-user.ts +++ b/src/server/api/endpoints/admin/show-user.ts @@ -4,11 +4,6 @@ import define from '../../define'; import { Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーの情報を取得します(管理者向け)。', - 'en-US': 'Gets the information of the specified user (for administrators).' - }, - tags: ['admin'], requireCredential: true as const, @@ -17,10 +12,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーID', - 'en-US': 'The user ID which you want to suspend' - } }, }, diff --git a/src/server/api/endpoints/admin/show-users.ts b/src/server/api/endpoints/admin/show-users.ts index 6ee4aa877..7ea0e0e86 100644 --- a/src/server/api/endpoints/admin/show-users.ts +++ b/src/server/api/endpoints/admin/show-users.ts @@ -3,11 +3,6 @@ import define from '../../define'; import { Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '管理者用のユーザー一覧を表示します。', - 'en-US': 'Displays a list of users for administrators.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/admin/silence-user.ts b/src/server/api/endpoints/admin/silence-user.ts index d05745982..73f9d03b7 100644 --- a/src/server/api/endpoints/admin/silence-user.ts +++ b/src/server/api/endpoints/admin/silence-user.ts @@ -5,11 +5,6 @@ import { Users } from '../../../../models'; import { insertModerationLog } from '../../../../services/insert-moderation-log'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーをサイレンスにします。', - 'en-US': 'Make silence a user.' - }, - tags: ['admin'], requireCredential: true as const, @@ -18,10 +13,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーID', - 'en-US': 'The user ID which you want to make silence' - } }, } }; diff --git a/src/server/api/endpoints/admin/suspend-user.ts b/src/server/api/endpoints/admin/suspend-user.ts index a4485445c..9f3c8eb6f 100644 --- a/src/server/api/endpoints/admin/suspend-user.ts +++ b/src/server/api/endpoints/admin/suspend-user.ts @@ -8,11 +8,6 @@ import { insertModerationLog } from '../../../../services/insert-moderation-log' import { doPostSuspend } from '../../../../services/suspend-user'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーを凍結します。', - 'en-US': 'Suspend a user.' - }, - tags: ['admin'], requireCredential: true as const, @@ -21,10 +16,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーID', - 'en-US': 'The user ID which you want to suspend' - } }, } }; diff --git a/src/server/api/endpoints/admin/unsilence-user.ts b/src/server/api/endpoints/admin/unsilence-user.ts index c811ae5d1..6083d87af 100644 --- a/src/server/api/endpoints/admin/unsilence-user.ts +++ b/src/server/api/endpoints/admin/unsilence-user.ts @@ -5,11 +5,6 @@ import { Users } from '../../../../models'; import { insertModerationLog } from '../../../../services/insert-moderation-log'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーのサイレンスを解除します。', - 'en-US': 'Unsilence a user.' - }, - tags: ['admin'], requireCredential: true as const, @@ -18,10 +13,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーID', - 'en-US': 'The user ID which you want to unsilence' - } }, } }; diff --git a/src/server/api/endpoints/admin/unsuspend-user.ts b/src/server/api/endpoints/admin/unsuspend-user.ts index 7658d37f8..6d015b51a 100644 --- a/src/server/api/endpoints/admin/unsuspend-user.ts +++ b/src/server/api/endpoints/admin/unsuspend-user.ts @@ -6,11 +6,6 @@ import { insertModerationLog } from '../../../../services/insert-moderation-log' import { doPostUnsuspend } from '../../../../services/unsuspend-user'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーの凍結を解除します。', - 'en-US': 'Unsuspend a user.' - }, - tags: ['admin'], requireCredential: true as const, @@ -19,10 +14,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーID', - 'en-US': 'The user ID which you want to unsuspend' - } }, } }; diff --git a/src/server/api/endpoints/admin/update-meta.ts b/src/server/api/endpoints/admin/update-meta.ts index d9ce7c061..a18956b3f 100644 --- a/src/server/api/endpoints/admin/update-meta.ts +++ b/src/server/api/endpoints/admin/update-meta.ts @@ -7,10 +7,6 @@ import { DB_MAX_NOTE_TEXT_LENGTH } from '@/misc/hard-limits'; import { ID } from '@/misc/cafy-id'; export const meta = { - desc: { - 'ja-JP': 'インスタンスの設定を更新します。' - }, - tags: ['admin'], requireCredential: true as const, @@ -19,79 +15,46 @@ export const meta = { params: { disableRegistration: { validator: $.optional.nullable.bool, - desc: { - 'ja-JP': '招待制か否か' - } }, disableLocalTimeline: { validator: $.optional.nullable.bool, - desc: { - 'ja-JP': 'ローカルタイムライン(とソーシャルタイムライン)を無効にするか否か' - } }, disableGlobalTimeline: { validator: $.optional.nullable.bool, - desc: { - 'ja-JP': 'グローバルタイムラインを無効にするか否か' - } }, useStarForReactionFallback: { validator: $.optional.nullable.bool, - desc: { - 'ja-JP': '不明なリアクションのフォールバックに star リアクションを使うか' - } }, pinnedUsers: { validator: $.optional.nullable.arr($.str), - desc: { - 'ja-JP': 'ピン留めユーザー' - } }, hiddenTags: { validator: $.optional.nullable.arr($.str), - desc: { - 'ja-JP': '統計などで無視するハッシュタグ' - } }, blockedHosts: { validator: $.optional.nullable.arr($.str), - desc: { - 'ja-JP': 'ブロックするホスト' - } }, mascotImageUrl: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'インスタンスキャラクター画像のURL' - } }, bannerUrl: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'インスタンスのバナー画像URL' - } }, errorImageUrl: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'インスタンスのエラー画像URL' - } }, iconUrl: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'インスタンスのアイコンURL' - } }, backgroundImageUrl: { @@ -104,116 +67,66 @@ export const meta = { name: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'インスタンス名' - } }, description: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'インスタンスの紹介文' - } }, maxNoteTextLength: { validator: $.optional.num.min(0).max(DB_MAX_NOTE_TEXT_LENGTH), - desc: { - 'ja-JP': '投稿の最大文字数' - } }, localDriveCapacityMb: { validator: $.optional.num.min(0), - desc: { - 'ja-JP': 'ローカルユーザーひとりあたりのドライブ容量 (メガバイト単位)', - 'en-US': 'Drive capacity of a local user (MB)' - } }, remoteDriveCapacityMb: { validator: $.optional.num.min(0), - desc: { - 'ja-JP': 'リモートユーザーひとりあたりのドライブ容量 (メガバイト単位)', - 'en-US': 'Drive capacity of a remote user (MB)' - } }, cacheRemoteFiles: { validator: $.optional.bool, - desc: { - 'ja-JP': 'リモートのファイルをキャッシュするか否か' - } }, proxyRemoteFiles: { validator: $.optional.bool, - desc: { - 'ja-JP': 'ローカルにないリモートのファイルをプロキシするか否か' - } }, enableHcaptcha: { validator: $.optional.bool, - desc: { - 'ja-JP': 'hCaptchaを使用するか否か' - } }, hcaptchaSiteKey: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'hCaptcha site key' - } }, hcaptchaSecretKey: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'hCaptcha secret key' - } }, enableRecaptcha: { validator: $.optional.bool, - desc: { - 'ja-JP': 'reCAPTCHAを使用するか否か' - } }, recaptchaSiteKey: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'reCAPTCHA site key' - } }, recaptchaSecretKey: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'reCAPTCHA secret key' - } }, proxyAccountId: { validator: $.optional.nullable.type(ID), - desc: { - 'ja-JP': 'プロキシアカウントのID' - } }, maintainerName: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'インスタンスの管理者名' - } }, maintainerEmail: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'インスタンス管理者の連絡先メールアドレス' - } }, pinnedPages: { @@ -226,170 +139,98 @@ export const meta = { langs: { validator: $.optional.arr($.str), - desc: { - 'ja-JP': 'インスタンスの対象言語' - } }, summalyProxy: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'summalyプロキシURL' - } }, enableTwitterIntegration: { validator: $.optional.bool, - desc: { - 'ja-JP': 'Twitter連携機能を有効にするか否か' - } }, twitterConsumerKey: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'TwitterアプリのConsumer key' - } }, twitterConsumerSecret: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'TwitterアプリのConsumer secret' - } }, enableGithubIntegration: { validator: $.optional.bool, - desc: { - 'ja-JP': 'GitHub連携機能を有効にするか否か' - } }, githubClientId: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'GitHubアプリのClient ID' - } }, githubClientSecret: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'GitHubアプリのClient Secret' - } }, enableDiscordIntegration: { validator: $.optional.bool, - desc: { - 'ja-JP': 'Discord連携機能を有効にするか否か' - } }, discordClientId: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'DiscordアプリのClient ID' - } }, discordClientSecret: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'DiscordアプリのClient Secret' - } }, enableEmail: { validator: $.optional.bool, - desc: { - 'ja-JP': 'メール配信を有効にするか否か' - } }, email: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'メール配信する際に利用するメールアドレス' - } }, smtpSecure: { validator: $.optional.bool, - desc: { - 'ja-JP': 'SMTPサーバがSSLを使用しているか否か' - } }, smtpHost: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'SMTPサーバのホスト' - } }, smtpPort: { validator: $.optional.nullable.num, - desc: { - 'ja-JP': 'SMTPサーバのポート' - } }, smtpUser: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'SMTPサーバのユーザー名' - } }, smtpPass: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'SMTPサーバのパスワード' - } }, enableServiceWorker: { validator: $.optional.bool, - desc: { - 'ja-JP': 'ServiceWorkerを有効にするか否か' - } }, swPublicKey: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'ServiceWorkerのVAPIDキーペアの公開鍵' - } }, swPrivateKey: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'ServiceWorkerのVAPIDキーペアの秘密鍵' - } }, tosUrl: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': '利用規約のURL' - } }, repositoryUrl: { validator: $.optional.str, - desc: { - 'ja-JP': 'リポジトリのURL' - } }, feedbackUrl: { validator: $.optional.str, - desc: { - 'ja-JP': 'フィードバックのURL' - } }, useObjectStorage: { diff --git a/src/server/api/endpoints/admin/vacuum.ts b/src/server/api/endpoints/admin/vacuum.ts index 14136c751..e041e6543 100644 --- a/src/server/api/endpoints/admin/vacuum.ts +++ b/src/server/api/endpoints/admin/vacuum.ts @@ -4,11 +4,6 @@ import { getConnection } from 'typeorm'; import { insertModerationLog } from '../../../../services/insert-moderation-log'; export const meta = { - desc: { - 'ja-JP': 'データベースのメンテナンスを行います。', - 'en-US': 'Perform database maintenance.' - }, - tags: ['admin'], requireCredential: true as const, diff --git a/src/server/api/endpoints/announcements.ts b/src/server/api/endpoints/announcements.ts index a7c477bc7..f5d07d808 100644 --- a/src/server/api/endpoints/announcements.ts +++ b/src/server/api/endpoints/announcements.ts @@ -5,11 +5,6 @@ import { Announcements, AnnouncementReads } from '../../../models'; import { makePaginationQuery } from '../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': 'アナウンスを表示します。', - 'en-US': 'Show announcements.' - }, - tags: ['meta'], requireCredential: false as const, diff --git a/src/server/api/endpoints/antennas/create.ts b/src/server/api/endpoints/antennas/create.ts index 04ca21bba..bff3c09f1 100644 --- a/src/server/api/endpoints/antennas/create.ts +++ b/src/server/api/endpoints/antennas/create.ts @@ -7,11 +7,6 @@ import { ApiError } from '../../error'; import { publishInternalEvent } from '../../../../services/stream'; export const meta = { - desc: { - 'ja-JP': 'アンテナを作成します。', - 'en-US': 'Create a antenna.' - }, - tags: ['antennas'], requireCredential: true as const, diff --git a/src/server/api/endpoints/antennas/delete.ts b/src/server/api/endpoints/antennas/delete.ts index 5d617bb5b..10a212897 100644 --- a/src/server/api/endpoints/antennas/delete.ts +++ b/src/server/api/endpoints/antennas/delete.ts @@ -6,11 +6,6 @@ import { Antennas } from '../../../../models'; import { publishInternalEvent } from '../../../../services/stream'; export const meta = { - desc: { - 'ja-JP': 'アンテナを削除します。', - 'en-US': 'Delete a antenna.' - }, - tags: ['antennas'], requireCredential: true as const, diff --git a/src/server/api/endpoints/antennas/list.ts b/src/server/api/endpoints/antennas/list.ts index bc9685887..6ae3c0cbb 100644 --- a/src/server/api/endpoints/antennas/list.ts +++ b/src/server/api/endpoints/antennas/list.ts @@ -2,11 +2,6 @@ import define from '../../define'; import { Antennas } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': 'アンテナの一覧を取得します。', - 'en-US': 'Get a list of antennas.' - }, - tags: ['antennas', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/antennas/notes.ts b/src/server/api/endpoints/antennas/notes.ts index 456c1b6e0..a244f7f9b 100644 --- a/src/server/api/endpoints/antennas/notes.ts +++ b/src/server/api/endpoints/antennas/notes.ts @@ -8,11 +8,6 @@ import { generateMutedUserQuery } from '../../common/generate-muted-user-query'; import { ApiError } from '../../error'; export const meta = { - desc: { - 'ja-JP': '指定したアンテナのノート一覧を表示します。', - 'en-US': 'Displays a list of notes for the specified antenna.' - }, - tags: ['antennas', 'account', 'notes'], requireCredential: true as const, diff --git a/src/server/api/endpoints/antennas/show.ts b/src/server/api/endpoints/antennas/show.ts index af2a28b79..36045e47a 100644 --- a/src/server/api/endpoints/antennas/show.ts +++ b/src/server/api/endpoints/antennas/show.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../error'; import { Antennas } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したアンテナの情報を取得します。', - 'en-US': 'Acquires the information of the specified antenna.' - }, - tags: ['antennas', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/antennas/update.ts b/src/server/api/endpoints/antennas/update.ts index 17b0f854f..9194c1479 100644 --- a/src/server/api/endpoints/antennas/update.ts +++ b/src/server/api/endpoints/antennas/update.ts @@ -6,11 +6,6 @@ import { Antennas, UserLists, UserGroupJoinings } from '../../../../models'; import { publishInternalEvent } from '../../../../services/stream'; export const meta = { - desc: { - 'ja-JP': 'アンテナの情報を更新します。', - 'en-US': 'Updates the information of the specified antenna.' - }, - tags: ['antennas'], requireCredential: true as const, diff --git a/src/server/api/endpoints/ap/get.ts b/src/server/api/endpoints/ap/get.ts index c889d472b..f2b4c2408 100644 --- a/src/server/api/endpoints/ap/get.ts +++ b/src/server/api/endpoints/ap/get.ts @@ -6,19 +6,11 @@ import { ApiError } from '../../error'; export const meta = { tags: ['federation'], - desc: { - 'ja-JP': 'URIを指定してActivityPubオブジェクトを参照します。', - 'en-US': 'Browse to the ActivityPub object by specifying the URI.' - }, - requireCredential: false as const, params: { uri: { validator: $.str, - desc: { - 'ja-JP': 'ActivityPubオブジェクトのURI' - } }, }, diff --git a/src/server/api/endpoints/ap/show.ts b/src/server/api/endpoints/ap/show.ts index b4df1ad4d..7f61055bf 100644 --- a/src/server/api/endpoints/ap/show.ts +++ b/src/server/api/endpoints/ap/show.ts @@ -15,19 +15,11 @@ import { isActor, isPost, getApId } from '../../../../remote/activitypub/type'; export const meta = { tags: ['federation'], - desc: { - 'ja-JP': 'URIを指定してActivityPubオブジェクトを参照します。', - 'en-US': 'Browse to the ActivityPub object by specifying the URI.' - }, - requireCredential: false as const, params: { uri: { validator: $.str, - desc: { - 'ja-JP': 'ActivityPubオブジェクトのURI' - } }, }, diff --git a/src/server/api/endpoints/app/create.ts b/src/server/api/endpoints/app/create.ts index db72bd1c4..b5629e443 100644 --- a/src/server/api/endpoints/app/create.ts +++ b/src/server/api/endpoints/app/create.ts @@ -10,44 +10,23 @@ export const meta = { requireCredential: false as const, - desc: { - 'ja-JP': 'アプリを作成します。', - 'en-US': 'Create a application.' - }, - params: { name: { validator: $.str, - desc: { - 'ja-JP': 'アプリの名前', - 'en-US': 'Name of application' - } }, description: { validator: $.str, - desc: { - 'ja-JP': 'アプリの説明', - 'en-US': 'Description of application' - } }, permission: { validator: $.arr($.str).unique(), - desc: { - 'ja-JP': 'このアプリに割り当てる権限(権限については"Permissions"を参照)', - 'en-US': 'Permissions assigned to this app (see "Permissions" for the permissions)' - } }, // TODO: Check it is valid url callbackUrl: { validator: $.optional.nullable.str, default: null as any, - desc: { - 'ja-JP': 'アプリ認証時にコールバックするURL', - 'en-US': 'URL to call back at app authentication' - } }, }, diff --git a/src/server/api/endpoints/auth/session/generate.ts b/src/server/api/endpoints/auth/session/generate.ts index e0d003c49..ca004e9b1 100644 --- a/src/server/api/endpoints/auth/session/generate.ts +++ b/src/server/api/endpoints/auth/session/generate.ts @@ -11,18 +11,9 @@ export const meta = { requireCredential: false as const, - desc: { - 'ja-JP': 'アプリを認証するためのトークンを作成します。', - 'en-US': 'Generate a token for authorize application.' - }, - params: { appSecret: { validator: $.str, - desc: { - 'ja-JP': 'アプリケーションのシークレットキー', - 'en-US': 'The secret key of your application.' - } } }, diff --git a/src/server/api/endpoints/auth/session/show.ts b/src/server/api/endpoints/auth/session/show.ts index 9e0d6d90a..fd20884c0 100644 --- a/src/server/api/endpoints/auth/session/show.ts +++ b/src/server/api/endpoints/auth/session/show.ts @@ -11,10 +11,6 @@ export const meta = { params: { token: { validator: $.str, - desc: { - 'ja-JP': 'セッションのトークン', - 'en-US': 'The token of a session.' - } } }, diff --git a/src/server/api/endpoints/auth/session/userkey.ts b/src/server/api/endpoints/auth/session/userkey.ts index 68d0c7bdf..e015be20e 100644 --- a/src/server/api/endpoints/auth/session/userkey.ts +++ b/src/server/api/endpoints/auth/session/userkey.ts @@ -11,18 +11,10 @@ export const meta = { params: { appSecret: { validator: $.str, - desc: { - 'ja-JP': 'アプリケーションのシークレットキー', - 'en-US': 'The secret key of your application.' - } }, token: { validator: $.str, - desc: { - 'ja-JP': 'セッションのトークン', - 'en-US': 'The token of a session.' - } } }, diff --git a/src/server/api/endpoints/blocking/create.ts b/src/server/api/endpoints/blocking/create.ts index 60fde8ad7..dd976a7bf 100644 --- a/src/server/api/endpoints/blocking/create.ts +++ b/src/server/api/endpoints/blocking/create.ts @@ -8,11 +8,6 @@ import { getUser } from '../../common/getters'; import { Blockings, NoteWatchings, Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーをブロックします。', - 'en-US': 'Block a user.' - }, - tags: ['account'], limit: { @@ -27,10 +22,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/blocking/delete.ts b/src/server/api/endpoints/blocking/delete.ts index 8caa3efc8..71927fa72 100644 --- a/src/server/api/endpoints/blocking/delete.ts +++ b/src/server/api/endpoints/blocking/delete.ts @@ -8,11 +8,6 @@ import { getUser } from '../../common/getters'; import { Blockings, Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーのブロックを解除します。', - 'en-US': 'Unblock a user.' - }, - tags: ['account'], limit: { @@ -27,10 +22,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/blocking/list.ts b/src/server/api/endpoints/blocking/list.ts index fe8706b5c..db849338a 100644 --- a/src/server/api/endpoints/blocking/list.ts +++ b/src/server/api/endpoints/blocking/list.ts @@ -5,11 +5,6 @@ import { Blockings } from '../../../../models'; import { makePaginationQuery } from '../../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': 'ブロックしているユーザー一覧を取得します。', - 'en-US': 'Get blocking users.' - }, - tags: ['account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/channels/timeline.ts b/src/server/api/endpoints/channels/timeline.ts index 494221010..9e5ecdeeb 100644 --- a/src/server/api/endpoints/channels/timeline.ts +++ b/src/server/api/endpoints/channels/timeline.ts @@ -14,45 +14,27 @@ export const meta = { params: { channelId: { validator: $.type(ID), - desc: { - 'ja-JP': 'チャンネルのID' - } }, limit: { validator: $.optional.num.range(1, 100), default: 10, - desc: { - 'ja-JP': '最大数' - } }, sinceId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより新しい投稿を取得します' - } }, untilId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより古い投稿を取得します' - } }, sinceDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより新しい投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, untilDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより古い投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, }, diff --git a/src/server/api/endpoints/charts/active-users.ts b/src/server/api/endpoints/charts/active-users.ts index df427ff4b..fb177e5c9 100644 --- a/src/server/api/endpoints/charts/active-users.ts +++ b/src/server/api/endpoints/charts/active-users.ts @@ -4,26 +4,16 @@ import { convertLog } from '../../../../services/chart/core'; import { activeUsersChart } from '../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'アクティブユーザーのチャートを取得します。' - }, - tags: ['charts', 'users'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { diff --git a/src/server/api/endpoints/charts/drive.ts b/src/server/api/endpoints/charts/drive.ts index e1f279fa0..ba6556c59 100644 --- a/src/server/api/endpoints/charts/drive.ts +++ b/src/server/api/endpoints/charts/drive.ts @@ -4,26 +4,16 @@ import { convertLog } from '../../../../services/chart/core'; import { driveChart } from '../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'ドライブのチャートを取得します。' - }, - tags: ['charts', 'drive'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { diff --git a/src/server/api/endpoints/charts/federation.ts b/src/server/api/endpoints/charts/federation.ts index 581e42f30..46eb87ac0 100644 --- a/src/server/api/endpoints/charts/federation.ts +++ b/src/server/api/endpoints/charts/federation.ts @@ -4,26 +4,16 @@ import { convertLog } from '../../../../services/chart/core'; import { federationChart } from '../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'フェデレーションのチャートを取得します。' - }, - tags: ['charts'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { diff --git a/src/server/api/endpoints/charts/hashtag.ts b/src/server/api/endpoints/charts/hashtag.ts index 1aa5c86b3..5c2875ddd 100644 --- a/src/server/api/endpoints/charts/hashtag.ts +++ b/src/server/api/endpoints/charts/hashtag.ts @@ -4,26 +4,16 @@ import { convertLog } from '../../../../services/chart/core'; import { hashtagChart } from '../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'ハッシュタグごとのチャートを取得します。' - }, - tags: ['charts', 'hashtags'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { @@ -33,9 +23,6 @@ export const meta = { tag: { validator: $.str, - desc: { - 'ja-JP': '対象のハッシュタグ' - } }, }, diff --git a/src/server/api/endpoints/charts/instance.ts b/src/server/api/endpoints/charts/instance.ts index f0f85ed71..9375992d2 100644 --- a/src/server/api/endpoints/charts/instance.ts +++ b/src/server/api/endpoints/charts/instance.ts @@ -4,26 +4,16 @@ import { convertLog } from '../../../../services/chart/core'; import { instanceChart } from '../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'インスタンスごとのチャートを取得します。' - }, - tags: ['charts'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { @@ -33,10 +23,6 @@ export const meta = { host: { validator: $.str, - desc: { - 'ja-JP': '対象のインスタンスのホスト', - 'en-US': 'Target instance host' - } } }, diff --git a/src/server/api/endpoints/charts/network.ts b/src/server/api/endpoints/charts/network.ts index d1337681a..d1fd40423 100644 --- a/src/server/api/endpoints/charts/network.ts +++ b/src/server/api/endpoints/charts/network.ts @@ -4,26 +4,16 @@ import { convertLog } from '../../../../services/chart/core'; import { networkChart } from '../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'ネットワークのチャートを取得します。' - }, - tags: ['charts'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { diff --git a/src/server/api/endpoints/charts/notes.ts b/src/server/api/endpoints/charts/notes.ts index 74aa48b36..7141fe3b0 100644 --- a/src/server/api/endpoints/charts/notes.ts +++ b/src/server/api/endpoints/charts/notes.ts @@ -4,26 +4,16 @@ import { convertLog } from '../../../../services/chart/core'; import { notesChart } from '../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': '投稿のチャートを取得します。' - }, - tags: ['charts', 'notes'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { diff --git a/src/server/api/endpoints/charts/user/drive.ts b/src/server/api/endpoints/charts/user/drive.ts index 7f4218b92..bacb022c8 100644 --- a/src/server/api/endpoints/charts/user/drive.ts +++ b/src/server/api/endpoints/charts/user/drive.ts @@ -5,26 +5,16 @@ import { convertLog } from '../../../../../services/chart/core'; import { perUserDriveChart } from '../../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'ユーザーごとのドライブのチャートを取得します。' - }, - tags: ['charts', 'drive', 'users'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { @@ -34,10 +24,6 @@ export const meta = { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/charts/user/following.ts b/src/server/api/endpoints/charts/user/following.ts index 63eb90a49..ce41c231b 100644 --- a/src/server/api/endpoints/charts/user/following.ts +++ b/src/server/api/endpoints/charts/user/following.ts @@ -5,26 +5,16 @@ import { convertLog } from '../../../../../services/chart/core'; import { perUserFollowingChart } from '../../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'ユーザーごとのフォロー/フォロワーのチャートを取得します。' - }, - tags: ['charts', 'users', 'following'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { @@ -34,10 +24,6 @@ export const meta = { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/charts/user/notes.ts b/src/server/api/endpoints/charts/user/notes.ts index 87425e3dc..470b7274b 100644 --- a/src/server/api/endpoints/charts/user/notes.ts +++ b/src/server/api/endpoints/charts/user/notes.ts @@ -5,26 +5,16 @@ import { convertLog } from '../../../../../services/chart/core'; import { perUserNotesChart } from '../../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'ユーザーごとの投稿のチャートを取得します。' - }, - tags: ['charts', 'users', 'notes'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { @@ -34,10 +24,6 @@ export const meta = { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/charts/user/reactions.ts b/src/server/api/endpoints/charts/user/reactions.ts index 7ded604ac..4ebe4623c 100644 --- a/src/server/api/endpoints/charts/user/reactions.ts +++ b/src/server/api/endpoints/charts/user/reactions.ts @@ -5,26 +5,16 @@ import { convertLog } from '../../../../../services/chart/core'; import { perUserReactionsChart } from '../../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'ユーザーごとの被リアクション数のチャートを取得します。' - }, - tags: ['charts', 'users', 'reactions'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { @@ -34,10 +24,6 @@ export const meta = { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/charts/users.ts b/src/server/api/endpoints/charts/users.ts index 18eec384a..4246a18e5 100644 --- a/src/server/api/endpoints/charts/users.ts +++ b/src/server/api/endpoints/charts/users.ts @@ -4,26 +4,16 @@ import { convertLog } from '../../../../services/chart/core'; import { usersChart } from '../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'ユーザーのチャートを取得します。' - }, - tags: ['charts', 'users'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { diff --git a/src/server/api/endpoints/drive.ts b/src/server/api/endpoints/drive.ts index 0100d4da7..2feb72ae1 100644 --- a/src/server/api/endpoints/drive.ts +++ b/src/server/api/endpoints/drive.ts @@ -3,11 +3,6 @@ import { fetchMeta } from '@/misc/fetch-meta'; import { DriveFiles } from '../../../models'; export const meta = { - desc: { - 'ja-JP': 'ドライブの情報を取得します。', - 'en-US': 'Get drive information.' - }, - tags: ['drive', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/drive/files.ts b/src/server/api/endpoints/drive/files.ts index 85dc07cc1..60cb8c513 100644 --- a/src/server/api/endpoints/drive/files.ts +++ b/src/server/api/endpoints/drive/files.ts @@ -5,11 +5,6 @@ import { DriveFiles } from '../../../../models'; import { makePaginationQuery } from '../../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': 'ドライブのファイル一覧を取得します。', - 'en-US': 'Get files of drive.' - }, - tags: ['drive'], requireCredential: true as const, diff --git a/src/server/api/endpoints/drive/files/attached-notes.ts b/src/server/api/endpoints/drive/files/attached-notes.ts index ea09581ba..dafbf30fb 100644 --- a/src/server/api/endpoints/drive/files/attached-notes.ts +++ b/src/server/api/endpoints/drive/files/attached-notes.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../../error'; import { DriveFiles, Notes } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したドライブのファイルが添付されている投稿一覧を取得します。', - 'en-US': 'Get the notes that specified file of drive attached.' - }, - tags: ['drive', 'notes'], requireCredential: true as const, @@ -19,10 +14,6 @@ export const meta = { params: { fileId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のファイルID', - 'en-US': 'Target file ID' - } } }, diff --git a/src/server/api/endpoints/drive/files/check-existence.ts b/src/server/api/endpoints/drive/files/check-existence.ts index f1741cf08..b20be4407 100644 --- a/src/server/api/endpoints/drive/files/check-existence.ts +++ b/src/server/api/endpoints/drive/files/check-existence.ts @@ -3,11 +3,6 @@ import define from '../../../define'; import { DriveFiles } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '与えられたMD5ハッシュ値を持つファイルがドライブに存在するかどうかを返します。', - 'en-US': 'Returns whether the file with the given MD5 hash exists in the user\'s drive.' - }, - tags: ['drive'], requireCredential: true as const, @@ -17,9 +12,6 @@ export const meta = { params: { md5: { validator: $.str, - desc: { - 'ja-JP': 'ファイルのMD5ハッシュ' - } } }, diff --git a/src/server/api/endpoints/drive/files/create.ts b/src/server/api/endpoints/drive/files/create.ts index 82ff04e09..7da9a20f8 100644 --- a/src/server/api/endpoints/drive/files/create.ts +++ b/src/server/api/endpoints/drive/files/create.ts @@ -8,11 +8,6 @@ import { ApiError } from '../../../error'; import { DriveFiles } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': 'ドライブにファイルをアップロードします。', - 'en-US': 'Upload a file to drive.' - }, - tags: ['drive'], requireCredential: true as const, @@ -30,36 +25,23 @@ export const meta = { folderId: { validator: $.optional.nullable.type(ID), default: null as any, - desc: { - 'ja-JP': 'フォルダID' - } }, name: { validator: $.optional.nullable.str, default: null as any, - desc: { - 'ja-JP': 'ファイル名(拡張子があるなら含めて)' - } }, isSensitive: { validator: $.optional.either($.bool, $.str), default: false, transform: (v: any): boolean => v === true || v === 'true', - desc: { - 'ja-JP': 'このメディアが「閲覧注意」(NSFW)かどうか', - 'en-US': 'Whether this media is NSFW' - } }, force: { validator: $.optional.either($.bool, $.str), default: false, transform: (v: any): boolean => v === true || v === 'true', - desc: { - 'ja-JP': 'true にすると、同じハッシュを持つファイルが既にアップロードされていても強制的にファイルを作成します。', - } } }, diff --git a/src/server/api/endpoints/drive/files/delete.ts b/src/server/api/endpoints/drive/files/delete.ts index 211afaaba..520078948 100644 --- a/src/server/api/endpoints/drive/files/delete.ts +++ b/src/server/api/endpoints/drive/files/delete.ts @@ -7,11 +7,6 @@ import { ApiError } from '../../../error'; import { DriveFiles } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': 'ドライブのファイルを削除します。', - 'en-US': 'Delete a file of drive.' - }, - tags: ['drive'], requireCredential: true as const, @@ -21,10 +16,6 @@ export const meta = { params: { fileId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のファイルID', - 'en-US': 'Target file ID' - } } }, diff --git a/src/server/api/endpoints/drive/files/find-by-hash.ts b/src/server/api/endpoints/drive/files/find-by-hash.ts index 336c85c44..ef0077392 100644 --- a/src/server/api/endpoints/drive/files/find-by-hash.ts +++ b/src/server/api/endpoints/drive/files/find-by-hash.ts @@ -3,10 +3,6 @@ import define from '../../../define'; import { DriveFiles } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '与えられたMD5ハッシュ値を持つファイルを取得します。', - }, - tags: ['drive'], requireCredential: true as const, @@ -16,9 +12,6 @@ export const meta = { params: { md5: { validator: $.str, - desc: { - 'ja-JP': 'ファイルのMD5ハッシュ' - } } }, diff --git a/src/server/api/endpoints/drive/files/find.ts b/src/server/api/endpoints/drive/files/find.ts index b3613ca01..f95504a00 100644 --- a/src/server/api/endpoints/drive/files/find.ts +++ b/src/server/api/endpoints/drive/files/find.ts @@ -18,9 +18,6 @@ export const meta = { folderId: { validator: $.optional.nullable.type(ID), default: null as any, - desc: { - 'ja-JP': 'フォルダID' - } }, }, diff --git a/src/server/api/endpoints/drive/files/show.ts b/src/server/api/endpoints/drive/files/show.ts index f4922bff1..33e88fa81 100644 --- a/src/server/api/endpoints/drive/files/show.ts +++ b/src/server/api/endpoints/drive/files/show.ts @@ -6,11 +6,6 @@ import { DriveFile } from '../../../../../models/entities/drive-file'; import { DriveFiles } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したドライブのファイルの情報を取得します。', - 'en-US': 'Get specified file of drive.' - }, - tags: ['drive'], requireCredential: true as const, @@ -20,18 +15,10 @@ export const meta = { params: { fileId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のファイルID', - 'en-US': 'Target file ID' - } }, url: { validator: $.optional.str, - desc: { - 'ja-JP': '対象のファイルのURL', - 'en-US': 'Target file URL' - } } }, diff --git a/src/server/api/endpoints/drive/files/update.ts b/src/server/api/endpoints/drive/files/update.ts index f740fea67..29b4ba7a4 100644 --- a/src/server/api/endpoints/drive/files/update.ts +++ b/src/server/api/endpoints/drive/files/update.ts @@ -6,11 +6,6 @@ import { ApiError } from '../../../error'; import { DriveFiles, DriveFolders } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したドライブのファイルの情報を更新します。', - 'en-US': 'Update specified file of drive.' - }, - tags: ['drive'], requireCredential: true as const, @@ -20,43 +15,26 @@ export const meta = { params: { fileId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のファイルID' - } }, folderId: { validator: $.optional.nullable.type(ID), default: undefined as any, - desc: { - 'ja-JP': 'フォルダID' - } }, name: { validator: $.optional.str.pipe(DriveFiles.validateFileName), default: undefined as any, - desc: { - 'ja-JP': 'ファイル名', - 'en-US': 'Name of the file' - } }, isSensitive: { validator: $.optional.bool, default: undefined as any, - desc: { - 'ja-JP': 'このメディアが「閲覧注意」(NSFW)かどうか', - 'en-US': 'Whether this media is NSFW' - } }, comment: { validator: $.optional.nullable.str, default: undefined as any, - desc: { - 'ja-JP': 'コメント' - } } }, diff --git a/src/server/api/endpoints/drive/files/upload-from-url.ts b/src/server/api/endpoints/drive/files/upload-from-url.ts index 1b33099aa..65213be6a 100644 --- a/src/server/api/endpoints/drive/files/upload-from-url.ts +++ b/src/server/api/endpoints/drive/files/upload-from-url.ts @@ -7,10 +7,6 @@ import { DriveFiles } from '../../../../../models'; import { publishMainStream } from '../../../../../services/stream'; export const meta = { - desc: { - 'ja-JP': 'ドライブに指定されたURLに存在するファイルをアップロードします。' - }, - tags: ['drive'], limit: { @@ -36,10 +32,6 @@ export const meta = { isSensitive: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': 'このメディアが「閲覧注意」(NSFW)かどうか', - 'en-US': 'Whether this media is NSFW' - } }, comment: { @@ -55,9 +47,6 @@ export const meta = { force: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': 'true にすると、同じハッシュを持つファイルが既にアップロードされていても強制的にファイルを作成します。', - } } } }; diff --git a/src/server/api/endpoints/drive/folders.ts b/src/server/api/endpoints/drive/folders.ts index 89453e6e0..014f986f9 100644 --- a/src/server/api/endpoints/drive/folders.ts +++ b/src/server/api/endpoints/drive/folders.ts @@ -5,11 +5,6 @@ import { DriveFolders } from '../../../../models'; import { makePaginationQuery } from '../../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': 'ドライブのフォルダ一覧を取得します。', - 'en-US': 'Get folders of drive.' - }, - tags: ['drive'], requireCredential: true as const, diff --git a/src/server/api/endpoints/drive/folders/create.ts b/src/server/api/endpoints/drive/folders/create.ts index d2c5e00a9..e39f8f2ce 100644 --- a/src/server/api/endpoints/drive/folders/create.ts +++ b/src/server/api/endpoints/drive/folders/create.ts @@ -7,11 +7,6 @@ import { DriveFolders } from '../../../../../models'; import { genId } from '@/misc/gen-id'; export const meta = { - desc: { - 'ja-JP': 'ドライブのフォルダを作成します。', - 'en-US': 'Create a folder of drive.' - }, - tags: ['drive'], requireCredential: true as const, @@ -22,18 +17,10 @@ export const meta = { name: { validator: $.optional.str.pipe(DriveFolders.validateFolderName), default: 'Untitled', - desc: { - 'ja-JP': 'フォルダ名', - 'en-US': 'Folder name' - } }, parentId: { validator: $.optional.nullable.type(ID), - desc: { - 'ja-JP': '親フォルダID', - 'en-US': 'Parent folder ID' - } } }, diff --git a/src/server/api/endpoints/drive/folders/delete.ts b/src/server/api/endpoints/drive/folders/delete.ts index 2a418069c..253563a3e 100644 --- a/src/server/api/endpoints/drive/folders/delete.ts +++ b/src/server/api/endpoints/drive/folders/delete.ts @@ -6,11 +6,6 @@ import { ApiError } from '../../../error'; import { DriveFolders, DriveFiles } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したドライブのフォルダを削除します。', - 'en-US': 'Delete specified folder of drive.' - }, - tags: ['drive'], requireCredential: true as const, @@ -20,10 +15,6 @@ export const meta = { params: { folderId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のフォルダID', - 'en-US': 'Target folder ID' - } } }, diff --git a/src/server/api/endpoints/drive/folders/find.ts b/src/server/api/endpoints/drive/folders/find.ts index e3f6aa4a9..f99e2fe1d 100644 --- a/src/server/api/endpoints/drive/folders/find.ts +++ b/src/server/api/endpoints/drive/folders/find.ts @@ -18,9 +18,6 @@ export const meta = { parentId: { validator: $.optional.nullable.type(ID), default: null as any, - desc: { - 'ja-JP': 'フォルダID' - } }, }, diff --git a/src/server/api/endpoints/drive/folders/show.ts b/src/server/api/endpoints/drive/folders/show.ts index ae00b9e36..fe1326da7 100644 --- a/src/server/api/endpoints/drive/folders/show.ts +++ b/src/server/api/endpoints/drive/folders/show.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../../error'; import { DriveFolders } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したドライブのフォルダの情報を取得します。', - 'en-US': 'Get specified folder of drive.' - }, - tags: ['drive'], requireCredential: true as const, @@ -19,10 +14,6 @@ export const meta = { params: { folderId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のフォルダID', - 'en-US': 'Target folder ID' - } } }, diff --git a/src/server/api/endpoints/drive/folders/update.ts b/src/server/api/endpoints/drive/folders/update.ts index 066013287..9dfe33517 100644 --- a/src/server/api/endpoints/drive/folders/update.ts +++ b/src/server/api/endpoints/drive/folders/update.ts @@ -6,11 +6,6 @@ import { ApiError } from '../../../error'; import { DriveFolders } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したドライブのフォルダの情報を更新します。', - 'en-US': 'Update specified folder of drive.' - }, - tags: ['drive'], requireCredential: true as const, @@ -20,26 +15,14 @@ export const meta = { params: { folderId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のフォルダID', - 'en-US': 'Target folder ID' - } }, name: { validator: $.optional.str.pipe(DriveFolders.validateFolderName), - desc: { - 'ja-JP': 'フォルダ名', - 'en-US': 'Folder name' - } }, parentId: { validator: $.optional.nullable.type(ID), - desc: { - 'ja-JP': '親フォルダID', - 'en-US': 'Parent folder ID' - } } }, diff --git a/src/server/api/endpoints/endpoints.ts b/src/server/api/endpoints/endpoints.ts index 84ab107c6..f7b9757d8 100644 --- a/src/server/api/endpoints/endpoints.ts +++ b/src/server/api/endpoints/endpoints.ts @@ -2,11 +2,6 @@ import define from '../define'; import endpoints from '../endpoints'; export const meta = { - desc: { - 'ja-JP': '使用できるAPI一覧を返します。', - 'en-US': 'Returns a list of available APIs.' - }, - requireCredential: false as const, tags: ['meta'], diff --git a/src/server/api/endpoints/federation/update-remote-user.ts b/src/server/api/endpoints/federation/update-remote-user.ts index 1b7a9c4d5..c4a6db0dd 100644 --- a/src/server/api/endpoints/federation/update-remote-user.ts +++ b/src/server/api/endpoints/federation/update-remote-user.ts @@ -5,11 +5,6 @@ import { getRemoteUser } from '../../common/getters'; import { updatePerson } from '../../../../remote/activitypub/models/person'; export const meta = { - desc: { - 'ja-JP': '指定されたリモートユーザーの情報を更新します。', - 'en-US': 'Update specified remote user information.' - }, - tags: ['federation'], requireCredential: true as const, @@ -17,10 +12,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーID', - 'en-US': 'The user ID which you want to update' - } }, } }; diff --git a/src/server/api/endpoints/following/create.ts b/src/server/api/endpoints/following/create.ts index 6ce71089b..e4f9a86d9 100644 --- a/src/server/api/endpoints/following/create.ts +++ b/src/server/api/endpoints/following/create.ts @@ -8,11 +8,6 @@ import { getUser } from '../../common/getters'; import { Followings, Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーをフォローします。', - 'en-US': 'Follow a user.' - }, - tags: ['following', 'users'], limit: { @@ -27,10 +22,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/following/delete.ts b/src/server/api/endpoints/following/delete.ts index 823d85c17..e164cb25c 100644 --- a/src/server/api/endpoints/following/delete.ts +++ b/src/server/api/endpoints/following/delete.ts @@ -8,11 +8,6 @@ import { getUser } from '../../common/getters'; import { Followings, Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーのフォローを解除します。', - 'en-US': 'Unfollow a user.' - }, - tags: ['following', 'users'], limit: { @@ -27,10 +22,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/following/requests/accept.ts b/src/server/api/endpoints/following/requests/accept.ts index 4a0fdb0af..aa7085c53 100644 --- a/src/server/api/endpoints/following/requests/accept.ts +++ b/src/server/api/endpoints/following/requests/accept.ts @@ -6,11 +6,6 @@ import { ApiError } from '../../../error'; import { getUser } from '../../../common/getters'; export const meta = { - desc: { - 'ja-JP': '自分に届いた、指定したフォローリクエストを承認します。', - 'en-US': 'Accept a follow request.' - }, - tags: ['following', 'account'], requireCredential: true as const, @@ -20,10 +15,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/following/requests/cancel.ts b/src/server/api/endpoints/following/requests/cancel.ts index 8d4538d43..09056f262 100644 --- a/src/server/api/endpoints/following/requests/cancel.ts +++ b/src/server/api/endpoints/following/requests/cancel.ts @@ -7,11 +7,6 @@ import { getUser } from '../../../common/getters'; import { Users } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '自分が作成した、指定したフォローリクエストをキャンセルします。', - 'en-US': 'Cancel a follow request.' - }, - tags: ['following', 'account'], requireCredential: true as const, @@ -21,10 +16,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/following/requests/list.ts b/src/server/api/endpoints/following/requests/list.ts index 4afd44851..bf3bfc68f 100644 --- a/src/server/api/endpoints/following/requests/list.ts +++ b/src/server/api/endpoints/following/requests/list.ts @@ -2,11 +2,6 @@ import define from '../../../define'; import { FollowRequests } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '自分に届いたフォローリクエストの一覧を取得します。', - 'en-US': 'Get all pending received follow requests.' - }, - tags: ['following', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/following/requests/reject.ts b/src/server/api/endpoints/following/requests/reject.ts index 8ef2c9334..1685a8613 100644 --- a/src/server/api/endpoints/following/requests/reject.ts +++ b/src/server/api/endpoints/following/requests/reject.ts @@ -6,11 +6,6 @@ import { ApiError } from '../../../error'; import { getUser } from '../../../common/getters'; export const meta = { - desc: { - 'ja-JP': '自分に届いた、指定したフォローリクエストを拒否します。', - 'en-US': 'Reject a follow request.' - }, - tags: ['following', 'account'], requireCredential: true as const, @@ -20,10 +15,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/games/reversi/games/surrender.ts b/src/server/api/endpoints/games/reversi/games/surrender.ts index 346293f11..41896b4ab 100644 --- a/src/server/api/endpoints/games/reversi/games/surrender.ts +++ b/src/server/api/endpoints/games/reversi/games/surrender.ts @@ -8,18 +8,11 @@ import { ReversiGames } from '../../../../../../models'; export const meta = { tags: ['games'], - desc: { - 'ja-JP': '指定したリバーシの対局で投了します。' - }, - requireCredential: true as const, params: { gameId: { validator: $.type(ID), - desc: { - 'ja-JP': '投了したい対局' - } } }, diff --git a/src/server/api/endpoints/games/reversi/match.ts b/src/server/api/endpoints/games/reversi/match.ts index 2c4ec2ebd..55ff9225d 100644 --- a/src/server/api/endpoints/games/reversi/match.ts +++ b/src/server/api/endpoints/games/reversi/match.ts @@ -18,10 +18,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, }, diff --git a/src/server/api/endpoints/hashtags/search.ts b/src/server/api/endpoints/hashtags/search.ts index 32342a63d..372ccd508 100644 --- a/src/server/api/endpoints/hashtags/search.ts +++ b/src/server/api/endpoints/hashtags/search.ts @@ -3,10 +3,6 @@ import define from '../../define'; import { Hashtags } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': 'ハッシュタグを検索します。' - }, - tags: ['hashtags'], requireCredential: false as const, @@ -15,24 +11,15 @@ export const meta = { limit: { validator: $.optional.num.range(1, 100), default: 10, - desc: { - 'ja-JP': '最大数' - } }, query: { validator: $.str, - desc: { - 'ja-JP': 'クエリ' - } }, offset: { validator: $.optional.num.min(0), default: 0, - desc: { - 'ja-JP': 'オフセット' - } } }, diff --git a/src/server/api/endpoints/hashtags/show.ts b/src/server/api/endpoints/hashtags/show.ts index f80ef38af..9e388ce14 100644 --- a/src/server/api/endpoints/hashtags/show.ts +++ b/src/server/api/endpoints/hashtags/show.ts @@ -5,10 +5,6 @@ import { Hashtags } from '../../../../models'; import { normalizeForSearch } from '@/misc/normalize-for-search'; export const meta = { - desc: { - 'ja-JP': '指定したハッシュタグの情報を取得します。', - }, - tags: ['hashtags'], requireCredential: false as const, @@ -16,10 +12,6 @@ export const meta = { params: { tag: { validator: $.str, - desc: { - 'ja-JP': '対象のハッシュタグ(#なし)', - 'en-US': 'Target hashtag. (no # prefixed)' - } } }, diff --git a/src/server/api/endpoints/i.ts b/src/server/api/endpoints/i.ts index 87f6ae778..c6b89124b 100644 --- a/src/server/api/endpoints/i.ts +++ b/src/server/api/endpoints/i.ts @@ -2,10 +2,6 @@ import define from '../define'; import { Users } from '../../../models'; export const meta = { - desc: { - 'ja-JP': '自分のアカウント情報を取得します。' - }, - tags: ['account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/i/favorites.ts b/src/server/api/endpoints/i/favorites.ts index b0d20e9ac..eb97e8bab 100644 --- a/src/server/api/endpoints/i/favorites.ts +++ b/src/server/api/endpoints/i/favorites.ts @@ -5,11 +5,6 @@ import { NoteFavorites } from '../../../../models'; import { makePaginationQuery } from '../../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': 'お気に入りに登録した投稿一覧を取得します。', - 'en-US': 'Get favorited notes' - }, - tags: ['account', 'notes', 'favorites'], requireCredential: true as const, diff --git a/src/server/api/endpoints/i/notifications.ts b/src/server/api/endpoints/i/notifications.ts index a10dc09df..a16766c92 100644 --- a/src/server/api/endpoints/i/notifications.ts +++ b/src/server/api/endpoints/i/notifications.ts @@ -8,11 +8,6 @@ import { notificationTypes } from '../../../../types'; import read from '@/services/note/read'; export const meta = { - desc: { - 'ja-JP': '通知一覧を取得します。', - 'en-US': 'Get notifications.' - }, - tags: ['account', 'notifications'], requireCredential: true as const, diff --git a/src/server/api/endpoints/i/page-likes.ts b/src/server/api/endpoints/i/page-likes.ts index cd5ec3da7..bb4149969 100644 --- a/src/server/api/endpoints/i/page-likes.ts +++ b/src/server/api/endpoints/i/page-likes.ts @@ -5,11 +5,6 @@ import { PageLikes } from '../../../../models'; import { makePaginationQuery } from '../../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': '「いいね」したページ一覧を取得します。', - 'en-US': 'Get liked pages' - }, - tags: ['account', 'pages'], requireCredential: true as const, diff --git a/src/server/api/endpoints/i/pages.ts b/src/server/api/endpoints/i/pages.ts index ab42ab6d3..981686adb 100644 --- a/src/server/api/endpoints/i/pages.ts +++ b/src/server/api/endpoints/i/pages.ts @@ -5,11 +5,6 @@ import { Pages } from '../../../../models'; import { makePaginationQuery } from '../../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': '自分の作成したページ一覧を取得します。', - 'en-US': 'Get my pages.' - }, - tags: ['account', 'pages'], requireCredential: true as const, diff --git a/src/server/api/endpoints/i/pin.ts b/src/server/api/endpoints/i/pin.ts index 4bed56693..e1e065899 100644 --- a/src/server/api/endpoints/i/pin.ts +++ b/src/server/api/endpoints/i/pin.ts @@ -6,10 +6,6 @@ import { ApiError } from '../../error'; import { Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿をピン留めします。' - }, - tags: ['account', 'notes'], requireCredential: true as const, @@ -19,10 +15,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID' - } } }, diff --git a/src/server/api/endpoints/i/read-all-messaging-messages.ts b/src/server/api/endpoints/i/read-all-messaging-messages.ts index e47ef16bd..dd26a10a7 100644 --- a/src/server/api/endpoints/i/read-all-messaging-messages.ts +++ b/src/server/api/endpoints/i/read-all-messaging-messages.ts @@ -3,11 +3,6 @@ import define from '../../define'; import { MessagingMessages, UserGroupJoinings } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': 'トークメッセージをすべて既読にします。', - 'en-US': 'Mark all talk messages as read.' - }, - tags: ['account', 'messaging'], requireCredential: true as const, diff --git a/src/server/api/endpoints/i/read-all-unread-notes.ts b/src/server/api/endpoints/i/read-all-unread-notes.ts index efb8a7f0f..64469a2ad 100644 --- a/src/server/api/endpoints/i/read-all-unread-notes.ts +++ b/src/server/api/endpoints/i/read-all-unread-notes.ts @@ -3,11 +3,6 @@ import define from '../../define'; import { NoteUnreads } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '未読の投稿をすべて既読にします。', - 'en-US': 'Mark all messages as read.' - }, - tags: ['account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/i/read-announcement.ts b/src/server/api/endpoints/i/read-announcement.ts index a0c59a15d..0f58b823f 100644 --- a/src/server/api/endpoints/i/read-announcement.ts +++ b/src/server/api/endpoints/i/read-announcement.ts @@ -7,11 +7,6 @@ import { AnnouncementReads, Announcements, Users } from '../../../../models'; import { publishMainStream } from '../../../../services/stream'; export const meta = { - desc: { - 'ja-JP': '指定したアナウンスを既読にします。', - 'en-US': 'Marks the specified announcement as read.' - }, - tags: ['account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/i/unpin.ts b/src/server/api/endpoints/i/unpin.ts index bb8b36a16..fe19b2090 100644 --- a/src/server/api/endpoints/i/unpin.ts +++ b/src/server/api/endpoints/i/unpin.ts @@ -6,10 +6,6 @@ import { ApiError } from '../../error'; import { Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿のピン留めを解除します。' - }, - tags: ['account', 'notes'], requireCredential: true as const, @@ -19,10 +15,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID' - } } }, diff --git a/src/server/api/endpoints/i/update.ts b/src/server/api/endpoints/i/update.ts index 032dccd91..96955354a 100644 --- a/src/server/api/endpoints/i/update.ts +++ b/src/server/api/endpoints/i/update.ts @@ -17,11 +17,6 @@ import { notificationTypes } from '../../../../types'; import { normalizeForSearch } from '@/misc/normalize-for-search'; export const meta = { - desc: { - 'ja-JP': 'アカウント情報を更新します。', - 'en-US': 'Update myself' - }, - tags: ['account'], requireCredential: true as const, @@ -31,65 +26,38 @@ export const meta = { params: { name: { validator: $.optional.nullable.use(Users.validateName), - desc: { - 'ja-JP': '名前(ハンドルネームやニックネーム)' - } }, description: { validator: $.optional.nullable.use(Users.validateDescription), - desc: { - 'ja-JP': 'アカウントの説明や自己紹介' - } }, lang: { validator: $.optional.nullable.str.or(Object.keys(langmap)), - desc: { - 'ja-JP': '言語' - } }, location: { validator: $.optional.nullable.use(Users.validateLocation), - desc: { - 'ja-JP': '住んでいる地域、所在' - } }, birthday: { validator: $.optional.nullable.use(Users.validateBirthday), - desc: { - 'ja-JP': '誕生日 (YYYY-MM-DD形式)' - } }, avatarId: { validator: $.optional.nullable.type(ID), - desc: { - 'ja-JP': 'アバターに設定する画像のドライブファイルID' - } }, bannerId: { validator: $.optional.nullable.type(ID), - desc: { - 'ja-JP': 'バナーに設定する画像のドライブファイルID' - } }, fields: { validator: $.optional.arr($.object()).range(1, 4), - desc: { - 'ja-JP': 'プロフィール補足情報' - } }, isLocked: { validator: $.optional.bool, - desc: { - 'ja-JP': '鍵アカウントか否か' - } }, isExplorable: { @@ -102,37 +70,22 @@ export const meta = { carefulBot: { validator: $.optional.bool, - desc: { - 'ja-JP': 'Botからのフォローを承認制にするか' - } }, autoAcceptFollowed: { validator: $.optional.bool, - desc: { - 'ja-JP': 'フォローしているユーザーからのフォローリクエストを自動承認するか' - } }, noCrawle: { validator: $.optional.bool, - desc: { - 'ja-JP': '検索エンジンによるインデックスを拒否するか否か' - } }, isBot: { validator: $.optional.bool, - desc: { - 'ja-JP': 'Botか否か' - } }, isCat: { validator: $.optional.bool, - desc: { - 'ja-JP': '猫か否か' - } }, injectFeaturedNote: { @@ -145,16 +98,10 @@ export const meta = { alwaysMarkNsfw: { validator: $.optional.bool, - desc: { - 'ja-JP': 'アップロードするメディアをデフォルトで「閲覧注意」として設定するか' - } }, pinnedPageId: { validator: $.optional.nullable.type(ID), - desc: { - 'ja-JP': 'ピン留めするページID' - } }, mutedWords: { diff --git a/src/server/api/endpoints/i/user-group-invites.ts b/src/server/api/endpoints/i/user-group-invites.ts index 9bfb17ab4..623274df9 100644 --- a/src/server/api/endpoints/i/user-group-invites.ts +++ b/src/server/api/endpoints/i/user-group-invites.ts @@ -5,11 +5,6 @@ import { UserGroupInvitations } from '../../../../models'; import { makePaginationQuery } from '../../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': 'グループへの招待一覧を取得します。', - 'en-US': 'Get user group invitations.' - }, - tags: ['account', 'groups'], requireCredential: true as const, diff --git a/src/server/api/endpoints/messaging/history.ts b/src/server/api/endpoints/messaging/history.ts index 15302eb35..5f4f02455 100644 --- a/src/server/api/endpoints/messaging/history.ts +++ b/src/server/api/endpoints/messaging/history.ts @@ -5,11 +5,6 @@ import { MessagingMessages, Mutings, UserGroupJoinings } from '../../../../model import { Brackets } from 'typeorm'; export const meta = { - desc: { - 'ja-JP': 'トークの履歴を取得します。', - 'en-US': 'Show messaging history.' - }, - tags: ['messaging'], requireCredential: true as const, diff --git a/src/server/api/endpoints/messaging/messages.ts b/src/server/api/endpoints/messaging/messages.ts index 8beb7e87f..087f5a7d6 100644 --- a/src/server/api/endpoints/messaging/messages.ts +++ b/src/server/api/endpoints/messaging/messages.ts @@ -9,11 +9,6 @@ import { Brackets } from 'typeorm'; import { readUserMessagingMessage, readGroupMessagingMessage, deliverReadActivity } from '../../common/read-messaging-message'; export const meta = { - desc: { - 'ja-JP': 'トークメッセージ一覧を取得します。', - 'en-US': 'Get messages of messaging.' - }, - tags: ['messaging'], requireCredential: true as const, @@ -23,18 +18,10 @@ export const meta = { params: { userId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, groupId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のグループのID', - 'en-US': 'Target group ID' - } }, limit: { diff --git a/src/server/api/endpoints/messaging/messages/create.ts b/src/server/api/endpoints/messaging/messages/create.ts index c9abb299f..1cd50145b 100644 --- a/src/server/api/endpoints/messaging/messages/create.ts +++ b/src/server/api/endpoints/messaging/messages/create.ts @@ -9,11 +9,6 @@ import { UserGroup } from '../../../../../models/entities/user-group'; import { createMessage } from '../../../../../services/messages/create'; export const meta = { - desc: { - 'ja-JP': 'トークメッセージを送信します。', - 'en-US': 'Create a message of messaging.' - }, - tags: ['messaging'], requireCredential: true as const, @@ -23,18 +18,10 @@ export const meta = { params: { userId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, groupId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のグループのID', - 'en-US': 'Target group ID' - } }, text: { diff --git a/src/server/api/endpoints/messaging/messages/delete.ts b/src/server/api/endpoints/messaging/messages/delete.ts index 128ef0263..5e5aa5fd1 100644 --- a/src/server/api/endpoints/messaging/messages/delete.ts +++ b/src/server/api/endpoints/messaging/messages/delete.ts @@ -7,11 +7,6 @@ import { MessagingMessages } from '../../../../../models'; import { deleteMessage } from '../../../../../services/messages/delete'; export const meta = { - desc: { - 'ja-JP': '指定したトークメッセージを削除します。', - 'en-US': 'Delete a message.' - }, - tags: ['messaging'], requireCredential: true as const, @@ -27,10 +22,6 @@ export const meta = { params: { messageId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のメッセージのID', - 'en-US': 'Target message ID.' - } } }, diff --git a/src/server/api/endpoints/messaging/messages/read.ts b/src/server/api/endpoints/messaging/messages/read.ts index c591cb28e..b17927da3 100644 --- a/src/server/api/endpoints/messaging/messages/read.ts +++ b/src/server/api/endpoints/messaging/messages/read.ts @@ -6,11 +6,6 @@ import { MessagingMessages } from '../../../../../models'; import { readUserMessagingMessage, readGroupMessagingMessage } from '../../../common/read-messaging-message'; export const meta = { - desc: { - 'ja-JP': '指定した自分宛てのトークメッセージを既読にします。', - 'en-US': 'Mark as read a message of messaging.' - }, - tags: ['messaging'], requireCredential: true as const, @@ -20,10 +15,6 @@ export const meta = { params: { messageId: { validator: $.type(ID), - desc: { - 'ja-JP': '既読にするメッセージのID', - 'en-US': 'The ID of a message that you want to mark as read' - } } }, diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index 26d9110ea..e7a6a401d 100644 --- a/src/server/api/endpoints/meta.ts +++ b/src/server/api/endpoints/meta.ts @@ -7,11 +7,6 @@ import { DB_MAX_NOTE_TEXT_LENGTH } from '@/misc/hard-limits'; import { MoreThan } from 'typeorm'; export const meta = { - desc: { - 'ja-JP': 'インスタンス情報を取得します。', - 'en-US': 'Get the information of this instance.' - }, - tags: ['meta'], requireCredential: false as const, diff --git a/src/server/api/endpoints/mute/create.ts b/src/server/api/endpoints/mute/create.ts index 6c1e1e2fd..7f018a359 100644 --- a/src/server/api/endpoints/mute/create.ts +++ b/src/server/api/endpoints/mute/create.ts @@ -9,11 +9,6 @@ import { Muting } from '../../../../models/entities/muting'; import { publishUserEvent } from '../../../../services/stream'; export const meta = { - desc: { - 'ja-JP': 'ユーザーをミュートします。', - 'en-US': 'Mute a user' - }, - tags: ['account'], requireCredential: true as const, @@ -23,10 +18,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, }, diff --git a/src/server/api/endpoints/mute/delete.ts b/src/server/api/endpoints/mute/delete.ts index 2a008b64c..bfb6a95e3 100644 --- a/src/server/api/endpoints/mute/delete.ts +++ b/src/server/api/endpoints/mute/delete.ts @@ -7,11 +7,6 @@ import { Mutings } from '../../../../models'; import { publishUserEvent } from '../../../../services/stream'; export const meta = { - desc: { - 'ja-JP': 'ユーザーのミュートを解除します。', - 'en-US': 'Unmute a user' - }, - tags: ['account'], requireCredential: true as const, @@ -21,10 +16,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, }, diff --git a/src/server/api/endpoints/mute/list.ts b/src/server/api/endpoints/mute/list.ts index daa52b9ff..45952ec72 100644 --- a/src/server/api/endpoints/mute/list.ts +++ b/src/server/api/endpoints/mute/list.ts @@ -5,11 +5,6 @@ import { makePaginationQuery } from '../../common/make-pagination-query'; import { Mutings } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': 'ミュートしているユーザー一覧を取得します。', - 'en-US': 'Get muted users.' - }, - tags: ['account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/my/apps.ts b/src/server/api/endpoints/my/apps.ts index 2ca882fd6..908e24e1b 100644 --- a/src/server/api/endpoints/my/apps.ts +++ b/src/server/api/endpoints/my/apps.ts @@ -5,11 +5,6 @@ import { Apps } from '../../../../models'; export const meta = { tags: ['account', 'app'], - desc: { - 'ja-JP': '自分のアプリケーション一覧を取得します。', - 'en-US': 'Get my apps' - }, - requireCredential: true as const, params: { diff --git a/src/server/api/endpoints/notes.ts b/src/server/api/endpoints/notes.ts index 0e8929535..fdb8bad24 100644 --- a/src/server/api/endpoints/notes.ts +++ b/src/server/api/endpoints/notes.ts @@ -5,46 +5,27 @@ import { makePaginationQuery } from '../common/make-pagination-query'; import { Notes } from '../../../models'; export const meta = { - desc: { - 'ja-JP': '投稿を取得します。' - }, - tags: ['notes'], params: { local: { validator: $.optional.bool, - desc: { - 'ja-JP': 'ローカルの投稿に限定するか否か' - } }, reply: { validator: $.optional.bool, - desc: { - 'ja-JP': '返信に限定するか否か' - } }, renote: { validator: $.optional.bool, - desc: { - 'ja-JP': 'Renoteに限定するか否か' - } }, withFiles: { validator: $.optional.bool, - desc: { - 'ja-JP': 'ファイルが添付された投稿に限定するか否か' - } }, poll: { validator: $.optional.bool, - desc: { - 'ja-JP': 'アンケートが添付された投稿に限定するか否か' - } }, limit: { diff --git a/src/server/api/endpoints/notes/children.ts b/src/server/api/endpoints/notes/children.ts index bbfd0632c..adbe714bf 100644 --- a/src/server/api/endpoints/notes/children.ts +++ b/src/server/api/endpoints/notes/children.ts @@ -8,11 +8,6 @@ import { Brackets } from 'typeorm'; import { Notes } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿への返信/引用を取得します。', - 'en-US': 'Get replies/quotes of a note.' - }, - tags: ['notes'], requireCredential: false as const, @@ -20,10 +15,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID' - } }, limit: { diff --git a/src/server/api/endpoints/notes/conversation.ts b/src/server/api/endpoints/notes/conversation.ts index 95ab4ec1e..0fd10df07 100644 --- a/src/server/api/endpoints/notes/conversation.ts +++ b/src/server/api/endpoints/notes/conversation.ts @@ -7,11 +7,6 @@ import { Note } from '../../../../models/entities/note'; import { Notes } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿の文脈を取得します。', - 'en-US': 'Show conversation of a note.' - }, - tags: ['notes'], requireCredential: false as const, @@ -19,10 +14,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID' - } }, limit: { diff --git a/src/server/api/endpoints/notes/create.ts b/src/server/api/endpoints/notes/create.ts index 29cc650b8..7410d28cb 100644 --- a/src/server/api/endpoints/notes/create.ts +++ b/src/server/api/endpoints/notes/create.ts @@ -23,10 +23,6 @@ setInterval(() => { }, 3000); export const meta = { - desc: { - 'ja-JP': '投稿します。' - }, - tags: ['notes'], requireCredential: true as const, @@ -42,16 +38,10 @@ export const meta = { visibility: { validator: $.optional.str.or(noteVisibilities as unknown as string[]), default: 'public', - desc: { - 'ja-JP': '投稿の公開範囲' - } }, visibleUserIds: { validator: $.optional.arr($.type(ID)).unique().min(0), - desc: { - 'ja-JP': '(投稿の公開範囲が specified の場合)投稿を閲覧できるユーザー' - } }, text: { @@ -61,92 +51,56 @@ export const meta = { && Array.from(text.trim()).length <= DB_MAX_NOTE_TEXT_LENGTH // DB limit ), default: null as any, - desc: { - 'ja-JP': '投稿内容' - } }, cw: { validator: $.optional.nullable.str.pipe(Notes.validateCw), - desc: { - 'ja-JP': 'コンテンツの警告。このパラメータを指定すると設定したテキストで投稿のコンテンツを隠す事が出来ます。' - } }, viaMobile: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': 'モバイルデバイスからの投稿か否か。' - } }, localOnly: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': 'ローカルのみに投稿か否か。' - } }, noExtractMentions: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': '本文からメンションを展開しないか否か。' - } }, noExtractHashtags: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': '本文からハッシュタグを展開しないか否か。' - } }, noExtractEmojis: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': '本文からカスタム絵文字を展開しないか否か。' - } }, fileIds: { validator: $.optional.arr($.type(ID)).unique().range(1, 4), - desc: { - 'ja-JP': '添付するファイル' - } }, mediaIds: { validator: $.optional.arr($.type(ID)).unique().range(1, 4), deprecated: true, - desc: { - 'ja-JP': '添付するファイル (このパラメータは廃止予定です。代わりに fileIds を使ってください。)' - } }, replyId: { validator: $.optional.nullable.type(ID), - desc: { - 'ja-JP': '返信対象' - } }, renoteId: { validator: $.optional.nullable.type(ID), - desc: { - 'ja-JP': 'Renote対象' - } }, channelId: { validator: $.optional.nullable.type(ID), - desc: { - 'ja-JP': 'チャンネル' - } }, poll: { @@ -159,9 +113,6 @@ export const meta = { expiresAt: $.optional.nullable.num.int(), expiredAfter: $.optional.nullable.num.int().min(1) }).strict(), - desc: { - 'ja-JP': 'アンケート' - }, ref: 'poll' } }, diff --git a/src/server/api/endpoints/notes/delete.ts b/src/server/api/endpoints/notes/delete.ts index 154cff074..6a0652312 100644 --- a/src/server/api/endpoints/notes/delete.ts +++ b/src/server/api/endpoints/notes/delete.ts @@ -8,11 +8,6 @@ import { ApiError } from '../../error'; import { Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿を削除します。', - 'en-US': 'Delete a note.' - }, - tags: ['notes'], requireCredential: true as const, @@ -28,10 +23,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID.' - } } }, diff --git a/src/server/api/endpoints/notes/favorites/create.ts b/src/server/api/endpoints/notes/favorites/create.ts index 846c80a8d..b77b5d48f 100644 --- a/src/server/api/endpoints/notes/favorites/create.ts +++ b/src/server/api/endpoints/notes/favorites/create.ts @@ -7,11 +7,6 @@ import { NoteFavorites } from '../../../../../models'; import { genId } from '@/misc/gen-id'; export const meta = { - desc: { - 'ja-JP': '指定した投稿をお気に入りに登録します。', - 'en-US': 'Favorite a note.' - }, - tags: ['notes', 'favorites'], requireCredential: true as const, @@ -21,10 +16,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID.' - } } }, diff --git a/src/server/api/endpoints/notes/favorites/delete.ts b/src/server/api/endpoints/notes/favorites/delete.ts index 2be4f6408..4a1fc71a0 100644 --- a/src/server/api/endpoints/notes/favorites/delete.ts +++ b/src/server/api/endpoints/notes/favorites/delete.ts @@ -6,11 +6,6 @@ import { getNote } from '../../../common/getters'; import { NoteFavorites } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿のお気に入りを解除します。', - 'en-US': 'Unfavorite a note.' - }, - tags: ['notes', 'favorites'], requireCredential: true as const, @@ -20,10 +15,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID.' - } } }, diff --git a/src/server/api/endpoints/notes/featured.ts b/src/server/api/endpoints/notes/featured.ts index b3dffa427..5b4367f7a 100644 --- a/src/server/api/endpoints/notes/featured.ts +++ b/src/server/api/endpoints/notes/featured.ts @@ -4,11 +4,6 @@ import { generateMutedUserQuery } from '../../common/generate-muted-user-query'; import { Notes } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': 'Featuredな投稿を取得します。', - 'en-US': 'Get featured notes.' - }, - tags: ['notes'], requireCredential: false as const, @@ -17,9 +12,6 @@ export const meta = { limit: { validator: $.optional.num.range(1, 100), default: 10, - desc: { - 'ja-JP': '最大数' - } }, offset: { diff --git a/src/server/api/endpoints/notes/global-timeline.ts b/src/server/api/endpoints/notes/global-timeline.ts index 1e1df4040..741c5985a 100644 --- a/src/server/api/endpoints/notes/global-timeline.ts +++ b/src/server/api/endpoints/notes/global-timeline.ts @@ -11,18 +11,11 @@ import { generateRepliesQuery } from '../../common/generate-replies-query'; import { generateMutedNoteQuery } from '../../common/generate-muted-note-query'; export const meta = { - desc: { - 'ja-JP': 'グローバルタイムラインを取得します。' - }, - tags: ['notes'], params: { withFiles: { validator: $.optional.bool, - desc: { - 'ja-JP': 'ファイルが添付された投稿に限定するか否か' - } }, limit: { diff --git a/src/server/api/endpoints/notes/hybrid-timeline.ts b/src/server/api/endpoints/notes/hybrid-timeline.ts index ac44e747d..23fc5a606 100644 --- a/src/server/api/endpoints/notes/hybrid-timeline.ts +++ b/src/server/api/endpoints/notes/hybrid-timeline.ts @@ -14,10 +14,6 @@ import { generateMutedNoteQuery } from '../../common/generate-muted-note-query'; import { generateChannelQuery } from '../../common/generate-channel-query'; export const meta = { - desc: { - 'ja-JP': 'ソーシャルタイムラインを取得します。' - }, - tags: ['notes'], requireCredential: true as const, @@ -26,68 +22,41 @@ export const meta = { limit: { validator: $.optional.num.range(1, 100), default: 10, - desc: { - 'ja-JP': '最大数' - } }, sinceId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより新しい投稿を取得します' - } }, untilId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより古い投稿を取得します' - } }, sinceDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより新しい投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, untilDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより古い投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, includeMyRenotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': '自分の行ったRenoteを含めるかどうか' - } }, includeRenotedMyNotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': 'Renoteされた自分の投稿を含めるかどうか' - } }, includeLocalRenotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': 'Renoteされたローカルの投稿を含めるかどうか' - } }, withFiles: { validator: $.optional.bool, - desc: { - 'ja-JP': 'true にすると、ファイルが添付された投稿だけ取得します' - } }, }, diff --git a/src/server/api/endpoints/notes/local-timeline.ts b/src/server/api/endpoints/notes/local-timeline.ts index 113078a98..523fbee9a 100644 --- a/src/server/api/endpoints/notes/local-timeline.ts +++ b/src/server/api/endpoints/notes/local-timeline.ts @@ -14,33 +14,20 @@ import { generateMutedNoteQuery } from '../../common/generate-muted-note-query'; import { generateChannelQuery } from '../../common/generate-channel-query'; export const meta = { - desc: { - 'ja-JP': 'ローカルタイムラインを取得します。' - }, - tags: ['notes'], params: { withFiles: { validator: $.optional.bool, - desc: { - 'ja-JP': 'ファイルが添付された投稿に限定するか否か' - } }, fileType: { validator: $.optional.arr($.str), - desc: { - 'ja-JP': '指定された種類のファイルが添付された投稿のみを取得します' - } }, excludeNsfw: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': 'true にすると、NSFW指定されたファイルを除外します(fileTypeが指定されている場合のみ有効)' - } }, limit: { diff --git a/src/server/api/endpoints/notes/mentions.ts b/src/server/api/endpoints/notes/mentions.ts index dddd08eee..e1e916c58 100644 --- a/src/server/api/endpoints/notes/mentions.ts +++ b/src/server/api/endpoints/notes/mentions.ts @@ -9,11 +9,6 @@ import { makePaginationQuery } from '../../common/make-pagination-query'; import { Brackets } from 'typeorm'; export const meta = { - desc: { - 'ja-JP': '自分に言及している投稿の一覧を取得します。', - 'en-US': 'Get mentions of myself.' - }, - tags: ['notes'], requireCredential: true as const, diff --git a/src/server/api/endpoints/notes/polls/recommendation.ts b/src/server/api/endpoints/notes/polls/recommendation.ts index 93c9ff08c..af8a52739 100644 --- a/src/server/api/endpoints/notes/polls/recommendation.ts +++ b/src/server/api/endpoints/notes/polls/recommendation.ts @@ -4,11 +4,6 @@ import { Polls, Mutings, Notes, PollVotes } from '../../../../../models'; import { Brackets, In } from 'typeorm'; export const meta = { - desc: { - 'ja-JP': 'おすすめのアンケート一覧を取得します。', - 'en-US': 'Get recommended polls.' - }, - tags: ['notes'], requireCredential: true as const, diff --git a/src/server/api/endpoints/notes/polls/vote.ts b/src/server/api/endpoints/notes/polls/vote.ts index 51dcec89c..b40e187fd 100644 --- a/src/server/api/endpoints/notes/polls/vote.ts +++ b/src/server/api/endpoints/notes/polls/vote.ts @@ -15,11 +15,6 @@ import { IRemoteUser } from '../../../../../models/entities/user'; import { genId } from '@/misc/gen-id'; export const meta = { - desc: { - 'ja-JP': '指定した投稿のアンケートに投票します。', - 'en-US': 'Vote poll of a note.' - }, - tags: ['notes'], requireCredential: true as const, @@ -29,10 +24,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID' - } }, choice: { diff --git a/src/server/api/endpoints/notes/reactions.ts b/src/server/api/endpoints/notes/reactions.ts index 3c60fa2e8..df780bfa0 100644 --- a/src/server/api/endpoints/notes/reactions.ts +++ b/src/server/api/endpoints/notes/reactions.ts @@ -8,11 +8,6 @@ import { DeepPartial } from 'typeorm'; import { NoteReaction } from '../../../../models/entities/note-reaction'; export const meta = { - desc: { - 'ja-JP': '指定した投稿のリアクション一覧を取得します。', - 'en-US': 'Show reactions of a note.' - }, - tags: ['notes', 'reactions'], requireCredential: false as const, @@ -20,10 +15,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'The ID of the target note' - } }, type: { diff --git a/src/server/api/endpoints/notes/reactions/create.ts b/src/server/api/endpoints/notes/reactions/create.ts index 17a6f391d..e8533fee5 100644 --- a/src/server/api/endpoints/notes/reactions/create.ts +++ b/src/server/api/endpoints/notes/reactions/create.ts @@ -6,11 +6,6 @@ import { getNote } from '../../../common/getters'; import { ApiError } from '../../../error'; export const meta = { - desc: { - 'ja-JP': '指定した投稿にリアクションします。', - 'en-US': 'React to a note.' - }, - tags: ['reactions', 'notes'], requireCredential: true as const, @@ -20,16 +15,10 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿' - } }, reaction: { validator: $.str, - desc: { - 'ja-JP': 'リアクションの種類' - } } }, diff --git a/src/server/api/endpoints/notes/reactions/delete.ts b/src/server/api/endpoints/notes/reactions/delete.ts index b95c7f891..b18cb533d 100644 --- a/src/server/api/endpoints/notes/reactions/delete.ts +++ b/src/server/api/endpoints/notes/reactions/delete.ts @@ -7,11 +7,6 @@ import { getNote } from '../../../common/getters'; import { ApiError } from '../../../error'; export const meta = { - desc: { - 'ja-JP': '指定した投稿へのリアクションを取り消します。', - 'en-US': 'Unreact to a note.' - }, - tags: ['reactions', 'notes'], requireCredential: true as const, @@ -27,10 +22,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID' - } }, }, diff --git a/src/server/api/endpoints/notes/renotes.ts b/src/server/api/endpoints/notes/renotes.ts index d26192d10..d384b7962 100644 --- a/src/server/api/endpoints/notes/renotes.ts +++ b/src/server/api/endpoints/notes/renotes.ts @@ -9,11 +9,6 @@ import { makePaginationQuery } from '../../common/make-pagination-query'; import { Notes } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿のRenote一覧を取得します。', - 'en-US': 'Show a renotes of a note.' - }, - tags: ['notes'], requireCredential: false as const, @@ -21,10 +16,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID' - } }, limit: { diff --git a/src/server/api/endpoints/notes/replies.ts b/src/server/api/endpoints/notes/replies.ts index e91a1cf0b..79a983e75 100644 --- a/src/server/api/endpoints/notes/replies.ts +++ b/src/server/api/endpoints/notes/replies.ts @@ -7,11 +7,6 @@ import { generateVisibilityQuery } from '../../common/generate-visibility-query' import { generateMutedUserQuery } from '../../common/generate-muted-user-query'; export const meta = { - desc: { - 'ja-JP': '指定した投稿への返信を取得します。', - 'en-US': 'Get replies of a note.' - }, - tags: ['notes'], requireCredential: false as const, @@ -19,24 +14,14 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID' - } }, sinceId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより新しい投稿を取得します' - } }, untilId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより古い投稿を取得します' - } }, limit: { diff --git a/src/server/api/endpoints/notes/search-by-tag.ts b/src/server/api/endpoints/notes/search-by-tag.ts index 463c5fff5..b7d41d9e7 100644 --- a/src/server/api/endpoints/notes/search-by-tag.ts +++ b/src/server/api/endpoints/notes/search-by-tag.ts @@ -10,70 +10,42 @@ import { safeForSql } from '@/misc/safe-for-sql'; import { normalizeForSearch } from '@/misc/normalize-for-search'; export const meta = { - desc: { - 'ja-JP': '指定されたタグが付けられた投稿を取得します。' - }, - tags: ['notes', 'hashtags'], params: { tag: { validator: $.optional.str, - desc: { - 'ja-JP': 'タグ' - } }, query: { validator: $.optional.arr($.arr($.str)), - desc: { - 'ja-JP': 'クエリ' - } }, reply: { validator: $.optional.nullable.bool, default: null as any, - desc: { - 'ja-JP': '返信に限定するか否か' - } }, renote: { validator: $.optional.nullable.bool, default: null as any, - desc: { - 'ja-JP': 'Renoteに限定するか否か' - } }, withFiles: { validator: $.optional.bool, - desc: { - 'ja-JP': 'true にすると、ファイルが添付された投稿だけ取得します' - } }, poll: { validator: $.optional.nullable.bool, default: null as any, - desc: { - 'ja-JP': 'アンケートが添付された投稿に限定するか否か' - } }, sinceId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより新しい投稿を取得します' - } }, untilId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより古い投稿を取得します' - } }, limit: { diff --git a/src/server/api/endpoints/notes/search.ts b/src/server/api/endpoints/notes/search.ts index e3454be9d..dc411283a 100644 --- a/src/server/api/endpoints/notes/search.ts +++ b/src/server/api/endpoints/notes/search.ts @@ -10,11 +10,6 @@ import { generateVisibilityQuery } from '../../common/generate-visibility-query' import { generateMutedUserQuery } from '../../common/generate-muted-user-query'; export const meta = { - desc: { - 'ja-JP': '投稿を検索します。', - 'en-US': 'Search notes.' - }, - tags: ['notes'], requireCredential: false as const, diff --git a/src/server/api/endpoints/notes/show.ts b/src/server/api/endpoints/notes/show.ts index e592076a2..fc8e30788 100644 --- a/src/server/api/endpoints/notes/show.ts +++ b/src/server/api/endpoints/notes/show.ts @@ -6,11 +6,6 @@ import { ApiError } from '../../error'; import { Notes } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿を取得します。', - 'en-US': 'Get a note.' - }, - tags: ['notes'], requireCredential: false as const, @@ -18,10 +13,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID.' - } } }, diff --git a/src/server/api/endpoints/notes/state.ts b/src/server/api/endpoints/notes/state.ts index 60151f7e3..8af09f07d 100644 --- a/src/server/api/endpoints/notes/state.ts +++ b/src/server/api/endpoints/notes/state.ts @@ -4,11 +4,6 @@ import define from '../../define'; import { NoteFavorites, NoteWatchings } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿の状態を取得します。', - 'en-US': 'Get state of a note.' - }, - tags: ['notes'], requireCredential: true as const, @@ -16,10 +11,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID.' - } } }, diff --git a/src/server/api/endpoints/notes/timeline.ts b/src/server/api/endpoints/notes/timeline.ts index 0871a9688..687869a63 100644 --- a/src/server/api/endpoints/notes/timeline.ts +++ b/src/server/api/endpoints/notes/timeline.ts @@ -12,11 +12,6 @@ import { generateMutedNoteQuery } from '../../common/generate-muted-note-query'; import { generateChannelQuery } from '../../common/generate-channel-query'; export const meta = { - desc: { - 'ja-JP': 'タイムラインを取得します。', - 'en-US': 'Get timeline of myself.' - }, - tags: ['notes'], requireCredential: true as const, @@ -25,68 +20,41 @@ export const meta = { limit: { validator: $.optional.num.range(1, 100), default: 10, - desc: { - 'ja-JP': '最大数' - } }, sinceId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより新しい投稿を取得します' - } }, untilId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより古い投稿を取得します' - } }, sinceDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより新しい投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, untilDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより古い投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, includeMyRenotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': '自分の行ったRenoteを含めるかどうか' - } }, includeRenotedMyNotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': 'Renoteされた自分の投稿を含めるかどうか' - } }, includeLocalRenotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': 'Renoteされたローカルの投稿を含めるかどうか' - } }, withFiles: { validator: $.optional.bool, - desc: { - 'ja-JP': 'true にすると、ファイルが添付された投稿だけ取得します' - } }, }, diff --git a/src/server/api/endpoints/notes/unrenote.ts b/src/server/api/endpoints/notes/unrenote.ts index 0233b9db1..5e016f293 100644 --- a/src/server/api/endpoints/notes/unrenote.ts +++ b/src/server/api/endpoints/notes/unrenote.ts @@ -8,10 +8,6 @@ import { ApiError } from '../../error'; import { Notes, Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿のRenoteを解除します。', - }, - tags: ['notes'], requireCredential: true as const, @@ -27,10 +23,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID.' - } } }, diff --git a/src/server/api/endpoints/notes/user-list-timeline.ts b/src/server/api/endpoints/notes/user-list-timeline.ts index cb3c18505..e160fff25 100644 --- a/src/server/api/endpoints/notes/user-list-timeline.ts +++ b/src/server/api/endpoints/notes/user-list-timeline.ts @@ -9,11 +9,6 @@ import { activeUsersChart } from '../../../../services/chart'; import { Brackets } from 'typeorm'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーリストのタイムラインを取得します。', - 'en-US': 'Get timeline of a user list.' - }, - tags: ['notes', 'lists'], requireCredential: true as const, @@ -21,76 +16,46 @@ export const meta = { params: { listId: { validator: $.type(ID), - desc: { - 'ja-JP': 'リストのID' - } }, limit: { validator: $.optional.num.range(1, 100), default: 10, - desc: { - 'ja-JP': '最大数' - } }, sinceId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより新しい投稿を取得します' - } }, untilId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより古い投稿を取得します' - } }, sinceDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより新しい投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, untilDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより古い投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, includeMyRenotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': '自分の行ったRenoteを含めるかどうか' - } }, includeRenotedMyNotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': 'Renoteされた自分の投稿を含めるかどうか' - } }, includeLocalRenotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': 'Renoteされたローカルの投稿を含めるかどうか' - } }, withFiles: { validator: $.optional.bool, - desc: { - 'ja-JP': 'true にすると、ファイルが添付された投稿だけ取得します' - } }, }, diff --git a/src/server/api/endpoints/notes/watching/create.ts b/src/server/api/endpoints/notes/watching/create.ts index 7667ebded..74d31fe1a 100644 --- a/src/server/api/endpoints/notes/watching/create.ts +++ b/src/server/api/endpoints/notes/watching/create.ts @@ -6,11 +6,6 @@ import { getNote } from '../../../common/getters'; import { ApiError } from '../../../error'; export const meta = { - desc: { - 'ja-JP': '指定した投稿をウォッチします。', - 'en-US': 'Watch a note.' - }, - tags: ['notes'], requireCredential: true as const, @@ -20,10 +15,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID.' - } } }, diff --git a/src/server/api/endpoints/notes/watching/delete.ts b/src/server/api/endpoints/notes/watching/delete.ts index 77b4ff15c..a91d72be0 100644 --- a/src/server/api/endpoints/notes/watching/delete.ts +++ b/src/server/api/endpoints/notes/watching/delete.ts @@ -6,11 +6,6 @@ import { getNote } from '../../../common/getters'; import { ApiError } from '../../../error'; export const meta = { - desc: { - 'ja-JP': '指定した投稿のウォッチを解除します。', - 'en-US': 'Unwatch a note.' - }, - tags: ['notes'], requireCredential: true as const, @@ -20,10 +15,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID.' - } } }, diff --git a/src/server/api/endpoints/notifications/create.ts b/src/server/api/endpoints/notifications/create.ts index e447a32e0..6267699e9 100644 --- a/src/server/api/endpoints/notifications/create.ts +++ b/src/server/api/endpoints/notifications/create.ts @@ -3,10 +3,6 @@ import define from '../../define'; import { createNotification } from '../../../../services/create-notification'; export const meta = { - desc: { - 'ja-JP': '通知を作成します。' - }, - tags: ['notifications'], requireCredential: true as const, diff --git a/src/server/api/endpoints/notifications/mark-all-as-read.ts b/src/server/api/endpoints/notifications/mark-all-as-read.ts index a17a3e721..cce54587c 100644 --- a/src/server/api/endpoints/notifications/mark-all-as-read.ts +++ b/src/server/api/endpoints/notifications/mark-all-as-read.ts @@ -3,11 +3,6 @@ import define from '../../define'; import { Notifications } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '全ての通知を既読にします。', - 'en-US': 'Mark all notifications as read.' - }, - tags: ['notifications', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/pages/create.ts b/src/server/api/endpoints/pages/create.ts index 413445512..07e0969bd 100644 --- a/src/server/api/endpoints/pages/create.ts +++ b/src/server/api/endpoints/pages/create.ts @@ -8,10 +8,6 @@ import { Page } from '../../../../models/entities/page'; import { ApiError } from '../../error'; export const meta = { - desc: { - 'ja-JP': 'ページを作成します。', - }, - tags: ['pages'], requireCredential: true as const, diff --git a/src/server/api/endpoints/pages/delete.ts b/src/server/api/endpoints/pages/delete.ts index 51704c866..12a3360e4 100644 --- a/src/server/api/endpoints/pages/delete.ts +++ b/src/server/api/endpoints/pages/delete.ts @@ -5,10 +5,6 @@ import { Pages } from '../../../../models'; import { ID } from '@/misc/cafy-id'; export const meta = { - desc: { - 'ja-JP': '指定したページを削除します。', - }, - tags: ['pages'], requireCredential: true as const, @@ -18,10 +14,6 @@ export const meta = { params: { pageId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のページのID', - 'en-US': 'Target page ID.' - } }, }, diff --git a/src/server/api/endpoints/pages/like.ts b/src/server/api/endpoints/pages/like.ts index e6c15164c..bed8e975e 100644 --- a/src/server/api/endpoints/pages/like.ts +++ b/src/server/api/endpoints/pages/like.ts @@ -6,10 +6,6 @@ import { Pages, PageLikes } from '../../../../models'; import { genId } from '@/misc/gen-id'; export const meta = { - desc: { - 'ja-JP': '指定したページを「いいね」します。', - }, - tags: ['pages'], requireCredential: true as const, @@ -19,10 +15,6 @@ export const meta = { params: { pageId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のページのID', - 'en-US': 'Target page ID.' - } } }, diff --git a/src/server/api/endpoints/pages/show.ts b/src/server/api/endpoints/pages/show.ts index 13fa9ba1d..d4d04bccf 100644 --- a/src/server/api/endpoints/pages/show.ts +++ b/src/server/api/endpoints/pages/show.ts @@ -6,10 +6,6 @@ import { ID } from '@/misc/cafy-id'; import { Page } from '../../../../models/entities/page'; export const meta = { - desc: { - 'ja-JP': '指定したページの情報を取得します。', - }, - tags: ['pages'], requireCredential: false as const, @@ -17,10 +13,6 @@ export const meta = { params: { pageId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のページのID', - 'en-US': 'Target page ID.' - } }, name: { diff --git a/src/server/api/endpoints/pages/unlike.ts b/src/server/api/endpoints/pages/unlike.ts index 2008dd8be..a5e22a2c7 100644 --- a/src/server/api/endpoints/pages/unlike.ts +++ b/src/server/api/endpoints/pages/unlike.ts @@ -5,10 +5,6 @@ import { ApiError } from '../../error'; import { Pages, PageLikes } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したページの「いいね」を解除します。', - }, - tags: ['pages'], requireCredential: true as const, @@ -18,10 +14,6 @@ export const meta = { params: { pageId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のページのID', - 'en-US': 'Target page ID.' - } } }, diff --git a/src/server/api/endpoints/pages/update.ts b/src/server/api/endpoints/pages/update.ts index d52d5964c..6d1ae4c6f 100644 --- a/src/server/api/endpoints/pages/update.ts +++ b/src/server/api/endpoints/pages/update.ts @@ -7,10 +7,6 @@ import { ID } from '@/misc/cafy-id'; import { Not } from 'typeorm'; export const meta = { - desc: { - 'ja-JP': '指定したページの情報を更新します。', - }, - tags: ['pages'], requireCredential: true as const, @@ -25,10 +21,6 @@ export const meta = { params: { pageId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のページのID', - 'en-US': 'Target page ID.' - } }, title: { diff --git a/src/server/api/endpoints/promo/read.ts b/src/server/api/endpoints/promo/read.ts index 325a96e57..32b543295 100644 --- a/src/server/api/endpoints/promo/read.ts +++ b/src/server/api/endpoints/promo/read.ts @@ -7,11 +7,6 @@ import { PromoReads } from '../../../../models'; import { genId } from '@/misc/gen-id'; export const meta = { - desc: { - 'ja-JP': '指定したノートのプロモーションを既読にします。', - 'en-US': 'Marks the promotion for the specified note as read.' - }, - tags: ['notes'], requireCredential: true as const, diff --git a/src/server/api/endpoints/room/show.ts b/src/server/api/endpoints/room/show.ts index 13f9df19a..7b2526c31 100644 --- a/src/server/api/endpoints/room/show.ts +++ b/src/server/api/endpoints/room/show.ts @@ -6,10 +6,6 @@ import { ID } from '@/misc/cafy-id'; import { toPunyNullable } from '@/misc/convert-host'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーの部屋の情報を取得します。', - }, - tags: ['room'], requireCredential: false as const, @@ -17,10 +13,6 @@ export const meta = { params: { userId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, username: { diff --git a/src/server/api/endpoints/stats.ts b/src/server/api/endpoints/stats.ts index 33d6af515..748c61256 100644 --- a/src/server/api/endpoints/stats.ts +++ b/src/server/api/endpoints/stats.ts @@ -5,11 +5,6 @@ import { federationChart, driveChart } from '../../../services/chart'; export const meta = { requireCredential: false as const, - desc: { - 'ja-JP': 'インスタンスの統計を取得します。', - 'en-US': 'Get the instance\'s statistics' - }, - tags: ['meta'], params: { diff --git a/src/server/api/endpoints/username/available.ts b/src/server/api/endpoints/username/available.ts index 6a5146e43..5b51d7e17 100644 --- a/src/server/api/endpoints/username/available.ts +++ b/src/server/api/endpoints/username/available.ts @@ -3,11 +3,6 @@ import define from '../../define'; import { Users, UsedUsernames } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': 'ユーザーネームが使用されていないかをチェックします。', - 'en-US': 'Check if the username is being used.' - }, - tags: ['users'], requireCredential: false as const, diff --git a/src/server/api/endpoints/users.ts b/src/server/api/endpoints/users.ts index 354d7dc70..933eb70b6 100644 --- a/src/server/api/endpoints/users.ts +++ b/src/server/api/endpoints/users.ts @@ -4,11 +4,6 @@ import { Users } from '../../../models'; import { generateMutedUserQueryForUsers } from '../common/generate-muted-user-query'; export const meta = { - desc: { - 'ja-JP': 'ユーザー一覧を表示します。', - 'en-US': 'Display the user list.' - }, - tags: ['users'], requireCredential: false as const, diff --git a/src/server/api/endpoints/users/followers.ts b/src/server/api/endpoints/users/followers.ts index da8a1ea1b..c9fe36e4e 100644 --- a/src/server/api/endpoints/users/followers.ts +++ b/src/server/api/endpoints/users/followers.ts @@ -7,11 +7,6 @@ import { makePaginationQuery } from '../../common/make-pagination-query'; import { toPunyNullable } from '@/misc/convert-host'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーのフォロワー一覧を取得します。', - 'en-US': 'Get followers of a user.' - }, - tags: ['users'], requireCredential: false as const, @@ -19,10 +14,6 @@ export const meta = { params: { userId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, username: { diff --git a/src/server/api/endpoints/users/following.ts b/src/server/api/endpoints/users/following.ts index 832a51d29..c3dd90ff7 100644 --- a/src/server/api/endpoints/users/following.ts +++ b/src/server/api/endpoints/users/following.ts @@ -7,11 +7,6 @@ import { makePaginationQuery } from '../../common/make-pagination-query'; import { toPunyNullable } from '@/misc/convert-host'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーのフォロー一覧を取得します。', - 'en-US': 'Get following users of a user.' - }, - tags: ['users'], requireCredential: false as const, @@ -19,10 +14,6 @@ export const meta = { params: { userId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, username: { diff --git a/src/server/api/endpoints/users/get-frequently-replied-users.ts b/src/server/api/endpoints/users/get-frequently-replied-users.ts index 98b8a49fd..bdfb7772a 100644 --- a/src/server/api/endpoints/users/get-frequently-replied-users.ts +++ b/src/server/api/endpoints/users/get-frequently-replied-users.ts @@ -15,10 +15,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, limit: { diff --git a/src/server/api/endpoints/users/groups/create.ts b/src/server/api/endpoints/users/groups/create.ts index 0966ef781..2cd0653ba 100644 --- a/src/server/api/endpoints/users/groups/create.ts +++ b/src/server/api/endpoints/users/groups/create.ts @@ -6,11 +6,6 @@ import { UserGroup } from '../../../../../models/entities/user-group'; import { UserGroupJoining } from '../../../../../models/entities/user-group-joining'; export const meta = { - desc: { - 'ja-JP': 'ユーザーグループを作成します。', - 'en-US': 'Create a user group.' - }, - tags: ['groups'], requireCredential: true as const, diff --git a/src/server/api/endpoints/users/groups/delete.ts b/src/server/api/endpoints/users/groups/delete.ts index 85e2e7332..4c4a8c15b 100644 --- a/src/server/api/endpoints/users/groups/delete.ts +++ b/src/server/api/endpoints/users/groups/delete.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../../error'; import { UserGroups } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーグループを削除します。', - 'en-US': 'Delete a user group' - }, - tags: ['groups'], requireCredential: true as const, @@ -19,10 +14,6 @@ export const meta = { params: { groupId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象となるユーザーグループのID', - 'en-US': 'ID of target user group' - } } }, diff --git a/src/server/api/endpoints/users/groups/invitations/accept.ts b/src/server/api/endpoints/users/groups/invitations/accept.ts index d6d419826..943d15866 100644 --- a/src/server/api/endpoints/users/groups/invitations/accept.ts +++ b/src/server/api/endpoints/users/groups/invitations/accept.ts @@ -7,11 +7,6 @@ import { genId } from '@/misc/gen-id'; import { UserGroupJoining } from '../../../../../../models/entities/user-group-joining'; export const meta = { - desc: { - 'ja-JP': 'ユーザーグループへの招待を承認します。', - 'en-US': 'Accept invitation of a user group.' - }, - tags: ['groups', 'users'], requireCredential: true as const, @@ -21,10 +16,6 @@ export const meta = { params: { invitationId: { validator: $.type(ID), - desc: { - 'ja-JP': '招待ID', - 'en-US': 'The invitation ID' - } }, }, diff --git a/src/server/api/endpoints/users/groups/invitations/reject.ts b/src/server/api/endpoints/users/groups/invitations/reject.ts index 98dc7bfbd..4bc902ae5 100644 --- a/src/server/api/endpoints/users/groups/invitations/reject.ts +++ b/src/server/api/endpoints/users/groups/invitations/reject.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../../../error'; import { UserGroupInvitations } from '../../../../../../models'; export const meta = { - desc: { - 'ja-JP': 'ユーザーグループへの招待を拒否します。', - 'en-US': 'Reject invitation of a user group.' - }, - tags: ['groups', 'users'], requireCredential: true as const, @@ -19,10 +14,6 @@ export const meta = { params: { invitationId: { validator: $.type(ID), - desc: { - 'ja-JP': '招待ID', - 'en-US': 'The invitation ID' - } }, }, diff --git a/src/server/api/endpoints/users/groups/invite.ts b/src/server/api/endpoints/users/groups/invite.ts index 00d4932f5..688b18f69 100644 --- a/src/server/api/endpoints/users/groups/invite.ts +++ b/src/server/api/endpoints/users/groups/invite.ts @@ -9,11 +9,6 @@ import { UserGroupInvitation } from '../../../../../models/entities/user-group-i import { createNotification } from '../../../../../services/create-notification'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーグループに指定したユーザーを招待します。', - 'en-US': 'Invite a user to a user group.' - }, - tags: ['groups', 'users'], requireCredential: true as const, @@ -27,10 +22,6 @@ export const meta = { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, }, diff --git a/src/server/api/endpoints/users/groups/joined.ts b/src/server/api/endpoints/users/groups/joined.ts index a579a738e..b25341c85 100644 --- a/src/server/api/endpoints/users/groups/joined.ts +++ b/src/server/api/endpoints/users/groups/joined.ts @@ -3,10 +3,6 @@ import { UserGroups, UserGroupJoinings } from '../../../../../models'; import { Not, In } from 'typeorm'; export const meta = { - desc: { - 'ja-JP': '自分の所属するユーザーグループ一覧を取得します。' - }, - tags: ['groups', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/users/groups/owned.ts b/src/server/api/endpoints/users/groups/owned.ts index bb34090cb..e0b003c9e 100644 --- a/src/server/api/endpoints/users/groups/owned.ts +++ b/src/server/api/endpoints/users/groups/owned.ts @@ -2,10 +2,6 @@ import define from '../../../define'; import { UserGroups } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '自分の作成したユーザーグループ一覧を取得します。' - }, - tags: ['groups', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/users/groups/pull.ts b/src/server/api/endpoints/users/groups/pull.ts index 82d45e31a..d93a16bd9 100644 --- a/src/server/api/endpoints/users/groups/pull.ts +++ b/src/server/api/endpoints/users/groups/pull.ts @@ -6,11 +6,6 @@ import { getUser } from '../../../common/getters'; import { UserGroups, UserGroupJoinings } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーグループから指定したユーザーを削除します。', - 'en-US': 'Remove a user to a user group.' - }, - tags: ['groups', 'users'], requireCredential: true as const, @@ -24,10 +19,6 @@ export const meta = { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, }, diff --git a/src/server/api/endpoints/users/groups/show.ts b/src/server/api/endpoints/users/groups/show.ts index c174a7973..1b71933c2 100644 --- a/src/server/api/endpoints/users/groups/show.ts +++ b/src/server/api/endpoints/users/groups/show.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../../error'; import { UserGroups, UserGroupJoinings } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーグループの情報を取得します。', - 'en-US': 'Show a user group.' - }, - tags: ['groups', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/users/groups/transfer.ts b/src/server/api/endpoints/users/groups/transfer.ts index 08aa1b735..d6376993c 100644 --- a/src/server/api/endpoints/users/groups/transfer.ts +++ b/src/server/api/endpoints/users/groups/transfer.ts @@ -6,11 +6,6 @@ import { getUser } from '../../../common/getters'; import { UserGroups, UserGroupJoinings } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーグループを指定したユーザーグループ内のユーザーに譲渡します。', - 'en-US': 'Transfer user group ownership to another user in group.' - }, - tags: ['groups', 'users'], requireCredential: true as const, @@ -24,10 +19,6 @@ export const meta = { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, }, diff --git a/src/server/api/endpoints/users/groups/update.ts b/src/server/api/endpoints/users/groups/update.ts index 8dc5a7f1b..a403152b4 100644 --- a/src/server/api/endpoints/users/groups/update.ts +++ b/src/server/api/endpoints/users/groups/update.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../../error'; import { UserGroups } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーグループを更新します。', - 'en-US': 'Update a user group' - }, - tags: ['groups'], requireCredential: true as const, @@ -19,18 +14,10 @@ export const meta = { params: { groupId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象となるユーザーグループのID', - 'en-US': 'ID of target user group' - } }, name: { validator: $.str.range(1, 100), - desc: { - 'ja-JP': 'このユーザーグループの名前', - 'en-US': 'name of this user group' - } } }, diff --git a/src/server/api/endpoints/users/lists/create.ts b/src/server/api/endpoints/users/lists/create.ts index 9891a6dae..c52413008 100644 --- a/src/server/api/endpoints/users/lists/create.ts +++ b/src/server/api/endpoints/users/lists/create.ts @@ -5,11 +5,6 @@ import { genId } from '@/misc/gen-id'; import { UserList } from '../../../../../models/entities/user-list'; export const meta = { - desc: { - 'ja-JP': 'ユーザーリストを作成します。', - 'en-US': 'Create a user list' - }, - tags: ['lists'], requireCredential: true as const, diff --git a/src/server/api/endpoints/users/lists/delete.ts b/src/server/api/endpoints/users/lists/delete.ts index d3132025c..ecae5641c 100644 --- a/src/server/api/endpoints/users/lists/delete.ts +++ b/src/server/api/endpoints/users/lists/delete.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../../error'; import { UserLists } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーリストを削除します。', - 'en-US': 'Delete a user list' - }, - tags: ['lists'], requireCredential: true as const, @@ -19,10 +14,6 @@ export const meta = { params: { listId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象となるユーザーリストのID', - 'en-US': 'ID of target user list' - } } }, diff --git a/src/server/api/endpoints/users/lists/list.ts b/src/server/api/endpoints/users/lists/list.ts index 16f1b0639..154820871 100644 --- a/src/server/api/endpoints/users/lists/list.ts +++ b/src/server/api/endpoints/users/lists/list.ts @@ -2,10 +2,6 @@ import define from '../../../define'; import { UserLists } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '自分の作成したユーザーリスト一覧を取得します。' - }, - tags: ['lists', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/users/lists/pull.ts b/src/server/api/endpoints/users/lists/pull.ts index ddf5864a3..f8b5df0fc 100644 --- a/src/server/api/endpoints/users/lists/pull.ts +++ b/src/server/api/endpoints/users/lists/pull.ts @@ -7,11 +7,6 @@ import { getUser } from '../../../common/getters'; import { UserLists, UserListJoinings, Users } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーリストから指定したユーザーを削除します。', - 'en-US': 'Remove a user to a user list.' - }, - tags: ['lists', 'users'], requireCredential: true as const, @@ -25,10 +20,6 @@ export const meta = { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, }, diff --git a/src/server/api/endpoints/users/lists/push.ts b/src/server/api/endpoints/users/lists/push.ts index c94c759d0..b81d5b8c7 100644 --- a/src/server/api/endpoints/users/lists/push.ts +++ b/src/server/api/endpoints/users/lists/push.ts @@ -7,11 +7,6 @@ import { pushUserToUserList } from '../../../../../services/user-list/push'; import { UserLists, UserListJoinings } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーリストに指定したユーザーを追加します。', - 'en-US': 'Add a user to a user list.' - }, - tags: ['lists', 'users'], requireCredential: true as const, @@ -25,10 +20,6 @@ export const meta = { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, }, diff --git a/src/server/api/endpoints/users/lists/show.ts b/src/server/api/endpoints/users/lists/show.ts index aee1c13de..ff9ed001f 100644 --- a/src/server/api/endpoints/users/lists/show.ts +++ b/src/server/api/endpoints/users/lists/show.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../../error'; import { UserLists } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーリストの情報を取得します。', - 'en-US': 'Show a user list.' - }, - tags: ['lists', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/users/lists/update.ts b/src/server/api/endpoints/users/lists/update.ts index 342791e5f..eaa420a5b 100644 --- a/src/server/api/endpoints/users/lists/update.ts +++ b/src/server/api/endpoints/users/lists/update.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../../error'; import { UserLists } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーリストを更新します。', - 'en-US': 'Update a user list' - }, - tags: ['lists'], requireCredential: true as const, @@ -19,18 +14,10 @@ export const meta = { params: { listId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象となるユーザーリストのID', - 'en-US': 'ID of target user list' - } }, name: { validator: $.str.range(1, 100), - desc: { - 'ja-JP': 'このユーザーリストの名前', - 'en-US': 'name of this user list' - } } }, diff --git a/src/server/api/endpoints/users/notes.ts b/src/server/api/endpoints/users/notes.ts index b886756c0..55f07e390 100644 --- a/src/server/api/endpoints/users/notes.ts +++ b/src/server/api/endpoints/users/notes.ts @@ -10,95 +10,56 @@ import { generateMutedUserQuery } from '../../common/generate-muted-user-query'; import { Brackets } from 'typeorm'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーのタイムラインを取得します。' - }, - tags: ['users', 'notes'], params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, includeReplies: { validator: $.optional.bool, default: true, - - desc: { - 'ja-JP': 'リプライを含めるか否か' - } }, limit: { validator: $.optional.num.range(1, 100), default: 10, - desc: { - 'ja-JP': '最大数' - } }, sinceId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより新しい投稿を取得します' - } }, untilId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより古い投稿を取得します' - } }, sinceDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより新しい投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, untilDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより古い投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, includeMyRenotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': 'Renoteを含めるかどうか' - } }, withFiles: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': 'true にすると、ファイルが添付された投稿だけ取得します' - } }, fileType: { validator: $.optional.arr($.str), - desc: { - 'ja-JP': '指定された種類のファイルが添付された投稿のみを取得します' - } }, excludeNsfw: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': 'true にすると、NSFW指定されたファイルを除外します(fileTypeが指定されている場合のみ有効)' - } }, }, diff --git a/src/server/api/endpoints/users/recommendation.ts b/src/server/api/endpoints/users/recommendation.ts index 7f80b5275..7c269268b 100644 --- a/src/server/api/endpoints/users/recommendation.ts +++ b/src/server/api/endpoints/users/recommendation.ts @@ -6,10 +6,6 @@ import { generateMutedUserQueryForUsers } from '../../common/generate-muted-user import { generateBlockQueryForUsers } from '../../common/generate-block-query'; export const meta = { - desc: { - 'ja-JP': 'おすすめのユーザー一覧を取得します。' - }, - tags: ['users'], requireCredential: true as const, diff --git a/src/server/api/endpoints/users/relation.ts b/src/server/api/endpoints/users/relation.ts index fc294eb64..18ec5d44b 100644 --- a/src/server/api/endpoints/users/relation.ts +++ b/src/server/api/endpoints/users/relation.ts @@ -4,10 +4,6 @@ import { ID } from '@/misc/cafy-id'; import { Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': 'ユーザー間のリレーションを取得します。' - }, - tags: ['users'], requireCredential: true as const, @@ -15,9 +11,6 @@ export const meta = { params: { userId: { validator: $.either($.type(ID), $.arr($.type(ID)).unique()), - desc: { - 'ja-JP': 'ユーザーID (配列でも可)' - } } }, diff --git a/src/server/api/endpoints/users/report-abuse.ts b/src/server/api/endpoints/users/report-abuse.ts index 671eca029..776d68370 100644 --- a/src/server/api/endpoints/users/report-abuse.ts +++ b/src/server/api/endpoints/users/report-abuse.ts @@ -8,10 +8,6 @@ import { AbuseUserReports, Users } from '../../../../models'; import { genId } from '@/misc/gen-id'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーを迷惑なユーザーであると報告します。' - }, - tags: ['users'], requireCredential: true as const, @@ -19,17 +15,10 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, comment: { validator: $.str.range(1, 2048), - desc: { - 'ja-JP': '迷惑行為の詳細' - } }, }, diff --git a/src/server/api/endpoints/users/search-by-username-and-host.ts b/src/server/api/endpoints/users/search-by-username-and-host.ts index 8e436ddb9..13c5a18db 100644 --- a/src/server/api/endpoints/users/search-by-username-and-host.ts +++ b/src/server/api/endpoints/users/search-by-username-and-host.ts @@ -3,10 +3,6 @@ import define from '../../define'; import { Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': 'ユーザーを検索します。' - }, - tags: ['users'], requireCredential: false as const, @@ -14,40 +10,25 @@ export const meta = { params: { username: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'クエリ' - } }, host: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'クエリ' - } }, offset: { validator: $.optional.num.min(0), default: 0, - desc: { - 'ja-JP': 'オフセット' - } }, limit: { validator: $.optional.num.range(1, 100), default: 10, - desc: { - 'ja-JP': '取得する数' - } }, detail: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': '詳細なユーザー情報を含めるか否か' - } }, }, diff --git a/src/server/api/endpoints/users/search.ts b/src/server/api/endpoints/users/search.ts index 528c6ac88..c183194c4 100644 --- a/src/server/api/endpoints/users/search.ts +++ b/src/server/api/endpoints/users/search.ts @@ -4,10 +4,6 @@ import { UserProfiles, Users } from '../../../../models'; import { User } from '../../../../models/entities/user'; export const meta = { - desc: { - 'ja-JP': 'ユーザーを検索します。' - }, - tags: ['users'], requireCredential: false as const, @@ -15,41 +11,26 @@ export const meta = { params: { query: { validator: $.str, - desc: { - 'ja-JP': 'クエリ' - } }, offset: { validator: $.optional.num.min(0), default: 0, - desc: { - 'ja-JP': 'オフセット' - } }, limit: { validator: $.optional.num.range(1, 100), default: 10, - desc: { - 'ja-JP': '取得する数' - } }, localOnly: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': 'ローカルユーザーのみ検索対象にするか否か' - } }, detail: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': '詳細なユーザー情報を含めるか否か' - } }, }, diff --git a/src/server/api/endpoints/users/show.ts b/src/server/api/endpoints/users/show.ts index 11d36d2ae..fde2b5a14 100644 --- a/src/server/api/endpoints/users/show.ts +++ b/src/server/api/endpoints/users/show.ts @@ -9,10 +9,6 @@ import { In } from 'typeorm'; import { User } from '@/models/entities/user'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーの情報を取得します。' - }, - tags: ['users'], requireCredential: false as const, @@ -20,17 +16,10 @@ export const meta = { params: { userId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, userIds: { validator: $.optional.arr($.type(ID)).unique(), - desc: { - 'ja-JP': 'ユーザーID (配列)' - } }, username: {