Sharkey/src/docs/api/entities/user.yaml

178 lines
3.7 KiB
YAML
Raw Normal View History

2017-12-15 00:54:28 +09:00
name: "User"
desc:
ja: "ユーザー。"
en: "A user."
props:
2018-07-07 13:34:42 +09:00
id:
2017-12-15 00:54:28 +09:00
type: "id"
optional: false
desc:
ja: "ユーザーID"
en: "The ID of this user"
2018-07-07 13:34:42 +09:00
createdAt:
2017-12-15 00:54:28 +09:00
type: "date"
optional: false
desc:
ja: "アカウント作成日時"
en: "The registered date of this user"
2018-07-07 13:34:42 +09:00
username:
2017-12-15 00:54:28 +09:00
type: "string"
optional: false
desc:
ja: "ユーザー名"
en: "The username of this user"
2018-07-07 13:34:42 +09:00
description:
2017-12-15 00:54:28 +09:00
type: "string"
optional: false
desc:
ja: "アカウントの説明(自己紹介)"
en: "The description of this user"
2018-07-07 13:34:42 +09:00
avatarId:
2017-12-15 00:54:28 +09:00
type: "id(DriveFile)"
optional: true
desc:
ja: "アバターのID"
en: "The ID of the avatar of this user"
2018-07-07 13:34:42 +09:00
avatarUrl:
2017-12-15 00:54:28 +09:00
type: "string"
optional: false
desc:
ja: "アバターのURL"
en: "The URL of the avatar of this user"
2018-07-07 13:34:42 +09:00
bannerId:
2017-12-15 00:54:28 +09:00
type: "id(DriveFile)"
optional: true
desc:
ja: "バナーのID"
en: "The ID of the banner of this user"
2018-07-07 13:34:42 +09:00
bannerUrl:
2017-12-15 00:54:28 +09:00
type: "string"
optional: false
desc:
ja: "バナーのURL"
en: "The URL of the banner of this user"
2018-07-07 13:34:42 +09:00
followersCount:
2017-12-15 00:54:28 +09:00
type: "number"
optional: false
desc:
ja: "フォロワーの数"
en: "The number of the followers for this user"
2018-07-07 13:34:42 +09:00
followingCount:
2017-12-15 00:54:28 +09:00
type: "number"
optional: false
desc:
ja: "フォローしているユーザーの数"
en: "The number of the following users for this user"
2018-07-07 13:34:42 +09:00
isFollowing:
2017-12-15 05:07:21 +09:00
type: "boolean"
optional: true
desc:
ja: "自分がこのユーザーをフォローしているか"
2018-07-07 13:34:42 +09:00
isFollowed:
2017-12-15 05:07:21 +09:00
type: "boolean"
optional: true
desc:
ja: "自分がこのユーザーにフォローされているか"
2018-07-07 13:34:42 +09:00
isMuted:
2017-12-22 06:56:37 +09:00
type: "boolean"
optional: true
desc:
ja: "自分がこのユーザーをミュートしているか"
en: "Whether you muted this user"
2018-07-07 13:34:42 +09:00
notesCount:
2017-12-15 00:54:28 +09:00
type: "number"
optional: false
desc:
ja: "投稿の数"
2018-04-08 02:30:37 +09:00
en: "The number of the notes of this user"
2018-07-07 13:34:42 +09:00
pinnedNote:
2018-04-08 02:30:37 +09:00
type: "entity(Note)"
2017-12-15 00:54:28 +09:00
optional: true
desc:
ja: "ピン留めされた投稿"
2018-04-08 02:30:37 +09:00
en: "The pinned note of this user"
2018-07-07 13:34:42 +09:00
pinnedNoteId:
2018-04-08 02:30:37 +09:00
type: "id(Note)"
2017-12-15 00:54:28 +09:00
optional: true
desc:
ja: "ピン留めされた投稿のID"
2018-04-08 02:30:37 +09:00
en: "The ID of the pinned note of this user"
2018-07-07 13:34:42 +09:00
driveCapacity:
2017-12-15 00:54:28 +09:00
type: "number"
optional: false
desc:
ja: "ドライブの容量(bytes)"
en: "The capacity of drive of this user (bytes)"
2018-07-07 13:34:42 +09:00
host:
2018-03-27 16:40:10 +09:00
type: "string | null"
optional: false
desc:
ja: "ホスト (例: example.com:3000)"
en: "Host (e.g. example.com:3000)"
2018-07-07 13:34:42 +09:00
twitter:
2017-12-15 00:54:28 +09:00
type: "object"
2018-07-07 13:34:42 +09:00
optional: true
2017-12-15 00:54:28 +09:00
desc:
2018-07-07 13:34:42 +09:00
ja: "連携されているTwitterアカウント情報"
en: "The info of the connected twitter account of this user"
props:
userId:
type: "string"
2017-12-15 00:54:28 +09:00
optional: false
desc:
2018-07-07 13:34:42 +09:00
ja: "ユーザーID"
en: "The user ID"
screenName:
type: "string"
optional: false
2017-12-15 00:54:28 +09:00
desc:
2018-07-07 13:34:42 +09:00
ja: "ユーザー名"
en: "The screen name of this user"
isBot:
type: "boolean"
optional: true
desc:
ja: "botか否か(自己申告であることに留意)"
en: "Whether is bot or not"
profile:
type: "object"
optional: false
desc:
ja: "プロフィール"
en: "The profile of this user"
props:
location:
type: "string"
2017-12-15 00:54:28 +09:00
optional: true
desc:
2018-07-07 13:34:42 +09:00
ja: "場所"
en: "The location of this user"
birthday:
type: "string"
optional: true
desc:
2018-07-07 13:34:42 +09:00
ja: "誕生日 (YYYY-MM-DD)"
en: "The birthday of this user (YYYY-MM-DD)"