-
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.
- Loading branch information
Showing
11 changed files
with
271 additions
and
13 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,159 @@ | ||
"User affilation to a specific room" | ||
enum MUCAffiliation{ | ||
"The user is the owner of the room" | ||
OWNER | ||
"The user has administrative role" | ||
ADMIN | ||
"The user is a member of the rooom" | ||
MEMBER | ||
"The user isn't a member of the room" | ||
OUTCAST | ||
"The user doesn't have any affiliation" | ||
NONE | ||
} | ||
|
||
"MUC role types" | ||
enum MUCRole{ | ||
"User is a visiting" | ||
VISITOR | ||
"User can participate in the room" | ||
PARTICIPANT | ||
"User has ability to moderate room" | ||
MODERATOR | ||
} | ||
|
||
"MUC room user data" | ||
type MUCRoomUser{ | ||
"User's JID" | ||
jid: JID | ||
"User's nickname" | ||
nick: String! | ||
"User's role" | ||
role: MUCRole! | ||
} | ||
|
||
"MUC room affiliation data" | ||
type MUCRoomAffiliation{ | ||
"Room's JID" | ||
jid: JID! | ||
"Affiliation type" | ||
affiliation: MUCAffiliation! | ||
} | ||
|
||
"MUC room description" | ||
type MUCRoomDesc{ | ||
"Room's JID" | ||
jid: JID! | ||
"Room's title" | ||
title: String! | ||
"Is room private?" | ||
private: Boolean | ||
"Number of the users" | ||
usersNumber: Int | ||
} | ||
|
||
"MUC room configuration" | ||
type MUCRoomConfig{ | ||
"Room's title" | ||
title: String!, | ||
"Room's description" | ||
description: String!, | ||
"Allow to change room's subject?" | ||
allowChangeSubject: Boolean!, | ||
"Allow to query users?" | ||
allowQueryUsers: Boolean!, | ||
"Allow private messages?" | ||
allowPrivateMessages: Boolean!, | ||
"Allow visitor staus?" | ||
allowVisitorStatus: Boolean!, | ||
"Allow visitors to change their nicks?" | ||
allowVisitorNickchange: Boolean!, | ||
"Is the room public?" | ||
public: Boolean!, | ||
"Is the room on the public list?" | ||
publicList: Boolean!, | ||
"Is the room persistent" | ||
persistent: Boolean!, | ||
"Is the room moderated?" | ||
moderated: Boolean!, | ||
"Should all new occupants be members by default?" | ||
membersByDefault: Boolean!, | ||
"Should only users with member affiliation be allowed to join the room?" | ||
membersOnly: Boolean!, | ||
"Can users invite others to join the room?" | ||
allowUserInvites: Boolean!, | ||
"Allow multiple sessions of the room?" | ||
allowMultipleSession: Boolean!, | ||
"Is the room password protected?" | ||
passwordProtected: Boolean!, | ||
"Password to the room" | ||
password: String!, | ||
"Are occupants, except from moderators, able see each others real JIDs?" | ||
anonymous: Boolean!, | ||
"Array of roles and/or privileges that enable retrieving the room's member list" | ||
mayGetMemberList: [String!]! | ||
"Maximum number of users in the room" | ||
maxUsers: Int, | ||
"Does the room enabled logging events to a file on the disk?" | ||
logging: Boolean!, | ||
} | ||
|
||
"MUC rooom configuration input" | ||
input MUCRoomConfigInput{ | ||
"Room's title" | ||
title: String, | ||
"Room's description" | ||
description: String, | ||
"Allow to change room's subject?" | ||
allowChangeSubject: Boolean, | ||
"Allow to query users?" | ||
allowQueryUsers: Boolean, | ||
"Allow private messages?" | ||
allowPrivateMessages: Boolean, | ||
"Allow visitor staus?" | ||
allowVisitorStatus: Boolean, | ||
"Allow visitors to change their nicks?" | ||
allowVisitorNickchange: Boolean, | ||
"Is the room public?" | ||
public: Boolean, | ||
"Is the room on the public list?" | ||
publicList: Boolean, | ||
"Is the room persistent" | ||
persistent: Boolean, | ||
"Is the room moderated?" | ||
moderated: Boolean, | ||
"Should all new occupants be members by default?" | ||
membersByDefault: Boolean, | ||
"Should only users with member affiliation be allowed to join the room?" | ||
membersOnly: Boolean, | ||
"Can users invite others to join the room?" | ||
allowUserInvites: Boolean, | ||
"Allow multiple sessions of the room?" | ||
allowMultipleSession: Boolean, | ||
"Is the room password protected?" | ||
passwordProtected: Boolean, | ||
"Password to the room" | ||
password: String, | ||
"Are occupants, except from moderators, able see each others real JIDs?" | ||
anonymous: Boolean, | ||
"Array of roles and/or privileges that enable retrieving the room's member list" | ||
mayGetMemberList: [String!], | ||
"Maximum number of users in the room" | ||
maxUsers: Int | ||
"Does the room enabled logging events to a file on the disk?" | ||
logging: Boolean, | ||
} | ||
|
||
"MUC rooms payload" | ||
type MUCRoomsPayload{ | ||
"List of rooms descriptions" | ||
rooms: [MUCRoomDesc!] | ||
"Number of the rooms" | ||
count: Int | ||
"Index of the room" | ||
index: Int | ||
"First room title" | ||
first: String | ||
"Last room title" | ||
last: String | ||
} |
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,7 +1,12 @@ | ||
"Date and time represented using **YYYY-MM-DDTHH:mm:ssZ** format" | ||
scalar DateTime | ||
scalar Stanza | ||
scalar JID | ||
"The JID with resource e.g. alice@localhost/res1" | ||
scalar FullJID | ||
scalar NonEmptyString | ||
scalar PosInt | ||
"Body of a data structure exchanged by XMPP entities in XML streams" | ||
scalar Stanza @spectaql(options: [{ key: "example", value: "Hi!" }]) | ||
"Unique indetifier in the form of **node@domain**" | ||
scalar JID @spectaql(options: [{ key: "example", value: "alice@localhost" }]) | ||
"The JID with resource" | ||
scalar FullJID @spectaql(options: [{ key: "example", value: "alice@localhost/res1" }]) | ||
"String that contains at least one character" | ||
scalar NonEmptyString @spectaql(options: [{ key: "example", value: "xyz789" }]) | ||
"Integer that has a value above zero" | ||
scalar PosInt @spectaql(options: [{ key: "example", value: "2" }]) |
Oops, something went wrong.