/** * @copyright Copyright (c) 2023 Louis Chmn * * @author Louis Chmn * * @license AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . * */ /** * @typedef Field * @property {string} name - Ex: "Patreon" * @property {string} value - Ex: "https://www.patreon.com/mastodonDeveloper of Mastodon and administrator of mastodon.social. I post service announcements, development updates, and personal stuff.

" * @property {string} url - Ex: "https://mastodon.social/@Gargron" * @property {string} avatar - Ex: "https://files.mastodon.social/accounts/avatars/000/000/001/original/d96d39a0abb45b92.jpg" * @property {string} avatar_static - Ex: "https://files.mastodon.social/accounts/avatars/000/000/001/original/d96d39a0abb45b92.jpg" * @property {string} header - Ex: "https://files.mastodon.social/accounts/headers/000/000/001/original/c91b871f294ea63e.png" * @property {string} header_static - Ex: "https://files.mastodon.social/accounts/headers/000/000/001/original/c91b871f294ea63e.png" * @property {number} followers_count - Ex: 322930 * @property {number} following_count - Ex: 459 * @property {number} statuses_count - Ex: 61323 * @property {string} last_status_at - Ex: "2019-12-10T08:14:44.811Z" * @property {CustomEmoji[]} emojis - Ex: [] * @property {Field[]} fields - Ex: [] */ /** * @typedef Status - https://docs.joinmastodon.org/entities/Status * @property {string} id - Ex: "103270115826048975" * @property {string} created_at - Ex: "2019-12-08T03:48:33.901Z" * @property {string} [in_reply_to_id] - Ex: Ex: "103270115826048975" * @property {number} [in_reply_to_account_id] - Ex: "1" * @property {boolean} sensitive - Ex: false * @property {string} spoiler_text - * @property {string} visibility - Ex: "public" * @property {string} language - Ex: "en" * @property {string} uri - Ex: "https://mastodon.social/users/Gargron/statuses/103270115826048975" * @property {string} url - Ex: "https://mastodon.social/@Gargron/103270115826048975" * @property {number} replies_count - Ex: 5 * @property {number} reblogs_count - Ex: 6 * @property {number} favourites_count - Ex: 11 * @property {boolean} [favourited] - Ex: false * @property {boolean} [reblogged] - Ex: false * @property {boolean} [muted] - Ex: false * @property {boolean} [bookmarked] - Ex: false * @property {string} content - Ex: "

"I lost my inheritance with one wrong digit on my sort code"

https://www.theguardian.com/money/2019/dec/07/i-lost-my-193000-inheritance-with-one-wrong-digit-on-my-sort-code" * @property {Status} [reblog] - Ex: null * @property {object} [application] - * @property {string} application.name - Ex: "Web" * @property {string} [application.website] - Ex: null * @property {Account} account - * @property {MediaAttachment[]} media_attachments - Ex: [] * @property {StatusMention[]} mentions - Ex: [] * @property {StatusTag[]} tags - Ex: [] * @property {CustomEmoji[]} emojis - Ex: [] * @property {Card} card - * @property {Poll} [poll] - Ex: null */ /** * @typedef Notification - https://docs.joinmastodon.org/entities/Notification * @property {string} id - Ex: "https://example.com/users/@tommy"" * @property {"mention"|"status"|"reblog"|"follow"|"follow_request"|"favourite"|"poll"|"update"|"admin.sign_up"|"admin.report"} type - Ex: "2016-03-16T14:34:26.392Z" * @property {string} created_at - Ex: "2016-03-16T14:34:26.392Z" * @property {Account} account - * @property {Status} [status] - * @property {any} [report] - */ /** * @typedef Relationship - https://docs.joinmastodon.org/entities/Relationship * @property {string} id - The account ID. Ex: "https://example.com/users/@tommy"" * @property {boolean} following - Are you following this user? * @property {boolean} showing_reblogs - Are you receiving this user’s boosts in your home timeline? * @property {boolean} notifying - Have you enabled notifications for this user? * @property {string[]} languages - Which languages are you following from this user? * @property {boolean} followed_by - Are you followed by this user? * @property {boolean} blocking - Are you blocking this user? * @property {boolean} blocked_by - Is this user blocking you? * @property {boolean} muting - Are you muting this user? * @property {boolean} muting_notifications - Are you muting notifications from this user? * @property {boolean} requested - Do you have a pending follow request for this user? * @property {boolean} domain_blocking - Are you blocking this user’s domain? * @property {boolean} endorsed - Are you featuring this user on your profile? * @property {string} note - This user’s profile bio */ export default {}