-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3563 from esl/graphql/muc-light-api-user
Implement GraphQL MUC Light user queries
- Loading branch information
Showing
22 changed files
with
1,180 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
scalar DateTime | ||
scalar Stanza | ||
scalar JID | ||
scalar NonEmptyString |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
""" | ||
Allow user to manage Multi-User Chat Light rooms. | ||
""" | ||
type MUCLightUserMutation @protected{ | ||
"Create a MUC light room under the given XMPP hostname" | ||
createRoom(mucDomain: String!, name: String!, subject: String!, id: NonEmptyString): Room | ||
"Change configuration of a MUC Light room" | ||
changeRoomConfiguration(room: JID!, name: String!, subject: String!): Room | ||
"Invite a user to a MUC Light room" | ||
inviteUser(room: JID!, recipient: JID!): String | ||
"Remove a MUC Light room" | ||
deleteRoom(room: JID!): String | ||
"Kick a user from a MUC Light room" | ||
kickUser(room: JID!, user: JID): String | ||
"Send a message to a MUC Light room" | ||
sendMessageToRoom(room: JID!, body: String!): String | ||
"Set the user blocking list" | ||
setBlockingList(items: [BlockingInput!]!): String | ||
} | ||
|
||
""" | ||
Allow user to get information about Multi-User Chat Light rooms. | ||
""" | ||
type MUCLightUserQuery @protected{ | ||
"Get the MUC Light room archived messages" | ||
getRoomMessages(room: JID!, pageSize: Int, before: DateTime): StanzasPayload | ||
"Get configuration of the MUC Light room" | ||
getRoomConfig(room: JID!): Room | ||
"Get users list of given MUC Light room" | ||
listRoomUsers(room: JID!): [RoomUser!] | ||
"Get the list of MUC Light rooms that the user participates in" | ||
listRooms: [JID!] | ||
"Get the user blocking list" | ||
getBlockingList: [BlockingItem!] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.