Mastodon.py/srcgen/return_values.json

3535 wiersze
135 KiB
JSON

[
{
"name": "User / account",
"python_name": "Account",
"func_call": "mastodon.account(<account id>)",
"func_call_real": "mastodon.account(23972)",
"func_call_additional": "mastodon.account_verify_credentials()",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Account/",
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"id": {
"description": "Same as <numerical id>",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"username": {
"description": "The username (what you @ them with)",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"acct": {
"description": "The user's account name as username@domain (@domain omitted for local users)",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"display_name": {
"description": "The user's display name",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"discoverable": {
"description": "Indicates whether or not a user is visible on the discovery page",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"group": {
"description": "A boolean indicating whether the account represents a group rather than an individual.",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"locked": {
"description": "Denotes whether the account can be followed without a follow request",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"created_at": {
"description": "Account creation time",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"following_count": {
"description": "How many people they follow",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"followers_count": {
"description": "How many followers they have",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"statuses_count": {
"description": "How many statuses they have",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"note": {
"description": "Their bio",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"url": {
"description": "Their URL; for example 'https://mastodon.social/users/<acct>'",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"avatar": {
"description": "URL for their avatar, can be animated",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"header": {
"description": "URL for their header image, can be animated",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"avatar_static": {
"description": "URL for their avatar, never animated",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"header_static": {
"description": "URL for their header image, never animated",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"source": {
"description": "Additional information - only present for account dict returned from account_verify_credentials()",
"field_type": "AccountSource",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"moved_to_account": {
"description": "If set, a account dict of the account this user has set up as their moved-to address.",
"field_type": "NotPresentTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"bot": {
"description": "Boolean indicating whether this account is automated.",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"fields": {
"description": "List of up to four account field dicts",
"field_type": "list",
"field_subtype": "AccountField",
"is_optional": false,
"is_nullable": false
},
"emojis": {
"description": "List of custom emoji used in name, bio or fields",
"field_type": "list",
"field_subtype": "CustomEmoji",
"is_optional": false,
"is_nullable": false
},
"last_status_at": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"noindex": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"roles": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "list",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"role": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "Role",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Account field",
"python_name": "AccountField",
"func_call": "mastodon.account(<account id>).fields[0]",
"func_call_real": "mastodon.account(23972).fields[0]",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"name": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"value": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"verified_at": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Account role",
"python_name": "Role",
"func_call": "mastodon.account_verify_credentials().role",
"func_call_real": "mastodon.account_verify_credentials().role",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Role/",
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"id": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"name": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"permissions": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"color": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"highlighted": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "User / account source",
"python_name": "AccountSource",
"func_call": "mastodon.account_verify_credentials()[\"source\"]",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"privacy": {
"description": "The user's default visibility setting (\"private\", \"unlisted\" or \"public\")",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"sensitive": {
"description": "Denotes whether user media should be marked sensitive by default",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"note": {
"description": "Plain text version of the user's bio",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"language": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"fields": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "list",
"field_subtype": "AccountField",
"is_optional": false,
"is_nullable": false
},
"follow_requests_count": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Toot / Status",
"python_name": "Status",
"func_call": "mastodon.toot(\"Hello from Python\")",
"func_call_real": "mastodon.status(110446223051565765)",
"func_call_additional": "mastodon.status(110446183735368325)",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Status/",
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"id": {
"description": "Numerical id of this toot",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"uri": {
"description": "Descriptor for the toot EG 'tag:mastodon.social,2016-11-25:objectId=<id>:objectType=Status'",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"url": {
"description": "URL of the toot",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"account": {
"description": "Account dict for the account which posted the status",
"field_type": "Account",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"in_reply_to_id": {
"description": "Numerical id of the toot this toot is in response to",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"in_reply_to_account_id": {
"description": "Numerical id of the account this toot is in response to",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"reblog": {
"description": "Denotes whether the toot is a reblog. If so, set to the original toot dict.",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"content": {
"description": "Content of the toot, as HTML: '<p>Hello from Python</p>'",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"created_at": {
"description": "Creation time",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"reblogs_count": {
"description": "Number of reblogs",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"favourites_count": {
"description": "Number of favourites",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"reblogged": {
"description": "Denotes whether the logged in user has boosted this toot",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"favourited": {
"description": "Denotes whether the logged in user has favourited this toot",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"sensitive": {
"description": "Denotes whether media attachments to the toot are marked sensitive",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"spoiler_text": {
"description": "Warning text that should be displayed before the toot content",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"visibility": {
"description": "Toot visibility ('public', 'unlisted', 'private', or 'direct')",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"mentions": {
"description": "A list of account dicts mentioned in the toot, as Mention dicts",
"field_type": "list",
"field_subtype": "Account",
"is_optional": false,
"is_nullable": false
},
"media_attachments": {
"description": "A list of media dicts of attached files",
"field_type": "list",
"field_subtype": "MediaAttachment",
"is_optional": false,
"is_nullable": false
},
"emojis": {
"description": "A list of custom emojis used in the toot, as Emoji dicts",
"field_type": "list",
"field_subtype": "CustomEmoji",
"is_optional": false,
"is_nullable": false
},
"tags": {
"description": "A list of hashtag used in the toot, as Hashtag dicts",
"field_type": "list",
"field_subtype": "Tag",
"is_optional": false,
"is_nullable": false
},
"bookmarked": {
"description": "True if the status is bookmarked by the logged in user, False if not.",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"application": {
"description": "Application dict for the client used to post the toot (Does not federate and is therefore always None for remote toots, can also be None for local toots for some legacy applications).",
"field_type": "Application",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"language": {
"description": "The language of the toot, if specified by the server, as ISO 639-1 (two-letter) language code.",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"muted": {
"description": "Boolean denoting whether the user has muted this status by way of conversation muting",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"pinned": {
"description": "Boolean denoting whether or not the status is currently pinned for the associated account.",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"replies_count": {
"description": "The number of replies to this status.",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"card": {
"description": "A preview card for links from the status, if present at time of delivery, as card dict.",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"poll": {
"description": "A poll dict if a poll is attached to this status.",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"edited_at": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"filtered": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "list",
"field_subtype": "FilterResult",
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Status edit",
"python_name": "StatusEdit",
"func_call": "mastodon.status_history(<status id>)[0]",
"func_call_real": "mastodon.status_history(110446223051565765)[-1]",
"func_call_additional": "mastodon.status_history(110446183735368325)[-1]",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/StatusEdit/",
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"content": {
"description": "Content for this version of the status",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"spoiler_text": {
"description": "CW / Spoiler text for this version of the status",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"sensitive": {
"description": "Whether media in this version of the status is marked as sensitive",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"created_at": {
"description": "Time at which this version of the status was posted",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"account": {
"description": "Account dict of the user that posted the status",
"field_type": "Account",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"media_attachments": {
"description": "List of media dicts with the attached media for this version of the status",
"field_type": "list",
"field_subtype": "MediaAttachment",
"is_optional": false,
"is_nullable": false
},
"emojis": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "list",
"field_subtype": "CustomEmoji",
"is_optional": false,
"is_nullable": false
},
"poll": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "Poll",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Status filter action",
"python_name": "FilterResult",
"func_call": "mastodon.status(<status id>).filtered[0]",
"func_call_real": "mastodon.status(110447998920481458).filtered[0]",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/FilterResult/",
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"filter": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "V1Filter",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"keyword_matches": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "list",
"field_subtype": "str",
"is_optional": false,
"is_nullable": false
},
"status_matches": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "list",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Mention",
"python_name": "Mention",
"func_call": "mastodon.toot(\"@admin he doing it sideways\").mentions[0]",
"func_call_real": "mastodon.status(110446223051565765).mentions[0]",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"url": {
"description": "Mentioned user's profile URL (potentially remote)",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"username": {
"description": "Mentioned user's user name (not including domain)",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"acct": {
"description": "Mentioned user's account name (including domain)",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"id": {
"description": "Mentioned user's (local) account ID",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Scheduled status / toot",
"python_name": "ScheduledStatus",
"func_call": "mastodon.status_post(\"futureposting\", scheduled_at=the_future)",
"func_call_real": "mastodon.status_post(\"posting in the far future\", scheduled_at=datetime(9999,12,12))",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/ScheduledStatus/",
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"id": {
"description": "Scheduled toot ID (note: Not the id of the toot once it gets posted!)",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"scheduled_at": {
"description": "datetime object describing when the toot is to be posted",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"params": {
"description": "Parameters for the scheduled toot, specifically",
"field_type": "ScheduledStatusParams",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"media_attachments": {
"description": "Array of media dicts for the attachments to the scheduled toot",
"field_type": "list",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Scheduled status / toot param",
"python_name": "ScheduledStatusParams",
"func_call": "mastodon.status_post(\"futureposting... 2\", scheduled_at=the_future).params",
"func_call_real": "mastodon.status_post(\"posting in the far future\", scheduled_at=datetime(9999,12,12)).params",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"text": {
"description": "Toot text",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"in_reply_to_id": {
"description": "ID of the toot this one is a reply to",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"media_ids": {
"description": "IDs of media attached to this toot",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"sensitive": {
"description": "Whether this toot is sensitive or not",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"visibility": {
"description": "Visibility of the toot",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"idempotency": {
"description": "Idempotency key for the scheduled toot",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"scheduled_at": {
"description": "Present, but generally \"None\"",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"spoiler_text": {
"description": "CW text for this toot",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"application_id": {
"description": "ID of the application that scheduled the toot",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"poll": {
"description": "Poll parameters, as a poll dict",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"language": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"allowed_mentions": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"with_rate_limit": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Poll",
"python_name": "Poll",
"func_call": "mastodon.poll(<poll id>)",
"func_call_real": "mastodon.status(110446383900387196).poll",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Poll/",
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"id": {
"description": "The polls ID",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"expires_at": {
"description": "The time at which the poll is set to expire",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"expired": {
"description": "Boolean denoting whether you can still vote in this poll",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"multiple": {
"description": "Boolean indicating whether it is allowed to vote for more than one option",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"votes_count": {
"description": "Total number of votes cast in this poll",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"voted": {
"description": "Boolean indicating whether the logged-in user has already voted in this poll",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"options": {
"description": "The poll options as a list of poll option dicts",
"field_type": "list",
"field_subtype": "PollOption",
"is_optional": false,
"is_nullable": false
},
"emojis": {
"description": "List of emoji dicts for all emoji used in answer strings,",
"field_type": "list",
"field_subtype": "CustomEmoji",
"is_optional": false,
"is_nullable": false
},
"own_votes": {
"description": "The logged-in users votes, as a list of indices to the options.",
"field_type": "list",
"field_subtype": "int",
"is_optional": false,
"is_nullable": false
},
"voters_count": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Poll option",
"python_name": "PollOption",
"func_call": "mastodon.poll(<poll id>).options[0]",
"func_call_real": "mastodon.status(110446383900387196).poll.options[0]",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"title": {
"description": "Text of the option",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"votes_count": {
"description": "Count of votes for the option. Can be None if the poll creator has chosen to hide vote totals until the poll expires and it hasn't yet.",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Conversation",
"python_name": "Conversation",
"func_call": "mastodon.conversations()[0]",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Conversation/",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"id": {
"description": "The ID of this conversation object",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"unread": {
"description": "Boolean indicating whether this conversation has yet to be read by the user",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"accounts": {
"description": "List of accounts (other than the logged-in account) that are part of this conversation",
"field_type": "list",
"field_subtype": "Account",
"is_optional": false,
"is_nullable": false
},
"last_status": {
"description": "The newest status in this conversation",
"field_type": "Status",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Hashtag",
"python_name": "Tag",
"func_call": "mastodon.trending_tags()[0]",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Tag/",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"name": {
"description": "Hashtag name (not including the #)",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"url": {
"description": "Hashtag URL (can be remote)",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"history": {
"description": "List of usage history dicts for up to 7 days. Not present in statuses.",
"field_type": "list",
"field_subtype": "HashtagUsage",
"is_optional": false,
"is_nullable": false
},
"following": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Hashtag usage history",
"python_name": "HashtagUsage",
"func_call": "mastodon.trending_tags()[0].history[0]",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"day": {
"description": "Date of the day this history dict is for",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"uses": {
"description": "Number of statuses using this hashtag on that day",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"accounts": {
"description": "Number of accounts using this hashtag in at least one status on that day",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Emoji",
"python_name": "CustomEmoji",
"func_call": "mastodon.toot(\":sidekiqin:\").emojis[0]",
"func_call_real": "mastodon.status(110446223051565765).emojis[0]",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/CustomEmoji/",
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"shortcode": {
"description": "Emoji shortcode, without surrounding colons",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"url": {
"description": "URL for the emoji image, can be animated",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"static_url": {
"description": "URL for the emoji image, never animated",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"visible_in_picker": {
"description": "True if the emoji is enabled, False if not.",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"category": {
"description": "The category to display the emoji under (not present if none is set)",
"field_type": "NotPresentTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Application",
"python_name": "Application",
"func_call": "mastodon.app_verify_credentials()",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Application/",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"name": {
"description": "The applications name",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"website": {
"description": "The applications website",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"vapid_key": {
"description": "A vapid key that can be used in web applications",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Relationship",
"python_name": "Relationship",
"func_call": "mastodon.account_relationships(<account id>)[0]",
"func_call_real": "mastodon.account_relationships(23972)[0]",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Relationship/",
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"id": {
"description": "Numerical id (same one as <numerical id>)",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"following": {
"description": "Boolean denoting whether the logged-in user follows the specified user",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"followed_by": {
"description": "Boolean denoting whether the specified user follows the logged-in user",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"blocking": {
"description": "Boolean denoting whether the logged-in user has blocked the specified user",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"blocked_by": {
"description": "Boolean denoting whether the logged-in user has been blocked by the specified user, if information is available",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"muting": {
"description": "Boolean denoting whether the logged-in user has muted the specified user",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"muting_notifications": {
"description": "Boolean denoting wheter the logged-in user has muted notifications related to the specified user",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"requested": {
"description": "Boolean denoting whether the logged-in user has sent the specified user a follow request",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"domain_blocking": {
"description": "Boolean denoting whether the logged-in user has blocked the specified users domain",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"showing_reblogs": {
"description": "Boolean denoting whether the specified users reblogs show up on the logged-in users Timeline",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"endorsed": {
"description": "Boolean denoting wheter the specified user is being endorsed / featured by the logged-in user",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"note": {
"description": "A free text note the logged in user has created for this account (not publicly visible)",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"notifying": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"languages": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"requested_by": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Filter",
"python_name": "V1Filter",
"func_call": "mastodon.filters()[0]",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/V1_Filter/",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"id": {
"description": "Numerical id of the filter",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"phrase": {
"description": "Filtered keyword or phrase",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"context": {
"description": "List of places where the filters are applied. Items can be: ('home', 'notifications', 'public', 'thread')",
"field_type": "list",
"field_subtype": "str",
"is_optional": false,
"is_nullable": false
},
"expires_at": {
"description": "Expiry date for the filter",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"irreversible": {
"description": "Boolean denoting if this filter is executed server-side or if it should be ran client-side.",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"whole_word": {
"description": "Boolean denoting whether this filter can match partial words",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Notification",
"python_name": "Notification",
"func_call": "mastodon.notifications()[0]",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Notification/",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"id": {
"description": "id of the notification",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"type": {
"description": "\"mention\", \"reblog\", \"favourite\", \"follow\", \"poll\" or \"follow_request\"",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"created_at": {
"description": "The time the notification was created",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"account": {
"description": "Account dict of the user from whom the notification originates",
"field_type": "Account",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"status": {
"description": "In case of \"mention\", the mentioning status In case of reblog / favourite, the reblogged / favourited status",
"field_type": "Status",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Context",
"python_name": "Context",
"func_call": "mastodon.status_context(<status id>)",
"func_call_real": "mastodon.status_context(110446983926957470)",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Context/",
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"ancestors": {
"description": "A list of status dicts of statuses that this status is a reply to",
"field_type": "list",
"field_subtype": "Status",
"is_optional": false,
"is_nullable": false
},
"descendants": {
"description": "A list of status dicts of statuses that are replies to this status",
"field_type": "list",
"field_subtype": "Status",
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "User List",
"python_name": "UserList",
"func_call": "mastodon.lists()[0]",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/List/",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"id": {
"description": "id of the list",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"title": {
"description": "title of the list",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"replies_policy": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Media",
"python_name": "MediaAttachment",
"func_call": "mastodon.media_post(\"image.jpg\", \"image/jpeg\")[\"meta\"]",
"func_call_real": "mastodon.status(110447012773105565).media_attachments[0]",
"func_call_additional": "mastodon.status(110447003454258227).media_attachments[0]",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/MediaAttachment/",
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"id": {
"description": "The ID of the attachment.",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"type": {
"description": "Media type: 'image', 'video', 'gifv', 'audio' or 'unknown'.",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"url": {
"description": "The URL for the image in the local cache",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"remote_url": {
"description": "The remote URL for the media (if the image is from a remote instance)",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"preview_url": {
"description": "The URL for the media preview",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"text_url": {
"description": "The display text for the media (what shows up in text)",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"meta": {
"description": "Dictionary of two metadata dicts (see below), 'original' and 'small' (preview). Either may be empty. May additionally contain an \"fps\" field giving a videos frames per second (possibly rounded), and a \"length\" field giving a videos length in a human-readable format. Note that a video may have an image as preview. May also contain a 'focus' dict and a media 'colors' dict.",
"field_type": "MediaAttachmentMetadataContainer",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"blurhash": {
"description": "The blurhash for the image, used for preview / placeholder generation",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"description": {
"description": "If set, the user-provided description for this media.",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"preview_remote_url": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Media metadata container",
"func_call_real": "mastodon.status(110447012773105565).media_attachments[0].meta",
"func_call_additional": "mastodon.status(110447003454258227).media_attachments[0].meta",
"python_name": "MediaAttachmentMetadataContainer",
"func_call": "mastodon.media_post(\"audio.mp3\").meta",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"original": {
"description": "Metadata for the original file",
"field_type": "Union[MediaAttachmentImageMetadata, MediaAttachmentVideoMetadata, MediaAttachmentAudioMetadata]",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"small": {
"description": "Metadata for the thumbnail",
"field_type": "MediaAttachmentImageMetadata",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"colors": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "MediaAttachmentColors",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"focus": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "MediaAttachmentFocusPoint",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Media image metadata",
"python_name": "MediaAttachmentImageMetadata",
"func_call": "mastodon.media_post(\"image.jpg\").meta.original",
"func_call_real": "mastodon.status(110447003454258227).media_attachments[0].meta.original",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"width": {
"description": "Width of the image in pixels",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"height": {
"description": "Height of the image in pixels",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"aspect": {
"description": "Aspect ratio of the image as a floating point number",
"field_type": "float",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"size": {
"description": "Textual representation of the image size in pixels, e.g. '800x600'",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Media video and gifv metadata",
"python_name": "MediaAttachmentVideoMetadata",
"func_call": "mastodon.media_post(\"video.mp4\").meta.original",
"func_call_real": "mastodon.status(110447001287656894).media_attachments[0].meta.original",
"func_call_additional": "mastodon.status(110447018236380496).media_attachments[0].meta.original",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"width": {
"description": "Width of the video in pixels",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"height": {
"description": "Height of the video in pixels",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"frame_rate": {
"description": "Exact frame rate of the video in frames per second. Can be an integer fraction (i.e. \"20/7\")",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"duration": {
"description": "Duration of the video in seconds",
"field_type": "float",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"bitrate": {
"description": "Average bit-rate of the video in bytes per second",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Media audio metadata",
"python_name": "MediaAttachmentAudioMetadata",
"func_call": "mastodon.media_post(\"audio.mp3\").meta.original",
"func_call_real": "mastodon.status(110447012773105565).media_attachments[0].meta.original",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"duration": {
"description": "Duration of the audio file in seconds",
"field_type": "float",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"bitrate": {
"description": "Average bit-rate of the audio file in bytes per second",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Media focus point",
"python_name": "MediaAttachmentFocusPoint",
"func_call": "mastodon.media_post(\"image.jpg\").meta.focus",
"func_call_real": "mastodon.status(110447003454258227).media_attachments[0].meta.focus",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"x": {
"description": "Focus point x coordinate (between -1 and 1)",
"field_type": "float",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"y": {
"description": "Focus point x coordinate (between -1 and 1)",
"field_type": "float",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Media colors",
"python_name": "MediaAttachmentColors",
"func_call": "mastodon.media_post(\"image.jpg\").meta.colors",
"func_call_real": "mastodon.status(110447012773105565).media_attachments[0].meta.colors",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"foreground": {
"description": "Estimated foreground colour for the attachment thumbnail, as a html format hex color (#rrggbb)",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"background": {
"description": "Estimated background colour for the attachment thumbnail, as a html format hex color (#rrggbb)",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"accent": {
"description": "Estimated accent colour for the attachment thumbnail",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Card",
"func_call": "mastodon.status_card(<status id>)",
"func_call_real": "mastodon.status_card(110447098625216345)",
"python_name": "PreviewCard",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/PreviewCard/",
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"url": {
"description": "The URL of the card.",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"title": {
"description": "The title of the card.",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"description": {
"description": "Description of the embedded content",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"type": {
"description": "Embed type: 'link', 'photo', 'video', or 'rich'",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"image": {
"description": "(optional) The image associated with the card.",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"author_name": {
"description": "Name of the embedded contents author",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"author_url": {
"description": "URL pointing to the embedded contents author",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"width": {
"description": "Width of the embedded object",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"height": {
"description": "Height of the embedded object",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"html": {
"description": "HTML string of the embed",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"provider_name": {
"description": "Name of the provider from which the embed originates",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"provider_url": {
"description": "URL pointing to the embeds provider",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"blurhash": {
"description": "(optional) Blurhash of the preview image",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"language": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"embed_url": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Search result",
"python_name": "Search",
"func_call": "mastodon.search(\"<search query>\")",
"func_call_real": "mastodon.search(\"halcy\")",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Search/",
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"accounts": {
"description": "List of account dicts resulting from the query",
"field_type": "list",
"field_subtype": "Account",
"is_optional": false,
"is_nullable": false
},
"hashtags": {
"description": "List of hashtag dicts resulting from the query",
"field_type": "list",
"field_subtype": "Tag",
"is_optional": false,
"is_nullable": false
},
"statuses": {
"description": "List of status dicts resulting from the query",
"field_type": "list",
"field_subtype": "Status",
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Instance",
"python_name": "V1Instance",
"func_call": "mastodon.instance()",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/V1_Instance/",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"domain": {
"description": "The instances domain name",
"field_type": "NotPresentTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"description": {
"description": "A brief instance description set by the admin",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"short_description": {
"description": "An even briefer instance description",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"email": {
"description": "The admin contact email",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"title": {
"description": "The instance's title",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"uri": {
"description": "The instance's URL",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"version": {
"description": "The instance's Mastodon version",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"urls": {
"description": "Additional URLs dict, presently only 'streaming_api' with the stream websocket address.",
"field_type": "InstanceURLs",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"stats": {
"description": "A dictionary containing three stats, user_count (number of local users), status_count (number of local statuses) and domain_count (number of known instance domains other than this one).",
"field_type": "InstanceStatistics",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"contact_account": {
"description": "Account dict of the primary contact for the instance",
"field_type": "Account",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"languages": {
"description": "Array of ISO 639-1 (two-letter) language codes the instance has chosen to advertise.",
"field_type": "list",
"field_subtype": "str",
"is_optional": false,
"is_nullable": false
},
"registrations": {
"description": "Boolean indication whether registrations on this instance are open (True) or not (False)",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"approval_required": {
"description": "True if account approval is required when registering, False if not",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"rules": {
"description": "List of dicts with `id` and `text` fields, one for each server rule set by the admin",
"field_type": "list",
"field_subtype": "Rule",
"is_optional": false,
"is_nullable": false
},
"thumbnail": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"invites_enabled": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"configuration": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "InstanceConfiguration",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Instance urls",
"python_name": "InstanceURLs",
"func_call": "mastodon.instance().urls",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"streaming_api": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Instance statistics",
"python_name": "InstanceStatistics",
"func_call": "mastodon.instance().stats",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"user_count": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"status_count": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"domain_count": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Instance rule",
"python_name": "Rule",
"func_call": "mastodon.instance().rules[0]",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Rule/",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"id": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"text": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Instance configuration",
"python_name": "InstanceConfiguration",
"func_call": "mastodon.instance().configuration",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"accounts": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "InstanceAccountConfiguration",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"statuses": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "InstanceStatusConfiguration",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"media_attachments": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "InstanceMediaConfiguration",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"polls": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "InstancePollConfiguration",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Instance account configuration",
"python_name": "InstanceAccountConfiguration",
"func_call": "mastodon.instance().configuration.accounts",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"max_featured_tags": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Instance status configuration",
"python_name": "InstanceStatusConfiguration",
"func_call": "mastodon.instance().configuration.accounts",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"max_featured_tags": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Instance media attachment configuration",
"python_name": "InstanceMediaConfiguration",
"func_call": "mastodon.instance().configuration.media_attachments",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"supported_mime_types": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "list",
"field_subtype": "str",
"is_optional": false,
"is_nullable": false
},
"image_size_limit": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"image_matrix_limit": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"video_size_limit": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"video_frame_rate_limit": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"video_matrix_limit": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Instance poll configuration",
"python_name": "InstancePollConfiguration",
"func_call": "mastodon.instance().configuration.polls",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"max_options": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"max_characters_per_option": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"min_expiration": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"max_expiration": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Nodeinfo",
"python_name": "Nodeinfo",
"func_call": "mastodon.instance_nodeinfo()",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"version": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"software": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "NodeinfoSoftware",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"protocols": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "list",
"field_subtype": "str",
"is_optional": false,
"is_nullable": false
},
"services": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "NodeinfoServices",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"usage": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "NodeinfoUsage",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"openRegistrations": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"metadata": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "NodeinfoMetadata",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Nodeinfo software",
"python_name": "NodeinfoSoftware",
"func_call": "mastodon.instance_nodeinfo().software",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"name": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"version": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Nodeinfo services",
"python_name": "NodeinfoServices",
"func_call": "mastodon.instance_nodeinfo().services",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"outbound": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "list",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"inbound": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "list",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Nodeinfo usage",
"python_name": "NodeinfoUsage",
"func_call": "mastodon.instance_nodeinfo().usage",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"users": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "NodeinfoUsageUsers",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"localPosts": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Nodeinfo usage user count",
"python_name": "NodeinfoUsageUsers",
"func_call": "mastodon.instance_nodeinfo().usage.users",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"total": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"activeMonth": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"activeHalfyear": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Nodeinfo metadata",
"python_name": "NodeinfoMetadata",
"masto_doc_link": "TODO",
"func_call": "mastodon.instance_nodeinfo().metadata",
"fields": {}
},
{
"name": "Activity",
"python_name": "Activity",
"func_call": "mastodon.instance_activity()[0]",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"week": {
"description": "Date of the first day of the week the stats were collected for",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"logins": {
"description": "Number of users that logged in that week",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"registrations": {
"description": "Number of new users that week",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"statuses": {
"description": "Number of statuses posted that week",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Report",
"python_name": "AdminReport",
"func_call": "mastodon.admin_reports()[0]",
"func_alternate_acc": true,
"func_call_real": "mastodon.admin_reports()[-1]",
"func_call_additional": "mastodon.admin_reports(resolved=True)[-1]",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Admin_Report/",
"manual_update": false,
"fields": {
"id": {
"description": "Numerical id of the report",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"action_taken": {
"description": "True if a moderator or admin has processed the report, False otherwise.",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"comment": {
"description": "Text comment submitted with the report",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"created_at": {
"description": "Time at which this report was created, as a datetime object",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"updated_at": {
"description": "Last time this report has been updated, as a datetime object",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"account": {
"description": "Account dict of the user that filed this report",
"field_type": "Account",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"target_account": {
"description": "Account that has been reported with this report",
"field_type": "Account",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"assigned_account": {
"description": "If the report as been assigned to an account, account dict of that account (None if not)",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"action_taken_by_account": {
"description": "Account dict of the account that processed this report",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"statuses": {
"description": "List of statuses attached to the report, as status dicts",
"field_type": "list",
"field_subtype": "Status",
"is_optional": false,
"is_nullable": false
},
"action_taken_at": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"category": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"forwarded": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"rules": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "list",
"field_subtype": "Rule",
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Push subscription",
"python_name": "WebPushSubscription",
"func_call": "mastodon.push_subscription()",
"func_call_real": "mastodon_soc.push_subscription_set(\"http://halcy.de/\",mastodon_soc.push_subscription_generate_keys()[1],follow_events=True)",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/WebPushSubscription/",
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"id": {
"description": "Numerical id of the push subscription",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"endpoint": {
"description": "Endpoint URL for the subscription",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"server_key": {
"description": "Server pubkey used for signature verification",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"alerts": {
"description": "Subscribed events - dict that may contain keys 'follow', 'favourite', 'reblog' and 'mention', with value True if webpushes have been requested for those events.",
"field_type": "PushSubscriptionAlert",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"policy": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Push subscription alert",
"python_name": "PushSubscriptionAlert",
"func_call": "mastodon.push_subscription().alerts",
"func_call_real": "mastodon_soc.push_subscription_set(\"http://halcy.de/\",mastodon_soc.push_subscription_generate_keys()[1],follow_events=True).alerts",
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"follow": {
"description": "True if push subscriptions for follow events have been requested, false or not present otherwise.",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"favourite": {
"description": "True if push subscriptions for favourite events have been requested, false or not present otherwise.",
"field_type": "NotPresentTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"reblog": {
"description": "True if push subscriptions for reblog events have been requested, false or not present otherwise.",
"field_type": "NotPresentTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"mention": {
"description": "True if push subscriptions for mention events have been requested, false or not present otherwise.",
"field_type": "NotPresentTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Push notification",
"python_name": "PushNotification",
"func_call": "mastodon.push_subscription_decrypt_push(...)",
"manual_update": true,
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"fields": {
"access_token": {
"description": "Access token that can be used to access the API as the notified user",
"field_type": "NotPresentTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"body": {
"description": "Text body of the notification",
"field_type": "NotPresentTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"icon": {
"description": "URL to an icon for the notification",
"field_type": "NotPresentTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"notification_id": {
"description": "ID that can be passed to notification() to get the full notification object,",
"field_type": "NotPresentTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"notification_type": {
"description": "'mention', 'reblog', 'follow' or 'favourite'",
"field_type": "NotPresentTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"preferred_locale": {
"description": "The user's preferred locale",
"field_type": "NotPresentTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"title": {
"description": "Title for the notification",
"field_type": "NotPresentTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Preference",
"python_name": "Preferences",
"func_call": "mastodon.preferences()",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Preferences/",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"posting:default:visibility": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"posting:default:sensitive": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"posting:default:language": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"reading:expand:media": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"reading:expand:spoilers": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"reading:autoplay:gifs": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Featured tag",
"python_name": "FeaturedTag",
"func_call": "mastodon.featured_tags()[0]",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/FeaturedTag/",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"id": {
"description": "The featured tags id",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"name": {
"description": "The featured tags name (without leading #)",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"statuses_count": {
"description": "Number of publicly visible statuses posted with this hashtag that this instance knows about",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"last_status_at": {
"description": "The last time a public status containing this hashtag was added to this instance's database (can be None if there are none)",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"url": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Read marker",
"python_name": "Marker",
"func_call": "mastodon.markers_get()[\"home\"]",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Marker/",
"func_call_real": null,
"func_call_additional": null,
"func_alternate_acc": false,
"manual_update": false,
"fields": {
"last_read_id": {
"description": "ID of the last read object in the timeline",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"version": {
"description": "A counter that is incremented whenever the marker is set to a new status",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"updated_at": {
"description": "The time the marker was last set, as a datetime object",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Announcement",
"python_name": "Announcement",
"func_call": "mastodon.announcements()[0]",
"func_alternate_acc": true,
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Announcement/",
"func_call_real": null,
"func_call_additional": null,
"manual_update": false,
"fields": {
"id": {
"description": "The annoucements id",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"content": {
"description": "The contents of the annoucement, as an html string",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"starts_at": {
"description": "The annoucements start time, as a datetime object. Can be None",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"ends_at": {
"description": "The annoucements end time, as a datetime object. Can be None",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"all_day": {
"description": "Boolean indicating whether the annoucement represents an \"all day\" event",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"published_at": {
"description": "The annoucements publish time, as a datetime object",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"updated_at": {
"description": "The annoucements last updated time, as a datetime object",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"read": {
"description": "A boolean indicating whether the logged in user has dismissed the annoucement",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"mentions": {
"description": "Users mentioned in the annoucement, as a list of mention dicts",
"field_type": "list",
"field_subtype": "Mention",
"is_optional": false,
"is_nullable": false
},
"tags": {
"description": "Hashtags mentioned in the announcement, as a list of hashtag dicts",
"field_type": "list",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"emojis": {
"description": "Custom emoji used in the annoucement, as a list of emoji dicts",
"field_type": "list",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"reactions": {
"description": "Reactions to the annoucement, as a list of reaction dicts",
"field_type": "list",
"field_subtype": "Reaction",
"is_optional": false,
"is_nullable": false
},
"statuses": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "list",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Announcement reaction",
"python_name": "Reaction",
"func_call": "mastodon.announcements()[0].reactions[0]",
"func_alternate_acc": true,
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Reaction/",
"func_call_real": null,
"func_call_additional": null,
"manual_update": false,
"fields": {
"name": {
"description": "Name of the custom emoji or unicode emoji of the reaction",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"count": {
"description": "Reaction counter (i.e. number of users who have added this reaction)",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"me": {
"description": "True if the logged-in user has reacted with this emoji, false otherwise",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"url": {
"description": "URL for the custom emoji image",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"static_url": {
"description": "URL for a never-animated version of the custom emoji image",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Familiar follower",
"python_name": "FamiliarFollowers",
"func_alternate_acc": true,
"func_call": "mastodon.account_familiar_followers(<account id>)[0]",
"func_call_real": "mastodon.account_familiar_followers(2)[0]",
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/FamiliarFollowers/",
"func_call_additional": null,
"manual_update": false,
"fields": {
"id": {
"description": "ID of the account for which the familiar followers are being returned",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"accounts": {
"description": "List of account dicts of the familiar followers",
"field_type": "list",
"field_subtype": "Account",
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Admin account",
"python_name": "AdminAccount",
"func_call": "mastodon.admin_account(<account id>)",
"func_call_real": "mastodon.admin_account(1)",
"func_alternate_acc": true,
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Admin_Account/",
"func_call_additional": null,
"manual_update": false,
"fields": {
"id": {
"description": "The users id,",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"username": {
"description": "The users username, no leading @",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"domain": {
"description": "The users domain",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"created_at": {
"description": "The time of account creation",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"email": {
"description": "For local users, the user's email",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"ip": {
"description": "For local users, the user's last known IP address",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"role": {
"description": "The users role",
"field_type": "Role",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"confirmed": {
"description": "For local users, False if the user has not confirmed their email, True otherwise",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"suspended": {
"description": "Boolean indicating whether the user has been suspended",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"silenced": {
"description": "Boolean indicating whether the user has been suspended",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"disabled": {
"description": "For local users, boolean indicating whether the user has had their login disabled",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"approved": {
"description": "For local users, False if the user is pending, True otherwise",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"locale": {
"description": "For local users, the locale the user has set,",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"invite_request": {
"description": "If the user requested an invite, the invite request comment of that user.",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"invited_by_account_id": {
"description": "Present if the user was invited by another user and set to the inviting users id.",
"field_type": "NotPresentTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"account": {
"description": "The user's account, as a standard account dict",
"field_type": "Account",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"sensitized": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"ips": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "list",
"field_subtype": "AdminIp",
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Admin account IP",
"python_name": "AdminIp",
"func_call": "mastodon.admin_account(<account id>).ips[0]",
"func_call_real": "mastodon.admin_account(1).ips[0]",
"func_alternate_acc": true,
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Admin_Ip/",
"func_call_additional": null,
"manual_update": false,
"fields": {
"ip": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"used_at": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Admin measure",
"python_name": "AdminMeasure",
"func_call": "mastodon.admin_measures(datetime.now() - timedelta(hours=24*5), datetime.now(), interactions=True)[0]",
"func_alternate_acc": true,
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Admin_Measure/",
"func_call_real": null,
"func_call_additional": null,
"manual_update": false,
"fields": {
"key": {
"description": "Name of the measure returned",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"unit": {
"description": "Unit for the measure, if available",
"field_type": "NoneTypeTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"total": {
"description": "Value of the measure returned",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"human_value": {
"description": "Human readable variant of the measure returned",
"field_type": "NotPresentTODO",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"previous_total": {
"description": "TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"data": {
"description": "A list of dicts with the measure broken down by date, as below",
"field_type": "list",
"field_subtype": "AdminMeasureData",
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Admin measure data",
"python_name": "AdminMeasureData",
"func_call": "mastodon.admin_measures(datetime.now() - timedelta(hours=24*5), datetime.now(), active_users=True)[0].data[0]",
"func_alternate_acc": true,
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_real": null,
"func_call_additional": null,
"manual_update": false,
"fields": {
"date": {
"description": "Date for this row",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"value": {
"description": "Value of the measure for this row",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Admin dimension",
"python_name": "AdminDimension",
"func_call": "mastodon.admin_dimensions(datetime.now() - timedelta(hours=24*5), datetime.now(), languages=True)[0]",
"func_alternate_acc": true,
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Admin_Dimension/",
"func_call_real": null,
"func_call_additional": null,
"manual_update": false,
"fields": {
"key": {
"description": "Name of the dimension returned",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"data": {
"description": "A list of data dicts, as below",
"field_type": "list",
"field_subtype": "AdminDimensionData",
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Admin dimension data",
"python_name": "AdminDimensionData",
"func_call": "mastodon.admin_dimensions(datetime.now() - timedelta(hours=24*5), datetime.now(), languages=True)[0].data[0]",
"func_alternate_acc": true,
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_real": null,
"func_call_additional": null,
"manual_update": false,
"fields": {
"key": {
"description": "category for this row",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"human_key": {
"description": "Human readable name for the category for this row, when available",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"value": {
"description": "Numeric value for the category",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Admin retention",
"python_name": "AdminRetention",
"func_call": "mastodon.admin_retention(datetime.now() - timedelta(hours=24*5), datetime.now())[0]",
"func_alternate_acc": true,
"last_changed": "TODO",
"masto_doc_link": "TODO",
"func_call_real": null,
"func_call_additional": null,
"manual_update": false,
"fields": {
"period": {
"description": "Starting time of the period that the data is being returned for",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"frequency": {
"description": "Time resolution (day or month) for the returned data",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"data": {
"description": "List of data dicts, as below",
"field_type": "list",
"field_subtype": "AdminCohort",
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Admin retention data",
"python_name": "AdminCohort",
"func_call": "mastodon.admin_retention(datetime.now() - timedelta(hours=24*5), datetime.now())[0].data[0]",
"func_alternate_acc": true,
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Admin_Cohort/",
"func_call_real": null,
"func_call_additional": null,
"manual_update": false,
"fields": {
"date": {
"description": "Date for this entry",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"rate": {
"description": "Fraction of users retained",
"field_type": "float",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"value": {
"description": "Absolute number of users retained",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
},
{
"name": "Admin domain block",
"python_name": "AdminDomainBlock",
"func_call": "mastodon_ico_admin.admin_domain_blocks()[0]",
"func_alternate_acc": true,
"last_changed": "TODO",
"masto_doc_link": "https://docs.joinmastodon.org/entities/Admin_DomainBlock/",
"func_call_real": null,
"func_call_additional": null,
"manual_update": false,
"fields": {
"id": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "int",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"domain": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"created_at": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "datetime",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"severity": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"reject_media": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"reject_reports": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"private_comment": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"public_comment": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "str",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
},
"obfuscate": {
"description": "DESCRIPTION_MISSING_TODO",
"field_type": "bool",
"field_subtype": null,
"is_optional": false,
"is_nullable": false
}
}
}
]