Skip to content

Commit 4acc2af

Browse files
authored
Merge pull request #623 from abraham/update-schema
Update docs SHA and regenerate OpenAPI schema
2 parents ed916bf + 1622afe commit 4acc2af

File tree

2 files changed

+119
-3
lines changed

2 files changed

+119
-3
lines changed

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"mastodonDocsCommit": "4f4dc07606580042a725fc43c62434b520789d6e",
2+
"mastodonDocsCommit": "f2feffedeb4f71272da187304e2412d412dce82c",
33
"mastodonVersion": "4.5.0",
44
"minimumMastodonVersion": "4.3.0",
55
"blockedFiles": ["methods/notifications_alpha.md"],

dist/schema.json

Lines changed: 118 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"info": {
44
"title": "Mastodon API",
55
"version": "4.5.0",
6-
"description": "Unofficial documentation for the Mastodon API. Generated with [mastodon-openapi](https://github.com/abraham/mastodon-openapi) from [4f4dc07](https://github.com/mastodon/documentation/commit/4f4dc07606580042a725fc43c62434b520789d6e). Targets [supported](https://github.com/mastodon/mastodon/security/policy#supported-versions) Mastodon versions.",
6+
"description": "Unofficial documentation for the Mastodon API. Generated with [mastodon-openapi](https://github.com/abraham/mastodon-openapi) from [f2feffe](https://github.com/mastodon/documentation/commit/f2feffedeb4f71272da187304e2412d412dce82c). Targets [supported](https://github.com/mastodon/mastodon/security/policy#supported-versions) Mastodon versions.",
77
"license": {
88
"name": "GFDL-1.3",
99
"url": "https://www.gnu.org/licenses/fdl-1.3.en.html"
@@ -29520,6 +29520,27 @@
2952029520
"$ref": "#/components/schemas/AccountRole"
2952129521
}
2952229522
},
29523+
"show_featured": {
29524+
"description": "Whether the account wishes to have a “Featured” tab on their profile.",
29525+
"type": [
29526+
"boolean",
29527+
"null"
29528+
]
29529+
},
29530+
"show_media": {
29531+
"description": "Whether the account wishes to have a “Media” tab with media attachments on their profile.",
29532+
"type": [
29533+
"boolean",
29534+
"null"
29535+
]
29536+
},
29537+
"show_media_replies": {
29538+
"description": "Whether the account wishes to have replies in the “Media” tab on their profile.",
29539+
"type": [
29540+
"boolean",
29541+
"null"
29542+
]
29543+
},
2952329544
"suspended": {
2952429545
"description": "An extra attribute returned only when an account is suspended.",
2952529546
"type": [
@@ -29580,6 +29601,9 @@
2958029601
"statuses_count": 28468,
2958129602
"last_status_at": "2019-11-17",
2958229603
"indexable": true,
29604+
"show_media": true,
29605+
"show_media_replies": true,
29606+
"show_featured": true,
2958329607
"roles": [],
2958429608
"emojis": [
2958529609
{
@@ -29876,6 +29900,27 @@
2987629900
"$ref": "#/components/schemas/AccountRole"
2987729901
}
2987829902
},
29903+
"show_featured": {
29904+
"description": "Whether the account wishes to have a “Featured” tab on their profile.",
29905+
"type": [
29906+
"boolean",
29907+
"null"
29908+
]
29909+
},
29910+
"show_media": {
29911+
"description": "Whether the account wishes to have a “Media” tab with media attachments on their profile.",
29912+
"type": [
29913+
"boolean",
29914+
"null"
29915+
]
29916+
},
29917+
"show_media_replies": {
29918+
"description": "Whether the account wishes to have replies in the “Media” tab on their profile.",
29919+
"type": [
29920+
"boolean",
29921+
"null"
29922+
]
29923+
},
2987929924
"suspended": {
2988029925
"description": "An extra attribute returned only when an account is suspended.",
2988129926
"type": [
@@ -30091,6 +30136,27 @@
3009130136
"$ref": "#/components/schemas/AccountRole"
3009230137
}
3009330138
},
30139+
"show_featured": {
30140+
"description": "Whether the account wishes to have a “Featured” tab on their profile.",
30141+
"type": [
30142+
"boolean",
30143+
"null"
30144+
]
30145+
},
30146+
"show_media": {
30147+
"description": "Whether the account wishes to have a “Media” tab with media attachments on their profile.",
30148+
"type": [
30149+
"boolean",
30150+
"null"
30151+
]
30152+
},
30153+
"show_media_replies": {
30154+
"description": "Whether the account wishes to have replies in the “Media” tab on their profile.",
30155+
"type": [
30156+
"boolean",
30157+
"null"
30158+
]
30159+
},
3009430160
"suspended": {
3009530161
"description": "An extra attribute returned only when an account is suspended.",
3009630162
"type": [
@@ -32126,6 +32192,20 @@
3212632192
"description": "The maximum number of featured tags allowed for each account.",
3212732193
"type": "integer"
3212832194
},
32195+
"max_display_name_length": {
32196+
"description": "The maximum length allowed for an account's display name.",
32197+
"type": [
32198+
"integer",
32199+
"null"
32200+
]
32201+
},
32202+
"max_note_length": {
32203+
"description": "The maximum length allowed for an account's bio.",
32204+
"type": [
32205+
"integer",
32206+
"null"
32207+
]
32208+
},
3212932209
"max_pinned_statuses": {
3213032210
"description": "The maximum number of pinned statuses for each account.",
3213132211
"type": [
@@ -32733,6 +32813,8 @@
3273332813
"public_key": "BCk-QqERU0q-CfYZjcuB6lnyyOYfJ2AifKqfeGIm7Z-HiTU5T9eTG5GxVA0_OH5mMlI4UkkDTpaZwozy0TzdZ2M="
3273432814
},
3273532815
"accounts": {
32816+
"max_display_name_lenth": 30,
32817+
"max_note_length": 500,
3273632818
"max_featured_tags": 10,
3273732819
"max_pinned_statuses": 5,
3273832820
"max_profile_fields": 4,
@@ -33836,6 +33918,13 @@
3383633918
"null"
3383733919
],
3383833920
"format": "uri"
33921+
},
33922+
"missing_attribution": {
33923+
"description": "True if the linked article claims to be written by the current user without the user having the article's domain in their [`attribution_domains`]({{< relref \"entities/Account#source[attribution_domains]\" >}})). This is used to prompt them to review and add the domain.",
33924+
"type": [
33925+
"boolean",
33926+
"null"
33927+
]
3383933928
}
3384033929
},
3384133930
"required": [
@@ -33968,6 +34057,13 @@
3396834057
"null"
3396934058
],
3397034059
"format": "uri"
34060+
},
34061+
"missing_attribution": {
34062+
"description": "True if the linked article claims to be written by the current user without the user having the article's domain in their [`attribution_domains`]({{< relref \"entities/Account#source[attribution_domains]\" >}})). This is used to prompt them to review and add the domain.",
34063+
"type": [
34064+
"boolean",
34065+
"null"
34066+
]
3397134067
}
3397234068
},
3397334069
"required": [
@@ -34276,7 +34372,7 @@
3427634372
"type": "boolean"
3427734373
},
3427834374
"note": {
34279-
"description": "This user's profile bio",
34375+
"description": "The authenticated user's personal comment about this account",
3428034376
"type": "string"
3428134377
},
3428234378
"notifying": {
@@ -34305,6 +34401,14 @@
3430534401
"type": "string",
3430634402
"format": "iso-639-1"
3430734403
}
34404+
},
34405+
"muting_expires_at": {
34406+
"description": "Date at which the mute expires, if there is any.",
34407+
"type": [
34408+
"string",
34409+
"null"
34410+
],
34411+
"format": "date-time"
3430834412
}
3430934413
},
3431034414
"required": [
@@ -34337,6 +34441,7 @@
3433734441
"blocked_by": false,
3433834442
"muting": false,
3433934443
"muting_notifications": false,
34444+
"muting_expires_at": null,
3434034445
"requested": false,
3434134446
"requested_by": false,
3434234447
"domain_blocking": false,
@@ -34435,6 +34540,16 @@
3443534540
],
3443634541
"format": "date-time"
3443734542
},
34543+
"collection_ids": {
34544+
"description": "IDs of Featured Collections that have been attached to this report for additional context.",
34545+
"type": [
34546+
"array",
34547+
"null"
34548+
],
34549+
"items": {
34550+
"type": "string"
34551+
}
34552+
},
3443834553
"rule_ids": {
3443934554
"description": "IDs of the rules that have been cited as a violation by this report.",
3444034555
"type": [
@@ -34480,6 +34595,7 @@
3448034595
"status_ids": [
3448134596
"108882889550545820"
3448234597
],
34598+
"collection_ids": [],
3448334599
"rule_ids": null,
3448434600
"target_account": {
3448534601
"id": "108366849347798387",

0 commit comments

Comments
 (0)