From 6b312f755eb171df0afd95a2d4e51cfd7300fa16 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 8 Jun 2021 14:09:32 +0900 Subject: Remove endpoint descriptions #6627 --- .../api/endpoints/admin/abuse-user-reports.ts | 5 - src/server/api/endpoints/admin/accounts/create.ts | 5 - .../api/endpoints/admin/announcements/create.ts | 5 - .../api/endpoints/admin/announcements/delete.ts | 5 - .../api/endpoints/admin/announcements/list.ts | 5 - .../api/endpoints/admin/announcements/update.ts | 5 - .../endpoints/admin/delete-all-files-of-a-user.ts | 9 -- src/server/api/endpoints/admin/delete-logs.ts | 5 - .../endpoints/admin/drive/clean-remote-files.ts | 5 - src/server/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 - src/server/api/endpoints/admin/emoji/remove.ts | 4 - src/server/api/endpoints/admin/emoji/update.ts | 4 - .../endpoints/admin/federation/delete-all-files.ts | 5 - .../admin/federation/remove-all-following.ts | 5 - .../endpoints/admin/federation/update-instance.ts | 5 - src/server/api/endpoints/admin/get-table-stats.ts | 5 - src/server/api/endpoints/admin/invite.ts | 5 - src/server/api/endpoints/admin/logs.ts | 5 - src/server/api/endpoints/admin/moderators/add.ts | 9 -- .../api/endpoints/admin/moderators/remove.ts | 9 -- src/server/api/endpoints/admin/promo/create.ts | 5 - src/server/api/endpoints/admin/queue/clear.ts | 5 - .../api/endpoints/admin/queue/deliver-delayed.ts | 5 - .../api/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 - src/server/api/endpoints/admin/relays/remove.ts | 5 - src/server/api/endpoints/admin/reset-password.ts | 9 -- .../endpoints/admin/resolve-abuse-user-report.ts | 5 - src/server/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 - .../api/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 - src/server/api/endpoints/admin/silence-user.ts | 9 -- src/server/api/endpoints/admin/suspend-user.ts | 9 -- src/server/api/endpoints/admin/unsilence-user.ts | 9 -- src/server/api/endpoints/admin/unsuspend-user.ts | 9 -- src/server/api/endpoints/admin/update-meta.ts | 159 --------------------- src/server/api/endpoints/admin/vacuum.ts | 5 - 48 files changed, 427 deletions(-) (limited to 'src/server/api/endpoints/admin') diff --git a/src/server/api/endpoints/admin/abuse-user-reports.ts b/src/server/api/endpoints/admin/abuse-user-reports.ts index bbb696394e..d09c9d0efb 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 9e3fc46acd..e232031d35 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 3675e50bac..8d121c4843 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 44a46ae435..6c28054da8 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 a42f24c45e..94a830dbae 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 c869e7c9c6..6e9a43d346 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 8143239b54..3d49689cd7 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 1caea46ea0..410588bc01 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 20856da1cf..5a5adb8a8b 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 f4867597f3..b76236a7f0 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 1a5c940f1e..efeef83ca3 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 04eac79d6a..0d4550bf3c 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 7df7830072..7807809720 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 6a4e86c342..bd0b3dfc30 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 9e50ce61c8..4473fbdd1f 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 3f87dded3b..22bbc76e78 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 2fa6587e2b..70589d5cf7 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 c0a8c94f4c..eef53cd92c 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 4a6f6e6261..e593193552 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 3e9d243d74..2d559e43e8 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 351c230033..bce813232b 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 2a87fae714..8ce6415218 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 5e19b1a6f4..cb49bf6021 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 a96cf35db1..2b4e8a8014 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 c9c884092c..fd6e29df54 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 3ee1616145..8468ab6545 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 bc55a02ec1..0375f55f01 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 1de5b060e2..8b70fa6680 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 3599c012a5..437027eea8 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 ffae1426be..c426e5f39b 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 cc1cf8a9e0..38f18459dd 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 e10bd92c8d..54d292ad55 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 da05ac0a24..9f2474f10c 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 572d51cfca..220efab406 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 a316ef9c1d..6ff49d83d5 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 1446951828..38a5e81375 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 13254a3ca3..84e19d37e6 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 51f92230a2..c0e77e1621 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 33e6190974..1373802f3e 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 59e6f0033d..cfceab9463 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 52c4458c35..b1132ac207 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 6ee4aa877b..7ea0e0e864 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 d057459824..73f9d03b70 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 a4485445c9..9f3c8eb6f8 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 c811ae5d1c..6083d87afc 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 7658d37f8b..6d015b51ab 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 d9ce7c061c..a18956b3f7 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 14136c751c..e041e65431 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, -- cgit v1.2.3-freya From 56600ba1df2186bd3b0d5d30b4f1fd53bf5efd5d Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 8 Jun 2021 14:14:58 +0900 Subject: refactor type --- src/server/api/endpoints/admin/emoji/list-remote.ts | 4 ++-- src/server/api/endpoints/admin/emoji/list.ts | 2 +- src/server/api/endpoints/admin/logs.ts | 4 ++-- src/server/api/endpoints/app/create.ts | 2 +- src/server/api/endpoints/drive/files.ts | 2 +- src/server/api/endpoints/drive/files/create.ts | 4 ++-- src/server/api/endpoints/drive/files/find.ts | 2 +- src/server/api/endpoints/drive/files/upload-from-url.ts | 6 +++--- src/server/api/endpoints/drive/folders.ts | 2 +- src/server/api/endpoints/drive/folders/find.ts | 2 +- src/server/api/endpoints/notes/create.ts | 2 +- src/server/api/endpoints/notes/search-by-tag.ts | 6 +++--- 12 files changed, 19 insertions(+), 19 deletions(-) (limited to 'src/server/api/endpoints/admin') diff --git a/src/server/api/endpoints/admin/emoji/list-remote.ts b/src/server/api/endpoints/admin/emoji/list-remote.ts index bd0b3dfc30..f1cfbdd3e2 100644 --- a/src/server/api/endpoints/admin/emoji/list-remote.ts +++ b/src/server/api/endpoints/admin/emoji/list-remote.ts @@ -14,12 +14,12 @@ export const meta = { params: { query: { validator: $.optional.nullable.str, - default: null as any + default: null }, host: { validator: $.optional.nullable.str, - default: null as any + default: null }, limit: { diff --git a/src/server/api/endpoints/admin/emoji/list.ts b/src/server/api/endpoints/admin/emoji/list.ts index 4473fbdd1f..3f3e49396b 100644 --- a/src/server/api/endpoints/admin/emoji/list.ts +++ b/src/server/api/endpoints/admin/emoji/list.ts @@ -14,7 +14,7 @@ export const meta = { params: { query: { validator: $.optional.nullable.str, - default: null as any + default: null }, limit: { diff --git a/src/server/api/endpoints/admin/logs.ts b/src/server/api/endpoints/admin/logs.ts index cb49bf6021..e719ce19c7 100644 --- a/src/server/api/endpoints/admin/logs.ts +++ b/src/server/api/endpoints/admin/logs.ts @@ -17,12 +17,12 @@ export const meta = { level: { validator: $.optional.nullable.str, - default: null as any + default: null }, domain: { validator: $.optional.nullable.str, - default: null as any + default: null } }, diff --git a/src/server/api/endpoints/app/create.ts b/src/server/api/endpoints/app/create.ts index b5629e4436..500567bf29 100644 --- a/src/server/api/endpoints/app/create.ts +++ b/src/server/api/endpoints/app/create.ts @@ -26,7 +26,7 @@ export const meta = { // TODO: Check it is valid url callbackUrl: { validator: $.optional.nullable.str, - default: null as any, + default: null, }, }, diff --git a/src/server/api/endpoints/drive/files.ts b/src/server/api/endpoints/drive/files.ts index 60cb8c5134..1e821b0085 100644 --- a/src/server/api/endpoints/drive/files.ts +++ b/src/server/api/endpoints/drive/files.ts @@ -27,7 +27,7 @@ export const meta = { folderId: { validator: $.optional.nullable.type(ID), - default: null as any, + default: null, }, type: { diff --git a/src/server/api/endpoints/drive/files/create.ts b/src/server/api/endpoints/drive/files/create.ts index 7da9a20f8f..a8f6b92014 100644 --- a/src/server/api/endpoints/drive/files/create.ts +++ b/src/server/api/endpoints/drive/files/create.ts @@ -24,12 +24,12 @@ export const meta = { params: { folderId: { validator: $.optional.nullable.type(ID), - default: null as any, + default: null, }, name: { validator: $.optional.nullable.str, - default: null as any, + default: null, }, isSensitive: { diff --git a/src/server/api/endpoints/drive/files/find.ts b/src/server/api/endpoints/drive/files/find.ts index f95504a00a..b7f2571453 100644 --- a/src/server/api/endpoints/drive/files/find.ts +++ b/src/server/api/endpoints/drive/files/find.ts @@ -17,7 +17,7 @@ export const meta = { folderId: { validator: $.optional.nullable.type(ID), - default: null as any, + default: null, }, }, 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 65213be6ae..8dfc86e660 100644 --- a/src/server/api/endpoints/drive/files/upload-from-url.ts +++ b/src/server/api/endpoints/drive/files/upload-from-url.ts @@ -26,7 +26,7 @@ export const meta = { folderId: { validator: $.optional.nullable.type(ID), - default: null as any, + default: null, }, isSensitive: { @@ -36,12 +36,12 @@ export const meta = { comment: { validator: $.optional.nullable.str, - default: null as any, + default: null, }, marker: { validator: $.optional.nullable.str, - default: null as any, + default: null, }, force: { diff --git a/src/server/api/endpoints/drive/folders.ts b/src/server/api/endpoints/drive/folders.ts index 014f986f9b..c446d546cc 100644 --- a/src/server/api/endpoints/drive/folders.ts +++ b/src/server/api/endpoints/drive/folders.ts @@ -27,7 +27,7 @@ export const meta = { folderId: { validator: $.optional.nullable.type(ID), - default: null as any, + default: null, } }, diff --git a/src/server/api/endpoints/drive/folders/find.ts b/src/server/api/endpoints/drive/folders/find.ts index f99e2fe1d7..c8e7639e63 100644 --- a/src/server/api/endpoints/drive/folders/find.ts +++ b/src/server/api/endpoints/drive/folders/find.ts @@ -17,7 +17,7 @@ export const meta = { parentId: { validator: $.optional.nullable.type(ID), - default: null as any, + default: null, }, }, diff --git a/src/server/api/endpoints/notes/create.ts b/src/server/api/endpoints/notes/create.ts index 7410d28cb0..beeacb5374 100644 --- a/src/server/api/endpoints/notes/create.ts +++ b/src/server/api/endpoints/notes/create.ts @@ -50,7 +50,7 @@ export const meta = { && length(text.trim()) <= maxNoteTextLength && Array.from(text.trim()).length <= DB_MAX_NOTE_TEXT_LENGTH // DB limit ), - default: null as any, + default: null, }, cw: { diff --git a/src/server/api/endpoints/notes/search-by-tag.ts b/src/server/api/endpoints/notes/search-by-tag.ts index b7d41d9e71..bbada17613 100644 --- a/src/server/api/endpoints/notes/search-by-tag.ts +++ b/src/server/api/endpoints/notes/search-by-tag.ts @@ -23,12 +23,12 @@ export const meta = { reply: { validator: $.optional.nullable.bool, - default: null as any, + default: null, }, renote: { validator: $.optional.nullable.bool, - default: null as any, + default: null, }, withFiles: { @@ -37,7 +37,7 @@ export const meta = { poll: { validator: $.optional.nullable.bool, - default: null as any, + default: null, }, sinceId: { -- cgit v1.2.3-freya From 55c549a9f83f25ac67fba888223faa9f98749b48 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 8 Jun 2021 14:24:21 +0900 Subject: Remove entity descriptions #6627 --- src/models/repositories/blocking.ts | 3 --- src/models/repositories/channel.ts | 3 --- src/models/repositories/clip.ts | 5 ----- src/models/repositories/drive-file.ts | 13 ------------ src/models/repositories/drive-folder.ts | 6 ------ src/models/repositories/following.ts | 4 ---- src/models/repositories/hashtag.ts | 7 ------- src/models/repositories/messaging-message.ts | 2 -- src/models/repositories/muting.ts | 3 --- src/models/repositories/note-favorite.ts | 2 -- src/models/repositories/note-reaction.ts | 4 ---- src/models/repositories/note.ts | 6 ------ src/models/repositories/notification.ts | 3 --- src/models/repositories/user-group.ts | 3 --- src/models/repositories/user-list.ts | 3 --- src/models/repositories/user.ts | 12 ----------- .../api/endpoints/admin/abuse-user-reports.ts | 7 ------- src/server/api/endpoints/admin/accounts/create.ts | 1 - .../api/endpoints/admin/announcements/create.ts | 6 ------ .../api/endpoints/admin/announcements/list.ts | 7 ------- src/server/api/endpoints/admin/drive/show-file.ts | 16 --------------- src/server/api/endpoints/admin/emoji/copy.ts | 1 - .../api/endpoints/admin/emoji/list-remote.ts | 6 ------ src/server/api/endpoints/admin/emoji/list.ts | 6 ------ src/server/api/endpoints/admin/invite.ts | 1 - src/server/api/endpoints/admin/logs.ts | 4 ---- .../api/endpoints/admin/queue/deliver-delayed.ts | 2 -- .../api/endpoints/admin/queue/inbox-delayed.ts | 2 -- src/server/api/endpoints/admin/server-info.ts | 10 --------- src/server/api/endpoints/announcements.ts | 7 ------- src/server/api/endpoints/auth/session/generate.ts | 2 -- src/server/api/endpoints/auth/session/userkey.ts | 2 -- src/server/api/endpoints/blocking/delete.ts | 1 - src/server/api/endpoints/meta.ts | 6 ------ src/server/api/endpoints/notes/create.ts | 1 - src/server/api/endpoints/room/show.ts | 1 - src/server/api/endpoints/stats.ts | 5 ----- src/server/api/endpoints/username/available.ts | 1 - src/services/chart/charts/schemas/active-users.ts | 1 - src/services/chart/charts/schemas/drive.ts | 6 ------ src/services/chart/charts/schemas/federation.ts | 3 --- src/services/chart/charts/schemas/hashtag.ts | 1 - src/services/chart/charts/schemas/instance.ts | 24 ---------------------- src/services/chart/charts/schemas/network.ts | 7 +------ src/services/chart/charts/schemas/notes.ts | 6 ------ .../chart/charts/schemas/per-user-drive.ts | 6 ------ .../chart/charts/schemas/per-user-following.ts | 6 ------ .../chart/charts/schemas/per-user-notes.ts | 6 ------ .../chart/charts/schemas/per-user-reactions.ts | 1 - src/services/chart/charts/schemas/test-grouped.ts | 3 --- src/services/chart/charts/schemas/test.ts | 3 --- src/services/chart/charts/schemas/users.ts | 3 --- 52 files changed, 1 insertion(+), 249 deletions(-) (limited to 'src/server/api/endpoints/admin') diff --git a/src/models/repositories/blocking.ts b/src/models/repositories/blocking.ts index 60b43fae3e..9a4f3f6c68 100644 --- a/src/models/repositories/blocking.ts +++ b/src/models/repositories/blocking.ts @@ -41,14 +41,12 @@ export const packedBlockingSchema = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this blocking.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the blocking was created.' }, blockeeId: { type: 'string' as const, @@ -59,7 +57,6 @@ export const packedBlockingSchema = { type: 'object' as const, optional: false as const, nullable: false as const, ref: 'User', - description: 'The blockee.' }, } }; diff --git a/src/models/repositories/channel.ts b/src/models/repositories/channel.ts index a1c85f2bd7..3a6bd4c923 100644 --- a/src/models/repositories/channel.ts +++ b/src/models/repositories/channel.ts @@ -51,14 +51,12 @@ export const packedChannelSchema = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this Channel.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the Channel was created.' }, lastNotedAt: { type: 'string' as const, @@ -68,7 +66,6 @@ export const packedChannelSchema = { name: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'The name of the Channel.' }, description: { type: 'string' as const, diff --git a/src/models/repositories/clip.ts b/src/models/repositories/clip.ts index 8d1f63c44b..293807b125 100644 --- a/src/models/repositories/clip.ts +++ b/src/models/repositories/clip.ts @@ -39,14 +39,12 @@ export const packedClipSchema = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this Clip.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the Clip was created.' }, userId: { type: 'string' as const, @@ -61,17 +59,14 @@ export const packedClipSchema = { name: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'The name of the Clip.' }, description: { type: 'string' as const, optional: false as const, nullable: true as const, - description: 'The description of the Clip.' }, isPublic: { type: 'boolean' as const, optional: false as const, nullable: false as const, - description: 'Whether this Clip is public.', }, }, }; diff --git a/src/models/repositories/drive-file.ts b/src/models/repositories/drive-file.ts index 92bf12a4e0..675faca8e3 100644 --- a/src/models/repositories/drive-file.ts +++ b/src/models/repositories/drive-file.ts @@ -154,44 +154,37 @@ export const packedDriveFileSchema = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this Drive file.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the Drive file was created on Misskey.' }, name: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'The file name with extension.', example: 'lenna.jpg' }, type: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'The MIME type of this Drive file.', example: 'image/jpeg' }, md5: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'md5', - description: 'The MD5 hash of this Drive file.', example: '15eca7fba0480996e2245f5185bf39f2' }, size: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'The size of this Drive file. (bytes)', example: 51469 }, isSensitive: { type: 'boolean' as const, optional: false as const, nullable: false as const, - description: 'Whether this Drive file is sensitive.', }, blurhash: { type: 'string' as const, @@ -222,13 +215,11 @@ export const packedDriveFileSchema = { type: 'string' as const, optional: false as const, nullable: true as const, format: 'url', - description: 'The URL of this Drive file.', }, thumbnailUrl: { type: 'string' as const, optional: false as const, nullable: true as const, format: 'url', - description: 'The thumbnail URL of this Drive file.', }, comment: { type: 'string' as const, @@ -238,26 +229,22 @@ export const packedDriveFileSchema = { type: 'string' as const, optional: false as const, nullable: true as const, format: 'id', - description: 'The parent folder ID of this Drive file.', example: 'xxxxxxxxxx', }, folder: { type: 'object' as const, optional: true as const, nullable: true as const, - description: 'The parent folder of this Drive file.', ref: 'DriveFolder' }, userId: { type: 'string' as const, optional: false as const, nullable: true as const, format: 'id', - description: 'Owner ID of this Drive file.', example: 'xxxxxxxxxx', }, user: { type: 'object' as const, optional: true as const, nullable: true as const, - description: 'Owner of this Drive file.', ref: 'User' } }, diff --git a/src/models/repositories/drive-folder.ts b/src/models/repositories/drive-folder.ts index cc07c56675..d1922c96f8 100644 --- a/src/models/repositories/drive-folder.ts +++ b/src/models/repositories/drive-folder.ts @@ -59,35 +59,29 @@ export const packedDriveFolderSchema = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this Drive folder.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the Drive folder was created.' }, name: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'The folder name.', }, foldersCount: { type: 'number' as const, optional: true as const, nullable: false as const, - description: 'The count of child folders.', }, filesCount: { type: 'number' as const, optional: true as const, nullable: false as const, - description: 'The count of child files.', }, parentId: { type: 'string' as const, optional: false as const, nullable: true as const, format: 'id', - description: 'The parent folder ID of this folder.', example: 'xxxxxxxxxx', }, parent: { diff --git a/src/models/repositories/following.ts b/src/models/repositories/following.ts index b886432978..3aed83f320 100644 --- a/src/models/repositories/following.ts +++ b/src/models/repositories/following.ts @@ -95,14 +95,12 @@ export const packedFollowingSchema = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this following.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the following was created.' }, followeeId: { type: 'string' as const, @@ -113,7 +111,6 @@ export const packedFollowingSchema = { type: 'object' as const, optional: true as const, nullable: false as const, ref: 'User', - description: 'The followee.' }, followerId: { type: 'string' as const, @@ -124,7 +121,6 @@ export const packedFollowingSchema = { type: 'object' as const, optional: true as const, nullable: false as const, ref: 'User', - description: 'The follower.' }, } }; diff --git a/src/models/repositories/hashtag.ts b/src/models/repositories/hashtag.ts index 0089ab50db..3fee2f771d 100644 --- a/src/models/repositories/hashtag.ts +++ b/src/models/repositories/hashtag.ts @@ -34,38 +34,31 @@ export const packedHashtagSchema = { tag: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'The hashtag name. No # prefixed.', example: 'misskey', }, mentionedUsersCount: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'Number of all users using this hashtag.' }, mentionedLocalUsersCount: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'Number of local users using this hashtag.' }, mentionedRemoteUsersCount: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'Number of remote users using this hashtag.' }, attachedUsersCount: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'Number of all users who attached this hashtag to profile.' }, attachedLocalUsersCount: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'Number of local users who attached this hashtag to profile.' }, attachedRemoteUsersCount: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'Number of remote users who attached this hashtag to profile.' }, } }; diff --git a/src/models/repositories/messaging-message.ts b/src/models/repositories/messaging-message.ts index 8d6d03a236..c77b14ca7f 100644 --- a/src/models/repositories/messaging-message.ts +++ b/src/models/repositories/messaging-message.ts @@ -53,14 +53,12 @@ export const packedMessagingMessageSchema = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this MessagingMessage.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the MessagingMessage was created.' }, userId: { type: 'string' as const, diff --git a/src/models/repositories/muting.ts b/src/models/repositories/muting.ts index b5bbe8a0a3..32e681bf0b 100644 --- a/src/models/repositories/muting.ts +++ b/src/models/repositories/muting.ts @@ -41,14 +41,12 @@ export const packedMutingSchema = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this muting.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the muting was created.' }, muteeId: { type: 'string' as const, @@ -59,7 +57,6 @@ export const packedMutingSchema = { type: 'object' as const, optional: false as const, nullable: false as const, ref: 'User', - description: 'The mutee.' }, } }; diff --git a/src/models/repositories/note-favorite.ts b/src/models/repositories/note-favorite.ts index 316ebdff35..e58b258fcb 100644 --- a/src/models/repositories/note-favorite.ts +++ b/src/models/repositories/note-favorite.ts @@ -35,14 +35,12 @@ export const packedNoteFavoriteSchema = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this favorite.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the favorite was created.' }, note: { type: 'object' as const, diff --git a/src/models/repositories/note-reaction.ts b/src/models/repositories/note-reaction.ts index 4c56809603..5de9e1be65 100644 --- a/src/models/repositories/note-reaction.ts +++ b/src/models/repositories/note-reaction.ts @@ -32,25 +32,21 @@ export const packedNoteReactionSchema = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this reaction.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the reaction was created.' }, user: { type: 'object' as const, optional: false as const, nullable: false as const, ref: 'User', - description: 'User who performed this reaction.' }, type: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'The reaction type.' }, }, }; diff --git a/src/models/repositories/note.ts b/src/models/repositories/note.ts index 7b1df73024..df0ca8c6ad 100644 --- a/src/models/repositories/note.ts +++ b/src/models/repositories/note.ts @@ -281,14 +281,12 @@ export const packedNoteSchema = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this Note.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the Note was created on Misskey.' }, text: { type: 'string' as const, @@ -426,7 +424,6 @@ export const packedNoteSchema = { reactions: { type: 'object' as const, optional: false as const, nullable: false as const, - description: 'Key is either Unicode emoji or custom emoji, value is count of that emoji reaction.', }, renoteCount: { type: 'number' as const, @@ -439,18 +436,15 @@ export const packedNoteSchema = { uri: { type: 'string' as const, optional: false as const, nullable: true as const, - description: 'The URI of a note. it will be null when the note is local.', }, url: { type: 'string' as const, optional: false as const, nullable: true as const, - description: 'The human readable url of a note. it will be null when the note is local.', }, myReaction: { type: 'object' as const, optional: true as const, nullable: true as const, - description: 'Key is either Unicode emoji or custom emoji, value is count of that emoji reaction.', }, }, }; diff --git a/src/models/repositories/notification.ts b/src/models/repositories/notification.ts index abadea4632..94a2c3c91a 100644 --- a/src/models/repositories/notification.ts +++ b/src/models/repositories/notification.ts @@ -117,20 +117,17 @@ export const packedNotificationSchema = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this notification.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the notification was created.' }, type: { type: 'string' as const, optional: false as const, nullable: false as const, enum: ['follow', 'followRequestAccepted', 'receiveFollowRequest', 'mention', 'reply', 'renote', 'quote', 'reaction', 'pollVote'], - description: 'The type of the notification.' }, userId: { type: 'string' as const, diff --git a/src/models/repositories/user-group.ts b/src/models/repositories/user-group.ts index 9861b23356..c7d73ebe26 100644 --- a/src/models/repositories/user-group.ts +++ b/src/models/repositories/user-group.ts @@ -34,19 +34,16 @@ export const packedUserGroupSchema = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this UserGroup.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the UserGroup was created.' }, name: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'The name of the UserGroup.' }, ownerId: { type: 'string' as const, diff --git a/src/models/repositories/user-list.ts b/src/models/repositories/user-list.ts index 094abace63..7710bebfcc 100644 --- a/src/models/repositories/user-list.ts +++ b/src/models/repositories/user-list.ts @@ -33,19 +33,16 @@ export const packedUserListSchema = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this UserList.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the UserList was created.' }, name: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'The name of the UserList.' }, userIds: { type: 'array' as const, diff --git a/src/models/repositories/user.ts b/src/models/repositories/user.ts index 1ebc16a563..90a91987fb 100644 --- a/src/models/repositories/user.ts +++ b/src/models/repositories/user.ts @@ -342,19 +342,16 @@ export const packedUserSchema = { type: 'string' as const, nullable: false as const, optional: false as const, format: 'id', - description: 'The unique identifier for this User.', example: 'xxxxxxxxxx', }, name: { type: 'string' as const, nullable: true as const, optional: false as const, - description: 'The name of the user, as they’ve defined it.', example: '藍' }, username: { type: 'string' as const, nullable: false as const, optional: false as const, - description: 'The screen name, handle, or alias that this user identifies themselves with.', example: 'ai' }, host: { @@ -379,24 +376,20 @@ export const packedUserSchema = { isAdmin: { type: 'boolean' as const, nullable: false as const, optional: false as const, - description: 'Whether this account is the admin.', default: false }, isModerator: { type: 'boolean' as const, nullable: false as const, optional: false as const, - description: 'Whether this account is a moderator.', default: false }, isBot: { type: 'boolean' as const, nullable: false as const, optional: true as const, - description: 'Whether this account is a bot.' }, isCat: { type: 'boolean' as const, nullable: false as const, optional: true as const, - description: 'Whether this account is a cat.' }, emojis: { type: 'array' as const, @@ -438,7 +431,6 @@ export const packedUserSchema = { type: 'string' as const, nullable: false as const, optional: true as const, format: 'date-time', - description: 'The date that the user account was created on Misskey.' }, updatedAt: { type: 'string' as const, @@ -471,7 +463,6 @@ export const packedUserSchema = { description: { type: 'string' as const, nullable: true as const, optional: true as const, - description: 'The user-defined UTF-8 string describing their account.', example: 'Hi masters, I am Ai!' }, location: { @@ -505,17 +496,14 @@ export const packedUserSchema = { followersCount: { type: 'number' as const, nullable: false as const, optional: true as const, - description: 'The number of followers this account currently has.' }, followingCount: { type: 'number' as const, nullable: false as const, optional: true as const, - description: 'The number of users this account is following.' }, notesCount: { type: 'number' as const, nullable: false as const, optional: true as const, - description: 'The number of Notes (including renotes) issued by the user.' }, pinnedNoteIds: { type: 'array' as const, diff --git a/src/server/api/endpoints/admin/abuse-user-reports.ts b/src/server/api/endpoints/admin/abuse-user-reports.ts index d09c9d0efb..02291a3edd 100644 --- a/src/server/api/endpoints/admin/abuse-user-reports.ts +++ b/src/server/api/endpoints/admin/abuse-user-reports.ts @@ -59,43 +59,36 @@ export const meta = { type: 'string' as const, nullable: false as const, optional: false as const, format: 'id', - description: 'The unique identifier for this User.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, nullable: false as const, optional: false as const, format: 'date-time', - description: 'The date that the abuse user report was created on Misskey.' }, comment: { type: 'string' as const, nullable: false as const, optional: false as const, - description: 'The content of the report.', }, resolved: { type: 'boolean' as const, nullable: false as const, optional: false as const, - description: 'Returns whether this report has been resolved', example: false }, reporterId: { type: 'string' as const, nullable: false as const, optional: false as const, format: 'id', - description: 'Reporter\'s user ID.' }, targetUserId: { type: 'string' as const, nullable: false as const, optional: false as const, format: 'id', - description: 'User ID of the person to be reported.' }, assigneeId: { type: 'string' as const, nullable: true as const, optional: false as const, format: 'id', - description: 'User ID of the person who responded to the report.' }, reporter: { type: 'object' as const, diff --git a/src/server/api/endpoints/admin/accounts/create.ts b/src/server/api/endpoints/admin/accounts/create.ts index e232031d35..bceb210a82 100644 --- a/src/server/api/endpoints/admin/accounts/create.ts +++ b/src/server/api/endpoints/admin/accounts/create.ts @@ -23,7 +23,6 @@ export const meta = { token: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Token to access this user.' } } } diff --git a/src/server/api/endpoints/admin/announcements/create.ts b/src/server/api/endpoints/admin/announcements/create.ts index 8d121c4843..794c35023b 100644 --- a/src/server/api/endpoints/admin/announcements/create.ts +++ b/src/server/api/endpoints/admin/announcements/create.ts @@ -29,35 +29,29 @@ export const meta = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this Announcement.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the Announcement was created.' }, updatedAt: { type: 'string' as const, optional: false as const, nullable: true as const, format: 'date-time', - description: 'The date that the Announcement was updated.' }, title: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Announcement title.' }, text: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Announcement text.' }, imageUrl: { type: 'string' as const, optional: false as const, nullable: true as const, - description: 'Announcement image.' } } } diff --git a/src/server/api/endpoints/admin/announcements/list.ts b/src/server/api/endpoints/admin/announcements/list.ts index 94a830dbae..a14f0c0bdc 100644 --- a/src/server/api/endpoints/admin/announcements/list.ts +++ b/src/server/api/endpoints/admin/announcements/list.ts @@ -36,40 +36,33 @@ export const meta = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this Announcement.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the Announcement was created.' }, updatedAt: { type: 'string' as const, optional: false as const, nullable: true as const, format: 'date-time', - description: 'The date that the Announcement was updated.' }, text: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Announcement text.' }, title: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Announcement title.' }, imageUrl: { type: 'string' as const, optional: false as const, nullable: true as const, - description: 'Announcement image.' }, reads: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'Number of people who read this announcement.' } } } diff --git a/src/server/api/endpoints/admin/drive/show-file.ts b/src/server/api/endpoints/admin/drive/show-file.ts index cfe25306c2..3489e5c816 100644 --- a/src/server/api/endpoints/admin/drive/show-file.ts +++ b/src/server/api/endpoints/admin/drive/show-file.ts @@ -36,20 +36,17 @@ export const meta = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this Drive file.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the Drive file was created on Misskey.' }, userId: { type: 'string' as const, optional: false as const, nullable: true as const, format: 'id', - description: 'Owner ID of this Drive file.', example: 'xxxxxxxxxx', }, userHost: { @@ -60,25 +57,21 @@ export const meta = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'md5', - description: 'The MD5 hash of this Drive file.', example: '15eca7fba0480996e2245f5185bf39f2' }, name: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'The file name with extension.', example: 'lenna.jpg' }, type: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'The MIME type of this Drive file.', example: 'image/jpeg' }, size: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'The size of this Drive file. (bytes)', example: 51469 }, comment: { @@ -113,41 +106,34 @@ export const meta = { storedInternal: { type: 'boolean' as const, optional: false as const, nullable: true as const, - description: 'Indicates whether this file is stored in the same location as Misskey itself', example: true }, url: { type: 'string' as const, optional: false as const, nullable: true as const, format: 'url', - description: 'The URL of this Drive file.', }, thumbnailUrl: { type: 'string' as const, optional: false as const, nullable: true as const, format: 'url', - description: 'The thumbnail URL of this Drive file.', }, webpublicUrl: { type: 'string' as const, optional: false as const, nullable: true as const, format: 'url', - description: 'The public URL of this Drive file.', }, accessKey: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Access key to access this file' }, thumbnailAccessKey: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Access key to access this file for thumbnail' }, webpublicAccessKey: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Access key to access this file for webpublic' }, uri: { type: 'string' as const, @@ -161,13 +147,11 @@ export const meta = { type: 'string' as const, optional: false as const, nullable: true as const, format: 'id', - description: 'The parent folder ID of this Drive file.', example: 'xxxxxxxxxx', }, isSensitive: { type: 'boolean' as const, optional: false as const, nullable: false as const, - description: 'Whether this Drive file is sensitive.', }, isLink: { type: 'boolean' as const, diff --git a/src/server/api/endpoints/admin/emoji/copy.ts b/src/server/api/endpoints/admin/emoji/copy.ts index 7807809720..1a784f4061 100644 --- a/src/server/api/endpoints/admin/emoji/copy.ts +++ b/src/server/api/endpoints/admin/emoji/copy.ts @@ -36,7 +36,6 @@ export const meta = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'New copied emoji ID' } } } diff --git a/src/server/api/endpoints/admin/emoji/list-remote.ts b/src/server/api/endpoints/admin/emoji/list-remote.ts index f1cfbdd3e2..570db064ec 100644 --- a/src/server/api/endpoints/admin/emoji/list-remote.ts +++ b/src/server/api/endpoints/admin/emoji/list-remote.ts @@ -47,12 +47,10 @@ export const meta = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this Emoji.' }, aliases: { type: 'array' as const, optional: false as const, nullable: false as const, - description: 'List to make it easier to be displayed as a candidate when entering emoji.', items: { type: 'string' as const, optional: false as const, nullable: false as const @@ -61,22 +59,18 @@ export const meta = { name: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Official name of custom emoji.' }, category: { type: 'string' as const, optional: false as const, nullable: true as const, - description: 'Names categorized in the emoji list.' }, host: { type: 'string' as const, optional: false as const, nullable: true as const, - description: 'If it is another server, the FQDN will be returned here.' }, url: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Image URL of emoji.' } } } diff --git a/src/server/api/endpoints/admin/emoji/list.ts b/src/server/api/endpoints/admin/emoji/list.ts index 3f3e49396b..b864fed4b0 100644 --- a/src/server/api/endpoints/admin/emoji/list.ts +++ b/src/server/api/endpoints/admin/emoji/list.ts @@ -42,12 +42,10 @@ export const meta = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this Emoji.' }, aliases: { type: 'array' as const, optional: false as const, nullable: false as const, - description: 'List to make it easier to be displayed as a candidate when entering emoji.', items: { type: 'string' as const, optional: false as const, nullable: false as const @@ -56,22 +54,18 @@ export const meta = { name: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Official name of custom emoji.' }, category: { type: 'string' as const, optional: false as const, nullable: true as const, - description: 'Names categorized in the emoji list.' }, host: { type: 'string' as const, optional: false as const, nullable: true as const, - description: 'If it is another server, the FQDN will be returned here.' }, url: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Image URL of emoji.' } } } diff --git a/src/server/api/endpoints/admin/invite.ts b/src/server/api/endpoints/admin/invite.ts index 8ce6415218..141f27d95e 100644 --- a/src/server/api/endpoints/admin/invite.ts +++ b/src/server/api/endpoints/admin/invite.ts @@ -18,7 +18,6 @@ export const meta = { code: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Give this code to the applicant for registration.', example: '2ERUA5VR', maxLength: 8, minLength: 8 diff --git a/src/server/api/endpoints/admin/logs.ts b/src/server/api/endpoints/admin/logs.ts index e719ce19c7..1ec7320399 100644 --- a/src/server/api/endpoints/admin/logs.ts +++ b/src/server/api/endpoints/admin/logs.ts @@ -37,14 +37,12 @@ export const meta = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this log.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the Drive file was created on Misskey.' }, domain: { type: 'array' as const, @@ -65,12 +63,10 @@ export const meta = { machine: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'The name of the running machine.' }, message: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Log body.' }, data: { type: 'object' 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 8b70fa6680..cd7b640983 100644 --- a/src/server/api/endpoints/admin/queue/deliver-delayed.ts +++ b/src/server/api/endpoints/admin/queue/deliver-delayed.ts @@ -21,11 +21,9 @@ export const meta = { anyOf: [ { type: 'string' as const, - description: 'FQDN to fediverse server' }, { type: 'number' as const, - description: 'Delayed queue counts' } ] } diff --git a/src/server/api/endpoints/admin/queue/inbox-delayed.ts b/src/server/api/endpoints/admin/queue/inbox-delayed.ts index 437027eea8..119976c680 100644 --- a/src/server/api/endpoints/admin/queue/inbox-delayed.ts +++ b/src/server/api/endpoints/admin/queue/inbox-delayed.ts @@ -21,11 +21,9 @@ export const meta = { anyOf: [ { type: 'string' as const, - description: 'FQDN to fediverse server' }, { type: 'number' as const, - description: 'Delayed queue counts' } ] } diff --git a/src/server/api/endpoints/admin/server-info.ts b/src/server/api/endpoints/admin/server-info.ts index 1373802f3e..bb2d35e397 100644 --- a/src/server/api/endpoints/admin/server-info.ts +++ b/src/server/api/endpoints/admin/server-info.ts @@ -20,23 +20,19 @@ export const meta = { machine: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'The name of the running server' }, os: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'OS used by the server', example: 'linux' }, node: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Version of Node.js' }, psql: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Version of Postgresql' }, cpu: { type: 'object' as const, @@ -45,12 +41,10 @@ export const meta = { model: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'The name of the CPU you are using' }, cores: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'Number of CPU cores used (number of logical processors)' } } }, @@ -62,7 +56,6 @@ export const meta = { type: 'number' as const, optional: false as const, nullable: false as const, format: 'bytes', - description: 'RAM capacity.' } } }, @@ -74,13 +67,11 @@ export const meta = { type: 'number' as const, optional: false as const, nullable: false as const, format: 'bytes', - description: 'Total storage capacity.' }, used: { type: 'number' as const, optional: false as const, nullable: false as const, format: 'bytes', - description: 'Amount of storage used' } } }, @@ -91,7 +82,6 @@ export const meta = { interface: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'The interface name of your network.', example: 'eth0' } } diff --git a/src/server/api/endpoints/announcements.ts b/src/server/api/endpoints/announcements.ts index f5d07d8080..124682909c 100644 --- a/src/server/api/endpoints/announcements.ts +++ b/src/server/api/endpoints/announcements.ts @@ -40,40 +40,33 @@ export const meta = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this Announcement.', example: 'xxxxxxxxxx', }, createdAt: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'date-time', - description: 'The date that the Announcement was created.' }, updatedAt: { type: 'string' as const, optional: false as const, nullable: true as const, format: 'date-time', - description: 'The date that the Announcement was updated.' }, text: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Announcement text.' }, title: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'Announcement title.' }, imageUrl: { type: 'string' as const, optional: false as const, nullable: true as const, - description: 'Announcement image.' }, isRead: { type: 'boolean' as const, optional: false as const, nullable: false as const, - description: 'Indicates that you have read this announcement' } } } diff --git a/src/server/api/endpoints/auth/session/generate.ts b/src/server/api/endpoints/auth/session/generate.ts index ca004e9b19..42f9e25c78 100644 --- a/src/server/api/endpoints/auth/session/generate.ts +++ b/src/server/api/endpoints/auth/session/generate.ts @@ -24,13 +24,11 @@ export const meta = { token: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'セッションのトークン' }, url: { type: 'string' as const, optional: false as const, nullable: false as const, format: 'url', - description: 'セッションのURL' }, } }, diff --git a/src/server/api/endpoints/auth/session/userkey.ts b/src/server/api/endpoints/auth/session/userkey.ts index e015be20eb..7059aacbea 100644 --- a/src/server/api/endpoints/auth/session/userkey.ts +++ b/src/server/api/endpoints/auth/session/userkey.ts @@ -25,14 +25,12 @@ export const meta = { accessToken: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'ユーザーのアクセストークン', }, user: { type: 'object' as const, optional: false as const, nullable: false as const, ref: 'User', - description: '認証したユーザー' }, } }, diff --git a/src/server/api/endpoints/blocking/delete.ts b/src/server/api/endpoints/blocking/delete.ts index 71927fa727..28776727a5 100644 --- a/src/server/api/endpoints/blocking/delete.ts +++ b/src/server/api/endpoints/blocking/delete.ts @@ -53,7 +53,6 @@ export const meta = { type: 'string' as const, optional: false as const, nullable: false as const, format: 'id', - description: 'The unique identifier for this blocking.', example: 'xxxxxxxxxx', }, name: { diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index e7a6a401d8..dd75149ad2 100644 --- a/src/server/api/endpoints/meta.ts +++ b/src/server/api/endpoints/meta.ts @@ -33,13 +33,11 @@ export const meta = { version: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'The version of Misskey of this instance.', example: config.version }, name: { type: 'string' as const, optional: false as const, nullable: false as const, - description: 'The name of this instance.', }, uri: { type: 'string' as const, @@ -50,7 +48,6 @@ export const meta = { description: { type: 'string' as const, optional: false as const, nullable: true as const, - description: 'The description of this instance.', }, langs: { type: 'array' as const, @@ -82,17 +79,14 @@ export const meta = { disableRegistration: { type: 'boolean' as const, optional: false as const, nullable: false as const, - description: 'Whether disabled open registration.', }, disableLocalTimeline: { type: 'boolean' as const, optional: false as const, nullable: false as const, - description: 'Whether disabled LTL and STL.', }, disableGlobalTimeline: { type: 'boolean' as const, optional: false as const, nullable: false as const, - description: 'Whether disabled GTL.', }, driveCapacityPerLocalUserMb: { type: 'number' as const, diff --git a/src/server/api/endpoints/notes/create.ts b/src/server/api/endpoints/notes/create.ts index beeacb5374..ddb5c953ec 100644 --- a/src/server/api/endpoints/notes/create.ts +++ b/src/server/api/endpoints/notes/create.ts @@ -125,7 +125,6 @@ export const meta = { type: 'object' as const, optional: false as const, nullable: false as const, ref: 'Note', - description: '作成した投稿' } } }, diff --git a/src/server/api/endpoints/room/show.ts b/src/server/api/endpoints/room/show.ts index 7b2526c313..85cd57aef4 100644 --- a/src/server/api/endpoints/room/show.ts +++ b/src/server/api/endpoints/room/show.ts @@ -59,7 +59,6 @@ export const meta = { props: { type: 'object' as const, optional: true as const, nullable: false as const, - description: 'Properties vary depending on the furniture' }, position: { type: 'object' as const, diff --git a/src/server/api/endpoints/stats.ts b/src/server/api/endpoints/stats.ts index 748c612564..f9c17f86eb 100644 --- a/src/server/api/endpoints/stats.ts +++ b/src/server/api/endpoints/stats.ts @@ -17,27 +17,22 @@ export const meta = { notesCount: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'The count of all (local/remote) notes of this instance.', }, originalNotesCount: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'The count of all local notes of this instance.', }, usersCount: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'The count of all (local/remote) accounts of this instance.', }, originalUsersCount: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'The count of all local accounts of this instance.', }, instances: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'The count of federated instances.', }, driveUsageLocal: { type: 'number' as const, diff --git a/src/server/api/endpoints/username/available.ts b/src/server/api/endpoints/username/available.ts index 5b51d7e176..cd434b582e 100644 --- a/src/server/api/endpoints/username/available.ts +++ b/src/server/api/endpoints/username/available.ts @@ -20,7 +20,6 @@ export const meta = { available: { type: 'boolean' as const, optional: false as const, nullable: false as const, - description: 'Returns true if the username is not used.' } } } diff --git a/src/services/chart/charts/schemas/active-users.ts b/src/services/chart/charts/schemas/active-users.ts index cdf0579efb..1d65f280b0 100644 --- a/src/services/chart/charts/schemas/active-users.ts +++ b/src/services/chart/charts/schemas/active-users.ts @@ -5,7 +5,6 @@ export const logSchema = { users: { type: 'array' as const, optional: false as const, nullable: false as const, - description: 'アクティブユーザー', items: { type: 'string' as const, optional: false as const, nullable: false as const, diff --git a/src/services/chart/charts/schemas/drive.ts b/src/services/chart/charts/schemas/drive.ts index dcc50df8cf..133b47846a 100644 --- a/src/services/chart/charts/schemas/drive.ts +++ b/src/services/chart/charts/schemas/drive.ts @@ -5,7 +5,6 @@ const logSchema = { totalCount: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '集計期間時点での、全ドライブファイル数' }, /** @@ -14,7 +13,6 @@ const logSchema = { totalSize: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '集計期間時点での、全ドライブファイルの合計サイズ' }, /** @@ -23,7 +21,6 @@ const logSchema = { incCount: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '増加したドライブファイル数' }, /** @@ -32,7 +29,6 @@ const logSchema = { incSize: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '増加したドライブ使用量' }, /** @@ -41,7 +37,6 @@ const logSchema = { decCount: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '減少したドライブファイル数' }, /** @@ -50,7 +45,6 @@ const logSchema = { decSize: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '減少したドライブ使用量' }, }; diff --git a/src/services/chart/charts/schemas/federation.ts b/src/services/chart/charts/schemas/federation.ts index 2f2d22c0d3..dca4587cac 100644 --- a/src/services/chart/charts/schemas/federation.ts +++ b/src/services/chart/charts/schemas/federation.ts @@ -12,17 +12,14 @@ export const schema = { total: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'インスタンス数の合計' }, inc: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '増加インスタンス数' }, dec: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '減少インスタンス数' }, } } diff --git a/src/services/chart/charts/schemas/hashtag.ts b/src/services/chart/charts/schemas/hashtag.ts index 791d0d1721..4e7c542bbc 100644 --- a/src/services/chart/charts/schemas/hashtag.ts +++ b/src/services/chart/charts/schemas/hashtag.ts @@ -5,7 +5,6 @@ export const logSchema = { users: { type: 'array' as const, optional: false as const, nullable: false as const, - description: '投稿したユーザー', items: { type: 'string' as const, optional: false as const, nullable: false as const, diff --git a/src/services/chart/charts/schemas/instance.ts b/src/services/chart/charts/schemas/instance.ts index d2152a4ae7..785d6ae7ce 100644 --- a/src/services/chart/charts/schemas/instance.ts +++ b/src/services/chart/charts/schemas/instance.ts @@ -12,17 +12,14 @@ export const schema = { failed: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '失敗したリクエスト数' }, succeeded: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '成功したリクエスト数' }, received: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '受信したリクエスト数' }, } }, @@ -34,17 +31,14 @@ export const schema = { total: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '集計期間時点での、全投稿数' }, inc: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '増加した投稿数' }, dec: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '減少した投稿数' }, diffs: { @@ -54,19 +48,16 @@ export const schema = { normal: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '通常の投稿数の差分' }, reply: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'リプライの投稿数の差分' }, renote: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'Renoteの投稿数の差分' }, } }, @@ -80,17 +71,14 @@ export const schema = { total: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '集計期間時点での、全ユーザー数' }, inc: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '増加したユーザー数' }, dec: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '減少したユーザー数' }, } }, @@ -102,17 +90,14 @@ export const schema = { total: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '集計期間時点での、全フォロー数' }, inc: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '増加したフォロー数' }, dec: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '減少したフォロー数' }, } }, @@ -124,17 +109,14 @@ export const schema = { total: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '集計期間時点での、全フォロワー数' }, inc: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '増加したフォロワー数' }, dec: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '減少したフォロワー数' }, } }, @@ -146,32 +128,26 @@ export const schema = { totalFiles: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '集計期間時点での、全ドライブファイル数' }, totalUsage: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '集計期間時点での、全ドライブファイルの合計サイズ' }, incFiles: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '増加したドライブファイル数' }, incUsage: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '増加したドライブ使用量' }, decFiles: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '減少したドライブファイル数' }, decUsage: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '減少したドライブ使用量' }, } }, diff --git a/src/services/chart/charts/schemas/network.ts b/src/services/chart/charts/schemas/network.ts index 30123c5d90..49a364debc 100644 --- a/src/services/chart/charts/schemas/network.ts +++ b/src/services/chart/charts/schemas/network.ts @@ -8,27 +8,22 @@ export const schema = { incomingRequests: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '受信したリクエスト数' }, outgoingRequests: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '送信したリクエスト数' }, - totalTime: { + totalTime: { // TIP: (totalTime / incomingRequests) でひとつのリクエストに平均でどれくらいの時間がかかったか知れる type: 'number' as const, optional: false as const, nullable: false as const, - description: '応答時間の合計' // TIP: (totalTime / incomingRequests) でひとつのリクエストに平均でどれくらいの時間がかかったか知れる }, incomingBytes: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '合計受信データ量' }, outgoingBytes: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '合計送信データ量' }, } }; diff --git a/src/services/chart/charts/schemas/notes.ts b/src/services/chart/charts/schemas/notes.ts index 6dbf321b7c..2b5105348c 100644 --- a/src/services/chart/charts/schemas/notes.ts +++ b/src/services/chart/charts/schemas/notes.ts @@ -2,19 +2,16 @@ const logSchema = { total: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '集計期間時点での、全投稿数' }, inc: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '増加した投稿数' }, dec: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '減少した投稿数' }, diffs: { @@ -24,19 +21,16 @@ const logSchema = { normal: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '通常の投稿数の差分' }, reply: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'リプライの投稿数の差分' }, renote: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'Renoteの投稿数の差分' }, } }, diff --git a/src/services/chart/charts/schemas/per-user-drive.ts b/src/services/chart/charts/schemas/per-user-drive.ts index 21312e82d8..856f1e0439 100644 --- a/src/services/chart/charts/schemas/per-user-drive.ts +++ b/src/services/chart/charts/schemas/per-user-drive.ts @@ -8,7 +8,6 @@ export const schema = { totalCount: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '集計期間時点での、全ドライブファイル数' }, /** @@ -17,7 +16,6 @@ export const schema = { totalSize: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '集計期間時点での、全ドライブファイルの合計サイズ' }, /** @@ -26,7 +24,6 @@ export const schema = { incCount: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '増加したドライブファイル数' }, /** @@ -35,7 +32,6 @@ export const schema = { incSize: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '増加したドライブ使用量' }, /** @@ -44,7 +40,6 @@ export const schema = { decCount: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '減少したドライブファイル数' }, /** @@ -53,7 +48,6 @@ export const schema = { decSize: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '減少したドライブ使用量' }, } }; diff --git a/src/services/chart/charts/schemas/per-user-following.ts b/src/services/chart/charts/schemas/per-user-following.ts index dffd9c2572..eaf74aaf77 100644 --- a/src/services/chart/charts/schemas/per-user-following.ts +++ b/src/services/chart/charts/schemas/per-user-following.ts @@ -12,7 +12,6 @@ export const logSchema = { total: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'フォローしている合計', }, /** @@ -21,7 +20,6 @@ export const logSchema = { inc: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'フォローした数', }, /** @@ -30,7 +28,6 @@ export const logSchema = { dec: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'フォロー解除した数', }, } }, @@ -48,7 +45,6 @@ export const logSchema = { total: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'フォローされている合計', }, /** @@ -57,7 +53,6 @@ export const logSchema = { inc: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'フォローされた数', }, /** @@ -66,7 +61,6 @@ export const logSchema = { dec: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'フォロー解除された数', }, } }, diff --git a/src/services/chart/charts/schemas/per-user-notes.ts b/src/services/chart/charts/schemas/per-user-notes.ts index 778f498c6e..72b3ff0210 100644 --- a/src/services/chart/charts/schemas/per-user-notes.ts +++ b/src/services/chart/charts/schemas/per-user-notes.ts @@ -5,19 +5,16 @@ export const schema = { total: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '集計期間時点での、全投稿数' }, inc: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '増加した投稿数' }, dec: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '減少した投稿数' }, diffs: { @@ -27,19 +24,16 @@ export const schema = { normal: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '通常の投稿数の差分' }, reply: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'リプライの投稿数の差分' }, renote: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'Renoteの投稿数の差分' }, } }, diff --git a/src/services/chart/charts/schemas/per-user-reactions.ts b/src/services/chart/charts/schemas/per-user-reactions.ts index d103124ccb..2a8520db37 100644 --- a/src/services/chart/charts/schemas/per-user-reactions.ts +++ b/src/services/chart/charts/schemas/per-user-reactions.ts @@ -5,7 +5,6 @@ export const logSchema = { count: { type: 'number' as const, optional: false as const, nullable: false as const, - description: 'リアクションされた数', }, }; diff --git a/src/services/chart/charts/schemas/test-grouped.ts b/src/services/chart/charts/schemas/test-grouped.ts index 163ec5bba3..f8c8250e79 100644 --- a/src/services/chart/charts/schemas/test-grouped.ts +++ b/src/services/chart/charts/schemas/test-grouped.ts @@ -9,19 +9,16 @@ export const schema = { total: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '' }, inc: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '' }, dec: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '' }, } } diff --git a/src/services/chart/charts/schemas/test.ts b/src/services/chart/charts/schemas/test.ts index 6142434a89..4b48d4d417 100644 --- a/src/services/chart/charts/schemas/test.ts +++ b/src/services/chart/charts/schemas/test.ts @@ -9,19 +9,16 @@ export const schema = { total: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '' }, inc: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '' }, dec: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '' }, } } diff --git a/src/services/chart/charts/schemas/users.ts b/src/services/chart/charts/schemas/users.ts index 1153369983..2bf9d3c50f 100644 --- a/src/services/chart/charts/schemas/users.ts +++ b/src/services/chart/charts/schemas/users.ts @@ -5,7 +5,6 @@ const logSchema = { total: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '集計期間時点での、全ユーザー数' }, /** @@ -14,7 +13,6 @@ const logSchema = { inc: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '増加したユーザー数' }, /** @@ -23,7 +21,6 @@ const logSchema = { dec: { type: 'number' as const, optional: false as const, nullable: false as const, - description: '減少したユーザー数' }, }; -- cgit v1.2.3-freya