Update API docs
This commit is contained in:
parent
cc1c8f33b2
commit
cbe466e572
1 changed files with 7 additions and 7 deletions
|
@ -49,11 +49,14 @@ paths:
|
||||||
properties:
|
properties:
|
||||||
presence:
|
presence:
|
||||||
type: string
|
type: string
|
||||||
enum: ["online", "offline", "unavailable", "free_for_chat"]
|
enum: ["online", "offline", "unavailable"]
|
||||||
description: The new presence state.
|
description: The new presence state.
|
||||||
status_msg:
|
status_msg:
|
||||||
type: string
|
type: string
|
||||||
description: "The status message to attach to this state."
|
description: "The status message to attach to this state."
|
||||||
|
currently_online:
|
||||||
|
type: boolean
|
||||||
|
description: "Whether the user is currently active"
|
||||||
required: ["presence"]
|
required: ["presence"]
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
|
@ -94,7 +97,7 @@ paths:
|
||||||
properties:
|
properties:
|
||||||
presence:
|
presence:
|
||||||
type: string
|
type: string
|
||||||
enum: ["online", "offline", "unavailable", "free_for_chat"]
|
enum: ["online", "offline", "unavailable"]
|
||||||
description: This user's presence.
|
description: This user's presence.
|
||||||
last_active_ago:
|
last_active_ago:
|
||||||
type: integer
|
type: integer
|
||||||
|
@ -185,8 +188,6 @@ paths:
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"content": {
|
"content": {
|
||||||
"avatar_url": "mxc://matrix.org/AfwefuigfWEfhuiPP",
|
|
||||||
"displayname": "Alice Margatroid",
|
|
||||||
"last_active_ago": 395,
|
"last_active_ago": 395,
|
||||||
"presence": "offline",
|
"presence": "offline",
|
||||||
"user_id": "@alice:matrix.org"
|
"user_id": "@alice:matrix.org"
|
||||||
|
@ -195,11 +196,10 @@ paths:
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"content": {
|
"content": {
|
||||||
"avatar_url": "mxc://matrix.org/FWEhuiwegfWEfhuiwf",
|
|
||||||
"displayname": "Marisa Kirisame",
|
|
||||||
"last_active_ago": 16874,
|
"last_active_ago": 16874,
|
||||||
"presence": "online",
|
"presence": "online",
|
||||||
"user_id": "@marisa:matrix.org"
|
"user_id": "@marisa:matrix.org",
|
||||||
|
"currently_active": true
|
||||||
},
|
},
|
||||||
"type": "m.presence"
|
"type": "m.presence"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue