Merge pull request #33 from LemmyNet/split_user_table

Updating API docs for user->person migration. Fixes #32
This commit is contained in:
Nutomic 2021-03-22 13:21:13 +00:00 committed by GitHub
commit 097381de7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,7 +102,19 @@ channels:
$ref: "#/components/messages/loginRequest" $ref: "#/components/messages/loginRequest"
subscribe: subscribe:
summary: Login (response) summary: Login (response)
description: Returns an authentication string (`jwt`) for the supplied username or emal description: |-
Returns an authentication string (`jwt`) for the supplied username or email.
The JWT claim is in the following format:
```
Claims {
// local_user_id, standard claim by RFC 7519.
sub: i32,
iss: String,
// Time when this token was issued as UNIX-timestamp in seconds
iat: i64,
}
```
operationId: loginResponseMessage operationId: loginResponseMessage
tags: tags:
- name: User, authentication and admin - name: User, authentication and admin
@ -156,30 +168,30 @@ channels:
- name: User, authentication and admin - name: User, authentication and admin
message: message:
$ref: "#/components/messages/registerResponse" $ref: "#/components/messages/registerResponse"
GetUserDetails: GetPersonDetails:
publish: publish:
summary: GetUserDetails (request) summary: GetPersonDetails (request)
description: |- description: |-
- Use the `username` field to return details about a local user - Use the `username` field to return details about a local user
- Use the `user_id` field to return details about a federated user. - Use the `person_id` field to return details about a federated user.
#### HTTP API - operation and endpoint. #### HTTP API - operation and endpoint.
`GET /user` `GET /user`
operationId: getUserDetailsMessage operationId: getPersonDetailsMessage
tags: tags:
- name: User, authentication and admin - name: User, authentication and admin
message: message:
$ref: "#/components/messages/getUserDetailsRequest" $ref: "#/components/messages/getPersonDetailsRequest"
subscribe: subscribe:
summary: GetUserDetails (response) summary: GetPersonDetails (response)
description: Returns full details about a specified user (including the last post the user wrote) description: Returns full details about a specified person (including the last post the person wrote)
operationId: getUserDetailsResponseMessage operationId: getPersonDetailsResponseMessage
tags: tags:
- name: User, authentication and admin - name: User, authentication and admin
message: message:
oneOf: oneOf:
- $ref: "#/components/messages/getUserDetailsResponse" - $ref: "#/components/messages/getPersonDetailsResponse"
- $ref: "#/components/messages/errorResponse" - $ref: "#/components/messages/errorResponse"
SaveUserSettings: SaveUserSettings:
publish: publish:
@ -220,7 +232,7 @@ channels:
tags: tags:
- name: User, authentication and admin - name: User, authentication and admin
message: message:
$ref: "#/components/messages/getUserRepliesRequest" $ref: "#/components/messages/getRepliesRequest"
subscribe: subscribe:
summary: GetReplies (response) summary: GetReplies (response)
description: Returns detailed reply data description: Returns detailed reply data
@ -231,22 +243,22 @@ channels:
oneOf: oneOf:
- $ref: "#/components/messages/repliesResponse" - $ref: "#/components/messages/repliesResponse"
- $ref: "#/components/messages/errorResponse" - $ref: "#/components/messages/errorResponse"
GetUserMentions: GetPersonMentions:
publish: publish:
summary: GetUserMentions (request) summary: GetPersonMentions (request)
description: |- description: |-
Return any @ mentions of the user in posts and comments Return any @ mentions of the user in posts and comments
#### HTTP API - operation and endpoint. #### HTTP API - operation and endpoint.
`GET /user/mention` `GET /user/mention`
operationId: getUserMentionsRequestMessage operationId: getPersonMentionsRequestMessage
tags: tags:
- name: User, authentication and admin - name: User, authentication and admin
message: message:
$ref: "#/components/messages/getUserMentionsRequest" $ref: "#/components/messages/getPersonMentionsRequest"
subscribe: subscribe:
summary: GetUserMentions (response) summary: GetPersonMentions (response)
description: Returns detailed data about mentions description: Returns detailed data about mentions
operationId: getMentionsResponseMessage operationId: getMentionsResponseMessage
tags: tags:
@ -255,9 +267,9 @@ channels:
oneOf: oneOf:
- $ref: "#/components/messages/mentionsResponse" - $ref: "#/components/messages/mentionsResponse"
- $ref: "#/components/messages/errorResponse" - $ref: "#/components/messages/errorResponse"
MarkUserMentionAsRead: MarkPersonMentionAsRead:
publish: publish:
summary: MarkUserMentionAsRead (request) summary: MarkPersonMentionAsRead (request)
description: |- description: |-
Mark a specified mention as read. Only the recipient of a mention can do this. Mark a specified mention as read. Only the recipient of a mention can do this.
@ -270,7 +282,7 @@ channels:
message: message:
$ref: "#/components/messages/markMentionsRequest" $ref: "#/components/messages/markMentionsRequest"
subscribe: subscribe:
summary: MarkUserMentionAsRead (response) summary: MarkPersonMentionAsRead (response)
description: Returns detailed data about the mention description: Returns detailed data about the mention
operationId: markMentionResponseMessage operationId: markMentionResponseMessage
tags: tags:
@ -453,7 +465,7 @@ channels:
description: |- description: |-
Grant admin rights to the specified user. Grant admin rights to the specified user.
Only admin users can do this - `auth` must be the authentication string for an existing admin user. Only admins can do this - `auth` must be the authentication string for an existing admin user.
#### HTTP API - operation and endpoint. #### HTTP API - operation and endpoint.
@ -473,9 +485,9 @@ channels:
oneOf: oneOf:
- $ref: "#/components/messages/addAdminResponse" - $ref: "#/components/messages/addAdminResponse"
- $ref: "#/components/messages/errorResponse" - $ref: "#/components/messages/errorResponse"
BanUser: BanPerson:
publish: publish:
summary: BanUser (request) summary: BanPerson (request)
description: |- description: |-
Ban user from posting, commenting or adding communities. Optionally, remove all comments, posts and communities at the same time. Ban user from posting, commenting or adding communities. Optionally, remove all comments, posts and communities at the same time.
@ -484,20 +496,20 @@ channels:
#### HTTP API - operation and endpoint. #### HTTP API - operation and endpoint.
`POST /user/ban` `POST /user/ban`
operationId: banUserRequestMessage operationId: banPersonRequestMessage
tags: tags:
- name: User, authentication and admin - name: User, authentication and admin
message: message:
$ref: "#/components/messages/banUserRequest" $ref: "#/components/messages/banPersonRequest"
subscribe: subscribe:
summary: BanUser (response) summary: BanPerson (response)
description: Confirm that the user has been banned description: Confirm that the user has been banned
operationId: banUserResponseMessage operationId: banPersonnosrePnabnosrePnabe
tags: tags:
- name: User, authentication and admin - name: User, authentication and admin
message: message:
oneOf: oneOf:
- $ref: "#/components/messages/banUserResponse" - $ref: "#/components/messages/banPersonResponse"
- $ref: "#/components/messages/errorResponse" - $ref: "#/components/messages/errorResponse"
UserJoin: UserJoin:
publish: publish:
@ -677,7 +689,7 @@ channels:
publish: publish:
summary: TransferSite (request) summary: TransferSite (request)
description: |- description: |-
Transfer ownership of the site from one admin user (`auth`) to another (`user_id`) Transfer ownership of the site from one admin user (`auth`) to another (`person_id`)
#### HTTP API - operation and endpoint. #### HTTP API - operation and endpoint.
@ -821,7 +833,7 @@ channels:
publish: publish:
summary: BanFromCommunity (request) summary: BanFromCommunity (request)
description: |- description: |-
Request to ban a user (`user_id`) from a specified community. Request to ban a person (`person_id`) from a specified community.
#### HTTP API - operation and endpoint. #### HTTP API - operation and endpoint.
@ -845,7 +857,7 @@ channels:
publish: publish:
summary: AddModToCommunity (request) summary: AddModToCommunity (request)
description: |- description: |-
Request to add another moderator (`user_id`) to the specified community (`community_id`). Request to add another moderator (`person_id`) to the specified community (`community_id`).
The account making the request (`auth`) must be either an admin or a moderator of that community. The account making the request (`auth`) must be either an admin or a moderator of that community.
@ -996,7 +1008,7 @@ channels:
publish: publish:
summary: TransferCommunity (Request) summary: TransferCommunity (Request)
description: |- description: |-
Request to transfer ownership of a community from one person (`auth`) to another (`user_id`). Request to transfer ownership of a community from one person (`auth`) to another (`person_id`).
The account making the request (`auth`) must be an admin user. The account making the request (`auth`) must be an admin user.
@ -1735,7 +1747,7 @@ components:
default: "Login" default: "Login"
data: data:
$ref: "#/components/schemas/authSchema" $ref: "#/components/schemas/authSchema"
getUserRepliesRequest: getRepliesRequest:
name: User replies request name: User replies request
payload: payload:
type: object type: object
@ -1749,7 +1761,7 @@ components:
default: "GetReplies" default: "GetReplies"
data: data:
$ref: "#/components/schemas/repliesMentionsRequest" $ref: "#/components/schemas/repliesMentionsRequest"
getUserMentionsRequest: getPersonMentionsRequest:
name: User mentions request name: User mentions request
payload: payload:
type: object type: object
@ -1759,8 +1771,8 @@ components:
properties: properties:
op: op:
type: string type: string
pattern: "^GetUserMentions$" pattern: "^GetPersonMentions$"
default: "GetUserMentions" default: "GetPersonMentions"
data: data:
$ref: "#/components/schemas/repliesMentionsRequest" $ref: "#/components/schemas/repliesMentionsRequest"
getCaptchaRequest: getCaptchaRequest:
@ -1914,7 +1926,7 @@ components:
$ref: "#/components/schemas/send_notifications_to_email" $ref: "#/components/schemas/send_notifications_to_email"
auth: auth:
$ref: "#/components/schemas/authStringSchema" $ref: "#/components/schemas/authStringSchema"
getUserDetailsRequest: getPersonDetailsRequest:
name: Return requested user details name: Return requested user details
payload: payload:
type: object type: object
@ -1924,16 +1936,16 @@ components:
properties: properties:
op: op:
type: string type: string
pattern: "^GetUserDetails$" pattern: "^GetPersonDetails$"
default: "GetUserDetails" default: "GetPersonDetails"
data: data:
type: object type: object
required: required:
- sort - sort
- saved_only - saved_only
properties: properties:
user_id: person_id:
$ref: "#/components/schemas/user_id" $ref: "#/components/schemas/person_id"
username: username:
$ref: "#/components/schemas/user_name" $ref: "#/components/schemas/user_name"
sort: sort:
@ -1965,19 +1977,19 @@ components:
properties: properties:
jwt: jwt:
$ref: "#/components/schemas/authStringSchema" $ref: "#/components/schemas/authStringSchema"
getUserDetailsResponse: getPersonDetailsResponse:
name: User details request response name: User details request response
payload: payload:
type: object type: object
properties: properties:
op: op:
type: string type: string
pattern: "^GetUserDetails$" pattern: "^GetPersonDetails$"
default: "GetUserDetails" default: "GetPersonDetails"
data: data:
type: object type: object
user: person_view:
$ref: "#/components/schemas/user_view" $ref: "#/components/schemas/person_view"
posts: posts:
$ref: "#/components/schemas/replies" $ref: "#/components/schemas/replies"
comments: comments:
@ -1990,7 +2002,7 @@ components:
items: items:
properties: properties:
follower: follower:
$ref: "#/components/schemas/user" $ref: "#/components/schemas/person"
community: community:
$ref: "#/components/schemas/community" $ref: "#/components/schemas/community"
repliesResponse: repliesResponse:
@ -2020,12 +2032,12 @@ components:
type: array type: array
items: items:
properties: properties:
UserMentionView: PersonMentionView:
$ref: "#/components/schemas/mentions" $ref: "#/components/schemas/mentions"
op: op:
type: string type: string
pattern: "^GetUserMentions$" pattern: "^GetPersonMentions$"
default: "GetUserMentions" default: "GetPersonMentions"
markMentionsRequest: markMentionsRequest:
name: Request to make a user mention as read name: Request to make a user mention as read
payload: payload:
@ -2036,12 +2048,12 @@ components:
properties: properties:
op: op:
type: string type: string
pattern: "^MarkUserMentionAsRead$" pattern: "^MarkPersonMentionAsRead$"
default: "MarkUserMentionAsRead" default: "MarkPersonMentionAsRead"
data: data:
type: object type: object
properties: properties:
user_mention_id: person_mention_id:
description: "The id of the recipient" description: "The id of the recipient"
type: integer type: integer
format: int32 format: int32
@ -2058,8 +2070,8 @@ components:
properties: properties:
op: op:
type: string type: string
pattern: "^MarkUserMentionAsRead$" pattern: "^MarkPersonMentionAsRead$"
default: "MarkUserMentionAsRead" default: "MarkPersonMentionAsRead"
data: data:
type: object type: object
properties: properties:
@ -2349,12 +2361,12 @@ components:
data: data:
type: object type: object
required: required:
- user_id - person_id
- added - added
- auth - auth
properties: properties:
user_id: person_id:
$ref: "#/components/schemas/user_id" $ref: "#/components/schemas/person_id"
added: added:
$ref: "#/components/schemas/added" $ref: "#/components/schemas/added"
auth: auth:
@ -2372,8 +2384,8 @@ components:
type: object type: object
properties: properties:
admins: admins:
$ref: "#/components/schemas/user_view" $ref: "#/components/schemas/person_view"
banUserRequest: banPersonRequest:
name: Request to ban a user name: Request to ban a user
payload: payload:
type: object type: object
@ -2383,17 +2395,17 @@ components:
properties: properties:
op: op:
type: string type: string
pattern: "^BanUser$" pattern: "^BanPerson$"
default: "BanUser" default: "BanPerson"
data: data:
type: object type: object
required: required:
- user_id - person_id
- ban - ban
- auth - auth
properties: properties:
user_id: person_id:
$ref: "#/components/schemas/user_id" $ref: "#/components/schemas/person_id"
ban: ban:
$ref: "#/components/schemas/ban" $ref: "#/components/schemas/ban"
remove_data: remove_data:
@ -2404,15 +2416,15 @@ components:
$ref: "#/components/schemas/expires" $ref: "#/components/schemas/expires"
auth: auth:
$ref: "#/components/schemas/authStringSchema" $ref: "#/components/schemas/authStringSchema"
banUserResponse: banPersonResponse:
name: Confirmation that the user has been banned name: Confirmation that the user has been banned
payload: payload:
type: object type: object
properties: properties:
op: op:
type: string type: string
pattern: "^BanUser$" pattern: "^BanPerson$"
default: "BanUser" default: "BanPerson"
data: data:
$ref: "#/components/schemas/ban_view" $ref: "#/components/schemas/ban_view"
userJoinRequest: userJoinRequest:
@ -2557,7 +2569,7 @@ components:
items: items:
properties: properties:
user: user:
$ref: "#/components/schemas/user_view" $ref: "#/components/schemas/person_view"
comments: comments:
$ref: "#/components/schemas/comments" $ref: "#/components/schemas/comments"
getModLogRequest: getModLogRequest:
@ -2575,8 +2587,8 @@ components:
data: data:
type: object type: object
properties: properties:
mod_user_id: mod_person_id:
$ref: "#/components/schemas/user_id" $ref: "#/components/schemas/person_id"
community_id: community_id:
$ref: "#/components/schemas/community_id" $ref: "#/components/schemas/community_id"
page: page:
@ -2611,8 +2623,8 @@ components:
description: Forthcoming... description: Forthcoming...
type: number type: number
example: 1 example: 1
mod_user_id: mod_person_id:
$ref: "#/components/schemas/user_id" $ref: "#/components/schemas/person_id"
post_id: post_id:
$ref: "#/components/schemas/post_id" $ref: "#/components/schemas/post_id"
locked: locked:
@ -2638,8 +2650,8 @@ components:
description: Forthcoming... description: Forthcoming...
type: number type: number
example: 1 example: 1
mod_user_id: mod_person_id:
$ref: "#/components/schemas/user_id" $ref: "#/components/schemas/person_id"
post_id: post_id:
$ref: "#/components/schemas/post_id" $ref: "#/components/schemas/post_id"
stickied: stickied:
@ -2782,8 +2794,8 @@ components:
description: Forthcoming... description: Forthcoming...
type: number type: number
example: 8 example: 8
user_id: person_id:
$ref: "#/components/schemas/user_id" $ref: "#/components/schemas/person_id"
post_score: post_score:
description: Forthcoming... description: Forthcoming...
type: number type: number
@ -2817,11 +2829,11 @@ components:
data: data:
type: object type: object
required: required:
- user_id - person_id
- auth - auth
properties: properties:
user_id: person_id:
$ref: "#/components/schemas/user_id" $ref: "#/components/schemas/person_id"
auth: auth:
$ref: "#/components/schemas/authStringSchema" $ref: "#/components/schemas/authStringSchema"
transferSiteResponse: transferSiteResponse:
@ -2846,8 +2858,8 @@ components:
type: array type: array
items: items:
properties: properties:
user: person:
$ref: "#/components/schemas/user" $ref: "#/components/schemas/person"
counts: counts:
$ref: "#/components/schemas/counts" $ref: "#/components/schemas/counts"
banned: banned:
@ -3078,14 +3090,14 @@ components:
type: object type: object
required: required:
- community_id - community_id
- user_id - person_id
- ban - ban
- auth - auth
properties: properties:
community_id: community_id:
$ref: "#/components/schemas/community_id" $ref: "#/components/schemas/community_id"
user_id: person_id:
$ref: "#/components/schemas/user_id" $ref: "#/components/schemas/person_id"
ban: ban:
$ref: "#/components/schemas/ban" $ref: "#/components/schemas/ban"
remove_data: remove_data:
@ -3123,14 +3135,14 @@ components:
type: object type: object
required: required:
- community_id - community_id
- user_id - person_id
- added - added
- auth - auth
properties: properties:
community_id: community_id:
$ref: "#/components/schemas/community_id" $ref: "#/components/schemas/community_id"
user_id: person_id:
$ref: "#/components/schemas/user_id" $ref: "#/components/schemas/person_id"
added: added:
$ref: "#/components/schemas/added" $ref: "#/components/schemas/added"
auth: auth:
@ -3358,7 +3370,7 @@ components:
community: community:
$ref: "#/components/schemas/community" $ref: "#/components/schemas/community"
follower: follower:
$ref: "#/components/schemas/user" $ref: "#/components/schemas/person"
transferCommunityRequest: transferCommunityRequest:
name: Request to transfer ownership of a community from one person to another name: Request to transfer ownership of a community from one person to another
payload: payload:
@ -3375,13 +3387,13 @@ components:
type: object type: object
required: required:
- community_id - community_id
- user_id - person_id
- auth - auth
properties: properties:
community_id: community_id:
$ref: "#/components/schemas/community_id" $ref: "#/components/schemas/community_id"
user_id: person_id:
$ref: "#/components/schemas/user_id" $ref: "#/components/schemas/person_id"
auth: auth:
$ref: "#/components/schemas/authStringSchema" $ref: "#/components/schemas/authStringSchema"
transferCommunityResponse: transferCommunityResponse:
@ -4486,8 +4498,8 @@ components:
"ban_view": "ban_view":
type: object type: object
properties: properties:
user: person_view:
$ref: "#/components/schemas/user_view" $ref: "#/components/schemas/person_view"
banned: banned:
$ref: "#/components/schemas/banned" $ref: "#/components/schemas/banned"
"banned": "banned":
@ -4607,7 +4619,7 @@ components:
post: post:
$ref: "#/components/schemas/post" $ref: "#/components/schemas/post"
creator: creator:
$ref: "#/components/schemas/user" $ref: "#/components/schemas/person"
creator_banned_from_community: creator_banned_from_community:
$ref: "#/components/schemas/creator_banned_from_community" $ref: "#/components/schemas/creator_banned_from_community"
subscribed: subscribed:
@ -4736,7 +4748,7 @@ components:
updated: updated:
$ref: "#/components/schemas/user_updated" $ref: "#/components/schemas/user_updated"
id: id:
$ref: "#/components/schemas/user_id" $ref: "#/components/schemas/person_id"
shared_inbox_url: shared_inbox_url:
description: Forthcoming... description: Forthcoming...
type: string type: string
@ -4874,6 +4886,48 @@ components:
description: |- description: |-
- *true* if this is a local user - *true* if this is a local user
- *false* if this is a federated user - *false* if this is a federated user
"local_user_id":
description: |-
That user's local id
type: integer
format: int32
example: 78
"local_user_settings":
type: object
properties:
id:
$ref: "#/components/schemas/local_user_id"
person_id:
$ref: "#/components/schemas/person_id"
email:
$ref: "#/components/schemas/email"
admin:
$ref: "#/components/schemas/admin"
show_nsfw:
$ref: "#/components/schemas/show_nsfw"
theme:
$ref: "#/components/schemas/theme"
default_sort_type:
$ref: "#/components/schemas/default_sort_type"
default_listing_type:
$ref: "#/components/schemas/default_listing_type"
lang:
$ref: "#/components/schemas/lang"
show_avatars:
$ref: "#/components/schemas/show_avatars"
send_notifications_to_email:
$ref: "#/components/schemas/send_notifications_to_email"
matrix_user_id:
$ref: "#/components/schemas/matrix_user_id"
"my_user":
type: object
properties:
local_user:
$ref: "#/components/schemas/local_user_settings"
counts:
$ref: "#/components/schemas/counts"
person:
$ref: "#/components/schemas/person"
"locked": "locked":
description: |- description: |-
Set to *true* if the post is already, or should be, locked. A locked post cannot receive comments. Set to *true* if the post is already, or should be, locked. A locked post cannot receive comments.
@ -4915,11 +4969,11 @@ components:
description: "Forthcoming..." description: "Forthcoming..."
type: object type: object
required: required:
- user_mention_id - person_mention_id
- read - read
- auth - auth
properties: properties:
user_mention_id: person_mention_id:
description: Forthcoming... description: Forthcoming...
type: integer type: integer
format: int32 format: int32
@ -4933,62 +4987,9 @@ components:
items: items:
properties: properties:
moderator: moderator:
$ref: "#/components/schemas/user" $ref: "#/components/schemas/person"
community: community:
$ref: "#/components/schemas/community" $ref: "#/components/schemas/community"
"my_user":
type: object
required:
- show_nsfw
properties:
show_nsfw:
$ref: "#/components/schemas/show_nsfw"
preferred_username:
$ref: "#/components/schemas/preferred_username"
default_sort_type:
$ref: "#/components/schemas/default_sort_type"
banned:
$ref: "#/components/schemas/banned"
default_listing_type:
$ref: "#/components/schemas/default_listing_type"
updated:
$ref: "#/components/schemas/user_updated"
matrix_user_id:
$ref: "#/components/schemas/matrix_user_id"
id:
$ref: "#/components/schemas/user_id"
show_avatars:
$ref: "#/components/schemas/show_avatars"
actor_id:
$ref: "#/components/schemas/actor_id"
deleted:
$ref: "#/components/schemas/deleted"
published:
$ref: "#/components/schemas/published"
banner:
$ref: "#/components/schemas/banner"
name:
$ref: "#/components/schemas/user_name"
avatar:
$ref: "#/components/schemas/avatar"
email:
$ref: "#/components/schemas/email"
lang:
$ref: "#/components/schemas/lang"
local:
$ref: "#/components/schemas/local"
bio:
$ref: "#/components/schemas/bio"
last_refreshed_at:
description: Forthcoming...
type: string
example: "2021-01-21T16:19:08.725191"
send_notifications_to_email:
$ref: "#/components/schemas/send_notifications_to_email"
theme:
$ref: "#/components/schemas/theme"
admin:
$ref: "#/components/schemas/admin"
"my_vote": "my_vote":
type: number type: number
description: Forthcoming... description: Forthcoming...
@ -5174,9 +5175,9 @@ components:
private_message: private_message:
$ref: "#/components/schemas/private_message" $ref: "#/components/schemas/private_message"
creator: creator:
$ref: "#/components/schemas/user" $ref: "#/components/schemas/person"
recipient: recipient:
$ref: "#/components/schemas/user" $ref: "#/components/schemas/person"
"published": "published":
type: string type: string
description: "The date this site, community, post, comment or message was created (in [ISO8601 format](https://www.w3.org/TR/NOTE-datetime))" description: "The date this site, community, post, comment or message was created (in [ISO8601 format](https://www.w3.org/TR/NOTE-datetime))"
@ -5218,7 +5219,7 @@ components:
post: post:
$ref: "#/components/schemas/post" $ref: "#/components/schemas/post"
creator: creator:
$ref: "#/components/schemas/user" $ref: "#/components/schemas/person"
creator_banned_from_community: creator_banned_from_community:
$ref: "#/components/schemas/creator_banned_from_community" $ref: "#/components/schemas/creator_banned_from_community"
community: community:
@ -5291,7 +5292,7 @@ components:
type: boolean type: boolean
example: true example: true
"resolver_id": "resolver_id":
description: The user_id of the person who resolved the report description: The person_id of the person who resolved the report
type: number type: number
nullable: true nullable: true
"saved": "saved":
@ -5521,41 +5522,53 @@ components:
description: The link to the URL associated with the post description: The link to the URL associated with the post
nullable: true nullable: true
example: 'https:\/\/www.independent.co.uk\/news\/world\/europe\/covid-vaccine-novichok-russia-navalny-b1792778.html' example: 'https:\/\/www.independent.co.uk\/news\/world\/europe\/covid-vaccine-novichok-russia-navalny-b1792778.html'
"user": "person":
type: object type: object
decription: The federated person.
properties: properties:
user: updated:
type: object $ref: "#/components/schemas/user_updated"
properties: bio:
updated: $ref: "#/components/schemas/bio"
$ref: "#/components/schemas/user_updated" admin:
bio: $ref: "#/components/schemas/admin"
$ref: "#/components/schemas/bio" preferred_username:
admin: $ref: "#/components/schemas/preferred_username"
$ref: "#/components/schemas/admin" deleted:
preferred_username: $ref: "#/components/schemas/deleted"
$ref: "#/components/schemas/preferred_username" banned:
deleted: $ref: "#/components/schemas/banned"
$ref: "#/components/schemas/deleted" published:
banned: $ref: "#/components/schemas/published"
$ref: "#/components/schemas/banned" matrix_user_id:
published: $ref: "#/components/schemas/matrix_user_id"
$ref: "#/components/schemas/published" avatar:
matrix_user_id: $ref: "#/components/schemas/avatar"
$ref: "#/components/schemas/matrix_user_id" id:
avatar: $ref: "#/components/schemas/person_id"
$ref: "#/components/schemas/avatar" actor_id:
id: $ref: "#/components/schemas/actor_id"
$ref: "#/components/schemas/user_id" local:
actor_id: $ref: "#/components/schemas/local"
$ref: "#/components/schemas/actor_id" banner:
local: $ref: "#/components/schemas/banner"
$ref: "#/components/schemas/local" name:
banner: $ref: "#/components/schemas/user_name"
$ref: "#/components/schemas/banner" inbox_url:
name: $ref: "#/components/schemas/inbox_url"
$ref: "#/components/schemas/user_name" shared_inbox_url:
"user_id": $ref: "#/components/schemas/shared_inbox_url"
"inbox_url":
description: |-
That user's inbox url
type: string
example: "http://domain.com/u/fisher/inbox"
"shared_inbox_url":
description: |-
That instance's shared inbox url
type: string
example: "http://domain.com/inbox"
"person_id":
description: |- description: |-
That user's id number That user's id number
type: integer type: integer
@ -5569,13 +5582,13 @@ components:
type: string type: string
description: "The last time this user profile was updated (in [ISO8601 format](https://www.w3.org/TR/NOTE-datetime))" description: "The last time this user profile was updated (in [ISO8601 format](https://www.w3.org/TR/NOTE-datetime))"
example: "2021-01-21T16:26:16.285610" example: "2021-01-21T16:26:16.285610"
"user_view": "person_view":
type: object type: object
properties: properties:
counts: counts:
$ref: "#/components/schemas/counts" $ref: "#/components/schemas/counts"
user: person:
$ref: "#/components/schemas/user" $ref: "#/components/schemas/person"
"username_or_email": "username_or_email":
type: string type: string
description: "Username or registered email" description: "Username or registered email"