mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
parent
0fdd14fe77
commit
e27b7e7d97
16 changed files with 19 additions and 13 deletions
|
@ -9,7 +9,7 @@ export const meta = {
|
|||
'en-US': 'Get table stats'
|
||||
},
|
||||
|
||||
tags: ['meta'],
|
||||
tags: ['admin'],
|
||||
|
||||
params: {
|
||||
},
|
||||
|
|
|
@ -6,6 +6,8 @@ import { getNote } from '../../../common/getters';
|
|||
import { PromoNotes } from '../../../../../models';
|
||||
|
||||
export const meta = {
|
||||
tags: ['admin'],
|
||||
|
||||
requireCredential: true as const,
|
||||
requireModerator: true,
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ export const meta = {
|
|||
desc: {
|
||||
},
|
||||
|
||||
tags: ['meta'],
|
||||
tags: ['admin', 'meta'],
|
||||
|
||||
params: {
|
||||
},
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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,
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ export const meta = {
|
|||
'en-US': 'Block a user.'
|
||||
},
|
||||
|
||||
tags: ['blocking', 'users'],
|
||||
tags: ['account'],
|
||||
|
||||
limit: {
|
||||
duration: ms('1hour'),
|
||||
|
|
|
@ -13,7 +13,7 @@ export const meta = {
|
|||
'en-US': 'Unblock a user.'
|
||||
},
|
||||
|
||||
tags: ['blocking', 'users'],
|
||||
tags: ['account'],
|
||||
|
||||
limit: {
|
||||
duration: ms('1hour'),
|
||||
|
|
|
@ -10,7 +10,7 @@ export const meta = {
|
|||
'en-US': 'Get blocking users.'
|
||||
},
|
||||
|
||||
tags: ['blocking', 'account'],
|
||||
tags: ['account'],
|
||||
|
||||
requireCredential: true as const,
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ export const meta = {
|
|||
'en-US': 'Mute a user'
|
||||
},
|
||||
|
||||
tags: ['mute', 'users'],
|
||||
tags: ['account'],
|
||||
|
||||
requireCredential: true as const,
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ export const meta = {
|
|||
'en-US': 'Unmute a user'
|
||||
},
|
||||
|
||||
tags: ['mute', 'users'],
|
||||
tags: ['account'],
|
||||
|
||||
requireCredential: true as const,
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ export const meta = {
|
|||
'en-US': 'Get muted users.'
|
||||
},
|
||||
|
||||
tags: ['mute', 'account'],
|
||||
tags: ['account'],
|
||||
|
||||
requireCredential: true as const,
|
||||
|
||||
|
|
|
@ -4,6 +4,8 @@ import define from '../../define';
|
|||
import { Users, UserProfiles } from '../../../../models';
|
||||
|
||||
export const meta = {
|
||||
tags: ['room'],
|
||||
|
||||
requireCredential: true as const,
|
||||
|
||||
params: {
|
||||
|
|
|
@ -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: [{
|
||||
|
|
Loading…
Reference in a new issue