mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 13:03:09 +02:00
parent
a77df249c2
commit
8bb311df51
16 changed files with 19 additions and 13 deletions
|
@ -9,7 +9,7 @@ export const meta = {
|
||||||
'en-US': 'Get table stats'
|
'en-US': 'Get table stats'
|
||||||
},
|
},
|
||||||
|
|
||||||
tags: ['meta'],
|
tags: ['admin'],
|
||||||
|
|
||||||
params: {
|
params: {
|
||||||
},
|
},
|
||||||
|
|
|
@ -6,6 +6,8 @@ import { getNote } from '../../../common/getters';
|
||||||
import { PromoNotes } from '../../../../../models';
|
import { PromoNotes } from '../../../../../models';
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
|
tags: ['admin'],
|
||||||
|
|
||||||
requireCredential: true as const,
|
requireCredential: true as const,
|
||||||
requireModerator: true,
|
requireModerator: true,
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
},
|
},
|
||||||
|
|
||||||
tags: ['meta'],
|
tags: ['admin', 'meta'],
|
||||||
|
|
||||||
params: {
|
params: {
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,6 +5,8 @@ import { Announcements, AnnouncementReads } from '../../../models';
|
||||||
import { makePaginationQuery } from '../common/make-pagination-query';
|
import { makePaginationQuery } from '../common/make-pagination-query';
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
|
tags: ['meta'],
|
||||||
|
|
||||||
requireCredential: false as const,
|
requireCredential: false as const,
|
||||||
|
|
||||||
params: {
|
params: {
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { generateMuteQuery } from '../../common/generate-mute-query';
|
||||||
import { ApiError } from '../../error';
|
import { ApiError } from '../../error';
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['account', 'notes', 'antennas'],
|
tags: ['antennas', 'account', 'notes'],
|
||||||
|
|
||||||
requireCredential: true as const,
|
requireCredential: true as const,
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ export const meta = {
|
||||||
'en-US': 'Block a user.'
|
'en-US': 'Block a user.'
|
||||||
},
|
},
|
||||||
|
|
||||||
tags: ['blocking', 'users'],
|
tags: ['account'],
|
||||||
|
|
||||||
limit: {
|
limit: {
|
||||||
duration: ms('1hour'),
|
duration: ms('1hour'),
|
||||||
|
|
|
@ -13,7 +13,7 @@ export const meta = {
|
||||||
'en-US': 'Unblock a user.'
|
'en-US': 'Unblock a user.'
|
||||||
},
|
},
|
||||||
|
|
||||||
tags: ['blocking', 'users'],
|
tags: ['account'],
|
||||||
|
|
||||||
limit: {
|
limit: {
|
||||||
duration: ms('1hour'),
|
duration: ms('1hour'),
|
||||||
|
|
|
@ -10,7 +10,7 @@ export const meta = {
|
||||||
'en-US': 'Get blocking users.'
|
'en-US': 'Get blocking users.'
|
||||||
},
|
},
|
||||||
|
|
||||||
tags: ['blocking', 'account'],
|
tags: ['account'],
|
||||||
|
|
||||||
requireCredential: true as const,
|
requireCredential: true as const,
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { Followings } from '../../../../models';
|
||||||
import { makePaginationQuery } from '../../common/make-pagination-query';
|
import { makePaginationQuery } from '../../common/make-pagination-query';
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['users'],
|
tags: ['federation'],
|
||||||
|
|
||||||
requireCredential: false as const,
|
requireCredential: false as const,
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { Followings } from '../../../../models';
|
||||||
import { makePaginationQuery } from '../../common/make-pagination-query';
|
import { makePaginationQuery } from '../../common/make-pagination-query';
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['users'],
|
tags: ['federation'],
|
||||||
|
|
||||||
requireCredential: false as const,
|
requireCredential: false as const,
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { Users } from '../../../../models';
|
||||||
import { makePaginationQuery } from '../../common/make-pagination-query';
|
import { makePaginationQuery } from '../../common/make-pagination-query';
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['users'],
|
tags: ['federation'],
|
||||||
|
|
||||||
requireCredential: false as const,
|
requireCredential: false as const,
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ export const meta = {
|
||||||
'en-US': 'Mute a user'
|
'en-US': 'Mute a user'
|
||||||
},
|
},
|
||||||
|
|
||||||
tags: ['mute', 'users'],
|
tags: ['account'],
|
||||||
|
|
||||||
requireCredential: true as const,
|
requireCredential: true as const,
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ export const meta = {
|
||||||
'en-US': 'Unmute a user'
|
'en-US': 'Unmute a user'
|
||||||
},
|
},
|
||||||
|
|
||||||
tags: ['mute', 'users'],
|
tags: ['account'],
|
||||||
|
|
||||||
requireCredential: true as const,
|
requireCredential: true as const,
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ export const meta = {
|
||||||
'en-US': 'Get muted users.'
|
'en-US': 'Get muted users.'
|
||||||
},
|
},
|
||||||
|
|
||||||
tags: ['mute', 'account'],
|
tags: ['account'],
|
||||||
|
|
||||||
requireCredential: true as const,
|
requireCredential: true as const,
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,8 @@ import define from '../../define';
|
||||||
import { Users, UserProfiles } from '../../../../models';
|
import { Users, UserProfiles } from '../../../../models';
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
|
tags: ['room'],
|
||||||
|
|
||||||
requireCredential: true as const,
|
requireCredential: true as const,
|
||||||
|
|
||||||
params: {
|
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`
|
url: `https://github.com/syuilo/misskey/blob/develop/src/server/api/endpoints/${endpoint.name}.ts`
|
||||||
},
|
},
|
||||||
...(endpoint.meta.tags ? {
|
...(endpoint.meta.tags ? {
|
||||||
tags: endpoint.meta.tags
|
tags: [endpoint.meta.tags[0]]
|
||||||
} : {}),
|
} : {}),
|
||||||
...(endpoint.meta.requireCredential ? {
|
...(endpoint.meta.requireCredential ? {
|
||||||
security: [{
|
security: [{
|
||||||
|
|
Loading…
Reference in a new issue