social/src/types/ActivityPub.js

76 wiersze
3.3 KiB
JavaScript

Use new Mastodon like API Revert "Revert "Merge pull request #1581 from nextcloud/artonge/feat/use_new_api"" This reverts commit c4eef0b2d476ffcf10cfc3a44ea426d3ec7587b4. Signed-off-by: Louis Chemineau <louis@chmn.me> Adapt views to new timeline api Signed-off-by: Louis Chemineau <louis@chmn.me> Add types Signed-off-by: Louis Chemineau <louis@chmn.me> Fix type errors Signed-off-by: Louis Chemineau <louis@chmn.me> Adapte front-end to mastodon data format + Add typing + Modernize code Signed-off-by: Louis Chemineau <louis@chmn.me> Use new API for media attachments + Split Composer.vue into tinier composent + Use blurhash value of attachments Signed-off-by: Louis Chemineau <louis@chmn.me> Fix media attachment rendering in post component Signed-off-by: Louis Chemineau <louis@chmn.me> Use square container to display statuses attachments Signed-off-by: Louis Chemineau <louis@chmn.me> Add typing to timeline.js And fix type errors Signed-off-by: Louis Chemineau <louis@chmn.me> Forward format to getStreamSelectSql for direct timeline Signed-off-by: Louis Chemineau <louis@chmn.me> Fix liked timeline Signed-off-by: Louis Chemineau <louis@chmn.me> Use new API for local and federated timelines Signed-off-by: Louis Chemineau <louis@chmn.me> Fix profile and avatar for local users Signed-off-by: Louis Chemineau <louis@chmn.me> Update babel config Signed-off-by: Louis Chemineau <louis@chmn.me> Improve typing in account.js Signed-off-by: Louis Chemineau <louis@chmn.me> Handle new notification format Signed-off-by: Louis Chemineau <louis@chmn.me> Fix follow button Signed-off-by: Louis Chemineau <louis@chmn.me> Fix condition of delete button for statuses Signed-off-by: Louis Chemineau <louis@chmn.me> Add relationship fetching Signed-off-by: Louis Chemineau <louis@chmn.me> Improve attachments viewer Signed-off-by: Louis Chemineau <louis@chmn.me> Correctly use twemoji Signed-off-by: Louis Chemineau <louis@chmn.me> Clean up composer Signed-off-by: Louis Chemineau <louis@chmn.me> Insert emoji on the last line instead of creating a new one Signed-off-by: Louis Chemineau <louis@chmn.me> Overall improvements in composer Signed-off-by: Louis Chemineau <louis@chmn.me> Clean up PreviewGridItem Signed-off-by: Louis Chemineau <louis@chmn.me> Fix fetching relationships Signed-off-by: Louis Chemineau <louis@chmn.me> Fix followers and following list Signed-off-by: Louis Chemineau <louis@chmn.me> Fix direct link to followers and following lists Signed-off-by: Louis Chemineau <louis@chmn.me> Fix notifications endpoint Signed-off-by: Louis Chemineau <louis@chmn.me> Handle different types of notifications Signed-off-by: Louis Chemineau <louis@chmn.me> Add formatted date as title for statuses Signed-off-by: Louis Chemineau <louis@chmn.me> Fix entryContent computed property Signed-off-by: Louis Chemineau <louis@chmn.me> Handle reblog Signed-off-by: Louis Chemineau <louis@chmn.me> Fix favourite type Signed-off-by: Louis Chemineau <louis@chmn.me> Load context of status for single post Signed-off-by: Louis Chemineau <louis@chmn.me> Use new format to set the uid in single post Signed-off-by: Louis Chemineau <louis@chmn.me> Fix display name property Signed-off-by: Louis Chemineau <louis@chmn.me> Hack to handle context of single post Signed-off-by: Louis Chemineau <louis@chmn.me> Use item id to fetch context Signed-off-by: Louis Chemineau <louis@chmn.me> Remove unsused variable Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-01-19 16:18:11 +00:00
/**
* @copyright Copyright (c) 2023 Louis Chmn <louis@chmn.me>
*
* @author Louis Chmn <louis@chmn.me>
*
* @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 <http://www.gnu.org/licenses/>.
*
*/
/**
* @typedef APObject - https://www.w3.org/TR/activitystreams-vocabulary/#dfn-object
* @property {string} id -
* @property {string} type - Ex: 'Object'
* @property {APObject|APLink[]} attachment -
* @property {APObject|APLink[]} attributedTo - Ex: ["canonical", "preview"]
* @property {APObject|APLink[]} audience - Ex: ["canonical", "preview"]
* @property {string} content - The content or textual representation of the Object encoded as a JSON string.
* @property {Object<string, string>} contentMap - Language-tagged values for translated content.
* @property {APObject|APLink} context - Identifies the context within which the object exists or an activity was performed.
* @property {string} name - A simple, human-readable, plain-text name for the object.
* @property {Object<string, string>} nameMap - Language-tagged values for translated name.
* @property {string} endTime - Ex: "2015-01-01T06:00:00-08:00"
* @property {APObject|APLink} generator - Identifies the entity (e.g. an application) that generated the object.
* @property {APObject|APLink} icon -
* @property {APObject} image -
* @property {APObject|APLink} inReplyTo -
* @property {APObject|APLink} location -
* @property {APObject|APLink} preview -
* @property {string} published - Ex: "2015-01-01T06:00:00-08:00"
* @property {APCollection} replies -
* @property {string} startTime - Ex: "2015-01-01T06:00:00-08:00"
* @property {string} summary -
* @property {(APObject|APLink)[]} tag -
* @property {string} updated - Ex: "2015-01-01T06:00:00-08:00"
* @property {string} url -
* @property {APObject|APLink} to -
* @property {APObject|APLink} bto -
* @property {APObject|APLink} cc -
* @property {APObject|APLink} bcc -
* @property {string} mediaType - MIME Media Type. Ex: "text/html"
* @property {string} duration - Ex: "PT2H"
*/
/**
* @typedef APLink - https://www.w3.org/TR/activitystreams-vocabulary/#dfn-link
* @property {'Link'} type - 'Link'
* @property {string} href - The target resource pointed to by a Link. Ex: "http://example.org/abc"
* @property {string[]} ref - Ex: ["canonical", "preview"]
* @property {string} mediaType - MIME Media Type. Ex: "text/html"
* @property {string} name - Ex: "An example name"
* @property {string} hrefLang - A [BCP47] Language-Tag. Ex: "en"
* @property {number} height - Ex: 100
* @property {number} width - Ex: 100
* @property {APObject|APLink} preview - Identifies an entity that provides a preview of this object.
*/
/**
* @typedef {APObject} APCollection
* @property {(APObject|APLink)[]} items -
*/
export default {}