From 89fb727f614822db0b38c2dc76577937fc293a1d Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 1 Jun 2021 19:17:17 +0900 Subject: [PATCH 01/15] Update type.ts --- src/remote/activitypub/type.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote/activitypub/type.ts b/src/remote/activitypub/type.ts index 98025da908..3728470686 100644 --- a/src/remote/activitypub/type.ts +++ b/src/remote/activitypub/type.ts @@ -3,7 +3,7 @@ export type ApObject = IObject | string | (IObject | string)[]; export interface IObject { '@context': string | obj | obj[]; - type: string | unknown[]; + type: string | string[]; id?: string; summary?: string; published?: string; From a5a2f9d01e36a09dae9d475c0dc4814a3bde9cb5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 1 Jun 2021 19:17:25 +0900 Subject: [PATCH 02/15] Update misskey.js --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 68f9bd75bb..683e5d3d30 100644 --- a/package.json +++ b/package.json @@ -175,7 +175,7 @@ "markdown-it-anchor": "7.1.0", "matter-js": "0.17.1", "mfm-js": "0.16.4", - "misskey-js": "0.0.2", + "misskey-js": "0.0.3", "mocha": "8.4.0", "moji": "0.5.1", "ms": "2.1.3", diff --git a/yarn.lock b/yarn.lock index 2d9284c4cc..a7295a83b7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7058,10 +7058,10 @@ minizlib@^2.0.0, minizlib@^2.1.1: minipass "^3.0.0" yallist "^4.0.0" -misskey-js@0.0.2: - version "0.0.2" - resolved "https://registry.yarnpkg.com/misskey-js/-/misskey-js-0.0.2.tgz#233d62e5a326a00dd72f36d63436e6584c8076f2" - integrity sha512-gsq3E9lUepNapK4i/3mmqjobQV6gYlgO1O1rQt401ot3LCYlcaLhlUrwBOFtI+ALMGKgwRgkLlDQhcWgAfHHuQ== +misskey-js@0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/misskey-js/-/misskey-js-0.0.3.tgz#328716a82ac240a8b46e1b74f5ae0bae0b121cf6" + integrity sha512-Z50h7J+Invly3+jbEG65aoW8XWz7F9nqHsi9TxYE7CwSxdyxF0USYP/lvZrSe8/aRFjA20zbqcLhvVpm41uNTg== dependencies: "@vue/reactivity" "^3.0.11" autobind-decorator "^2.4.0" From a5cdc9a1f4a38aea4688db5a5f000947b8e60299 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Fri, 4 Jun 2021 20:40:47 +0900 Subject: [PATCH 03/15] Add missing migrations (#7552) --- ...1622679304522-user-profile-description-length.ts | 13 +++++++++++++ migration/1622681548499-log-message-length.ts | 12 ++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 migration/1622679304522-user-profile-description-length.ts create mode 100644 migration/1622681548499-log-message-length.ts diff --git a/migration/1622679304522-user-profile-description-length.ts b/migration/1622679304522-user-profile-description-length.ts new file mode 100644 index 0000000000..015d1e24b7 --- /dev/null +++ b/migration/1622679304522-user-profile-description-length.ts @@ -0,0 +1,13 @@ +import {MigrationInterface, QueryRunner} from "typeorm"; + +export class userProfileDescriptionLength1622679304522 implements MigrationInterface { + name = 'userProfileDescriptionLength1622679304522'; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "description" TYPE character varying(2048)`, undefined); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "description" TYPE character varying(1024)`, undefined); + } +} diff --git a/migration/1622681548499-log-message-length.ts b/migration/1622681548499-log-message-length.ts new file mode 100644 index 0000000000..ef8c33982b --- /dev/null +++ b/migration/1622681548499-log-message-length.ts @@ -0,0 +1,12 @@ +import {MigrationInterface, QueryRunner} from "typeorm"; + +export class logMessageLength1622681548499 implements MigrationInterface { + name = 'logMessageLength1622681548499'; + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "log" ALTER COLUMN "message" TYPE character varying(2048)`, undefined); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "log" ALTER COLUMN "message" TYPE character varying(1024)`, undefined); + } +} From 5d66bb879464adb2f23d764a3602f967748069d0 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Sat, 5 Jun 2021 14:54:07 +0900 Subject: [PATCH 04/15] =?UTF-8?q?=E3=83=A9=E3=83=B3=E3=83=80=E3=83=A0?= =?UTF-8?q?=E3=81=AB=E3=83=86=E3=82=B9=E3=83=88=E3=81=8C=E3=82=B3=E3=82=B1?= =?UTF-8?q?=E3=82=8B=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3=20(#7553)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Test shutdown * Revert "Test shutdown" This reverts commit 85182e7dd196cdd9ecb46cfb50adaabd04c5ba60. * Skip beforeShutdown in test * Wait shutdown in test * Revert "Skip beforeShutdown in test" This reverts commit 79c33ab53615e8fa4820d2abfc2494cba55c441c. * Revert "Revert "Skip beforeShutdown in test"" This reverts commit 3423133a137c79b64f3ff6ef9dbe433a441a47b0. --- src/misc/before-shutdown.ts | 2 ++ test/api-visibility.ts | 6 +++--- test/fetch-resource.ts | 6 +++--- test/mute.ts | 6 +++--- test/note.ts | 6 +++--- test/user-notes.ts | 6 +++--- test/utils.ts | 17 +++++++++++++++++ 7 files changed, 34 insertions(+), 15 deletions(-) diff --git a/src/misc/before-shutdown.ts b/src/misc/before-shutdown.ts index 8639d42b04..33abf5fb4d 100644 --- a/src/misc/before-shutdown.ts +++ b/src/misc/before-shutdown.ts @@ -56,6 +56,8 @@ const forceExitAfter = timeout => () => { * @param {string} signalOrEvent The exit signal or event name received on the process. */ async function shutdownHandler(signalOrEvent) { + if (process.env.NODE_ENV === 'test') return process.exit(0); + console.warn(`Shutting down: received [${signalOrEvent}] signal`); for (const listener of shutdownListeners) { diff --git a/test/api-visibility.ts b/test/api-visibility.ts index 5fbea02df6..c4ec321938 100644 --- a/test/api-visibility.ts +++ b/test/api-visibility.ts @@ -12,15 +12,15 @@ process.env.NODE_ENV = 'test'; import * as assert from 'assert'; import * as childProcess from 'child_process'; -import { async, signup, request, post, launchServer } from './utils'; +import { async, signup, request, post, launchServer, shutdownServer } from './utils'; describe('API visibility', () => { let p: childProcess.ChildProcess; before(launchServer(g => p = g)); - after(() => { - p.kill(); + after(async () => { + await shutdownServer(p); }); describe('Note visibility', async () => { diff --git a/test/fetch-resource.ts b/test/fetch-resource.ts index 79a5519ddb..e9d10d1ab3 100644 --- a/test/fetch-resource.ts +++ b/test/fetch-resource.ts @@ -12,7 +12,7 @@ process.env.NODE_ENV = 'test'; import * as assert from 'assert'; import * as childProcess from 'child_process'; -import { async, launchServer, signup, post, request, simpleGet, port } from './utils'; +import { async, launchServer, signup, post, request, simpleGet, port, shutdownServer } from './utils'; import * as openapi from '@redocly/openapi-core'; // Request Accept @@ -39,8 +39,8 @@ describe('Fetch resource', () => { }); })); - after(() => { - p.kill(); + after(async () => { + await shutdownServer(p); }); describe('Common', () => { diff --git a/test/mute.ts b/test/mute.ts index 37b4a23048..38911b6e16 100644 --- a/test/mute.ts +++ b/test/mute.ts @@ -12,7 +12,7 @@ process.env.NODE_ENV = 'test'; import * as assert from 'assert'; import * as childProcess from 'child_process'; -import { async, signup, request, post, react, connectStream, launchServer } from './utils'; +import { async, signup, request, post, react, connectStream, launchServer, shutdownServer } from './utils'; describe('Mute', () => { let p: childProcess.ChildProcess; @@ -28,8 +28,8 @@ describe('Mute', () => { carol = await signup({ username: 'carol' }); })); - after(() => { - p.kill(); + after(async () => { + await shutdownServer(p); }); it('ミュート作成', async(async () => { diff --git a/test/note.ts b/test/note.ts index 70ebecff1c..3f17005771 100644 --- a/test/note.ts +++ b/test/note.ts @@ -12,7 +12,7 @@ process.env.NODE_ENV = 'test'; import * as assert from 'assert'; import * as childProcess from 'child_process'; -import { async, signup, request, post, uploadFile, launchServer } from './utils'; +import { async, signup, request, post, uploadFile, launchServer, shutdownServer } from './utils'; import { Note } from '../src/models/entities/note'; import { initDb } from '../src/db/postgre'; @@ -30,8 +30,8 @@ describe('Note', () => { bob = await signup({ username: 'bob' }); })); - after(() => { - p.kill(); + after(async () => { + await shutdownServer(p); }); it('投稿できる', async(async () => { diff --git a/test/user-notes.ts b/test/user-notes.ts index 349d5fdb7c..4af8ce0cc7 100644 --- a/test/user-notes.ts +++ b/test/user-notes.ts @@ -12,7 +12,7 @@ process.env.NODE_ENV = 'test'; import * as assert from 'assert'; import * as childProcess from 'child_process'; -import { async, signup, request, post, uploadFile, launchServer } from './utils'; +import { async, signup, request, post, uploadFile, launchServer, shutdownServer } from './utils'; describe('users/notes', () => { let p: childProcess.ChildProcess; @@ -37,8 +37,8 @@ describe('users/notes', () => { }); })); - after(() => { - p.kill(); + after(async() => { + await shutdownServer(p); }); it('ファイルタイプ指定 (jpg)', async(async () => { diff --git a/test/utils.ts b/test/utils.ts index 193017e265..e4c96d0e15 100644 --- a/test/utils.ts +++ b/test/utils.ts @@ -5,6 +5,7 @@ const FormData = require('form-data'); import * as childProcess from 'child_process'; import * as http from 'http'; import loadConfig from '../src/config/load'; +import { SIGKILL } from 'constants'; export const port = loadConfig().port; @@ -145,3 +146,19 @@ export function launchServer(callbackSpawnedProcess: (p: childProcess.ChildProce }); }; } + +export function shutdownServer(p: childProcess.ChildProcess, timeout = 20 * 1000) { + return new Promise((res, rej) => { + const t = setTimeout(() => { + p.kill(SIGKILL); + res('force exit'); + }, timeout); + + p.once('exit', () => { + clearTimeout(t); + res('exited'); + }); + + p.kill(); + }); +} From 441790be2dfa7834a32255be56600866fd730c50 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Sat, 5 Jun 2021 14:55:41 +0900 Subject: [PATCH 05/15] Fix resync-remote-user (#7556) * Fix resync-remote-user * tune --- src/tools/resync-remote-user.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tools/resync-remote-user.ts b/src/tools/resync-remote-user.ts index 9897cba9f8..d9685ee4b7 100644 --- a/src/tools/resync-remote-user.ts +++ b/src/tools/resync-remote-user.ts @@ -1,7 +1,10 @@ +import { initDb } from '@/db/postgre'; import parseAcct from '@/misc/acct/parse'; -import { resolveUser } from '../remote/resolve-user'; async function main(acct: string): Promise { + await initDb(); + const { resolveUser } = await import('../remote/resolve-user'); + const { username, host } = parseAcct(acct); await resolveUser(username, host, {}, true); } From fa1b38394c6e89b777056124ee3160a342a548d5 Mon Sep 17 00:00:00 2001 From: mint Date: Sat, 5 Jun 2021 01:57:52 -0400 Subject: [PATCH 06/15] Updated divisions to math.div (#7549) * Updated divisions to math.div on Reversi (game.board.vue) * Update src/client/pages/reversi/game.board.vue Co-authored-by: syuilo * Oops. Forgot to put it all through parenthesis * Imported sass:math * Fixes on drive.vue * Forgot the stupid comma Co-authored-by: syuilo --- src/client/pages/reversi/game.board.vue | 11 +++++++---- src/client/pages/settings/drive.vue | 7 +++++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/client/pages/reversi/game.board.vue b/src/client/pages/reversi/game.board.vue index 78bcf03413..0dd36faced 100644 --- a/src/client/pages/reversi/game.board.vue +++ b/src/client/pages/reversi/game.board.vue @@ -350,6 +350,9 @@ export default defineComponent({ From 6b312f755eb171df0afd95a2d4e51cfd7300fa16 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 8 Jun 2021 14:09:32 +0900 Subject: [PATCH 10/15] Remove endpoint descriptions #6627 --- src/server/api/endpoints.ts | 3 - .../api/endpoints/admin/abuse-user-reports.ts | 5 - .../api/endpoints/admin/accounts/create.ts | 5 - .../endpoints/admin/announcements/create.ts | 5 - .../endpoints/admin/announcements/delete.ts | 5 - .../api/endpoints/admin/announcements/list.ts | 5 - .../endpoints/admin/announcements/update.ts | 5 - .../admin/delete-all-files-of-a-user.ts | 9 - src/server/api/endpoints/admin/delete-logs.ts | 5 - .../admin/drive/clean-remote-files.ts | 5 - .../api/endpoints/admin/drive/cleanup.ts | 5 - src/server/api/endpoints/admin/drive/files.ts | 5 - src/server/api/endpoints/admin/emoji/add.ts | 4 - src/server/api/endpoints/admin/emoji/copy.ts | 5 - .../api/endpoints/admin/emoji/list-remote.ts | 5 - src/server/api/endpoints/admin/emoji/list.ts | 5 - .../api/endpoints/admin/emoji/remove.ts | 4 - .../api/endpoints/admin/emoji/update.ts | 4 - .../admin/federation/delete-all-files.ts | 5 - .../admin/federation/remove-all-following.ts | 5 - .../admin/federation/update-instance.ts | 5 - .../api/endpoints/admin/get-table-stats.ts | 5 - src/server/api/endpoints/admin/invite.ts | 5 - src/server/api/endpoints/admin/logs.ts | 5 - .../api/endpoints/admin/moderators/add.ts | 9 - .../api/endpoints/admin/moderators/remove.ts | 9 - .../api/endpoints/admin/promo/create.ts | 5 - src/server/api/endpoints/admin/queue/clear.ts | 5 - .../endpoints/admin/queue/deliver-delayed.ts | 5 - .../endpoints/admin/queue/inbox-delayed.ts | 5 - src/server/api/endpoints/admin/queue/jobs.ts | 5 - src/server/api/endpoints/admin/queue/stats.ts | 5 - src/server/api/endpoints/admin/relays/add.ts | 5 - src/server/api/endpoints/admin/relays/list.ts | 5 - .../api/endpoints/admin/relays/remove.ts | 5 - .../api/endpoints/admin/reset-password.ts | 9 - .../admin/resolve-abuse-user-report.ts | 5 - .../api/endpoints/admin/resync-chart.ts | 5 - src/server/api/endpoints/admin/send-email.ts | 5 - src/server/api/endpoints/admin/server-info.ts | 5 - .../endpoints/admin/show-moderation-logs.ts | 5 - src/server/api/endpoints/admin/show-user.ts | 9 - src/server/api/endpoints/admin/show-users.ts | 5 - .../api/endpoints/admin/silence-user.ts | 9 - .../api/endpoints/admin/suspend-user.ts | 9 - .../api/endpoints/admin/unsilence-user.ts | 9 - .../api/endpoints/admin/unsuspend-user.ts | 9 - src/server/api/endpoints/admin/update-meta.ts | 159 ------------------ src/server/api/endpoints/admin/vacuum.ts | 5 - src/server/api/endpoints/announcements.ts | 5 - src/server/api/endpoints/antennas/create.ts | 5 - src/server/api/endpoints/antennas/delete.ts | 5 - src/server/api/endpoints/antennas/list.ts | 5 - src/server/api/endpoints/antennas/notes.ts | 5 - src/server/api/endpoints/antennas/show.ts | 5 - src/server/api/endpoints/antennas/update.ts | 5 - src/server/api/endpoints/ap/get.ts | 8 - src/server/api/endpoints/ap/show.ts | 8 - src/server/api/endpoints/app/create.ts | 21 --- .../api/endpoints/auth/session/generate.ts | 9 - src/server/api/endpoints/auth/session/show.ts | 4 - .../api/endpoints/auth/session/userkey.ts | 8 - src/server/api/endpoints/blocking/create.ts | 9 - src/server/api/endpoints/blocking/delete.ts | 9 - src/server/api/endpoints/blocking/list.ts | 5 - src/server/api/endpoints/channels/timeline.ts | 18 -- .../api/endpoints/charts/active-users.ts | 10 -- src/server/api/endpoints/charts/drive.ts | 10 -- src/server/api/endpoints/charts/federation.ts | 10 -- src/server/api/endpoints/charts/hashtag.ts | 13 -- src/server/api/endpoints/charts/instance.ts | 14 -- src/server/api/endpoints/charts/network.ts | 10 -- src/server/api/endpoints/charts/notes.ts | 10 -- src/server/api/endpoints/charts/user/drive.ts | 14 -- .../api/endpoints/charts/user/following.ts | 14 -- src/server/api/endpoints/charts/user/notes.ts | 14 -- .../api/endpoints/charts/user/reactions.ts | 14 -- src/server/api/endpoints/charts/users.ts | 10 -- src/server/api/endpoints/drive.ts | 5 - src/server/api/endpoints/drive/files.ts | 5 - .../endpoints/drive/files/attached-notes.ts | 9 - .../endpoints/drive/files/check-existence.ts | 8 - .../api/endpoints/drive/files/create.ts | 18 -- .../api/endpoints/drive/files/delete.ts | 9 - .../api/endpoints/drive/files/find-by-hash.ts | 7 - src/server/api/endpoints/drive/files/find.ts | 3 - src/server/api/endpoints/drive/files/show.ts | 13 -- .../api/endpoints/drive/files/update.ts | 22 --- .../endpoints/drive/files/upload-from-url.ts | 11 -- src/server/api/endpoints/drive/folders.ts | 5 - .../api/endpoints/drive/folders/create.ts | 13 -- .../api/endpoints/drive/folders/delete.ts | 9 - .../api/endpoints/drive/folders/find.ts | 3 - .../api/endpoints/drive/folders/show.ts | 9 - .../api/endpoints/drive/folders/update.ts | 17 -- src/server/api/endpoints/endpoints.ts | 5 - .../federation/update-remote-user.ts | 9 - src/server/api/endpoints/following/create.ts | 9 - src/server/api/endpoints/following/delete.ts | 9 - .../endpoints/following/requests/accept.ts | 9 - .../endpoints/following/requests/cancel.ts | 9 - .../api/endpoints/following/requests/list.ts | 5 - .../endpoints/following/requests/reject.ts | 9 - .../games/reversi/games/surrender.ts | 7 - .../api/endpoints/games/reversi/match.ts | 4 - src/server/api/endpoints/hashtags/search.ts | 13 -- src/server/api/endpoints/hashtags/show.ts | 8 - src/server/api/endpoints/i.ts | 4 - src/server/api/endpoints/i/favorites.ts | 5 - src/server/api/endpoints/i/notifications.ts | 5 - src/server/api/endpoints/i/page-likes.ts | 5 - src/server/api/endpoints/i/pages.ts | 5 - src/server/api/endpoints/i/pin.ts | 8 - .../i/read-all-messaging-messages.ts | 5 - .../api/endpoints/i/read-all-unread-notes.ts | 5 - .../api/endpoints/i/read-announcement.ts | 5 - src/server/api/endpoints/i/unpin.ts | 8 - src/server/api/endpoints/i/update.ts | 53 ------ .../api/endpoints/i/user-group-invites.ts | 5 - src/server/api/endpoints/messaging/history.ts | 5 - .../api/endpoints/messaging/messages.ts | 13 -- .../endpoints/messaging/messages/create.ts | 13 -- .../endpoints/messaging/messages/delete.ts | 9 - .../api/endpoints/messaging/messages/read.ts | 9 - src/server/api/endpoints/meta.ts | 5 - src/server/api/endpoints/mute/create.ts | 9 - src/server/api/endpoints/mute/delete.ts | 9 - src/server/api/endpoints/mute/list.ts | 5 - src/server/api/endpoints/my/apps.ts | 5 - src/server/api/endpoints/notes.ts | 19 --- src/server/api/endpoints/notes/children.ts | 9 - .../api/endpoints/notes/conversation.ts | 9 - src/server/api/endpoints/notes/create.ts | 49 ------ src/server/api/endpoints/notes/delete.ts | 9 - .../api/endpoints/notes/favorites/create.ts | 9 - .../api/endpoints/notes/favorites/delete.ts | 9 - src/server/api/endpoints/notes/featured.ts | 8 - .../api/endpoints/notes/global-timeline.ts | 7 - .../api/endpoints/notes/hybrid-timeline.ts | 31 ---- .../api/endpoints/notes/local-timeline.ts | 13 -- src/server/api/endpoints/notes/mentions.ts | 5 - .../endpoints/notes/polls/recommendation.ts | 5 - src/server/api/endpoints/notes/polls/vote.ts | 9 - src/server/api/endpoints/notes/reactions.ts | 9 - .../api/endpoints/notes/reactions/create.ts | 11 -- .../api/endpoints/notes/reactions/delete.ts | 9 - src/server/api/endpoints/notes/renotes.ts | 9 - src/server/api/endpoints/notes/replies.ts | 15 -- .../api/endpoints/notes/search-by-tag.ts | 28 --- src/server/api/endpoints/notes/search.ts | 5 - src/server/api/endpoints/notes/show.ts | 9 - src/server/api/endpoints/notes/state.ts | 9 - src/server/api/endpoints/notes/timeline.ts | 32 ---- src/server/api/endpoints/notes/unrenote.ts | 8 - .../api/endpoints/notes/user-list-timeline.ts | 35 ---- .../api/endpoints/notes/watching/create.ts | 9 - .../api/endpoints/notes/watching/delete.ts | 9 - .../api/endpoints/notifications/create.ts | 4 - .../notifications/mark-all-as-read.ts | 5 - src/server/api/endpoints/pages/create.ts | 4 - src/server/api/endpoints/pages/delete.ts | 8 - src/server/api/endpoints/pages/like.ts | 8 - src/server/api/endpoints/pages/show.ts | 8 - src/server/api/endpoints/pages/unlike.ts | 8 - src/server/api/endpoints/pages/update.ts | 8 - src/server/api/endpoints/promo/read.ts | 5 - src/server/api/endpoints/room/show.ts | 8 - src/server/api/endpoints/stats.ts | 5 - .../api/endpoints/username/available.ts | 5 - src/server/api/endpoints/users.ts | 5 - src/server/api/endpoints/users/followers.ts | 9 - src/server/api/endpoints/users/following.ts | 9 - .../users/get-frequently-replied-users.ts | 4 - .../api/endpoints/users/groups/create.ts | 5 - .../api/endpoints/users/groups/delete.ts | 9 - .../users/groups/invitations/accept.ts | 9 - .../users/groups/invitations/reject.ts | 9 - .../api/endpoints/users/groups/invite.ts | 9 - .../api/endpoints/users/groups/joined.ts | 4 - .../api/endpoints/users/groups/owned.ts | 4 - src/server/api/endpoints/users/groups/pull.ts | 9 - src/server/api/endpoints/users/groups/show.ts | 5 - .../api/endpoints/users/groups/transfer.ts | 9 - .../api/endpoints/users/groups/update.ts | 13 -- .../api/endpoints/users/lists/create.ts | 5 - .../api/endpoints/users/lists/delete.ts | 9 - src/server/api/endpoints/users/lists/list.ts | 4 - src/server/api/endpoints/users/lists/pull.ts | 9 - src/server/api/endpoints/users/lists/push.ts | 9 - src/server/api/endpoints/users/lists/show.ts | 5 - .../api/endpoints/users/lists/update.ts | 13 -- src/server/api/endpoints/users/notes.ts | 39 ----- .../api/endpoints/users/recommendation.ts | 4 - src/server/api/endpoints/users/relation.ts | 7 - .../api/endpoints/users/report-abuse.ts | 11 -- .../users/search-by-username-and-host.ts | 19 --- src/server/api/endpoints/users/search.ts | 19 --- src/server/api/endpoints/users/show.ts | 11 -- 198 files changed, 1904 deletions(-) diff --git a/src/server/api/endpoints.ts b/src/server/api/endpoints.ts index 9847cd2bb6..24b58b873c 100644 --- a/src/server/api/endpoints.ts +++ b/src/server/api/endpoints.ts @@ -8,15 +8,12 @@ export type Param = { transform?: any; default?: any; deprecated?: boolean; - desc?: { [key: string]: string }; ref?: string; }; export interface IEndpointMeta { stability?: string; //'deprecated' | 'experimental' | 'stable'; - desc?: { [key: string]: string }; - tags?: string[]; params?: { diff --git a/src/server/api/endpoints/admin/abuse-user-reports.ts b/src/server/api/endpoints/admin/abuse-user-reports.ts index 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, diff --git a/src/server/api/endpoints/announcements.ts b/src/server/api/endpoints/announcements.ts index a7c477bc7c..f5d07d8080 100644 --- a/src/server/api/endpoints/announcements.ts +++ b/src/server/api/endpoints/announcements.ts @@ -5,11 +5,6 @@ import { Announcements, AnnouncementReads } from '../../../models'; import { makePaginationQuery } from '../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': 'アナウンスを表示します。', - 'en-US': 'Show announcements.' - }, - tags: ['meta'], requireCredential: false as const, diff --git a/src/server/api/endpoints/antennas/create.ts b/src/server/api/endpoints/antennas/create.ts index 04ca21bba7..bff3c09f1c 100644 --- a/src/server/api/endpoints/antennas/create.ts +++ b/src/server/api/endpoints/antennas/create.ts @@ -7,11 +7,6 @@ import { ApiError } from '../../error'; import { publishInternalEvent } from '../../../../services/stream'; export const meta = { - desc: { - 'ja-JP': 'アンテナを作成します。', - 'en-US': 'Create a antenna.' - }, - tags: ['antennas'], requireCredential: true as const, diff --git a/src/server/api/endpoints/antennas/delete.ts b/src/server/api/endpoints/antennas/delete.ts index 5d617bb5b5..10a212897b 100644 --- a/src/server/api/endpoints/antennas/delete.ts +++ b/src/server/api/endpoints/antennas/delete.ts @@ -6,11 +6,6 @@ import { Antennas } from '../../../../models'; import { publishInternalEvent } from '../../../../services/stream'; export const meta = { - desc: { - 'ja-JP': 'アンテナを削除します。', - 'en-US': 'Delete a antenna.' - }, - tags: ['antennas'], requireCredential: true as const, diff --git a/src/server/api/endpoints/antennas/list.ts b/src/server/api/endpoints/antennas/list.ts index bc9685887f..6ae3c0cbb2 100644 --- a/src/server/api/endpoints/antennas/list.ts +++ b/src/server/api/endpoints/antennas/list.ts @@ -2,11 +2,6 @@ import define from '../../define'; import { Antennas } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': 'アンテナの一覧を取得します。', - 'en-US': 'Get a list of antennas.' - }, - tags: ['antennas', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/antennas/notes.ts b/src/server/api/endpoints/antennas/notes.ts index 456c1b6e00..a244f7f9b4 100644 --- a/src/server/api/endpoints/antennas/notes.ts +++ b/src/server/api/endpoints/antennas/notes.ts @@ -8,11 +8,6 @@ import { generateMutedUserQuery } from '../../common/generate-muted-user-query'; import { ApiError } from '../../error'; export const meta = { - desc: { - 'ja-JP': '指定したアンテナのノート一覧を表示します。', - 'en-US': 'Displays a list of notes for the specified antenna.' - }, - tags: ['antennas', 'account', 'notes'], requireCredential: true as const, diff --git a/src/server/api/endpoints/antennas/show.ts b/src/server/api/endpoints/antennas/show.ts index af2a28b793..36045e47a4 100644 --- a/src/server/api/endpoints/antennas/show.ts +++ b/src/server/api/endpoints/antennas/show.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../error'; import { Antennas } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したアンテナの情報を取得します。', - 'en-US': 'Acquires the information of the specified antenna.' - }, - tags: ['antennas', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/antennas/update.ts b/src/server/api/endpoints/antennas/update.ts index 17b0f854f3..9194c14795 100644 --- a/src/server/api/endpoints/antennas/update.ts +++ b/src/server/api/endpoints/antennas/update.ts @@ -6,11 +6,6 @@ import { Antennas, UserLists, UserGroupJoinings } from '../../../../models'; import { publishInternalEvent } from '../../../../services/stream'; export const meta = { - desc: { - 'ja-JP': 'アンテナの情報を更新します。', - 'en-US': 'Updates the information of the specified antenna.' - }, - tags: ['antennas'], requireCredential: true as const, diff --git a/src/server/api/endpoints/ap/get.ts b/src/server/api/endpoints/ap/get.ts index c889d472bb..f2b4c2408f 100644 --- a/src/server/api/endpoints/ap/get.ts +++ b/src/server/api/endpoints/ap/get.ts @@ -6,19 +6,11 @@ import { ApiError } from '../../error'; export const meta = { tags: ['federation'], - desc: { - 'ja-JP': 'URIを指定してActivityPubオブジェクトを参照します。', - 'en-US': 'Browse to the ActivityPub object by specifying the URI.' - }, - requireCredential: false as const, params: { uri: { validator: $.str, - desc: { - 'ja-JP': 'ActivityPubオブジェクトのURI' - } }, }, diff --git a/src/server/api/endpoints/ap/show.ts b/src/server/api/endpoints/ap/show.ts index b4df1ad4d7..7f61055bfa 100644 --- a/src/server/api/endpoints/ap/show.ts +++ b/src/server/api/endpoints/ap/show.ts @@ -15,19 +15,11 @@ import { isActor, isPost, getApId } from '../../../../remote/activitypub/type'; export const meta = { tags: ['federation'], - desc: { - 'ja-JP': 'URIを指定してActivityPubオブジェクトを参照します。', - 'en-US': 'Browse to the ActivityPub object by specifying the URI.' - }, - requireCredential: false as const, params: { uri: { validator: $.str, - desc: { - 'ja-JP': 'ActivityPubオブジェクトのURI' - } }, }, diff --git a/src/server/api/endpoints/app/create.ts b/src/server/api/endpoints/app/create.ts index db72bd1c42..b5629e4436 100644 --- a/src/server/api/endpoints/app/create.ts +++ b/src/server/api/endpoints/app/create.ts @@ -10,44 +10,23 @@ export const meta = { requireCredential: false as const, - desc: { - 'ja-JP': 'アプリを作成します。', - 'en-US': 'Create a application.' - }, - params: { name: { validator: $.str, - desc: { - 'ja-JP': 'アプリの名前', - 'en-US': 'Name of application' - } }, description: { validator: $.str, - desc: { - 'ja-JP': 'アプリの説明', - 'en-US': 'Description of application' - } }, permission: { validator: $.arr($.str).unique(), - desc: { - 'ja-JP': 'このアプリに割り当てる権限(権限については"Permissions"を参照)', - 'en-US': 'Permissions assigned to this app (see "Permissions" for the permissions)' - } }, // TODO: Check it is valid url callbackUrl: { validator: $.optional.nullable.str, default: null as any, - desc: { - 'ja-JP': 'アプリ認証時にコールバックするURL', - 'en-US': 'URL to call back at app authentication' - } }, }, diff --git a/src/server/api/endpoints/auth/session/generate.ts b/src/server/api/endpoints/auth/session/generate.ts index e0d003c499..ca004e9b19 100644 --- a/src/server/api/endpoints/auth/session/generate.ts +++ b/src/server/api/endpoints/auth/session/generate.ts @@ -11,18 +11,9 @@ export const meta = { requireCredential: false as const, - desc: { - 'ja-JP': 'アプリを認証するためのトークンを作成します。', - 'en-US': 'Generate a token for authorize application.' - }, - params: { appSecret: { validator: $.str, - desc: { - 'ja-JP': 'アプリケーションのシークレットキー', - 'en-US': 'The secret key of your application.' - } } }, diff --git a/src/server/api/endpoints/auth/session/show.ts b/src/server/api/endpoints/auth/session/show.ts index 9e0d6d90a4..fd20884c02 100644 --- a/src/server/api/endpoints/auth/session/show.ts +++ b/src/server/api/endpoints/auth/session/show.ts @@ -11,10 +11,6 @@ export const meta = { params: { token: { validator: $.str, - desc: { - 'ja-JP': 'セッションのトークン', - 'en-US': 'The token of a session.' - } } }, diff --git a/src/server/api/endpoints/auth/session/userkey.ts b/src/server/api/endpoints/auth/session/userkey.ts index 68d0c7bdf1..e015be20eb 100644 --- a/src/server/api/endpoints/auth/session/userkey.ts +++ b/src/server/api/endpoints/auth/session/userkey.ts @@ -11,18 +11,10 @@ export const meta = { params: { appSecret: { validator: $.str, - desc: { - 'ja-JP': 'アプリケーションのシークレットキー', - 'en-US': 'The secret key of your application.' - } }, token: { validator: $.str, - desc: { - 'ja-JP': 'セッションのトークン', - 'en-US': 'The token of a session.' - } } }, diff --git a/src/server/api/endpoints/blocking/create.ts b/src/server/api/endpoints/blocking/create.ts index 60fde8ad78..dd976a7bf1 100644 --- a/src/server/api/endpoints/blocking/create.ts +++ b/src/server/api/endpoints/blocking/create.ts @@ -8,11 +8,6 @@ import { getUser } from '../../common/getters'; import { Blockings, NoteWatchings, Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーをブロックします。', - 'en-US': 'Block a user.' - }, - tags: ['account'], limit: { @@ -27,10 +22,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/blocking/delete.ts b/src/server/api/endpoints/blocking/delete.ts index 8caa3efc88..71927fa727 100644 --- a/src/server/api/endpoints/blocking/delete.ts +++ b/src/server/api/endpoints/blocking/delete.ts @@ -8,11 +8,6 @@ import { getUser } from '../../common/getters'; import { Blockings, Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーのブロックを解除します。', - 'en-US': 'Unblock a user.' - }, - tags: ['account'], limit: { @@ -27,10 +22,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/blocking/list.ts b/src/server/api/endpoints/blocking/list.ts index fe8706b5c2..db849338ac 100644 --- a/src/server/api/endpoints/blocking/list.ts +++ b/src/server/api/endpoints/blocking/list.ts @@ -5,11 +5,6 @@ import { Blockings } from '../../../../models'; import { makePaginationQuery } from '../../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': 'ブロックしているユーザー一覧を取得します。', - 'en-US': 'Get blocking users.' - }, - tags: ['account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/channels/timeline.ts b/src/server/api/endpoints/channels/timeline.ts index 494221010a..9e5ecdeeb3 100644 --- a/src/server/api/endpoints/channels/timeline.ts +++ b/src/server/api/endpoints/channels/timeline.ts @@ -14,45 +14,27 @@ export const meta = { params: { channelId: { validator: $.type(ID), - desc: { - 'ja-JP': 'チャンネルのID' - } }, limit: { validator: $.optional.num.range(1, 100), default: 10, - desc: { - 'ja-JP': '最大数' - } }, sinceId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより新しい投稿を取得します' - } }, untilId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより古い投稿を取得します' - } }, sinceDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより新しい投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, untilDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより古い投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, }, diff --git a/src/server/api/endpoints/charts/active-users.ts b/src/server/api/endpoints/charts/active-users.ts index df427ff4b7..fb177e5c94 100644 --- a/src/server/api/endpoints/charts/active-users.ts +++ b/src/server/api/endpoints/charts/active-users.ts @@ -4,26 +4,16 @@ import { convertLog } from '../../../../services/chart/core'; import { activeUsersChart } from '../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'アクティブユーザーのチャートを取得します。' - }, - tags: ['charts', 'users'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { diff --git a/src/server/api/endpoints/charts/drive.ts b/src/server/api/endpoints/charts/drive.ts index e1f279fa0a..ba6556c597 100644 --- a/src/server/api/endpoints/charts/drive.ts +++ b/src/server/api/endpoints/charts/drive.ts @@ -4,26 +4,16 @@ import { convertLog } from '../../../../services/chart/core'; import { driveChart } from '../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'ドライブのチャートを取得します。' - }, - tags: ['charts', 'drive'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { diff --git a/src/server/api/endpoints/charts/federation.ts b/src/server/api/endpoints/charts/federation.ts index 581e42f307..46eb87ac02 100644 --- a/src/server/api/endpoints/charts/federation.ts +++ b/src/server/api/endpoints/charts/federation.ts @@ -4,26 +4,16 @@ import { convertLog } from '../../../../services/chart/core'; import { federationChart } from '../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'フェデレーションのチャートを取得します。' - }, - tags: ['charts'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { diff --git a/src/server/api/endpoints/charts/hashtag.ts b/src/server/api/endpoints/charts/hashtag.ts index 1aa5c86b35..5c2875ddd2 100644 --- a/src/server/api/endpoints/charts/hashtag.ts +++ b/src/server/api/endpoints/charts/hashtag.ts @@ -4,26 +4,16 @@ import { convertLog } from '../../../../services/chart/core'; import { hashtagChart } from '../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'ハッシュタグごとのチャートを取得します。' - }, - tags: ['charts', 'hashtags'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { @@ -33,9 +23,6 @@ export const meta = { tag: { validator: $.str, - desc: { - 'ja-JP': '対象のハッシュタグ' - } }, }, diff --git a/src/server/api/endpoints/charts/instance.ts b/src/server/api/endpoints/charts/instance.ts index f0f85ed71a..9375992d21 100644 --- a/src/server/api/endpoints/charts/instance.ts +++ b/src/server/api/endpoints/charts/instance.ts @@ -4,26 +4,16 @@ import { convertLog } from '../../../../services/chart/core'; import { instanceChart } from '../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'インスタンスごとのチャートを取得します。' - }, - tags: ['charts'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { @@ -33,10 +23,6 @@ export const meta = { host: { validator: $.str, - desc: { - 'ja-JP': '対象のインスタンスのホスト', - 'en-US': 'Target instance host' - } } }, diff --git a/src/server/api/endpoints/charts/network.ts b/src/server/api/endpoints/charts/network.ts index d1337681a9..d1fd404239 100644 --- a/src/server/api/endpoints/charts/network.ts +++ b/src/server/api/endpoints/charts/network.ts @@ -4,26 +4,16 @@ import { convertLog } from '../../../../services/chart/core'; import { networkChart } from '../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'ネットワークのチャートを取得します。' - }, - tags: ['charts'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { diff --git a/src/server/api/endpoints/charts/notes.ts b/src/server/api/endpoints/charts/notes.ts index 74aa48b36e..7141fe3b0a 100644 --- a/src/server/api/endpoints/charts/notes.ts +++ b/src/server/api/endpoints/charts/notes.ts @@ -4,26 +4,16 @@ import { convertLog } from '../../../../services/chart/core'; import { notesChart } from '../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': '投稿のチャートを取得します。' - }, - tags: ['charts', 'notes'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { diff --git a/src/server/api/endpoints/charts/user/drive.ts b/src/server/api/endpoints/charts/user/drive.ts index 7f4218b924..bacb022c81 100644 --- a/src/server/api/endpoints/charts/user/drive.ts +++ b/src/server/api/endpoints/charts/user/drive.ts @@ -5,26 +5,16 @@ import { convertLog } from '../../../../../services/chart/core'; import { perUserDriveChart } from '../../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'ユーザーごとのドライブのチャートを取得します。' - }, - tags: ['charts', 'drive', 'users'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { @@ -34,10 +24,6 @@ export const meta = { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/charts/user/following.ts b/src/server/api/endpoints/charts/user/following.ts index 63eb90a49a..ce41c231ba 100644 --- a/src/server/api/endpoints/charts/user/following.ts +++ b/src/server/api/endpoints/charts/user/following.ts @@ -5,26 +5,16 @@ import { convertLog } from '../../../../../services/chart/core'; import { perUserFollowingChart } from '../../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'ユーザーごとのフォロー/フォロワーのチャートを取得します。' - }, - tags: ['charts', 'users', 'following'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { @@ -34,10 +24,6 @@ export const meta = { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/charts/user/notes.ts b/src/server/api/endpoints/charts/user/notes.ts index 87425e3dc8..470b7274bd 100644 --- a/src/server/api/endpoints/charts/user/notes.ts +++ b/src/server/api/endpoints/charts/user/notes.ts @@ -5,26 +5,16 @@ import { convertLog } from '../../../../../services/chart/core'; import { perUserNotesChart } from '../../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'ユーザーごとの投稿のチャートを取得します。' - }, - tags: ['charts', 'users', 'notes'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { @@ -34,10 +24,6 @@ export const meta = { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/charts/user/reactions.ts b/src/server/api/endpoints/charts/user/reactions.ts index 7ded604ac2..4ebe4623c0 100644 --- a/src/server/api/endpoints/charts/user/reactions.ts +++ b/src/server/api/endpoints/charts/user/reactions.ts @@ -5,26 +5,16 @@ import { convertLog } from '../../../../../services/chart/core'; import { perUserReactionsChart } from '../../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'ユーザーごとの被リアクション数のチャートを取得します。' - }, - tags: ['charts', 'users', 'reactions'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { @@ -34,10 +24,6 @@ export const meta = { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/charts/users.ts b/src/server/api/endpoints/charts/users.ts index 18eec384a6..4246a18e59 100644 --- a/src/server/api/endpoints/charts/users.ts +++ b/src/server/api/endpoints/charts/users.ts @@ -4,26 +4,16 @@ import { convertLog } from '../../../../services/chart/core'; import { usersChart } from '../../../../services/chart'; export const meta = { - desc: { - 'ja-JP': 'ユーザーのチャートを取得します。' - }, - tags: ['charts', 'users'], params: { span: { validator: $.str.or(['day', 'hour']), - desc: { - 'ja-JP': '集計のスパン (day または hour)' - } }, limit: { validator: $.optional.num.range(1, 500), default: 30, - desc: { - 'ja-JP': '最大数。例えば 30 を指定したとすると、スパンが"day"の場合は30日分のデータが、スパンが"hour"の場合は30時間分のデータが返ります。' - } }, offset: { diff --git a/src/server/api/endpoints/drive.ts b/src/server/api/endpoints/drive.ts index 0100d4da79..2feb72ae12 100644 --- a/src/server/api/endpoints/drive.ts +++ b/src/server/api/endpoints/drive.ts @@ -3,11 +3,6 @@ import { fetchMeta } from '@/misc/fetch-meta'; import { DriveFiles } from '../../../models'; export const meta = { - desc: { - 'ja-JP': 'ドライブの情報を取得します。', - 'en-US': 'Get drive information.' - }, - tags: ['drive', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/drive/files.ts b/src/server/api/endpoints/drive/files.ts index 85dc07cc16..60cb8c5134 100644 --- a/src/server/api/endpoints/drive/files.ts +++ b/src/server/api/endpoints/drive/files.ts @@ -5,11 +5,6 @@ import { DriveFiles } from '../../../../models'; import { makePaginationQuery } from '../../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': 'ドライブのファイル一覧を取得します。', - 'en-US': 'Get files of drive.' - }, - tags: ['drive'], requireCredential: true as const, diff --git a/src/server/api/endpoints/drive/files/attached-notes.ts b/src/server/api/endpoints/drive/files/attached-notes.ts index ea09581ba9..dafbf30fbb 100644 --- a/src/server/api/endpoints/drive/files/attached-notes.ts +++ b/src/server/api/endpoints/drive/files/attached-notes.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../../error'; import { DriveFiles, Notes } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したドライブのファイルが添付されている投稿一覧を取得します。', - 'en-US': 'Get the notes that specified file of drive attached.' - }, - tags: ['drive', 'notes'], requireCredential: true as const, @@ -19,10 +14,6 @@ export const meta = { params: { fileId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のファイルID', - 'en-US': 'Target file ID' - } } }, diff --git a/src/server/api/endpoints/drive/files/check-existence.ts b/src/server/api/endpoints/drive/files/check-existence.ts index f1741cf086..b20be44072 100644 --- a/src/server/api/endpoints/drive/files/check-existence.ts +++ b/src/server/api/endpoints/drive/files/check-existence.ts @@ -3,11 +3,6 @@ import define from '../../../define'; import { DriveFiles } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '与えられたMD5ハッシュ値を持つファイルがドライブに存在するかどうかを返します。', - 'en-US': 'Returns whether the file with the given MD5 hash exists in the user\'s drive.' - }, - tags: ['drive'], requireCredential: true as const, @@ -17,9 +12,6 @@ export const meta = { params: { md5: { validator: $.str, - desc: { - 'ja-JP': 'ファイルのMD5ハッシュ' - } } }, diff --git a/src/server/api/endpoints/drive/files/create.ts b/src/server/api/endpoints/drive/files/create.ts index 82ff04e092..7da9a20f8f 100644 --- a/src/server/api/endpoints/drive/files/create.ts +++ b/src/server/api/endpoints/drive/files/create.ts @@ -8,11 +8,6 @@ import { ApiError } from '../../../error'; import { DriveFiles } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': 'ドライブにファイルをアップロードします。', - 'en-US': 'Upload a file to drive.' - }, - tags: ['drive'], requireCredential: true as const, @@ -30,36 +25,23 @@ export const meta = { folderId: { validator: $.optional.nullable.type(ID), default: null as any, - desc: { - 'ja-JP': 'フォルダID' - } }, name: { validator: $.optional.nullable.str, default: null as any, - desc: { - 'ja-JP': 'ファイル名(拡張子があるなら含めて)' - } }, isSensitive: { validator: $.optional.either($.bool, $.str), default: false, transform: (v: any): boolean => v === true || v === 'true', - desc: { - 'ja-JP': 'このメディアが「閲覧注意」(NSFW)かどうか', - 'en-US': 'Whether this media is NSFW' - } }, force: { validator: $.optional.either($.bool, $.str), default: false, transform: (v: any): boolean => v === true || v === 'true', - desc: { - 'ja-JP': 'true にすると、同じハッシュを持つファイルが既にアップロードされていても強制的にファイルを作成します。', - } } }, diff --git a/src/server/api/endpoints/drive/files/delete.ts b/src/server/api/endpoints/drive/files/delete.ts index 211afaaba1..520078948c 100644 --- a/src/server/api/endpoints/drive/files/delete.ts +++ b/src/server/api/endpoints/drive/files/delete.ts @@ -7,11 +7,6 @@ import { ApiError } from '../../../error'; import { DriveFiles } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': 'ドライブのファイルを削除します。', - 'en-US': 'Delete a file of drive.' - }, - tags: ['drive'], requireCredential: true as const, @@ -21,10 +16,6 @@ export const meta = { params: { fileId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のファイルID', - 'en-US': 'Target file ID' - } } }, diff --git a/src/server/api/endpoints/drive/files/find-by-hash.ts b/src/server/api/endpoints/drive/files/find-by-hash.ts index 336c85c444..ef0077392e 100644 --- a/src/server/api/endpoints/drive/files/find-by-hash.ts +++ b/src/server/api/endpoints/drive/files/find-by-hash.ts @@ -3,10 +3,6 @@ import define from '../../../define'; import { DriveFiles } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '与えられたMD5ハッシュ値を持つファイルを取得します。', - }, - tags: ['drive'], requireCredential: true as const, @@ -16,9 +12,6 @@ export const meta = { params: { md5: { validator: $.str, - desc: { - 'ja-JP': 'ファイルのMD5ハッシュ' - } } }, diff --git a/src/server/api/endpoints/drive/files/find.ts b/src/server/api/endpoints/drive/files/find.ts index b3613ca01b..f95504a00a 100644 --- a/src/server/api/endpoints/drive/files/find.ts +++ b/src/server/api/endpoints/drive/files/find.ts @@ -18,9 +18,6 @@ export const meta = { folderId: { validator: $.optional.nullable.type(ID), default: null as any, - desc: { - 'ja-JP': 'フォルダID' - } }, }, diff --git a/src/server/api/endpoints/drive/files/show.ts b/src/server/api/endpoints/drive/files/show.ts index f4922bff13..33e88fa817 100644 --- a/src/server/api/endpoints/drive/files/show.ts +++ b/src/server/api/endpoints/drive/files/show.ts @@ -6,11 +6,6 @@ import { DriveFile } from '../../../../../models/entities/drive-file'; import { DriveFiles } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したドライブのファイルの情報を取得します。', - 'en-US': 'Get specified file of drive.' - }, - tags: ['drive'], requireCredential: true as const, @@ -20,18 +15,10 @@ export const meta = { params: { fileId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のファイルID', - 'en-US': 'Target file ID' - } }, url: { validator: $.optional.str, - desc: { - 'ja-JP': '対象のファイルのURL', - 'en-US': 'Target file URL' - } } }, diff --git a/src/server/api/endpoints/drive/files/update.ts b/src/server/api/endpoints/drive/files/update.ts index f740fea67e..29b4ba7a45 100644 --- a/src/server/api/endpoints/drive/files/update.ts +++ b/src/server/api/endpoints/drive/files/update.ts @@ -6,11 +6,6 @@ import { ApiError } from '../../../error'; import { DriveFiles, DriveFolders } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したドライブのファイルの情報を更新します。', - 'en-US': 'Update specified file of drive.' - }, - tags: ['drive'], requireCredential: true as const, @@ -20,43 +15,26 @@ export const meta = { params: { fileId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のファイルID' - } }, folderId: { validator: $.optional.nullable.type(ID), default: undefined as any, - desc: { - 'ja-JP': 'フォルダID' - } }, name: { validator: $.optional.str.pipe(DriveFiles.validateFileName), default: undefined as any, - desc: { - 'ja-JP': 'ファイル名', - 'en-US': 'Name of the file' - } }, isSensitive: { validator: $.optional.bool, default: undefined as any, - desc: { - 'ja-JP': 'このメディアが「閲覧注意」(NSFW)かどうか', - 'en-US': 'Whether this media is NSFW' - } }, comment: { validator: $.optional.nullable.str, default: undefined as any, - desc: { - 'ja-JP': 'コメント' - } } }, diff --git a/src/server/api/endpoints/drive/files/upload-from-url.ts b/src/server/api/endpoints/drive/files/upload-from-url.ts index 1b33099aa4..65213be6ae 100644 --- a/src/server/api/endpoints/drive/files/upload-from-url.ts +++ b/src/server/api/endpoints/drive/files/upload-from-url.ts @@ -7,10 +7,6 @@ import { DriveFiles } from '../../../../../models'; import { publishMainStream } from '../../../../../services/stream'; export const meta = { - desc: { - 'ja-JP': 'ドライブに指定されたURLに存在するファイルをアップロードします。' - }, - tags: ['drive'], limit: { @@ -36,10 +32,6 @@ export const meta = { isSensitive: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': 'このメディアが「閲覧注意」(NSFW)かどうか', - 'en-US': 'Whether this media is NSFW' - } }, comment: { @@ -55,9 +47,6 @@ export const meta = { force: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': 'true にすると、同じハッシュを持つファイルが既にアップロードされていても強制的にファイルを作成します。', - } } } }; diff --git a/src/server/api/endpoints/drive/folders.ts b/src/server/api/endpoints/drive/folders.ts index 89453e6e09..014f986f9b 100644 --- a/src/server/api/endpoints/drive/folders.ts +++ b/src/server/api/endpoints/drive/folders.ts @@ -5,11 +5,6 @@ import { DriveFolders } from '../../../../models'; import { makePaginationQuery } from '../../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': 'ドライブのフォルダ一覧を取得します。', - 'en-US': 'Get folders of drive.' - }, - tags: ['drive'], requireCredential: true as const, diff --git a/src/server/api/endpoints/drive/folders/create.ts b/src/server/api/endpoints/drive/folders/create.ts index d2c5e00a9f..e39f8f2cee 100644 --- a/src/server/api/endpoints/drive/folders/create.ts +++ b/src/server/api/endpoints/drive/folders/create.ts @@ -7,11 +7,6 @@ import { DriveFolders } from '../../../../../models'; import { genId } from '@/misc/gen-id'; export const meta = { - desc: { - 'ja-JP': 'ドライブのフォルダを作成します。', - 'en-US': 'Create a folder of drive.' - }, - tags: ['drive'], requireCredential: true as const, @@ -22,18 +17,10 @@ export const meta = { name: { validator: $.optional.str.pipe(DriveFolders.validateFolderName), default: 'Untitled', - desc: { - 'ja-JP': 'フォルダ名', - 'en-US': 'Folder name' - } }, parentId: { validator: $.optional.nullable.type(ID), - desc: { - 'ja-JP': '親フォルダID', - 'en-US': 'Parent folder ID' - } } }, diff --git a/src/server/api/endpoints/drive/folders/delete.ts b/src/server/api/endpoints/drive/folders/delete.ts index 2a418069c9..253563a3ef 100644 --- a/src/server/api/endpoints/drive/folders/delete.ts +++ b/src/server/api/endpoints/drive/folders/delete.ts @@ -6,11 +6,6 @@ import { ApiError } from '../../../error'; import { DriveFolders, DriveFiles } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したドライブのフォルダを削除します。', - 'en-US': 'Delete specified folder of drive.' - }, - tags: ['drive'], requireCredential: true as const, @@ -20,10 +15,6 @@ export const meta = { params: { folderId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のフォルダID', - 'en-US': 'Target folder ID' - } } }, diff --git a/src/server/api/endpoints/drive/folders/find.ts b/src/server/api/endpoints/drive/folders/find.ts index e3f6aa4a91..f99e2fe1d7 100644 --- a/src/server/api/endpoints/drive/folders/find.ts +++ b/src/server/api/endpoints/drive/folders/find.ts @@ -18,9 +18,6 @@ export const meta = { parentId: { validator: $.optional.nullable.type(ID), default: null as any, - desc: { - 'ja-JP': 'フォルダID' - } }, }, diff --git a/src/server/api/endpoints/drive/folders/show.ts b/src/server/api/endpoints/drive/folders/show.ts index ae00b9e367..fe1326da75 100644 --- a/src/server/api/endpoints/drive/folders/show.ts +++ b/src/server/api/endpoints/drive/folders/show.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../../error'; import { DriveFolders } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したドライブのフォルダの情報を取得します。', - 'en-US': 'Get specified folder of drive.' - }, - tags: ['drive'], requireCredential: true as const, @@ -19,10 +14,6 @@ export const meta = { params: { folderId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のフォルダID', - 'en-US': 'Target folder ID' - } } }, diff --git a/src/server/api/endpoints/drive/folders/update.ts b/src/server/api/endpoints/drive/folders/update.ts index 066013287c..9dfe33517e 100644 --- a/src/server/api/endpoints/drive/folders/update.ts +++ b/src/server/api/endpoints/drive/folders/update.ts @@ -6,11 +6,6 @@ import { ApiError } from '../../../error'; import { DriveFolders } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したドライブのフォルダの情報を更新します。', - 'en-US': 'Update specified folder of drive.' - }, - tags: ['drive'], requireCredential: true as const, @@ -20,26 +15,14 @@ export const meta = { params: { folderId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のフォルダID', - 'en-US': 'Target folder ID' - } }, name: { validator: $.optional.str.pipe(DriveFolders.validateFolderName), - desc: { - 'ja-JP': 'フォルダ名', - 'en-US': 'Folder name' - } }, parentId: { validator: $.optional.nullable.type(ID), - desc: { - 'ja-JP': '親フォルダID', - 'en-US': 'Parent folder ID' - } } }, diff --git a/src/server/api/endpoints/endpoints.ts b/src/server/api/endpoints/endpoints.ts index 84ab107c6a..f7b9757d8d 100644 --- a/src/server/api/endpoints/endpoints.ts +++ b/src/server/api/endpoints/endpoints.ts @@ -2,11 +2,6 @@ import define from '../define'; import endpoints from '../endpoints'; export const meta = { - desc: { - 'ja-JP': '使用できるAPI一覧を返します。', - 'en-US': 'Returns a list of available APIs.' - }, - requireCredential: false as const, tags: ['meta'], diff --git a/src/server/api/endpoints/federation/update-remote-user.ts b/src/server/api/endpoints/federation/update-remote-user.ts index 1b7a9c4d5b..c4a6db0dd2 100644 --- a/src/server/api/endpoints/federation/update-remote-user.ts +++ b/src/server/api/endpoints/federation/update-remote-user.ts @@ -5,11 +5,6 @@ import { getRemoteUser } from '../../common/getters'; import { updatePerson } from '../../../../remote/activitypub/models/person'; export const meta = { - desc: { - 'ja-JP': '指定されたリモートユーザーの情報を更新します。', - 'en-US': 'Update specified remote user information.' - }, - tags: ['federation'], requireCredential: true as const, @@ -17,10 +12,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーID', - 'en-US': 'The user ID which you want to update' - } }, } }; diff --git a/src/server/api/endpoints/following/create.ts b/src/server/api/endpoints/following/create.ts index 6ce71089b5..e4f9a86d99 100644 --- a/src/server/api/endpoints/following/create.ts +++ b/src/server/api/endpoints/following/create.ts @@ -8,11 +8,6 @@ import { getUser } from '../../common/getters'; import { Followings, Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーをフォローします。', - 'en-US': 'Follow a user.' - }, - tags: ['following', 'users'], limit: { @@ -27,10 +22,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/following/delete.ts b/src/server/api/endpoints/following/delete.ts index 823d85c170..e164cb25c9 100644 --- a/src/server/api/endpoints/following/delete.ts +++ b/src/server/api/endpoints/following/delete.ts @@ -8,11 +8,6 @@ import { getUser } from '../../common/getters'; import { Followings, Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーのフォローを解除します。', - 'en-US': 'Unfollow a user.' - }, - tags: ['following', 'users'], limit: { @@ -27,10 +22,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/following/requests/accept.ts b/src/server/api/endpoints/following/requests/accept.ts index 4a0fdb0af9..aa7085c53f 100644 --- a/src/server/api/endpoints/following/requests/accept.ts +++ b/src/server/api/endpoints/following/requests/accept.ts @@ -6,11 +6,6 @@ import { ApiError } from '../../../error'; import { getUser } from '../../../common/getters'; export const meta = { - desc: { - 'ja-JP': '自分に届いた、指定したフォローリクエストを承認します。', - 'en-US': 'Accept a follow request.' - }, - tags: ['following', 'account'], requireCredential: true as const, @@ -20,10 +15,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/following/requests/cancel.ts b/src/server/api/endpoints/following/requests/cancel.ts index 8d4538d43e..09056f2620 100644 --- a/src/server/api/endpoints/following/requests/cancel.ts +++ b/src/server/api/endpoints/following/requests/cancel.ts @@ -7,11 +7,6 @@ import { getUser } from '../../../common/getters'; import { Users } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '自分が作成した、指定したフォローリクエストをキャンセルします。', - 'en-US': 'Cancel a follow request.' - }, - tags: ['following', 'account'], requireCredential: true as const, @@ -21,10 +16,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/following/requests/list.ts b/src/server/api/endpoints/following/requests/list.ts index 4afd448516..bf3bfc68fa 100644 --- a/src/server/api/endpoints/following/requests/list.ts +++ b/src/server/api/endpoints/following/requests/list.ts @@ -2,11 +2,6 @@ import define from '../../../define'; import { FollowRequests } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '自分に届いたフォローリクエストの一覧を取得します。', - 'en-US': 'Get all pending received follow requests.' - }, - tags: ['following', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/following/requests/reject.ts b/src/server/api/endpoints/following/requests/reject.ts index 8ef2c93341..1685a86137 100644 --- a/src/server/api/endpoints/following/requests/reject.ts +++ b/src/server/api/endpoints/following/requests/reject.ts @@ -6,11 +6,6 @@ import { ApiError } from '../../../error'; import { getUser } from '../../../common/getters'; export const meta = { - desc: { - 'ja-JP': '自分に届いた、指定したフォローリクエストを拒否します。', - 'en-US': 'Reject a follow request.' - }, - tags: ['following', 'account'], requireCredential: true as const, @@ -20,10 +15,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } } }, diff --git a/src/server/api/endpoints/games/reversi/games/surrender.ts b/src/server/api/endpoints/games/reversi/games/surrender.ts index 346293f11d..41896b4ab5 100644 --- a/src/server/api/endpoints/games/reversi/games/surrender.ts +++ b/src/server/api/endpoints/games/reversi/games/surrender.ts @@ -8,18 +8,11 @@ import { ReversiGames } from '../../../../../../models'; export const meta = { tags: ['games'], - desc: { - 'ja-JP': '指定したリバーシの対局で投了します。' - }, - requireCredential: true as const, params: { gameId: { validator: $.type(ID), - desc: { - 'ja-JP': '投了したい対局' - } } }, diff --git a/src/server/api/endpoints/games/reversi/match.ts b/src/server/api/endpoints/games/reversi/match.ts index 2c4ec2ebd8..55ff9225d9 100644 --- a/src/server/api/endpoints/games/reversi/match.ts +++ b/src/server/api/endpoints/games/reversi/match.ts @@ -18,10 +18,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, }, diff --git a/src/server/api/endpoints/hashtags/search.ts b/src/server/api/endpoints/hashtags/search.ts index 32342a63dc..372ccd5084 100644 --- a/src/server/api/endpoints/hashtags/search.ts +++ b/src/server/api/endpoints/hashtags/search.ts @@ -3,10 +3,6 @@ import define from '../../define'; import { Hashtags } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': 'ハッシュタグを検索します。' - }, - tags: ['hashtags'], requireCredential: false as const, @@ -15,24 +11,15 @@ export const meta = { limit: { validator: $.optional.num.range(1, 100), default: 10, - desc: { - 'ja-JP': '最大数' - } }, query: { validator: $.str, - desc: { - 'ja-JP': 'クエリ' - } }, offset: { validator: $.optional.num.min(0), default: 0, - desc: { - 'ja-JP': 'オフセット' - } } }, diff --git a/src/server/api/endpoints/hashtags/show.ts b/src/server/api/endpoints/hashtags/show.ts index f80ef38af0..9e388ce145 100644 --- a/src/server/api/endpoints/hashtags/show.ts +++ b/src/server/api/endpoints/hashtags/show.ts @@ -5,10 +5,6 @@ import { Hashtags } from '../../../../models'; import { normalizeForSearch } from '@/misc/normalize-for-search'; export const meta = { - desc: { - 'ja-JP': '指定したハッシュタグの情報を取得します。', - }, - tags: ['hashtags'], requireCredential: false as const, @@ -16,10 +12,6 @@ export const meta = { params: { tag: { validator: $.str, - desc: { - 'ja-JP': '対象のハッシュタグ(#なし)', - 'en-US': 'Target hashtag. (no # prefixed)' - } } }, diff --git a/src/server/api/endpoints/i.ts b/src/server/api/endpoints/i.ts index 87f6ae778d..c6b89124b6 100644 --- a/src/server/api/endpoints/i.ts +++ b/src/server/api/endpoints/i.ts @@ -2,10 +2,6 @@ import define from '../define'; import { Users } from '../../../models'; export const meta = { - desc: { - 'ja-JP': '自分のアカウント情報を取得します。' - }, - tags: ['account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/i/favorites.ts b/src/server/api/endpoints/i/favorites.ts index b0d20e9ac9..eb97e8bab6 100644 --- a/src/server/api/endpoints/i/favorites.ts +++ b/src/server/api/endpoints/i/favorites.ts @@ -5,11 +5,6 @@ import { NoteFavorites } from '../../../../models'; import { makePaginationQuery } from '../../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': 'お気に入りに登録した投稿一覧を取得します。', - 'en-US': 'Get favorited notes' - }, - tags: ['account', 'notes', 'favorites'], requireCredential: true as const, diff --git a/src/server/api/endpoints/i/notifications.ts b/src/server/api/endpoints/i/notifications.ts index a10dc09df3..a16766c92e 100644 --- a/src/server/api/endpoints/i/notifications.ts +++ b/src/server/api/endpoints/i/notifications.ts @@ -8,11 +8,6 @@ import { notificationTypes } from '../../../../types'; import read from '@/services/note/read'; export const meta = { - desc: { - 'ja-JP': '通知一覧を取得します。', - 'en-US': 'Get notifications.' - }, - tags: ['account', 'notifications'], requireCredential: true as const, diff --git a/src/server/api/endpoints/i/page-likes.ts b/src/server/api/endpoints/i/page-likes.ts index cd5ec3da70..bb41499694 100644 --- a/src/server/api/endpoints/i/page-likes.ts +++ b/src/server/api/endpoints/i/page-likes.ts @@ -5,11 +5,6 @@ import { PageLikes } from '../../../../models'; import { makePaginationQuery } from '../../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': '「いいね」したページ一覧を取得します。', - 'en-US': 'Get liked pages' - }, - tags: ['account', 'pages'], requireCredential: true as const, diff --git a/src/server/api/endpoints/i/pages.ts b/src/server/api/endpoints/i/pages.ts index ab42ab6d3f..981686adb0 100644 --- a/src/server/api/endpoints/i/pages.ts +++ b/src/server/api/endpoints/i/pages.ts @@ -5,11 +5,6 @@ import { Pages } from '../../../../models'; import { makePaginationQuery } from '../../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': '自分の作成したページ一覧を取得します。', - 'en-US': 'Get my pages.' - }, - tags: ['account', 'pages'], requireCredential: true as const, diff --git a/src/server/api/endpoints/i/pin.ts b/src/server/api/endpoints/i/pin.ts index 4bed566935..e1e0658996 100644 --- a/src/server/api/endpoints/i/pin.ts +++ b/src/server/api/endpoints/i/pin.ts @@ -6,10 +6,6 @@ import { ApiError } from '../../error'; import { Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿をピン留めします。' - }, - tags: ['account', 'notes'], requireCredential: true as const, @@ -19,10 +15,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID' - } } }, diff --git a/src/server/api/endpoints/i/read-all-messaging-messages.ts b/src/server/api/endpoints/i/read-all-messaging-messages.ts index e47ef16bd9..dd26a10a73 100644 --- a/src/server/api/endpoints/i/read-all-messaging-messages.ts +++ b/src/server/api/endpoints/i/read-all-messaging-messages.ts @@ -3,11 +3,6 @@ import define from '../../define'; import { MessagingMessages, UserGroupJoinings } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': 'トークメッセージをすべて既読にします。', - 'en-US': 'Mark all talk messages as read.' - }, - tags: ['account', 'messaging'], requireCredential: true as const, diff --git a/src/server/api/endpoints/i/read-all-unread-notes.ts b/src/server/api/endpoints/i/read-all-unread-notes.ts index efb8a7f0f8..64469a2ad5 100644 --- a/src/server/api/endpoints/i/read-all-unread-notes.ts +++ b/src/server/api/endpoints/i/read-all-unread-notes.ts @@ -3,11 +3,6 @@ import define from '../../define'; import { NoteUnreads } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '未読の投稿をすべて既読にします。', - 'en-US': 'Mark all messages as read.' - }, - tags: ['account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/i/read-announcement.ts b/src/server/api/endpoints/i/read-announcement.ts index a0c59a15d6..0f58b823fc 100644 --- a/src/server/api/endpoints/i/read-announcement.ts +++ b/src/server/api/endpoints/i/read-announcement.ts @@ -7,11 +7,6 @@ import { AnnouncementReads, Announcements, Users } from '../../../../models'; import { publishMainStream } from '../../../../services/stream'; export const meta = { - desc: { - 'ja-JP': '指定したアナウンスを既読にします。', - 'en-US': 'Marks the specified announcement as read.' - }, - tags: ['account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/i/unpin.ts b/src/server/api/endpoints/i/unpin.ts index bb8b36a166..fe19b20905 100644 --- a/src/server/api/endpoints/i/unpin.ts +++ b/src/server/api/endpoints/i/unpin.ts @@ -6,10 +6,6 @@ import { ApiError } from '../../error'; import { Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿のピン留めを解除します。' - }, - tags: ['account', 'notes'], requireCredential: true as const, @@ -19,10 +15,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID' - } } }, diff --git a/src/server/api/endpoints/i/update.ts b/src/server/api/endpoints/i/update.ts index 032dccd91a..96955354a3 100644 --- a/src/server/api/endpoints/i/update.ts +++ b/src/server/api/endpoints/i/update.ts @@ -17,11 +17,6 @@ import { notificationTypes } from '../../../../types'; import { normalizeForSearch } from '@/misc/normalize-for-search'; export const meta = { - desc: { - 'ja-JP': 'アカウント情報を更新します。', - 'en-US': 'Update myself' - }, - tags: ['account'], requireCredential: true as const, @@ -31,65 +26,38 @@ export const meta = { params: { name: { validator: $.optional.nullable.use(Users.validateName), - desc: { - 'ja-JP': '名前(ハンドルネームやニックネーム)' - } }, description: { validator: $.optional.nullable.use(Users.validateDescription), - desc: { - 'ja-JP': 'アカウントの説明や自己紹介' - } }, lang: { validator: $.optional.nullable.str.or(Object.keys(langmap)), - desc: { - 'ja-JP': '言語' - } }, location: { validator: $.optional.nullable.use(Users.validateLocation), - desc: { - 'ja-JP': '住んでいる地域、所在' - } }, birthday: { validator: $.optional.nullable.use(Users.validateBirthday), - desc: { - 'ja-JP': '誕生日 (YYYY-MM-DD形式)' - } }, avatarId: { validator: $.optional.nullable.type(ID), - desc: { - 'ja-JP': 'アバターに設定する画像のドライブファイルID' - } }, bannerId: { validator: $.optional.nullable.type(ID), - desc: { - 'ja-JP': 'バナーに設定する画像のドライブファイルID' - } }, fields: { validator: $.optional.arr($.object()).range(1, 4), - desc: { - 'ja-JP': 'プロフィール補足情報' - } }, isLocked: { validator: $.optional.bool, - desc: { - 'ja-JP': '鍵アカウントか否か' - } }, isExplorable: { @@ -102,37 +70,22 @@ export const meta = { carefulBot: { validator: $.optional.bool, - desc: { - 'ja-JP': 'Botからのフォローを承認制にするか' - } }, autoAcceptFollowed: { validator: $.optional.bool, - desc: { - 'ja-JP': 'フォローしているユーザーからのフォローリクエストを自動承認するか' - } }, noCrawle: { validator: $.optional.bool, - desc: { - 'ja-JP': '検索エンジンによるインデックスを拒否するか否か' - } }, isBot: { validator: $.optional.bool, - desc: { - 'ja-JP': 'Botか否か' - } }, isCat: { validator: $.optional.bool, - desc: { - 'ja-JP': '猫か否か' - } }, injectFeaturedNote: { @@ -145,16 +98,10 @@ export const meta = { alwaysMarkNsfw: { validator: $.optional.bool, - desc: { - 'ja-JP': 'アップロードするメディアをデフォルトで「閲覧注意」として設定するか' - } }, pinnedPageId: { validator: $.optional.nullable.type(ID), - desc: { - 'ja-JP': 'ピン留めするページID' - } }, mutedWords: { diff --git a/src/server/api/endpoints/i/user-group-invites.ts b/src/server/api/endpoints/i/user-group-invites.ts index 9bfb17ab4e..623274df92 100644 --- a/src/server/api/endpoints/i/user-group-invites.ts +++ b/src/server/api/endpoints/i/user-group-invites.ts @@ -5,11 +5,6 @@ import { UserGroupInvitations } from '../../../../models'; import { makePaginationQuery } from '../../common/make-pagination-query'; export const meta = { - desc: { - 'ja-JP': 'グループへの招待一覧を取得します。', - 'en-US': 'Get user group invitations.' - }, - tags: ['account', 'groups'], requireCredential: true as const, diff --git a/src/server/api/endpoints/messaging/history.ts b/src/server/api/endpoints/messaging/history.ts index 15302eb355..5f4f02455d 100644 --- a/src/server/api/endpoints/messaging/history.ts +++ b/src/server/api/endpoints/messaging/history.ts @@ -5,11 +5,6 @@ import { MessagingMessages, Mutings, UserGroupJoinings } from '../../../../model import { Brackets } from 'typeorm'; export const meta = { - desc: { - 'ja-JP': 'トークの履歴を取得します。', - 'en-US': 'Show messaging history.' - }, - tags: ['messaging'], requireCredential: true as const, diff --git a/src/server/api/endpoints/messaging/messages.ts b/src/server/api/endpoints/messaging/messages.ts index 8beb7e87f0..087f5a7d62 100644 --- a/src/server/api/endpoints/messaging/messages.ts +++ b/src/server/api/endpoints/messaging/messages.ts @@ -9,11 +9,6 @@ import { Brackets } from 'typeorm'; import { readUserMessagingMessage, readGroupMessagingMessage, deliverReadActivity } from '../../common/read-messaging-message'; export const meta = { - desc: { - 'ja-JP': 'トークメッセージ一覧を取得します。', - 'en-US': 'Get messages of messaging.' - }, - tags: ['messaging'], requireCredential: true as const, @@ -23,18 +18,10 @@ export const meta = { params: { userId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, groupId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のグループのID', - 'en-US': 'Target group ID' - } }, limit: { diff --git a/src/server/api/endpoints/messaging/messages/create.ts b/src/server/api/endpoints/messaging/messages/create.ts index c9abb299fd..1cd50145b3 100644 --- a/src/server/api/endpoints/messaging/messages/create.ts +++ b/src/server/api/endpoints/messaging/messages/create.ts @@ -9,11 +9,6 @@ import { UserGroup } from '../../../../../models/entities/user-group'; import { createMessage } from '../../../../../services/messages/create'; export const meta = { - desc: { - 'ja-JP': 'トークメッセージを送信します。', - 'en-US': 'Create a message of messaging.' - }, - tags: ['messaging'], requireCredential: true as const, @@ -23,18 +18,10 @@ export const meta = { params: { userId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, groupId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のグループのID', - 'en-US': 'Target group ID' - } }, text: { diff --git a/src/server/api/endpoints/messaging/messages/delete.ts b/src/server/api/endpoints/messaging/messages/delete.ts index 128ef0263e..5e5aa5fd13 100644 --- a/src/server/api/endpoints/messaging/messages/delete.ts +++ b/src/server/api/endpoints/messaging/messages/delete.ts @@ -7,11 +7,6 @@ import { MessagingMessages } from '../../../../../models'; import { deleteMessage } from '../../../../../services/messages/delete'; export const meta = { - desc: { - 'ja-JP': '指定したトークメッセージを削除します。', - 'en-US': 'Delete a message.' - }, - tags: ['messaging'], requireCredential: true as const, @@ -27,10 +22,6 @@ export const meta = { params: { messageId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のメッセージのID', - 'en-US': 'Target message ID.' - } } }, diff --git a/src/server/api/endpoints/messaging/messages/read.ts b/src/server/api/endpoints/messaging/messages/read.ts index c591cb28e0..b17927da3f 100644 --- a/src/server/api/endpoints/messaging/messages/read.ts +++ b/src/server/api/endpoints/messaging/messages/read.ts @@ -6,11 +6,6 @@ import { MessagingMessages } from '../../../../../models'; import { readUserMessagingMessage, readGroupMessagingMessage } from '../../../common/read-messaging-message'; export const meta = { - desc: { - 'ja-JP': '指定した自分宛てのトークメッセージを既読にします。', - 'en-US': 'Mark as read a message of messaging.' - }, - tags: ['messaging'], requireCredential: true as const, @@ -20,10 +15,6 @@ export const meta = { params: { messageId: { validator: $.type(ID), - desc: { - 'ja-JP': '既読にするメッセージのID', - 'en-US': 'The ID of a message that you want to mark as read' - } } }, diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index 26d9110ea9..e7a6a401d8 100644 --- a/src/server/api/endpoints/meta.ts +++ b/src/server/api/endpoints/meta.ts @@ -7,11 +7,6 @@ import { DB_MAX_NOTE_TEXT_LENGTH } from '@/misc/hard-limits'; import { MoreThan } from 'typeorm'; export const meta = { - desc: { - 'ja-JP': 'インスタンス情報を取得します。', - 'en-US': 'Get the information of this instance.' - }, - tags: ['meta'], requireCredential: false as const, diff --git a/src/server/api/endpoints/mute/create.ts b/src/server/api/endpoints/mute/create.ts index 6c1e1e2fdd..7f018a359a 100644 --- a/src/server/api/endpoints/mute/create.ts +++ b/src/server/api/endpoints/mute/create.ts @@ -9,11 +9,6 @@ import { Muting } from '../../../../models/entities/muting'; import { publishUserEvent } from '../../../../services/stream'; export const meta = { - desc: { - 'ja-JP': 'ユーザーをミュートします。', - 'en-US': 'Mute a user' - }, - tags: ['account'], requireCredential: true as const, @@ -23,10 +18,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, }, diff --git a/src/server/api/endpoints/mute/delete.ts b/src/server/api/endpoints/mute/delete.ts index 2a008b64c7..bfb6a95e32 100644 --- a/src/server/api/endpoints/mute/delete.ts +++ b/src/server/api/endpoints/mute/delete.ts @@ -7,11 +7,6 @@ import { Mutings } from '../../../../models'; import { publishUserEvent } from '../../../../services/stream'; export const meta = { - desc: { - 'ja-JP': 'ユーザーのミュートを解除します。', - 'en-US': 'Unmute a user' - }, - tags: ['account'], requireCredential: true as const, @@ -21,10 +16,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, }, diff --git a/src/server/api/endpoints/mute/list.ts b/src/server/api/endpoints/mute/list.ts index daa52b9ff5..45952ec72e 100644 --- a/src/server/api/endpoints/mute/list.ts +++ b/src/server/api/endpoints/mute/list.ts @@ -5,11 +5,6 @@ import { makePaginationQuery } from '../../common/make-pagination-query'; import { Mutings } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': 'ミュートしているユーザー一覧を取得します。', - 'en-US': 'Get muted users.' - }, - tags: ['account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/my/apps.ts b/src/server/api/endpoints/my/apps.ts index 2ca882fd6d..908e24e1ba 100644 --- a/src/server/api/endpoints/my/apps.ts +++ b/src/server/api/endpoints/my/apps.ts @@ -5,11 +5,6 @@ import { Apps } from '../../../../models'; export const meta = { tags: ['account', 'app'], - desc: { - 'ja-JP': '自分のアプリケーション一覧を取得します。', - 'en-US': 'Get my apps' - }, - requireCredential: true as const, params: { diff --git a/src/server/api/endpoints/notes.ts b/src/server/api/endpoints/notes.ts index 0e89295351..fdb8bad247 100644 --- a/src/server/api/endpoints/notes.ts +++ b/src/server/api/endpoints/notes.ts @@ -5,46 +5,27 @@ import { makePaginationQuery } from '../common/make-pagination-query'; import { Notes } from '../../../models'; export const meta = { - desc: { - 'ja-JP': '投稿を取得します。' - }, - tags: ['notes'], params: { local: { validator: $.optional.bool, - desc: { - 'ja-JP': 'ローカルの投稿に限定するか否か' - } }, reply: { validator: $.optional.bool, - desc: { - 'ja-JP': '返信に限定するか否か' - } }, renote: { validator: $.optional.bool, - desc: { - 'ja-JP': 'Renoteに限定するか否か' - } }, withFiles: { validator: $.optional.bool, - desc: { - 'ja-JP': 'ファイルが添付された投稿に限定するか否か' - } }, poll: { validator: $.optional.bool, - desc: { - 'ja-JP': 'アンケートが添付された投稿に限定するか否か' - } }, limit: { diff --git a/src/server/api/endpoints/notes/children.ts b/src/server/api/endpoints/notes/children.ts index bbfd0632c3..adbe714bf4 100644 --- a/src/server/api/endpoints/notes/children.ts +++ b/src/server/api/endpoints/notes/children.ts @@ -8,11 +8,6 @@ import { Brackets } from 'typeorm'; import { Notes } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿への返信/引用を取得します。', - 'en-US': 'Get replies/quotes of a note.' - }, - tags: ['notes'], requireCredential: false as const, @@ -20,10 +15,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID' - } }, limit: { diff --git a/src/server/api/endpoints/notes/conversation.ts b/src/server/api/endpoints/notes/conversation.ts index 95ab4ec1e0..0fd10df077 100644 --- a/src/server/api/endpoints/notes/conversation.ts +++ b/src/server/api/endpoints/notes/conversation.ts @@ -7,11 +7,6 @@ import { Note } from '../../../../models/entities/note'; import { Notes } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿の文脈を取得します。', - 'en-US': 'Show conversation of a note.' - }, - tags: ['notes'], requireCredential: false as const, @@ -19,10 +14,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID' - } }, limit: { diff --git a/src/server/api/endpoints/notes/create.ts b/src/server/api/endpoints/notes/create.ts index 29cc650b8d..7410d28cb0 100644 --- a/src/server/api/endpoints/notes/create.ts +++ b/src/server/api/endpoints/notes/create.ts @@ -23,10 +23,6 @@ setInterval(() => { }, 3000); export const meta = { - desc: { - 'ja-JP': '投稿します。' - }, - tags: ['notes'], requireCredential: true as const, @@ -42,16 +38,10 @@ export const meta = { visibility: { validator: $.optional.str.or(noteVisibilities as unknown as string[]), default: 'public', - desc: { - 'ja-JP': '投稿の公開範囲' - } }, visibleUserIds: { validator: $.optional.arr($.type(ID)).unique().min(0), - desc: { - 'ja-JP': '(投稿の公開範囲が specified の場合)投稿を閲覧できるユーザー' - } }, text: { @@ -61,92 +51,56 @@ export const meta = { && Array.from(text.trim()).length <= DB_MAX_NOTE_TEXT_LENGTH // DB limit ), default: null as any, - desc: { - 'ja-JP': '投稿内容' - } }, cw: { validator: $.optional.nullable.str.pipe(Notes.validateCw), - desc: { - 'ja-JP': 'コンテンツの警告。このパラメータを指定すると設定したテキストで投稿のコンテンツを隠す事が出来ます。' - } }, viaMobile: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': 'モバイルデバイスからの投稿か否か。' - } }, localOnly: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': 'ローカルのみに投稿か否か。' - } }, noExtractMentions: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': '本文からメンションを展開しないか否か。' - } }, noExtractHashtags: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': '本文からハッシュタグを展開しないか否か。' - } }, noExtractEmojis: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': '本文からカスタム絵文字を展開しないか否か。' - } }, fileIds: { validator: $.optional.arr($.type(ID)).unique().range(1, 4), - desc: { - 'ja-JP': '添付するファイル' - } }, mediaIds: { validator: $.optional.arr($.type(ID)).unique().range(1, 4), deprecated: true, - desc: { - 'ja-JP': '添付するファイル (このパラメータは廃止予定です。代わりに fileIds を使ってください。)' - } }, replyId: { validator: $.optional.nullable.type(ID), - desc: { - 'ja-JP': '返信対象' - } }, renoteId: { validator: $.optional.nullable.type(ID), - desc: { - 'ja-JP': 'Renote対象' - } }, channelId: { validator: $.optional.nullable.type(ID), - desc: { - 'ja-JP': 'チャンネル' - } }, poll: { @@ -159,9 +113,6 @@ export const meta = { expiresAt: $.optional.nullable.num.int(), expiredAfter: $.optional.nullable.num.int().min(1) }).strict(), - desc: { - 'ja-JP': 'アンケート' - }, ref: 'poll' } }, diff --git a/src/server/api/endpoints/notes/delete.ts b/src/server/api/endpoints/notes/delete.ts index 154cff0741..6a0652312a 100644 --- a/src/server/api/endpoints/notes/delete.ts +++ b/src/server/api/endpoints/notes/delete.ts @@ -8,11 +8,6 @@ import { ApiError } from '../../error'; import { Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿を削除します。', - 'en-US': 'Delete a note.' - }, - tags: ['notes'], requireCredential: true as const, @@ -28,10 +23,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID.' - } } }, diff --git a/src/server/api/endpoints/notes/favorites/create.ts b/src/server/api/endpoints/notes/favorites/create.ts index 846c80a8d6..b77b5d48ff 100644 --- a/src/server/api/endpoints/notes/favorites/create.ts +++ b/src/server/api/endpoints/notes/favorites/create.ts @@ -7,11 +7,6 @@ import { NoteFavorites } from '../../../../../models'; import { genId } from '@/misc/gen-id'; export const meta = { - desc: { - 'ja-JP': '指定した投稿をお気に入りに登録します。', - 'en-US': 'Favorite a note.' - }, - tags: ['notes', 'favorites'], requireCredential: true as const, @@ -21,10 +16,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID.' - } } }, diff --git a/src/server/api/endpoints/notes/favorites/delete.ts b/src/server/api/endpoints/notes/favorites/delete.ts index 2be4f6408e..4a1fc71a0d 100644 --- a/src/server/api/endpoints/notes/favorites/delete.ts +++ b/src/server/api/endpoints/notes/favorites/delete.ts @@ -6,11 +6,6 @@ import { getNote } from '../../../common/getters'; import { NoteFavorites } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿のお気に入りを解除します。', - 'en-US': 'Unfavorite a note.' - }, - tags: ['notes', 'favorites'], requireCredential: true as const, @@ -20,10 +15,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID.' - } } }, diff --git a/src/server/api/endpoints/notes/featured.ts b/src/server/api/endpoints/notes/featured.ts index b3dffa4272..5b4367f7a3 100644 --- a/src/server/api/endpoints/notes/featured.ts +++ b/src/server/api/endpoints/notes/featured.ts @@ -4,11 +4,6 @@ import { generateMutedUserQuery } from '../../common/generate-muted-user-query'; import { Notes } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': 'Featuredな投稿を取得します。', - 'en-US': 'Get featured notes.' - }, - tags: ['notes'], requireCredential: false as const, @@ -17,9 +12,6 @@ export const meta = { limit: { validator: $.optional.num.range(1, 100), default: 10, - desc: { - 'ja-JP': '最大数' - } }, offset: { diff --git a/src/server/api/endpoints/notes/global-timeline.ts b/src/server/api/endpoints/notes/global-timeline.ts index 1e1df4040d..741c5985a3 100644 --- a/src/server/api/endpoints/notes/global-timeline.ts +++ b/src/server/api/endpoints/notes/global-timeline.ts @@ -11,18 +11,11 @@ import { generateRepliesQuery } from '../../common/generate-replies-query'; import { generateMutedNoteQuery } from '../../common/generate-muted-note-query'; export const meta = { - desc: { - 'ja-JP': 'グローバルタイムラインを取得します。' - }, - tags: ['notes'], params: { withFiles: { validator: $.optional.bool, - desc: { - 'ja-JP': 'ファイルが添付された投稿に限定するか否か' - } }, limit: { diff --git a/src/server/api/endpoints/notes/hybrid-timeline.ts b/src/server/api/endpoints/notes/hybrid-timeline.ts index ac44e747dc..23fc5a6068 100644 --- a/src/server/api/endpoints/notes/hybrid-timeline.ts +++ b/src/server/api/endpoints/notes/hybrid-timeline.ts @@ -14,10 +14,6 @@ import { generateMutedNoteQuery } from '../../common/generate-muted-note-query'; import { generateChannelQuery } from '../../common/generate-channel-query'; export const meta = { - desc: { - 'ja-JP': 'ソーシャルタイムラインを取得します。' - }, - tags: ['notes'], requireCredential: true as const, @@ -26,68 +22,41 @@ export const meta = { limit: { validator: $.optional.num.range(1, 100), default: 10, - desc: { - 'ja-JP': '最大数' - } }, sinceId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより新しい投稿を取得します' - } }, untilId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより古い投稿を取得します' - } }, sinceDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより新しい投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, untilDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより古い投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, includeMyRenotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': '自分の行ったRenoteを含めるかどうか' - } }, includeRenotedMyNotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': 'Renoteされた自分の投稿を含めるかどうか' - } }, includeLocalRenotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': 'Renoteされたローカルの投稿を含めるかどうか' - } }, withFiles: { validator: $.optional.bool, - desc: { - 'ja-JP': 'true にすると、ファイルが添付された投稿だけ取得します' - } }, }, diff --git a/src/server/api/endpoints/notes/local-timeline.ts b/src/server/api/endpoints/notes/local-timeline.ts index 113078a988..523fbee9a8 100644 --- a/src/server/api/endpoints/notes/local-timeline.ts +++ b/src/server/api/endpoints/notes/local-timeline.ts @@ -14,33 +14,20 @@ import { generateMutedNoteQuery } from '../../common/generate-muted-note-query'; import { generateChannelQuery } from '../../common/generate-channel-query'; export const meta = { - desc: { - 'ja-JP': 'ローカルタイムラインを取得します。' - }, - tags: ['notes'], params: { withFiles: { validator: $.optional.bool, - desc: { - 'ja-JP': 'ファイルが添付された投稿に限定するか否か' - } }, fileType: { validator: $.optional.arr($.str), - desc: { - 'ja-JP': '指定された種類のファイルが添付された投稿のみを取得します' - } }, excludeNsfw: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': 'true にすると、NSFW指定されたファイルを除外します(fileTypeが指定されている場合のみ有効)' - } }, limit: { diff --git a/src/server/api/endpoints/notes/mentions.ts b/src/server/api/endpoints/notes/mentions.ts index dddd08eee6..e1e916c586 100644 --- a/src/server/api/endpoints/notes/mentions.ts +++ b/src/server/api/endpoints/notes/mentions.ts @@ -9,11 +9,6 @@ import { makePaginationQuery } from '../../common/make-pagination-query'; import { Brackets } from 'typeorm'; export const meta = { - desc: { - 'ja-JP': '自分に言及している投稿の一覧を取得します。', - 'en-US': 'Get mentions of myself.' - }, - tags: ['notes'], requireCredential: true as const, diff --git a/src/server/api/endpoints/notes/polls/recommendation.ts b/src/server/api/endpoints/notes/polls/recommendation.ts index 93c9ff08ca..af8a527398 100644 --- a/src/server/api/endpoints/notes/polls/recommendation.ts +++ b/src/server/api/endpoints/notes/polls/recommendation.ts @@ -4,11 +4,6 @@ import { Polls, Mutings, Notes, PollVotes } from '../../../../../models'; import { Brackets, In } from 'typeorm'; export const meta = { - desc: { - 'ja-JP': 'おすすめのアンケート一覧を取得します。', - 'en-US': 'Get recommended polls.' - }, - tags: ['notes'], requireCredential: true as const, diff --git a/src/server/api/endpoints/notes/polls/vote.ts b/src/server/api/endpoints/notes/polls/vote.ts index 51dcec89c7..b40e187fd8 100644 --- a/src/server/api/endpoints/notes/polls/vote.ts +++ b/src/server/api/endpoints/notes/polls/vote.ts @@ -15,11 +15,6 @@ import { IRemoteUser } from '../../../../../models/entities/user'; import { genId } from '@/misc/gen-id'; export const meta = { - desc: { - 'ja-JP': '指定した投稿のアンケートに投票します。', - 'en-US': 'Vote poll of a note.' - }, - tags: ['notes'], requireCredential: true as const, @@ -29,10 +24,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID' - } }, choice: { diff --git a/src/server/api/endpoints/notes/reactions.ts b/src/server/api/endpoints/notes/reactions.ts index 3c60fa2e8e..df780bfa06 100644 --- a/src/server/api/endpoints/notes/reactions.ts +++ b/src/server/api/endpoints/notes/reactions.ts @@ -8,11 +8,6 @@ import { DeepPartial } from 'typeorm'; import { NoteReaction } from '../../../../models/entities/note-reaction'; export const meta = { - desc: { - 'ja-JP': '指定した投稿のリアクション一覧を取得します。', - 'en-US': 'Show reactions of a note.' - }, - tags: ['notes', 'reactions'], requireCredential: false as const, @@ -20,10 +15,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'The ID of the target note' - } }, type: { diff --git a/src/server/api/endpoints/notes/reactions/create.ts b/src/server/api/endpoints/notes/reactions/create.ts index 17a6f391d4..e8533fee56 100644 --- a/src/server/api/endpoints/notes/reactions/create.ts +++ b/src/server/api/endpoints/notes/reactions/create.ts @@ -6,11 +6,6 @@ import { getNote } from '../../../common/getters'; import { ApiError } from '../../../error'; export const meta = { - desc: { - 'ja-JP': '指定した投稿にリアクションします。', - 'en-US': 'React to a note.' - }, - tags: ['reactions', 'notes'], requireCredential: true as const, @@ -20,16 +15,10 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿' - } }, reaction: { validator: $.str, - desc: { - 'ja-JP': 'リアクションの種類' - } } }, diff --git a/src/server/api/endpoints/notes/reactions/delete.ts b/src/server/api/endpoints/notes/reactions/delete.ts index b95c7f891b..b18cb533d6 100644 --- a/src/server/api/endpoints/notes/reactions/delete.ts +++ b/src/server/api/endpoints/notes/reactions/delete.ts @@ -7,11 +7,6 @@ import { getNote } from '../../../common/getters'; import { ApiError } from '../../../error'; export const meta = { - desc: { - 'ja-JP': '指定した投稿へのリアクションを取り消します。', - 'en-US': 'Unreact to a note.' - }, - tags: ['reactions', 'notes'], requireCredential: true as const, @@ -27,10 +22,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID' - } }, }, diff --git a/src/server/api/endpoints/notes/renotes.ts b/src/server/api/endpoints/notes/renotes.ts index d26192d10a..d384b7962f 100644 --- a/src/server/api/endpoints/notes/renotes.ts +++ b/src/server/api/endpoints/notes/renotes.ts @@ -9,11 +9,6 @@ import { makePaginationQuery } from '../../common/make-pagination-query'; import { Notes } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿のRenote一覧を取得します。', - 'en-US': 'Show a renotes of a note.' - }, - tags: ['notes'], requireCredential: false as const, @@ -21,10 +16,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID' - } }, limit: { diff --git a/src/server/api/endpoints/notes/replies.ts b/src/server/api/endpoints/notes/replies.ts index e91a1cf0bf..79a983e75f 100644 --- a/src/server/api/endpoints/notes/replies.ts +++ b/src/server/api/endpoints/notes/replies.ts @@ -7,11 +7,6 @@ import { generateVisibilityQuery } from '../../common/generate-visibility-query' import { generateMutedUserQuery } from '../../common/generate-muted-user-query'; export const meta = { - desc: { - 'ja-JP': '指定した投稿への返信を取得します。', - 'en-US': 'Get replies of a note.' - }, - tags: ['notes'], requireCredential: false as const, @@ -19,24 +14,14 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID' - } }, sinceId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより新しい投稿を取得します' - } }, untilId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより古い投稿を取得します' - } }, limit: { diff --git a/src/server/api/endpoints/notes/search-by-tag.ts b/src/server/api/endpoints/notes/search-by-tag.ts index 463c5fff5a..b7d41d9e71 100644 --- a/src/server/api/endpoints/notes/search-by-tag.ts +++ b/src/server/api/endpoints/notes/search-by-tag.ts @@ -10,70 +10,42 @@ import { safeForSql } from '@/misc/safe-for-sql'; import { normalizeForSearch } from '@/misc/normalize-for-search'; export const meta = { - desc: { - 'ja-JP': '指定されたタグが付けられた投稿を取得します。' - }, - tags: ['notes', 'hashtags'], params: { tag: { validator: $.optional.str, - desc: { - 'ja-JP': 'タグ' - } }, query: { validator: $.optional.arr($.arr($.str)), - desc: { - 'ja-JP': 'クエリ' - } }, reply: { validator: $.optional.nullable.bool, default: null as any, - desc: { - 'ja-JP': '返信に限定するか否か' - } }, renote: { validator: $.optional.nullable.bool, default: null as any, - desc: { - 'ja-JP': 'Renoteに限定するか否か' - } }, withFiles: { validator: $.optional.bool, - desc: { - 'ja-JP': 'true にすると、ファイルが添付された投稿だけ取得します' - } }, poll: { validator: $.optional.nullable.bool, default: null as any, - desc: { - 'ja-JP': 'アンケートが添付された投稿に限定するか否か' - } }, sinceId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより新しい投稿を取得します' - } }, untilId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより古い投稿を取得します' - } }, limit: { diff --git a/src/server/api/endpoints/notes/search.ts b/src/server/api/endpoints/notes/search.ts index e3454be9d3..dc411283a2 100644 --- a/src/server/api/endpoints/notes/search.ts +++ b/src/server/api/endpoints/notes/search.ts @@ -10,11 +10,6 @@ import { generateVisibilityQuery } from '../../common/generate-visibility-query' import { generateMutedUserQuery } from '../../common/generate-muted-user-query'; export const meta = { - desc: { - 'ja-JP': '投稿を検索します。', - 'en-US': 'Search notes.' - }, - tags: ['notes'], requireCredential: false as const, diff --git a/src/server/api/endpoints/notes/show.ts b/src/server/api/endpoints/notes/show.ts index e592076a2e..fc8e30788d 100644 --- a/src/server/api/endpoints/notes/show.ts +++ b/src/server/api/endpoints/notes/show.ts @@ -6,11 +6,6 @@ import { ApiError } from '../../error'; import { Notes } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿を取得します。', - 'en-US': 'Get a note.' - }, - tags: ['notes'], requireCredential: false as const, @@ -18,10 +13,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID.' - } } }, diff --git a/src/server/api/endpoints/notes/state.ts b/src/server/api/endpoints/notes/state.ts index 60151f7e32..8af09f07dd 100644 --- a/src/server/api/endpoints/notes/state.ts +++ b/src/server/api/endpoints/notes/state.ts @@ -4,11 +4,6 @@ import define from '../../define'; import { NoteFavorites, NoteWatchings } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿の状態を取得します。', - 'en-US': 'Get state of a note.' - }, - tags: ['notes'], requireCredential: true as const, @@ -16,10 +11,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID.' - } } }, diff --git a/src/server/api/endpoints/notes/timeline.ts b/src/server/api/endpoints/notes/timeline.ts index 0871a96882..687869a63d 100644 --- a/src/server/api/endpoints/notes/timeline.ts +++ b/src/server/api/endpoints/notes/timeline.ts @@ -12,11 +12,6 @@ import { generateMutedNoteQuery } from '../../common/generate-muted-note-query'; import { generateChannelQuery } from '../../common/generate-channel-query'; export const meta = { - desc: { - 'ja-JP': 'タイムラインを取得します。', - 'en-US': 'Get timeline of myself.' - }, - tags: ['notes'], requireCredential: true as const, @@ -25,68 +20,41 @@ export const meta = { limit: { validator: $.optional.num.range(1, 100), default: 10, - desc: { - 'ja-JP': '最大数' - } }, sinceId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより新しい投稿を取得します' - } }, untilId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより古い投稿を取得します' - } }, sinceDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより新しい投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, untilDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより古い投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, includeMyRenotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': '自分の行ったRenoteを含めるかどうか' - } }, includeRenotedMyNotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': 'Renoteされた自分の投稿を含めるかどうか' - } }, includeLocalRenotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': 'Renoteされたローカルの投稿を含めるかどうか' - } }, withFiles: { validator: $.optional.bool, - desc: { - 'ja-JP': 'true にすると、ファイルが添付された投稿だけ取得します' - } }, }, diff --git a/src/server/api/endpoints/notes/unrenote.ts b/src/server/api/endpoints/notes/unrenote.ts index 0233b9db12..5e016f293f 100644 --- a/src/server/api/endpoints/notes/unrenote.ts +++ b/src/server/api/endpoints/notes/unrenote.ts @@ -8,10 +8,6 @@ import { ApiError } from '../../error'; import { Notes, Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定した投稿のRenoteを解除します。', - }, - tags: ['notes'], requireCredential: true as const, @@ -27,10 +23,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID.' - } } }, diff --git a/src/server/api/endpoints/notes/user-list-timeline.ts b/src/server/api/endpoints/notes/user-list-timeline.ts index cb3c18505d..e160fff25a 100644 --- a/src/server/api/endpoints/notes/user-list-timeline.ts +++ b/src/server/api/endpoints/notes/user-list-timeline.ts @@ -9,11 +9,6 @@ import { activeUsersChart } from '../../../../services/chart'; import { Brackets } from 'typeorm'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーリストのタイムラインを取得します。', - 'en-US': 'Get timeline of a user list.' - }, - tags: ['notes', 'lists'], requireCredential: true as const, @@ -21,76 +16,46 @@ export const meta = { params: { listId: { validator: $.type(ID), - desc: { - 'ja-JP': 'リストのID' - } }, limit: { validator: $.optional.num.range(1, 100), default: 10, - desc: { - 'ja-JP': '最大数' - } }, sinceId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより新しい投稿を取得します' - } }, untilId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより古い投稿を取得します' - } }, sinceDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより新しい投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, untilDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより古い投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, includeMyRenotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': '自分の行ったRenoteを含めるかどうか' - } }, includeRenotedMyNotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': 'Renoteされた自分の投稿を含めるかどうか' - } }, includeLocalRenotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': 'Renoteされたローカルの投稿を含めるかどうか' - } }, withFiles: { validator: $.optional.bool, - desc: { - 'ja-JP': 'true にすると、ファイルが添付された投稿だけ取得します' - } }, }, diff --git a/src/server/api/endpoints/notes/watching/create.ts b/src/server/api/endpoints/notes/watching/create.ts index 7667ebdedd..74d31fe1a3 100644 --- a/src/server/api/endpoints/notes/watching/create.ts +++ b/src/server/api/endpoints/notes/watching/create.ts @@ -6,11 +6,6 @@ import { getNote } from '../../../common/getters'; import { ApiError } from '../../../error'; export const meta = { - desc: { - 'ja-JP': '指定した投稿をウォッチします。', - 'en-US': 'Watch a note.' - }, - tags: ['notes'], requireCredential: true as const, @@ -20,10 +15,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID.' - } } }, diff --git a/src/server/api/endpoints/notes/watching/delete.ts b/src/server/api/endpoints/notes/watching/delete.ts index 77b4ff15c8..a91d72be05 100644 --- a/src/server/api/endpoints/notes/watching/delete.ts +++ b/src/server/api/endpoints/notes/watching/delete.ts @@ -6,11 +6,6 @@ import { getNote } from '../../../common/getters'; import { ApiError } from '../../../error'; export const meta = { - desc: { - 'ja-JP': '指定した投稿のウォッチを解除します。', - 'en-US': 'Unwatch a note.' - }, - tags: ['notes'], requireCredential: true as const, @@ -20,10 +15,6 @@ export const meta = { params: { noteId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象の投稿のID', - 'en-US': 'Target note ID.' - } } }, diff --git a/src/server/api/endpoints/notifications/create.ts b/src/server/api/endpoints/notifications/create.ts index e447a32e0b..6267699e90 100644 --- a/src/server/api/endpoints/notifications/create.ts +++ b/src/server/api/endpoints/notifications/create.ts @@ -3,10 +3,6 @@ import define from '../../define'; import { createNotification } from '../../../../services/create-notification'; export const meta = { - desc: { - 'ja-JP': '通知を作成します。' - }, - tags: ['notifications'], requireCredential: true as const, diff --git a/src/server/api/endpoints/notifications/mark-all-as-read.ts b/src/server/api/endpoints/notifications/mark-all-as-read.ts index a17a3e7216..cce54587c7 100644 --- a/src/server/api/endpoints/notifications/mark-all-as-read.ts +++ b/src/server/api/endpoints/notifications/mark-all-as-read.ts @@ -3,11 +3,6 @@ import define from '../../define'; import { Notifications } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '全ての通知を既読にします。', - 'en-US': 'Mark all notifications as read.' - }, - tags: ['notifications', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/pages/create.ts b/src/server/api/endpoints/pages/create.ts index 4134455123..07e0969bdd 100644 --- a/src/server/api/endpoints/pages/create.ts +++ b/src/server/api/endpoints/pages/create.ts @@ -8,10 +8,6 @@ import { Page } from '../../../../models/entities/page'; import { ApiError } from '../../error'; export const meta = { - desc: { - 'ja-JP': 'ページを作成します。', - }, - tags: ['pages'], requireCredential: true as const, diff --git a/src/server/api/endpoints/pages/delete.ts b/src/server/api/endpoints/pages/delete.ts index 51704c866e..12a3360e43 100644 --- a/src/server/api/endpoints/pages/delete.ts +++ b/src/server/api/endpoints/pages/delete.ts @@ -5,10 +5,6 @@ import { Pages } from '../../../../models'; import { ID } from '@/misc/cafy-id'; export const meta = { - desc: { - 'ja-JP': '指定したページを削除します。', - }, - tags: ['pages'], requireCredential: true as const, @@ -18,10 +14,6 @@ export const meta = { params: { pageId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のページのID', - 'en-US': 'Target page ID.' - } }, }, diff --git a/src/server/api/endpoints/pages/like.ts b/src/server/api/endpoints/pages/like.ts index e6c15164c0..bed8e975ec 100644 --- a/src/server/api/endpoints/pages/like.ts +++ b/src/server/api/endpoints/pages/like.ts @@ -6,10 +6,6 @@ import { Pages, PageLikes } from '../../../../models'; import { genId } from '@/misc/gen-id'; export const meta = { - desc: { - 'ja-JP': '指定したページを「いいね」します。', - }, - tags: ['pages'], requireCredential: true as const, @@ -19,10 +15,6 @@ export const meta = { params: { pageId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のページのID', - 'en-US': 'Target page ID.' - } } }, diff --git a/src/server/api/endpoints/pages/show.ts b/src/server/api/endpoints/pages/show.ts index 13fa9ba1d0..d4d04bccff 100644 --- a/src/server/api/endpoints/pages/show.ts +++ b/src/server/api/endpoints/pages/show.ts @@ -6,10 +6,6 @@ import { ID } from '@/misc/cafy-id'; import { Page } from '../../../../models/entities/page'; export const meta = { - desc: { - 'ja-JP': '指定したページの情報を取得します。', - }, - tags: ['pages'], requireCredential: false as const, @@ -17,10 +13,6 @@ export const meta = { params: { pageId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のページのID', - 'en-US': 'Target page ID.' - } }, name: { diff --git a/src/server/api/endpoints/pages/unlike.ts b/src/server/api/endpoints/pages/unlike.ts index 2008dd8bef..a5e22a2c7b 100644 --- a/src/server/api/endpoints/pages/unlike.ts +++ b/src/server/api/endpoints/pages/unlike.ts @@ -5,10 +5,6 @@ import { ApiError } from '../../error'; import { Pages, PageLikes } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したページの「いいね」を解除します。', - }, - tags: ['pages'], requireCredential: true as const, @@ -18,10 +14,6 @@ export const meta = { params: { pageId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のページのID', - 'en-US': 'Target page ID.' - } } }, diff --git a/src/server/api/endpoints/pages/update.ts b/src/server/api/endpoints/pages/update.ts index d52d5964cb..6d1ae4c6fe 100644 --- a/src/server/api/endpoints/pages/update.ts +++ b/src/server/api/endpoints/pages/update.ts @@ -7,10 +7,6 @@ import { ID } from '@/misc/cafy-id'; import { Not } from 'typeorm'; export const meta = { - desc: { - 'ja-JP': '指定したページの情報を更新します。', - }, - tags: ['pages'], requireCredential: true as const, @@ -25,10 +21,6 @@ export const meta = { params: { pageId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のページのID', - 'en-US': 'Target page ID.' - } }, title: { diff --git a/src/server/api/endpoints/promo/read.ts b/src/server/api/endpoints/promo/read.ts index 325a96e572..32b543295d 100644 --- a/src/server/api/endpoints/promo/read.ts +++ b/src/server/api/endpoints/promo/read.ts @@ -7,11 +7,6 @@ import { PromoReads } from '../../../../models'; import { genId } from '@/misc/gen-id'; export const meta = { - desc: { - 'ja-JP': '指定したノートのプロモーションを既読にします。', - 'en-US': 'Marks the promotion for the specified note as read.' - }, - tags: ['notes'], requireCredential: true as const, diff --git a/src/server/api/endpoints/room/show.ts b/src/server/api/endpoints/room/show.ts index 13f9df19ac..7b2526c313 100644 --- a/src/server/api/endpoints/room/show.ts +++ b/src/server/api/endpoints/room/show.ts @@ -6,10 +6,6 @@ import { ID } from '@/misc/cafy-id'; import { toPunyNullable } from '@/misc/convert-host'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーの部屋の情報を取得します。', - }, - tags: ['room'], requireCredential: false as const, @@ -17,10 +13,6 @@ export const meta = { params: { userId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, username: { diff --git a/src/server/api/endpoints/stats.ts b/src/server/api/endpoints/stats.ts index 33d6af515b..748c612564 100644 --- a/src/server/api/endpoints/stats.ts +++ b/src/server/api/endpoints/stats.ts @@ -5,11 +5,6 @@ import { federationChart, driveChart } from '../../../services/chart'; export const meta = { requireCredential: false as const, - desc: { - 'ja-JP': 'インスタンスの統計を取得します。', - 'en-US': 'Get the instance\'s statistics' - }, - tags: ['meta'], params: { diff --git a/src/server/api/endpoints/username/available.ts b/src/server/api/endpoints/username/available.ts index 6a5146e432..5b51d7e176 100644 --- a/src/server/api/endpoints/username/available.ts +++ b/src/server/api/endpoints/username/available.ts @@ -3,11 +3,6 @@ import define from '../../define'; import { Users, UsedUsernames } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': 'ユーザーネームが使用されていないかをチェックします。', - 'en-US': 'Check if the username is being used.' - }, - tags: ['users'], requireCredential: false as const, diff --git a/src/server/api/endpoints/users.ts b/src/server/api/endpoints/users.ts index 354d7dc70b..933eb70b6f 100644 --- a/src/server/api/endpoints/users.ts +++ b/src/server/api/endpoints/users.ts @@ -4,11 +4,6 @@ import { Users } from '../../../models'; import { generateMutedUserQueryForUsers } from '../common/generate-muted-user-query'; export const meta = { - desc: { - 'ja-JP': 'ユーザー一覧を表示します。', - 'en-US': 'Display the user list.' - }, - tags: ['users'], requireCredential: false as const, diff --git a/src/server/api/endpoints/users/followers.ts b/src/server/api/endpoints/users/followers.ts index da8a1ea1b2..c9fe36e4e4 100644 --- a/src/server/api/endpoints/users/followers.ts +++ b/src/server/api/endpoints/users/followers.ts @@ -7,11 +7,6 @@ import { makePaginationQuery } from '../../common/make-pagination-query'; import { toPunyNullable } from '@/misc/convert-host'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーのフォロワー一覧を取得します。', - 'en-US': 'Get followers of a user.' - }, - tags: ['users'], requireCredential: false as const, @@ -19,10 +14,6 @@ export const meta = { params: { userId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, username: { diff --git a/src/server/api/endpoints/users/following.ts b/src/server/api/endpoints/users/following.ts index 832a51d297..c3dd90ff7e 100644 --- a/src/server/api/endpoints/users/following.ts +++ b/src/server/api/endpoints/users/following.ts @@ -7,11 +7,6 @@ import { makePaginationQuery } from '../../common/make-pagination-query'; import { toPunyNullable } from '@/misc/convert-host'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーのフォロー一覧を取得します。', - 'en-US': 'Get following users of a user.' - }, - tags: ['users'], requireCredential: false as const, @@ -19,10 +14,6 @@ export const meta = { params: { userId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, username: { diff --git a/src/server/api/endpoints/users/get-frequently-replied-users.ts b/src/server/api/endpoints/users/get-frequently-replied-users.ts index 98b8a49fda..bdfb7772ae 100644 --- a/src/server/api/endpoints/users/get-frequently-replied-users.ts +++ b/src/server/api/endpoints/users/get-frequently-replied-users.ts @@ -15,10 +15,6 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, limit: { diff --git a/src/server/api/endpoints/users/groups/create.ts b/src/server/api/endpoints/users/groups/create.ts index 0966ef7819..2cd0653baa 100644 --- a/src/server/api/endpoints/users/groups/create.ts +++ b/src/server/api/endpoints/users/groups/create.ts @@ -6,11 +6,6 @@ import { UserGroup } from '../../../../../models/entities/user-group'; import { UserGroupJoining } from '../../../../../models/entities/user-group-joining'; export const meta = { - desc: { - 'ja-JP': 'ユーザーグループを作成します。', - 'en-US': 'Create a user group.' - }, - tags: ['groups'], requireCredential: true as const, diff --git a/src/server/api/endpoints/users/groups/delete.ts b/src/server/api/endpoints/users/groups/delete.ts index 85e2e73325..4c4a8c15b1 100644 --- a/src/server/api/endpoints/users/groups/delete.ts +++ b/src/server/api/endpoints/users/groups/delete.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../../error'; import { UserGroups } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーグループを削除します。', - 'en-US': 'Delete a user group' - }, - tags: ['groups'], requireCredential: true as const, @@ -19,10 +14,6 @@ export const meta = { params: { groupId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象となるユーザーグループのID', - 'en-US': 'ID of target user group' - } } }, diff --git a/src/server/api/endpoints/users/groups/invitations/accept.ts b/src/server/api/endpoints/users/groups/invitations/accept.ts index d6d419826e..943d158661 100644 --- a/src/server/api/endpoints/users/groups/invitations/accept.ts +++ b/src/server/api/endpoints/users/groups/invitations/accept.ts @@ -7,11 +7,6 @@ import { genId } from '@/misc/gen-id'; import { UserGroupJoining } from '../../../../../../models/entities/user-group-joining'; export const meta = { - desc: { - 'ja-JP': 'ユーザーグループへの招待を承認します。', - 'en-US': 'Accept invitation of a user group.' - }, - tags: ['groups', 'users'], requireCredential: true as const, @@ -21,10 +16,6 @@ export const meta = { params: { invitationId: { validator: $.type(ID), - desc: { - 'ja-JP': '招待ID', - 'en-US': 'The invitation ID' - } }, }, diff --git a/src/server/api/endpoints/users/groups/invitations/reject.ts b/src/server/api/endpoints/users/groups/invitations/reject.ts index 98dc7bfbdf..4bc902ae5d 100644 --- a/src/server/api/endpoints/users/groups/invitations/reject.ts +++ b/src/server/api/endpoints/users/groups/invitations/reject.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../../../error'; import { UserGroupInvitations } from '../../../../../../models'; export const meta = { - desc: { - 'ja-JP': 'ユーザーグループへの招待を拒否します。', - 'en-US': 'Reject invitation of a user group.' - }, - tags: ['groups', 'users'], requireCredential: true as const, @@ -19,10 +14,6 @@ export const meta = { params: { invitationId: { validator: $.type(ID), - desc: { - 'ja-JP': '招待ID', - 'en-US': 'The invitation ID' - } }, }, diff --git a/src/server/api/endpoints/users/groups/invite.ts b/src/server/api/endpoints/users/groups/invite.ts index 00d4932f55..688b18f69d 100644 --- a/src/server/api/endpoints/users/groups/invite.ts +++ b/src/server/api/endpoints/users/groups/invite.ts @@ -9,11 +9,6 @@ import { UserGroupInvitation } from '../../../../../models/entities/user-group-i import { createNotification } from '../../../../../services/create-notification'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーグループに指定したユーザーを招待します。', - 'en-US': 'Invite a user to a user group.' - }, - tags: ['groups', 'users'], requireCredential: true as const, @@ -27,10 +22,6 @@ export const meta = { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, }, diff --git a/src/server/api/endpoints/users/groups/joined.ts b/src/server/api/endpoints/users/groups/joined.ts index a579a738e5..b25341c854 100644 --- a/src/server/api/endpoints/users/groups/joined.ts +++ b/src/server/api/endpoints/users/groups/joined.ts @@ -3,10 +3,6 @@ import { UserGroups, UserGroupJoinings } from '../../../../../models'; import { Not, In } from 'typeorm'; export const meta = { - desc: { - 'ja-JP': '自分の所属するユーザーグループ一覧を取得します。' - }, - tags: ['groups', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/users/groups/owned.ts b/src/server/api/endpoints/users/groups/owned.ts index bb34090cbc..e0b003c9e4 100644 --- a/src/server/api/endpoints/users/groups/owned.ts +++ b/src/server/api/endpoints/users/groups/owned.ts @@ -2,10 +2,6 @@ import define from '../../../define'; import { UserGroups } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '自分の作成したユーザーグループ一覧を取得します。' - }, - tags: ['groups', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/users/groups/pull.ts b/src/server/api/endpoints/users/groups/pull.ts index 82d45e31ad..d93a16bd9d 100644 --- a/src/server/api/endpoints/users/groups/pull.ts +++ b/src/server/api/endpoints/users/groups/pull.ts @@ -6,11 +6,6 @@ import { getUser } from '../../../common/getters'; import { UserGroups, UserGroupJoinings } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーグループから指定したユーザーを削除します。', - 'en-US': 'Remove a user to a user group.' - }, - tags: ['groups', 'users'], requireCredential: true as const, @@ -24,10 +19,6 @@ export const meta = { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, }, diff --git a/src/server/api/endpoints/users/groups/show.ts b/src/server/api/endpoints/users/groups/show.ts index c174a7973c..1b71933c20 100644 --- a/src/server/api/endpoints/users/groups/show.ts +++ b/src/server/api/endpoints/users/groups/show.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../../error'; import { UserGroups, UserGroupJoinings } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーグループの情報を取得します。', - 'en-US': 'Show a user group.' - }, - tags: ['groups', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/users/groups/transfer.ts b/src/server/api/endpoints/users/groups/transfer.ts index 08aa1b7357..d6376993c9 100644 --- a/src/server/api/endpoints/users/groups/transfer.ts +++ b/src/server/api/endpoints/users/groups/transfer.ts @@ -6,11 +6,6 @@ import { getUser } from '../../../common/getters'; import { UserGroups, UserGroupJoinings } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーグループを指定したユーザーグループ内のユーザーに譲渡します。', - 'en-US': 'Transfer user group ownership to another user in group.' - }, - tags: ['groups', 'users'], requireCredential: true as const, @@ -24,10 +19,6 @@ export const meta = { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, }, diff --git a/src/server/api/endpoints/users/groups/update.ts b/src/server/api/endpoints/users/groups/update.ts index 8dc5a7f1b9..a403152b4e 100644 --- a/src/server/api/endpoints/users/groups/update.ts +++ b/src/server/api/endpoints/users/groups/update.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../../error'; import { UserGroups } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーグループを更新します。', - 'en-US': 'Update a user group' - }, - tags: ['groups'], requireCredential: true as const, @@ -19,18 +14,10 @@ export const meta = { params: { groupId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象となるユーザーグループのID', - 'en-US': 'ID of target user group' - } }, name: { validator: $.str.range(1, 100), - desc: { - 'ja-JP': 'このユーザーグループの名前', - 'en-US': 'name of this user group' - } } }, diff --git a/src/server/api/endpoints/users/lists/create.ts b/src/server/api/endpoints/users/lists/create.ts index 9891a6dae0..c524130089 100644 --- a/src/server/api/endpoints/users/lists/create.ts +++ b/src/server/api/endpoints/users/lists/create.ts @@ -5,11 +5,6 @@ import { genId } from '@/misc/gen-id'; import { UserList } from '../../../../../models/entities/user-list'; export const meta = { - desc: { - 'ja-JP': 'ユーザーリストを作成します。', - 'en-US': 'Create a user list' - }, - tags: ['lists'], requireCredential: true as const, diff --git a/src/server/api/endpoints/users/lists/delete.ts b/src/server/api/endpoints/users/lists/delete.ts index d3132025c5..ecae5641c5 100644 --- a/src/server/api/endpoints/users/lists/delete.ts +++ b/src/server/api/endpoints/users/lists/delete.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../../error'; import { UserLists } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーリストを削除します。', - 'en-US': 'Delete a user list' - }, - tags: ['lists'], requireCredential: true as const, @@ -19,10 +14,6 @@ export const meta = { params: { listId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象となるユーザーリストのID', - 'en-US': 'ID of target user list' - } } }, diff --git a/src/server/api/endpoints/users/lists/list.ts b/src/server/api/endpoints/users/lists/list.ts index 16f1b0639c..1548208714 100644 --- a/src/server/api/endpoints/users/lists/list.ts +++ b/src/server/api/endpoints/users/lists/list.ts @@ -2,10 +2,6 @@ import define from '../../../define'; import { UserLists } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '自分の作成したユーザーリスト一覧を取得します。' - }, - tags: ['lists', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/users/lists/pull.ts b/src/server/api/endpoints/users/lists/pull.ts index ddf5864a39..f8b5df0fc5 100644 --- a/src/server/api/endpoints/users/lists/pull.ts +++ b/src/server/api/endpoints/users/lists/pull.ts @@ -7,11 +7,6 @@ import { getUser } from '../../../common/getters'; import { UserLists, UserListJoinings, Users } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーリストから指定したユーザーを削除します。', - 'en-US': 'Remove a user to a user list.' - }, - tags: ['lists', 'users'], requireCredential: true as const, @@ -25,10 +20,6 @@ export const meta = { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, }, diff --git a/src/server/api/endpoints/users/lists/push.ts b/src/server/api/endpoints/users/lists/push.ts index c94c759d0c..b81d5b8c76 100644 --- a/src/server/api/endpoints/users/lists/push.ts +++ b/src/server/api/endpoints/users/lists/push.ts @@ -7,11 +7,6 @@ import { pushUserToUserList } from '../../../../../services/user-list/push'; import { UserLists, UserListJoinings } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーリストに指定したユーザーを追加します。', - 'en-US': 'Add a user to a user list.' - }, - tags: ['lists', 'users'], requireCredential: true as const, @@ -25,10 +20,6 @@ export const meta = { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, }, diff --git a/src/server/api/endpoints/users/lists/show.ts b/src/server/api/endpoints/users/lists/show.ts index aee1c13dee..ff9ed001f7 100644 --- a/src/server/api/endpoints/users/lists/show.ts +++ b/src/server/api/endpoints/users/lists/show.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../../error'; import { UserLists } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーリストの情報を取得します。', - 'en-US': 'Show a user list.' - }, - tags: ['lists', 'account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/users/lists/update.ts b/src/server/api/endpoints/users/lists/update.ts index 342791e5f3..eaa420a5b9 100644 --- a/src/server/api/endpoints/users/lists/update.ts +++ b/src/server/api/endpoints/users/lists/update.ts @@ -5,11 +5,6 @@ import { ApiError } from '../../../error'; import { UserLists } from '../../../../../models'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーリストを更新します。', - 'en-US': 'Update a user list' - }, - tags: ['lists'], requireCredential: true as const, @@ -19,18 +14,10 @@ export const meta = { params: { listId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象となるユーザーリストのID', - 'en-US': 'ID of target user list' - } }, name: { validator: $.str.range(1, 100), - desc: { - 'ja-JP': 'このユーザーリストの名前', - 'en-US': 'name of this user list' - } } }, diff --git a/src/server/api/endpoints/users/notes.ts b/src/server/api/endpoints/users/notes.ts index b886756c02..55f07e390b 100644 --- a/src/server/api/endpoints/users/notes.ts +++ b/src/server/api/endpoints/users/notes.ts @@ -10,95 +10,56 @@ import { generateMutedUserQuery } from '../../common/generate-muted-user-query'; import { Brackets } from 'typeorm'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーのタイムラインを取得します。' - }, - tags: ['users', 'notes'], params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, includeReplies: { validator: $.optional.bool, default: true, - - desc: { - 'ja-JP': 'リプライを含めるか否か' - } }, limit: { validator: $.optional.num.range(1, 100), default: 10, - desc: { - 'ja-JP': '最大数' - } }, sinceId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより新しい投稿を取得します' - } }, untilId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '指定すると、その投稿を基点としてより古い投稿を取得します' - } }, sinceDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより新しい投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, untilDate: { validator: $.optional.num, - desc: { - 'ja-JP': '指定した時間を基点としてより古い投稿を取得します。数値は、1970年1月1日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。' - } }, includeMyRenotes: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': 'Renoteを含めるかどうか' - } }, withFiles: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': 'true にすると、ファイルが添付された投稿だけ取得します' - } }, fileType: { validator: $.optional.arr($.str), - desc: { - 'ja-JP': '指定された種類のファイルが添付された投稿のみを取得します' - } }, excludeNsfw: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': 'true にすると、NSFW指定されたファイルを除外します(fileTypeが指定されている場合のみ有効)' - } }, }, diff --git a/src/server/api/endpoints/users/recommendation.ts b/src/server/api/endpoints/users/recommendation.ts index 7f80b52753..7c269268bf 100644 --- a/src/server/api/endpoints/users/recommendation.ts +++ b/src/server/api/endpoints/users/recommendation.ts @@ -6,10 +6,6 @@ import { generateMutedUserQueryForUsers } from '../../common/generate-muted-user import { generateBlockQueryForUsers } from '../../common/generate-block-query'; export const meta = { - desc: { - 'ja-JP': 'おすすめのユーザー一覧を取得します。' - }, - tags: ['users'], requireCredential: true as const, diff --git a/src/server/api/endpoints/users/relation.ts b/src/server/api/endpoints/users/relation.ts index fc294eb64d..18ec5d44b3 100644 --- a/src/server/api/endpoints/users/relation.ts +++ b/src/server/api/endpoints/users/relation.ts @@ -4,10 +4,6 @@ import { ID } from '@/misc/cafy-id'; import { Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': 'ユーザー間のリレーションを取得します。' - }, - tags: ['users'], requireCredential: true as const, @@ -15,9 +11,6 @@ export const meta = { params: { userId: { validator: $.either($.type(ID), $.arr($.type(ID)).unique()), - desc: { - 'ja-JP': 'ユーザーID (配列でも可)' - } } }, diff --git a/src/server/api/endpoints/users/report-abuse.ts b/src/server/api/endpoints/users/report-abuse.ts index 671eca0298..776d683700 100644 --- a/src/server/api/endpoints/users/report-abuse.ts +++ b/src/server/api/endpoints/users/report-abuse.ts @@ -8,10 +8,6 @@ import { AbuseUserReports, Users } from '../../../../models'; import { genId } from '@/misc/gen-id'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーを迷惑なユーザーであると報告します。' - }, - tags: ['users'], requireCredential: true as const, @@ -19,17 +15,10 @@ export const meta = { params: { userId: { validator: $.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, comment: { validator: $.str.range(1, 2048), - desc: { - 'ja-JP': '迷惑行為の詳細' - } }, }, diff --git a/src/server/api/endpoints/users/search-by-username-and-host.ts b/src/server/api/endpoints/users/search-by-username-and-host.ts index 8e436ddb9e..13c5a18dbe 100644 --- a/src/server/api/endpoints/users/search-by-username-and-host.ts +++ b/src/server/api/endpoints/users/search-by-username-and-host.ts @@ -3,10 +3,6 @@ import define from '../../define'; import { Users } from '../../../../models'; export const meta = { - desc: { - 'ja-JP': 'ユーザーを検索します。' - }, - tags: ['users'], requireCredential: false as const, @@ -14,40 +10,25 @@ export const meta = { params: { username: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'クエリ' - } }, host: { validator: $.optional.nullable.str, - desc: { - 'ja-JP': 'クエリ' - } }, offset: { validator: $.optional.num.min(0), default: 0, - desc: { - 'ja-JP': 'オフセット' - } }, limit: { validator: $.optional.num.range(1, 100), default: 10, - desc: { - 'ja-JP': '取得する数' - } }, detail: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': '詳細なユーザー情報を含めるか否か' - } }, }, diff --git a/src/server/api/endpoints/users/search.ts b/src/server/api/endpoints/users/search.ts index 528c6ac883..c183194c41 100644 --- a/src/server/api/endpoints/users/search.ts +++ b/src/server/api/endpoints/users/search.ts @@ -4,10 +4,6 @@ import { UserProfiles, Users } from '../../../../models'; import { User } from '../../../../models/entities/user'; export const meta = { - desc: { - 'ja-JP': 'ユーザーを検索します。' - }, - tags: ['users'], requireCredential: false as const, @@ -15,41 +11,26 @@ export const meta = { params: { query: { validator: $.str, - desc: { - 'ja-JP': 'クエリ' - } }, offset: { validator: $.optional.num.min(0), default: 0, - desc: { - 'ja-JP': 'オフセット' - } }, limit: { validator: $.optional.num.range(1, 100), default: 10, - desc: { - 'ja-JP': '取得する数' - } }, localOnly: { validator: $.optional.bool, default: false, - desc: { - 'ja-JP': 'ローカルユーザーのみ検索対象にするか否か' - } }, detail: { validator: $.optional.bool, default: true, - desc: { - 'ja-JP': '詳細なユーザー情報を含めるか否か' - } }, }, diff --git a/src/server/api/endpoints/users/show.ts b/src/server/api/endpoints/users/show.ts index 11d36d2ae9..fde2b5a14d 100644 --- a/src/server/api/endpoints/users/show.ts +++ b/src/server/api/endpoints/users/show.ts @@ -9,10 +9,6 @@ import { In } from 'typeorm'; import { User } from '@/models/entities/user'; export const meta = { - desc: { - 'ja-JP': '指定したユーザーの情報を取得します。' - }, - tags: ['users'], requireCredential: false as const, @@ -20,17 +16,10 @@ export const meta = { params: { userId: { validator: $.optional.type(ID), - desc: { - 'ja-JP': '対象のユーザーのID', - 'en-US': 'Target user ID' - } }, userIds: { validator: $.optional.arr($.type(ID)).unique(), - desc: { - 'ja-JP': 'ユーザーID (配列)' - } }, username: { From 56600ba1df2186bd3b0d5d30b4f1fd53bf5efd5d Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 8 Jun 2021 14:14:58 +0900 Subject: [PATCH 11/15] 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(-) 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: { From 55c549a9f83f25ac67fba888223faa9f98749b48 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 8 Jun 2021 14:24:21 +0900 Subject: [PATCH 12/15] 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 ------ .../api/endpoints/admin/accounts/create.ts | 1 - .../endpoints/admin/announcements/create.ts | 6 ----- .../api/endpoints/admin/announcements/list.ts | 7 ------ .../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 ---- .../endpoints/admin/queue/deliver-delayed.ts | 2 -- .../endpoints/admin/queue/inbox-delayed.ts | 2 -- src/server/api/endpoints/admin/server-info.ts | 10 -------- src/server/api/endpoints/announcements.ts | 7 ------ .../api/endpoints/auth/session/generate.ts | 2 -- .../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 ---- .../api/endpoints/username/available.ts | 1 - .../chart/charts/schemas/active-users.ts | 1 - src/services/chart/charts/schemas/drive.ts | 6 ----- .../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 ----- .../charts/schemas/per-user-following.ts | 6 ----- .../chart/charts/schemas/per-user-notes.ts | 6 ----- .../charts/schemas/per-user-reactions.ts | 1 - .../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(-) 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: '減少したユーザー数' }, }; From a65eb502d2a1d54e5ed3594a11d0aad3bdc3de89 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 8 Jun 2021 14:26:52 +0900 Subject: [PATCH 13/15] fix api response definition --- src/server/api/endpoints/blocking/delete.ts | 67 +-------------------- 1 file changed, 2 insertions(+), 65 deletions(-) diff --git a/src/server/api/endpoints/blocking/delete.ts b/src/server/api/endpoints/blocking/delete.ts index 28776727a5..c69c8b14a7 100644 --- a/src/server/api/endpoints/blocking/delete.ts +++ b/src/server/api/endpoints/blocking/delete.ts @@ -48,71 +48,8 @@ export const meta = { res: { type: 'object' as const, optional: false as const, nullable: false as const, - properties: { - id: { - type: 'string' as const, - optional: false as const, nullable: false as const, - format: 'id', - example: 'xxxxxxxxxx', - }, - name: { - type: 'string' as const, - optional: false as const, nullable: true as const - }, - username: { - type: 'string' as const, - optional: false as const, nullable: false as const - }, - host: { - type: 'string' as const, - optional: false as const, nullable: true as const - }, - avatarUrl: { - type: 'string' as const, - optional: false as const, nullable: false as const, - format: 'url' - }, - avatarBlurhash: { - type: 'string' as const, - optional: false as const, nullable: true as const - }, - avatarColor: { - type: 'any' as const, - optional: false as const, nullable: true as const - }, - emojis: { - type: 'array' as const, - optional: false as const, nullable: false as const, - items: { - type: 'object' as const, - nullable: false as const, optional: false as const, - properties: { - name: { - type: 'string' as const, - nullable: false as const, optional: false as const - }, - host: { - type: 'string' as const, - nullable: true as const, optional: false as const - }, - url: { - type: 'string' as const, - nullable: false as const, optional: false as const, - format: 'url' - }, - aliases: { - type: 'array' as const, - nullable: false as const, optional: false as const, - items: { - type: 'string' as const, - nullable: false as const, optional: false as const - } - } - } - } - } - } - } + ref: 'User', + }, }; export default define(meta, async (ps, user) => { From 8b9c445fef9415b801e9ee9cbeb1087747654b83 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 10 Jun 2021 14:01:09 +0900 Subject: [PATCH 14/15] New Crowdin updates (#7554) * New translations ja-JP.yml (French) * New translations ja-JP.yml (French) * New translations ja-JP.yml (Italian) * New translations ja-JP.yml (Korean) * New translations ja-JP.yml (German) * New translations ja-JP.yml (English) * New translations api.md (Korean) * New translations mfm.md (Korean) * New translations api.md (Korean) * New translations timelines.md (Spanish) * New translations timelines.md (Spanish) * New translations timelines.md (Spanish) * New translations theme.md (Spanish) * New translations ja-JP.yml (Chinese Simplified) * New translations theme.md (Spanish) * New translations theme.md (Spanish) * New translations theme.md (Spanish) * New translations theme.md (Spanish) * New translations theme.md (Spanish) * New translations theme.md (Spanish) * New translations stream.md (Spanish) * New translations stream.md (Spanish) * New translations stream.md (Spanish) * New translations stream.md (Spanish) --- locales/de-DE.yml | 1 + locales/en-US.yml | 1 + locales/fr-FR.yml | 5 +++ locales/it-IT.yml | 5 +++ locales/ko-KR.yml | 1 + locales/zh-CN.yml | 1 + src/docs/es-ES/stream.md | 40 +++++++++++------------ src/docs/es-ES/theme.md | 64 ++++++++++++++++++------------------- src/docs/es-ES/timelines.md | 10 +++--- src/docs/ko-KR/api.md | 4 +-- src/docs/ko-KR/mfm.md | 2 +- 11 files changed, 74 insertions(+), 60 deletions(-) diff --git a/locales/de-DE.yml b/locales/de-DE.yml index e3edcf5f40..d08858a336 100644 --- a/locales/de-DE.yml +++ b/locales/de-DE.yml @@ -326,6 +326,7 @@ driveCapacityPerRemoteAccount: "Drive-Kapazität pro Benutzer anderer Instanzen" inMb: "In Megabytes" iconUrl: "Icon-URL" bannerUrl: "Banner-URL" +backgroundImageUrl: "Hintergrundbild-URL" basicInfo: "Basisdaten" pinnedUsers: "Angepinnte Benutzer" pinnedUsersDescription: "Gib einen Benutzernamen pro Zeile ein. Diese werden im \"Erkunden\" Tab angezeigt." diff --git a/locales/en-US.yml b/locales/en-US.yml index 3dd581c8a4..d08f403b9e 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -326,6 +326,7 @@ driveCapacityPerRemoteAccount: "Drive capacity per remote user" inMb: "In megabytes" iconUrl: "Icon URL" bannerUrl: "Banner image URL" +backgroundImageUrl: "Background image URL" basicInfo: "Basic info" pinnedUsers: "Pinned user" pinnedUsersDescription: "List one username per line. Users listed here will be pinned under \"Explore\" tab." diff --git a/locales/fr-FR.yml b/locales/fr-FR.yml index 174a3a8f5a..161b4553ad 100644 --- a/locales/fr-FR.yml +++ b/locales/fr-FR.yml @@ -279,6 +279,7 @@ emptyDrive: "Le Drive est vide" emptyFolder: "Le dossier est vide" unableToDelete: "Suppression impossible" inputNewFileName: "Entrez un nouveau nom de fichier" +inputNewDescription: "Veuillez entrer une nouvelle description" inputNewFolderName: "Entrez un nouveau nom de dossier" circularReferenceFolder: "Le dossier de destination est un sous-dossier du dossier que vous souhaitez déplacer." hasChildFilesOrFolders: "Impossible de supprimer ce dossier car il n'est pas vide." @@ -310,6 +311,8 @@ monthX: "{month}" yearX: "{year}" pages: "Pages" integration: "Intégrations" +connectService: "Connexion" +disconnectService: "Déconnexion" enableLocalTimeline: "Activer le fil local" enableGlobalTimeline: "Activer le fil global" disablingTimelinesInfo: "Même si vous désactivez ces fils, les administrateur·rice·s et les modérateur·rice·s pourront toujours y accéder." @@ -544,6 +547,8 @@ disablePlayer: "Fermer le lecteur vidéo" expandTweet: "Étendre le tweet" themeEditor: "Éditeur de thèmes" description: "Description" +describeFile: "Ajouter une description d'image" +enterFileDescription: "Saisissez une description" author: "Auteur·rice" leaveConfirm: "Vous avez des modifications non-sauvegardées. Voulez-vous les ignorer ?" manage: "Gestion" diff --git a/locales/it-IT.yml b/locales/it-IT.yml index 0fdf78c799..63b535a476 100644 --- a/locales/it-IT.yml +++ b/locales/it-IT.yml @@ -274,6 +274,7 @@ emptyDrive: "Il Drive è vuoto" emptyFolder: "La cartella è vuota" unableToDelete: "Eliminazione impossibile" inputNewFileName: "Inserisci nome del nuovo file" +inputNewDescription: "Inserisci una nuova descrizione" inputNewFolderName: "Inserisci nome della nuova cartella" circularReferenceFolder: "La cartella di destinazione è una sottocartella della cartella che vuoi spostare." hasChildFilesOrFolders: "Impossibile eliminare la cartella perché non è vuota" @@ -305,6 +306,8 @@ monthX: "{month}" yearX: "{year}" pages: "Pagine" integration: "App collegate" +connectService: "Connessione" +disconnectService: "Disconnessione " enableLocalTimeline: "Abilita Timeline locale" enableGlobalTimeline: "Abilita Timeline federata" disablingTimelinesInfo: "Anche se disabiliti queste timeline, gli amministratori e i moderatori potranno sempre accederci." @@ -531,6 +534,8 @@ disablePlayer: "Chiudi lettore video" expandTweet: "Espandi tweet" themeEditor: "Editor di temi" description: "Descrizione" +describeFile: "Aggiungi una descrizione d'immagine" +enterFileDescription: "Inserisci descrizione" author: "Autore" leaveConfirm: "Ci sono delle modifiche ancora non salvate. Vuoi cancellarle?" manage: "Gestione" diff --git a/locales/ko-KR.yml b/locales/ko-KR.yml index 3d313b8c7c..f3fce251f6 100644 --- a/locales/ko-KR.yml +++ b/locales/ko-KR.yml @@ -326,6 +326,7 @@ driveCapacityPerRemoteAccount: "리모트 유저 한 명당 드라이브 용량" inMb: "메가바이트 단위" iconUrl: "아이콘 URL" bannerUrl: "배너 이미지 URL" +backgroundImageUrl: "배경 이미지 URL" basicInfo: "기본 정보" pinnedUsers: "고정된 유저" pinnedUsersDescription: "\"발견하기\" 페이지 등에 고정하고 싶은 유저를 한 줄에 한 명씩 적습니다." diff --git a/locales/zh-CN.yml b/locales/zh-CN.yml index 905c84575c..f10a09a329 100644 --- a/locales/zh-CN.yml +++ b/locales/zh-CN.yml @@ -326,6 +326,7 @@ driveCapacityPerRemoteAccount: "每个远程用户的网盘容量" inMb: "以兆字节(MegaByte)为单位" iconUrl: "图标URL" bannerUrl: "Banner URL" +backgroundImageUrl: "背景图URL" basicInfo: "基本信息" pinnedUsers: "置顶用户" pinnedUsersDescription: "在「发现」页面中使用换行标记想要置顶的用户。" diff --git a/src/docs/es-ES/stream.md b/src/docs/es-ES/stream.md index c32579c148..f1e5b78c75 100644 --- a/src/docs/es-ES/stream.md +++ b/src/docs/es-ES/stream.md @@ -1,25 +1,25 @@ -# ストリーミングAPI +# API de Streaming -ストリーミングAPIを使うと、リアルタイムで様々な情報(例えばタイムラインに新しい投稿が流れてきた、メッセージが届いた、フォローされた、など)を受け取ったり、様々な操作を行ったりすることができます。 +Usando la API de streaming, se puede recibir en tiempo real toda clase de información (por ejemplo, los posts nuevos que pasaron por la linea de tiempo, los mensajes recibidos, las notificaciones de seguimiento, etc.) y manejar varias operaciones en estas. -## ストリームに接続する +## Conectarse a streams -ストリーミングAPIを利用するには、まずMisskeyサーバーに**websocket**接続する必要があります。 +Para usar la API de streaming, primero hay que conectar un **websocket** al servidor de Misskey -以下のURLに、`i`というパラメータ名で認証情報を含めて、websocket接続してください。例: +Conecte el websocket a la URL mencionada abajo, incluyendo la información de autenticación en el parámetro `i`Ej: ``` %WS_URL%/streaming?i=xxxxxxxxxxxxxxx ``` -認証情報は、自分のAPIキーや、アプリケーションからストリームに接続する際はユーザーのアクセストークンのことを指します。 +La información de autenticación hace referencia a tu propia clave de la API, o al token de acceso del usuario cuando se conecta al stream desde la aplicación
-

認証情報の取得については、こちらのドキュメントをご確認ください。

+

Para obtener la información de la autenticación, consulte Este documento

--- -認証情報は省略することもできますが、その場合非ログインでの利用ということになり、受信できる情報や可能な操作は限られます。例: +La información de autenticación puede omitirse, pero en ese caso de uso sin un login, se restringirá la información que puede ser recibida y las operaciones posibles,Ej: ``` %WS_URL%/streaming @@ -50,7 +50,7 @@ MisskeyのストリーミングAPIにはチャンネルという概念があり } ``` -ここで、 +Aquí * `channel`には接続したいチャンネル名を設定します。チャンネルの種類については後述します。 * `id`にはそのチャンネルとやり取りするための任意のIDを設定します。ストリームでは様々なメッセージが流れるので、そのメッセージがどのチャンネルからのものなのか識別する必要があるからです。このIDは、UUIDや、乱数のようなもので構いません。 * `params`はチャンネルに接続する際のパラメータです。チャンネルによって接続時に必要とされるパラメータは異なります。パラメータ不要のチャンネルに接続する際は、このプロパティは省略可能です。 @@ -76,7 +76,7 @@ MisskeyのストリーミングAPIにはチャンネルという概念があり } ``` -ここで、 +Aquí * `id`には前述したそのチャンネルに接続する際に設定したIDが設定されています。これで、このメッセージがどのチャンネルからのものなのか知ることができます。 * `type`にはメッセージの種類が設定されます。チャンネルによって、どのような種類のメッセージが流れてくるかは異なります。 * `body`にはメッセージの内容が設定されます。チャンネルによって、どのような内容のメッセージが流れてくるかは異なります。 @@ -98,7 +98,7 @@ MisskeyのストリーミングAPIにはチャンネルという概念があり } ``` -ここで、 +Aquí * `id`には前述したそのチャンネルに接続する際に設定したIDを設定します。これで、このメッセージがどのチャンネルに向けたものなのか識別させることができます。 * `type`にはメッセージの種類を設定します。チャンネルによって、どのような種類のメッセージを受け付けるかは異なります。 * `body`にはメッセージの内容を設定します。チャンネルによって、どのような内容のメッセージを受け付けるかは異なります。 @@ -115,7 +115,7 @@ MisskeyのストリーミングAPIにはチャンネルという概念があり } ``` -ここで、 +Aquí * `id`には前述したそのチャンネルに接続する際に設定したIDを設定します。 ## ストリームを経由してAPIリクエストする @@ -136,7 +136,7 @@ MisskeyのストリーミングAPIにはチャンネルという概念があり } ``` -ここで、 +Aquí * `id`には、APIのレスポンスを識別するための、APIリクエストごとの一意なIDを設定する必要があります。UUIDや、簡単な乱数のようなもので構いません。 * `endpoint`には、あなたがリクエストしたいAPIのエンドポイントを指定します。 * `data`には、エンドポイントのパラメータを含めます。 @@ -158,7 +158,7 @@ APIへリクエストすると、レスポンスがストリームから次の } ``` -ここで、 +Aquí * `xxxxxxxxxxxxxxxx`の部分には、リクエストの際に設定された`id`が含まれています。これにより、どのリクエストに対するレスポンスなのか判別することができます。 * `body`には、レスポンスが含まれています。 @@ -185,7 +185,7 @@ Misskeyは投稿のキャプチャと呼ばれる仕組みを提供していま } ``` -ここで、 +Aquí * `id`にキャプチャしたい投稿の`id`を設定します。 このメッセージを送信すると、Misskeyにキャプチャを要請したことになり、以後、その投稿に関するイベントが流れてくるようになります。 @@ -206,7 +206,7 @@ Misskeyは投稿のキャプチャと呼ばれる仕組みを提供していま } ``` -ここで、 +Aquí * `body`内の`id`に、イベントを発生させた投稿のIDが設定されます。 * `body`内の`type`に、イベントの種類が設定されます。 * `body`内の`body`に、イベントの詳細が設定されます。 @@ -219,7 +219,7 @@ Misskeyは投稿のキャプチャと呼ばれる仕組みを提供していま * `reaction`に、リアクションの種類が設定されます。 * `userId`に、リアクションを行ったユーザーのIDが設定されます。 -例: +Ej: ```json { type: 'noteUpdated', @@ -239,7 +239,7 @@ Misskeyは投稿のキャプチャと呼ばれる仕組みを提供していま * `deletedAt`に、削除日時が設定されます。 -例: +Ej: ```json { type: 'noteUpdated', @@ -259,7 +259,7 @@ Misskeyは投稿のキャプチャと呼ばれる仕組みを提供していま * `choice`に、選択肢IDが設定されます。 * `userId`に、投票を行ったユーザーのIDが設定されます。 -例: +Ej: ```json { type: 'noteUpdated', @@ -289,7 +289,7 @@ Misskeyは投稿のキャプチャと呼ばれる仕組みを提供していま } ``` -ここで、 +Aquí * `id`にキャプチャを解除したい投稿の`id`を設定します。 このメッセージを送信すると、以後、その投稿に関するイベントは流れてこないようになります。 diff --git a/src/docs/es-ES/theme.md b/src/docs/es-ES/theme.md index 3e379ee5f5..090b40e6a1 100644 --- a/src/docs/es-ES/theme.md +++ b/src/docs/es-ES/theme.md @@ -1,12 +1,12 @@ # Tema -テーマを設定して、Misskeyクライアントの見た目を変更できます。 +Eligiendo un tema, se puede cambiar la apariencia del cliente de Misskey -## テーマの設定 -設定 > テーマ +## Configuración del tema +Configuración > Tema -## テーマを作成する -テーマコードはJSON5で記述されたテーマオブジェクトです。 テーマは以下のようなオブジェクトです。 +## Crear tema +El código del tema se guarda como un archivo JSON5. Un ejemplo de tema se puede ver aquí: ``` js { id: '17587283-dd92-4a2c-a22c-be0637c9e22a', @@ -33,36 +33,36 @@ ``` -* `id` ... テーマの一意なID。UUIDをおすすめします。 -* `name` ... テーマ名 -* `author` ... テーマの作者 -* `desc` ... テーマの説明(オプション) -* `base` ... 明るいテーマか、暗いテーマか - * `light`にすると明るいテーマになり、`dark`にすると暗いテーマになります。 - * テーマはここで設定されたベーステーマを継承します。 -* `props` ... テーマのスタイル定義。これから説明します。 +* `id` ... Clave única del tema.Se recomienda un código UUID +* `name` ... Nombre del tema +* `author` ... Autor del tema +* `desc` ... Descripción del tema (opcional) +* `base` ... Si es un tema claro u oscuro + * Si se elige `light`, será un tema claro. Si se elige `dark`, será un tema oscuro. + * Aquí el tema hereda los valores por defecto del tema base elegido +* `props` ... Definición del estilo del tema. Esto se explica en lo siguiente. -### テーマのスタイル定義 -`props`下にはテーマのスタイルを定義します。 キーがCSSの変数名になり、バリューで中身を指定します。 なお、この`props`オブジェクトはベーステーマから継承されます。 ベーステーマは、このテーマの`base`が`light`なら[_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5)で、`dark`なら[_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5)です。 つまり、このテーマ内の`props`に`panel`というキーが無くても、そこにはベーステーマの`panel`があると見なされます。 +### Definición del estilo del tema +Debajo de `props`, se define el estilo del tema. La clave es el nombre de las variables del CSS, y con los valores estos se configuran. Incluso más, este objeto `props` hereda los valores por defecto del tema base. El tema base es [_light.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_light.json5) si el `base` de este tema es `light`, y [_dark.json5](https://github.com/misskey-dev/misskey/blob/develop/src/client/themes/_dark.json5) si si el `base` de este tema es `dark` Resumiendo, aunque no haya una clave `panel` en el `props` del tema, se considera el <0>panel del tema base. -#### バリューで使える構文 -* 16進数で表された色 - * 例: `#00ff00` -* `rgb(r, g, b)`形式で表された色 - * 例: `rgb(0, 255, 0)` -* `rgb(r, g, b, a)`形式で表された透明度を含む色 - * 例: `rgba(0, 255, 0, 0.5)` -* 他のキーの値の参照 - * `@{キー名}`と書くと他のキーの値の参照になります。`{キー名}`は参照したいキーの名前に置き換えます。 - * 例: `@panel` -* 定数(後述)の参照 - * `${定数名}`と書くと定数の参照になります。`{定数名}`は参照したい定数の名前に置き換えます。 - * 例: `$main` -* 関数(後述) - * `:{関数名}<{引数}<{色}` +#### Sintaxis de las variables +* Los colores en base hexadecimal + * Ej: `#00ff00` +* Los colores con la sintaxis `rgb(r, g, b)` + * Ej: `rgb(0, 255, 0)` +* Los colores con la sintaxis `rgb(r, g, b, a)` con un grado de transparencia + * Ej: `rgba(0, 255, 0, 0.5)` +* Referencias a valores de otras claves + * Escribiendo `@{nombre de clave}` se hace referencia al valor de la otra clave.Reemplace `{nombre de clave}` por el nombre de la clave al cual quiera hacer referencia. + * Ej: `@panel` +* Referencia a una constante (ver más abajo) + * Escribiendo `${nombre de la constante}` se hace referencia a la constante.Reemplace `{nombre de la constante}` por la constante al cual quiera hacer referencia. + * Ej: `$main` +* Funciones (ver más abajo) + * `:{nombre de la función}<{parámetros}<{color}` -#### Constante -「CSS変数として出力はしたくないが、他のCSS変数の値として使いまわしたい」値があるときは、定数を使うと便利です。 キー名を`$`で始めると、そのキーはCSS変数として出力されません。 +#### Constantes +Cuando hay un valor que no se quiere generar como variable CSS pero sí se quiere reutilizar como valor de otra variable CSS, es conveniente usar constantes. Cuando a un nombre de clave se le añade como prefijo `$`, esa clave no será generada como una variable CSS. #### funciones wip diff --git a/src/docs/es-ES/timelines.md b/src/docs/es-ES/timelines.md index d2ee592fd8..60834cfda3 100644 --- a/src/docs/es-ES/timelines.md +++ b/src/docs/es-ES/timelines.md @@ -1,15 +1,15 @@ -# タイムラインの比較 +# Comparación de las lineas de tiempo https://docs.google.com/spreadsheets/d/1lxQ2ugKrhz58Bg96HTDK_2F98BUritkMyIiBkOByjHA/edit?usp=sharing ## Inicio -自分のフォローしているユーザーの投稿 +Los posts de los usuarios que uno sigue ## Local -全てのローカルユーザーの「ホーム」指定されていない投稿 +Todos los posts de los usuarios locales que no estén marcados como "Solo inicio" ## Social -自分のフォローしているユーザーの投稿と、全てのローカルユーザーの「ホーム」指定されていない投稿 +Los posts de los usuarios que uno sigue más todos los posts de los usuarios locales que no estén marcados como "Solo inicio" ## Global -全てのローカルユーザーの「ホーム」指定されていない投稿と、サーバーに届いた全てのリモートユーザーの「ホーム」指定されていない投稿 +Todos los posts de los usuarios locales que no estén marcados como "Solo inicio" más todos los posts de los usuarios remotos recibidos por el servidor que no estén marcados como "Solo inicio" diff --git a/src/docs/ko-KR/api.md b/src/docs/ko-KR/api.md index 057749ca6d..88559013dd 100644 --- a/src/docs/ko-KR/api.md +++ b/src/docs/ko-KR/api.md @@ -7,11 +7,11 @@ API를 사용하려면 먼저 액세스 토큰을 취득해야 합니다. 이 ## 액세스 토큰 가져오기 기본적으로 API는 요청 시에 액세스 토큰이 필요합니다. API에 요청하는 것이 자기 자신인지, 불특정한 유저에게 사용하는 애플리케이션인지에 따라 취득 절차가 달라집니다. -* 전자의 경우: [ 「자기 자신의 액세스 토큰을 수동으로 발급하기」](#自分自身のアクセストークンを手動発行する)로 진행 +* 전자의 경우: [「자기 자신의 액세스 토큰을 수동으로 발급하기」](#自分自身のアクセストークンを手動発行する)로 진행 * 후자의 경우: [「애플리케이션 사용자에게 액세스 토큰 발급을 요청하기」](#アプリケーション利用者にアクセストークンの発行をリクエストする)로 진행 ### 자기 자신의 액세스 토큰을 수동으로 발급하기 -「설정 > API」에서 자신의 액세스 토큰을 발급할 수 있습니다. +「설정 > API」에서 자신의 액세스 토큰을 발급할 수 있습니다. [「API 사용 방법」으로 이동](#APIの使い方) diff --git a/src/docs/ko-KR/mfm.md b/src/docs/ko-KR/mfm.md index 854de1ba90..c9e8a5a4dd 100644 --- a/src/docs/ko-KR/mfm.md +++ b/src/docs/ko-KR/mfm.md @@ -1,2 +1,2 @@ # MFM -MFM은 Misskey Flavored Markdown의 약자로, Misskey의 다양한 장소에서 사용할 수 있는 전용 마크업 언어입니다. MFM로 사용 가능한 구문은 [MFM 치트 시트 ](/mfm-cheat-sheet)에서 확인할 수 있습니다. +MFM은 Misskey Flavored Markdown의 약자로, Misskey의 다양한 장소에서 사용할 수 있는 전용 마크업 언어입니다. MFM로 사용 가능한 구문은 [MFM 치트 시트](/mfm-cheat-sheet)에서 확인할 수 있습니다. From e1247b3e45f37ee39a77bb64d7c9740cf540ab86 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 10 Jun 2021 14:03:19 +0900 Subject: [PATCH 15/15] 12.83.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 747559eb1f..44cf2404b7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "misskey", "author": "syuilo ", - "version": "12.82.0", + "version": "12.83.0", "codename": "indigo", "repository": { "type": "git",