parent
d6267f797d
commit
6b312f755e
198 changed files with 0 additions and 1904 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue