diff --git a/swagger/client-server/api-docs-rooms b/swagger/client-server/api-docs-rooms index 95c7b3a0..0ee1228c 100644 --- a/swagger/client-server/api-docs-rooms +++ b/swagger/client-server/api-docs-rooms @@ -657,6 +657,41 @@ } ] }, + { + "path": "/rooms/{roomId}/typing/{userId}", + "operations": [ + { + "method": "PUT", + "summary": "Inform the server that this user is typing.", + "notes": "Only the authorised user can send typing notifications.", + "type": "void", + "nickname": "put_typing", + "parameters": [ + { + "name": "roomId", + "description": "The room to send the m.typing event into.", + "required": true, + "type": "string", + "paramType": "path" + }, + { + "name": "userId", + "description": "The user ID of the typer.", + "required": true, + "type": "string", + "paramType": "path" + }, + { + "name": "body", + "description": "The typing information", + "required": true, + "type": "Typing", + "paramType": "body" + } + ] + } + ] + }, { "path": "/rooms/{roomId}/initialSync", "operations": [ @@ -765,6 +800,21 @@ } } }, + "Typing": { + "id": "Typing", + "properties": { + "typing": { + "type": "boolean", + "description": "True if the user is currently typing.", + "required": true + }, + "timeout": { + "type": "integer", + "description": "The length of time until the user should be treated as no longer typing, in milliseconds. Can be omitted if they are no longer typing.", + "required": true + } + } + }, "RoomConfig": { "id": "RoomConfig", "properties": {