diff --git a/src/server/api/endpoints/admin/get-table-stats.ts b/src/server/api/endpoints/admin/get-table-stats.ts index 5717110b25..f850d18380 100644 --- a/src/server/api/endpoints/admin/get-table-stats.ts +++ b/src/server/api/endpoints/admin/get-table-stats.ts @@ -9,7 +9,7 @@ export const meta = { 'en-US': 'Get table stats' }, - tags: ['meta'], + tags: ['admin'], params: { }, diff --git a/src/server/api/endpoints/admin/promo/create.ts b/src/server/api/endpoints/admin/promo/create.ts index 953a18af0b..e3c03d2f4b 100644 --- a/src/server/api/endpoints/admin/promo/create.ts +++ b/src/server/api/endpoints/admin/promo/create.ts @@ -6,6 +6,8 @@ import { getNote } from '../../../common/getters'; import { PromoNotes } from '../../../../../models'; export const meta = { + tags: ['admin'], + requireCredential: true as const, requireModerator: true, diff --git a/src/server/api/endpoints/admin/server-info.ts b/src/server/api/endpoints/admin/server-info.ts index 1804b9ac70..abed71cc14 100644 --- a/src/server/api/endpoints/admin/server-info.ts +++ b/src/server/api/endpoints/admin/server-info.ts @@ -11,7 +11,7 @@ export const meta = { desc: { }, - tags: ['meta'], + tags: ['admin', 'meta'], params: { }, diff --git a/src/server/api/endpoints/announcements.ts b/src/server/api/endpoints/announcements.ts index 35c70a7546..ca46192de2 100644 --- a/src/server/api/endpoints/announcements.ts +++ b/src/server/api/endpoints/announcements.ts @@ -5,6 +5,8 @@ import { Announcements, AnnouncementReads } from '../../../models'; import { makePaginationQuery } from '../common/make-pagination-query'; export const meta = { + tags: ['meta'], + requireCredential: false as const, params: { diff --git a/src/server/api/endpoints/antennas/notes.ts b/src/server/api/endpoints/antennas/notes.ts index b8428f86a8..54af6c7d3f 100644 --- a/src/server/api/endpoints/antennas/notes.ts +++ b/src/server/api/endpoints/antennas/notes.ts @@ -8,7 +8,7 @@ import { generateMuteQuery } from '../../common/generate-mute-query'; import { ApiError } from '../../error'; export const meta = { - tags: ['account', 'notes', 'antennas'], + tags: ['antennas', 'account', 'notes'], requireCredential: true as const, diff --git a/src/server/api/endpoints/blocking/create.ts b/src/server/api/endpoints/blocking/create.ts index 8d1cc9f3bf..f5b50dd5a5 100644 --- a/src/server/api/endpoints/blocking/create.ts +++ b/src/server/api/endpoints/blocking/create.ts @@ -13,7 +13,7 @@ export const meta = { 'en-US': 'Block a user.' }, - tags: ['blocking', 'users'], + tags: ['account'], limit: { duration: ms('1hour'), diff --git a/src/server/api/endpoints/blocking/delete.ts b/src/server/api/endpoints/blocking/delete.ts index 007f40bc58..895fe5d50c 100644 --- a/src/server/api/endpoints/blocking/delete.ts +++ b/src/server/api/endpoints/blocking/delete.ts @@ -13,7 +13,7 @@ export const meta = { 'en-US': 'Unblock a user.' }, - tags: ['blocking', 'users'], + tags: ['account'], limit: { duration: ms('1hour'), diff --git a/src/server/api/endpoints/blocking/list.ts b/src/server/api/endpoints/blocking/list.ts index 5342e11088..a9bb1c5f96 100644 --- a/src/server/api/endpoints/blocking/list.ts +++ b/src/server/api/endpoints/blocking/list.ts @@ -10,7 +10,7 @@ export const meta = { 'en-US': 'Get blocking users.' }, - tags: ['blocking', 'account'], + tags: ['account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/federation/followers.ts b/src/server/api/endpoints/federation/followers.ts index c3ab8c29aa..a5c564b0a8 100644 --- a/src/server/api/endpoints/federation/followers.ts +++ b/src/server/api/endpoints/federation/followers.ts @@ -5,7 +5,7 @@ import { Followings } from '../../../../models'; import { makePaginationQuery } from '../../common/make-pagination-query'; export const meta = { - tags: ['users'], + tags: ['federation'], requireCredential: false as const, diff --git a/src/server/api/endpoints/federation/following.ts b/src/server/api/endpoints/federation/following.ts index dea5c83274..80820f5a26 100644 --- a/src/server/api/endpoints/federation/following.ts +++ b/src/server/api/endpoints/federation/following.ts @@ -5,7 +5,7 @@ import { Followings } from '../../../../models'; import { makePaginationQuery } from '../../common/make-pagination-query'; export const meta = { - tags: ['users'], + tags: ['federation'], requireCredential: false as const, diff --git a/src/server/api/endpoints/federation/users.ts b/src/server/api/endpoints/federation/users.ts index 82db4f9f84..1bd053ae85 100644 --- a/src/server/api/endpoints/federation/users.ts +++ b/src/server/api/endpoints/federation/users.ts @@ -5,7 +5,7 @@ import { Users } from '../../../../models'; import { makePaginationQuery } from '../../common/make-pagination-query'; export const meta = { - tags: ['users'], + tags: ['federation'], requireCredential: false as const, diff --git a/src/server/api/endpoints/mute/create.ts b/src/server/api/endpoints/mute/create.ts index 6ad82420e2..437ad96107 100644 --- a/src/server/api/endpoints/mute/create.ts +++ b/src/server/api/endpoints/mute/create.ts @@ -13,7 +13,7 @@ export const meta = { 'en-US': 'Mute a user' }, - tags: ['mute', 'users'], + tags: ['account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/mute/delete.ts b/src/server/api/endpoints/mute/delete.ts index 059b7989fd..217352acb4 100644 --- a/src/server/api/endpoints/mute/delete.ts +++ b/src/server/api/endpoints/mute/delete.ts @@ -11,7 +11,7 @@ export const meta = { 'en-US': 'Unmute a user' }, - tags: ['mute', 'users'], + tags: ['account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/mute/list.ts b/src/server/api/endpoints/mute/list.ts index 25bf96aa2d..1a8fc92159 100644 --- a/src/server/api/endpoints/mute/list.ts +++ b/src/server/api/endpoints/mute/list.ts @@ -10,7 +10,7 @@ export const meta = { 'en-US': 'Get muted users.' }, - tags: ['mute', 'account'], + tags: ['account'], requireCredential: true as const, diff --git a/src/server/api/endpoints/room/update.ts b/src/server/api/endpoints/room/update.ts index c2955f625b..3022b96b1d 100644 --- a/src/server/api/endpoints/room/update.ts +++ b/src/server/api/endpoints/room/update.ts @@ -4,6 +4,8 @@ import define from '../../define'; import { Users, UserProfiles } from '../../../../models'; export const meta = { + tags: ['room'], + requireCredential: true as const, params: { diff --git a/src/server/api/openapi/gen-spec.ts b/src/server/api/openapi/gen-spec.ts index de26b970ea..78e4810376 100644 --- a/src/server/api/openapi/gen-spec.ts +++ b/src/server/api/openapi/gen-spec.ts @@ -123,7 +123,7 @@ export function genOpenapiSpec(lang = 'ja-JP') { url: `https://github.com/syuilo/misskey/blob/develop/src/server/api/endpoints/${endpoint.name}.ts` }, ...(endpoint.meta.tags ? { - tags: endpoint.meta.tags + tags: [endpoint.meta.tags[0]] } : {}), ...(endpoint.meta.requireCredential ? { security: [{