polfan-server-js-client 0.1.59 → 0.1.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/.idea/vcs.xml +1 -0
  2. package/build/index.js +52 -16
  3. package/build/index.js.map +1 -1
  4. package/build/types/Permissions.d.ts +4 -0
  5. package/build/types/state-tracker/MessagesManager.d.ts +1 -1
  6. package/build/types/state-tracker/RoomsManager.d.ts +1 -0
  7. package/build/types/types/dist/index.d.ts +1 -0
  8. package/build/types/types/dist/schemes/AckReport.d.ts +1 -0
  9. package/build/types/types/dist/schemes/ChatLocation.d.ts +1 -0
  10. package/build/types/types/dist/schemes/Envelope.d.ts +1 -0
  11. package/build/types/types/dist/schemes/Message.d.ts +1 -0
  12. package/build/types/types/dist/schemes/PermissionOverwritesValue.d.ts +1 -0
  13. package/build/types/types/dist/schemes/Role.d.ts +1 -0
  14. package/build/types/types/dist/schemes/Room.d.ts +1 -0
  15. package/build/types/types/dist/schemes/RoomMember.d.ts +1 -0
  16. package/build/types/types/dist/schemes/RoomSummary.d.ts +1 -0
  17. package/build/types/types/dist/schemes/Space.d.ts +1 -0
  18. package/build/types/types/dist/schemes/SpaceMember.d.ts +1 -0
  19. package/build/types/types/dist/schemes/Topic.d.ts +1 -0
  20. package/build/types/types/dist/schemes/User.d.ts +1 -0
  21. package/build/types/types/dist/schemes/UserState.d.ts +1 -0
  22. package/build/types/types/dist/schemes/commands/Ack.d.ts +1 -0
  23. package/build/types/types/dist/schemes/commands/AssignRole.d.ts +1 -0
  24. package/build/types/types/dist/schemes/commands/CreateMessage.d.ts +1 -0
  25. package/build/types/types/dist/schemes/commands/CreateOwner.d.ts +1 -0
  26. package/build/types/types/dist/schemes/commands/CreateRole.d.ts +1 -0
  27. package/build/types/types/dist/schemes/commands/CreateRoom.d.ts +1 -0
  28. package/build/types/types/dist/schemes/commands/CreateSpace.d.ts +1 -0
  29. package/build/types/types/dist/schemes/commands/CreateTopic.d.ts +1 -0
  30. package/build/types/types/dist/schemes/commands/DeassignRole.d.ts +1 -0
  31. package/build/types/types/dist/schemes/commands/DeleteOwner.d.ts +1 -0
  32. package/build/types/types/dist/schemes/commands/DeleteRole.d.ts +1 -0
  33. package/build/types/types/dist/schemes/commands/DeleteRoom.d.ts +1 -0
  34. package/build/types/types/dist/schemes/commands/DeleteSpace.d.ts +1 -0
  35. package/build/types/types/dist/schemes/commands/DeleteTopic.d.ts +1 -0
  36. package/build/types/types/dist/schemes/commands/GetAckReports.d.ts +1 -0
  37. package/build/types/types/dist/schemes/commands/GetComputedPermissions.d.ts +1 -0
  38. package/build/types/types/dist/schemes/commands/GetOwners.d.ts +1 -0
  39. package/build/types/types/dist/schemes/commands/GetPermissionOverwriteTargets.d.ts +1 -0
  40. package/build/types/types/dist/schemes/commands/GetPermissionOverwrites.d.ts +1 -0
  41. package/build/types/types/dist/schemes/commands/GetRoomMembers.d.ts +1 -0
  42. package/build/types/types/dist/schemes/commands/GetSession.d.ts +1 -0
  43. package/build/types/types/dist/schemes/commands/GetSpaceMembers.d.ts +1 -0
  44. package/build/types/types/dist/schemes/commands/GetSpaceRooms.d.ts +1 -0
  45. package/build/types/types/dist/schemes/commands/JoinRoom.d.ts +1 -0
  46. package/build/types/types/dist/schemes/commands/JoinSpace.d.ts +1 -0
  47. package/build/types/types/dist/schemes/commands/LeaveRoom.d.ts +1 -0
  48. package/build/types/types/dist/schemes/commands/LeaveSpace.d.ts +1 -0
  49. package/build/types/types/dist/schemes/commands/SetPermissionOverwrites.d.ts +1 -0
  50. package/build/types/types/dist/schemes/commands/UpdateRole.d.ts +1 -0
  51. package/build/types/types/dist/schemes/commands/UpdateRoom.d.ts +1 -0
  52. package/build/types/types/dist/schemes/commands/UpdateSpace.d.ts +1 -0
  53. package/build/types/types/dist/schemes/events/AckReports.d.ts +1 -0
  54. package/build/types/types/dist/schemes/events/Bye.d.ts +1 -0
  55. package/build/types/types/dist/schemes/events/ComputedPermissions.d.ts +1 -0
  56. package/build/types/types/dist/schemes/events/Error.d.ts +1 -0
  57. package/build/types/types/dist/schemes/events/NewMessage.d.ts +1 -0
  58. package/build/types/types/dist/schemes/events/NewRole.d.ts +1 -0
  59. package/build/types/types/dist/schemes/events/NewRoom.d.ts +1 -0
  60. package/build/types/types/dist/schemes/events/NewTopic.d.ts +1 -0
  61. package/build/types/types/dist/schemes/events/Ok.d.ts +1 -0
  62. package/build/types/types/dist/schemes/events/Owners.d.ts +1 -0
  63. package/build/types/types/dist/schemes/events/PermissionOverwriteTargets.d.ts +1 -0
  64. package/build/types/types/dist/schemes/events/PermissionOverwrites.d.ts +1 -0
  65. package/build/types/types/dist/schemes/events/PermissionOverwritesUpdated.d.ts +1 -0
  66. package/build/types/types/dist/schemes/events/RoleDeleted.d.ts +1 -0
  67. package/build/types/types/dist/schemes/events/RoleUpdated.d.ts +1 -0
  68. package/build/types/types/dist/schemes/events/RoomDeleted.d.ts +1 -0
  69. package/build/types/types/dist/schemes/events/RoomJoined.d.ts +1 -0
  70. package/build/types/types/dist/schemes/events/RoomLeft.d.ts +1 -0
  71. package/build/types/types/dist/schemes/events/RoomMemberJoined.d.ts +1 -0
  72. package/build/types/types/dist/schemes/events/RoomMemberLeft.d.ts +1 -0
  73. package/build/types/types/dist/schemes/events/RoomMemberUpdated.d.ts +1 -0
  74. package/build/types/types/dist/schemes/events/RoomMembers.d.ts +1 -0
  75. package/build/types/types/dist/schemes/events/RoomUpdated.d.ts +1 -0
  76. package/build/types/types/dist/schemes/events/Session.d.ts +1 -0
  77. package/build/types/types/dist/schemes/events/SpaceDeleted.d.ts +1 -0
  78. package/build/types/types/dist/schemes/events/SpaceJoined.d.ts +1 -0
  79. package/build/types/types/dist/schemes/events/SpaceLeft.d.ts +1 -0
  80. package/build/types/types/dist/schemes/events/SpaceMemberJoined.d.ts +1 -0
  81. package/build/types/types/dist/schemes/events/SpaceMemberLeft.d.ts +1 -0
  82. package/build/types/types/dist/schemes/events/SpaceMemberUpdated.d.ts +1 -0
  83. package/build/types/types/dist/schemes/events/SpaceMembers.d.ts +1 -0
  84. package/build/types/types/dist/schemes/events/SpaceRooms.d.ts +1 -0
  85. package/build/types/types/dist/schemes/events/SpaceUpdated.d.ts +1 -0
  86. package/build/types/types/dist/schemes/events/TopicDeleted.d.ts +1 -0
  87. package/build/types/types/dist/schemes/events/UserUpdated.d.ts +1 -0
  88. package/build/types/types/src/index.d.ts +2 -1
  89. package/build/types/types/src/schemes/Room.d.ts +1 -1
  90. package/build/types/types/src/schemes/Topic.d.ts +5 -1
  91. package/build/types/types/src/schemes/commands/CreateTopic.d.ts +2 -2
  92. package/package.json +1 -1
  93. package/src/Permissions.ts +8 -7
  94. package/src/state-tracker/MessagesManager.ts +20 -6
  95. package/src/state-tracker/RoomsManager.ts +15 -0
  96. package/src/types/dist/index.d.ts +82 -0
  97. package/src/types/dist/index.js +2 -0
  98. package/src/types/dist/schemes/AckReport.d.ts +7 -0
  99. package/src/types/dist/schemes/AckReport.js +2 -0
  100. package/src/types/dist/schemes/ChatLocation.d.ts +5 -0
  101. package/src/types/dist/schemes/ChatLocation.js +2 -0
  102. package/src/types/dist/schemes/Envelope.d.ts +5 -0
  103. package/src/types/dist/schemes/Envelope.js +2 -0
  104. package/src/types/dist/schemes/Message.d.ts +7 -0
  105. package/src/types/dist/schemes/Message.js +2 -0
  106. package/src/types/dist/schemes/PermissionOverwritesValue.d.ts +4 -0
  107. package/src/types/dist/schemes/PermissionOverwritesValue.js +2 -0
  108. package/src/types/dist/schemes/Role.d.ts +6 -0
  109. package/src/types/dist/schemes/Role.js +2 -0
  110. package/src/types/dist/schemes/Room.d.ts +10 -0
  111. package/src/types/dist/schemes/Room.js +2 -0
  112. package/src/types/dist/schemes/RoomMember.d.ts +7 -0
  113. package/src/types/dist/schemes/RoomMember.js +2 -0
  114. package/src/types/dist/schemes/RoomSummary.d.ts +5 -0
  115. package/src/types/dist/schemes/RoomSummary.js +2 -0
  116. package/src/types/dist/schemes/Space.d.ts +6 -0
  117. package/src/types/dist/schemes/Space.js +2 -0
  118. package/src/types/dist/schemes/SpaceMember.d.ts +5 -0
  119. package/src/types/dist/schemes/SpaceMember.js +2 -0
  120. package/src/types/dist/schemes/Topic.d.ts +9 -0
  121. package/src/types/dist/schemes/Topic.js +2 -0
  122. package/src/types/dist/schemes/User.d.ts +8 -0
  123. package/src/types/dist/schemes/User.js +2 -0
  124. package/src/types/dist/schemes/UserState.d.ts +6 -0
  125. package/src/types/dist/schemes/UserState.js +2 -0
  126. package/src/types/dist/schemes/commands/Ack.d.ts +5 -0
  127. package/src/types/dist/schemes/commands/Ack.js +2 -0
  128. package/src/types/dist/schemes/commands/AssignRole.d.ts +6 -0
  129. package/src/types/dist/schemes/commands/AssignRole.js +2 -0
  130. package/src/types/dist/schemes/commands/CreateMessage.d.ts +5 -0
  131. package/src/types/dist/schemes/commands/CreateMessage.js +2 -0
  132. package/src/types/dist/schemes/commands/CreateOwner.d.ts +5 -0
  133. package/src/types/dist/schemes/commands/CreateOwner.js +2 -0
  134. package/src/types/dist/schemes/commands/CreateRole.d.ts +5 -0
  135. package/src/types/dist/schemes/commands/CreateRole.js +2 -0
  136. package/src/types/dist/schemes/commands/CreateRoom.d.ts +7 -0
  137. package/src/types/dist/schemes/commands/CreateRoom.js +2 -0
  138. package/src/types/dist/schemes/commands/CreateSpace.d.ts +3 -0
  139. package/src/types/dist/schemes/commands/CreateSpace.js +2 -0
  140. package/src/types/dist/schemes/commands/CreateTopic.d.ts +12 -0
  141. package/src/types/dist/schemes/commands/CreateTopic.js +2 -0
  142. package/src/types/dist/schemes/commands/DeassignRole.d.ts +6 -0
  143. package/src/types/dist/schemes/commands/DeassignRole.js +2 -0
  144. package/src/types/dist/schemes/commands/DeleteOwner.d.ts +5 -0
  145. package/src/types/dist/schemes/commands/DeleteOwner.js +2 -0
  146. package/src/types/dist/schemes/commands/DeleteRole.d.ts +4 -0
  147. package/src/types/dist/schemes/commands/DeleteRole.js +2 -0
  148. package/src/types/dist/schemes/commands/DeleteRoom.d.ts +3 -0
  149. package/src/types/dist/schemes/commands/DeleteRoom.js +2 -0
  150. package/src/types/dist/schemes/commands/DeleteSpace.d.ts +3 -0
  151. package/src/types/dist/schemes/commands/DeleteSpace.js +2 -0
  152. package/src/types/dist/schemes/commands/DeleteTopic.d.ts +4 -0
  153. package/src/types/dist/schemes/commands/DeleteTopic.js +2 -0
  154. package/src/types/dist/schemes/commands/GetAckReports.d.ts +4 -0
  155. package/src/types/dist/schemes/commands/GetAckReports.js +2 -0
  156. package/src/types/dist/schemes/commands/GetComputedPermissions.d.ts +4 -0
  157. package/src/types/dist/schemes/commands/GetComputedPermissions.js +2 -0
  158. package/src/types/dist/schemes/commands/GetOwners.d.ts +4 -0
  159. package/src/types/dist/schemes/commands/GetOwners.js +2 -0
  160. package/src/types/dist/schemes/commands/GetPermissionOverwriteTargets.d.ts +4 -0
  161. package/src/types/dist/schemes/commands/GetPermissionOverwriteTargets.js +2 -0
  162. package/src/types/dist/schemes/commands/GetPermissionOverwrites.d.ts +6 -0
  163. package/src/types/dist/schemes/commands/GetPermissionOverwrites.js +2 -0
  164. package/src/types/dist/schemes/commands/GetRoomMembers.d.ts +3 -0
  165. package/src/types/dist/schemes/commands/GetRoomMembers.js +2 -0
  166. package/src/types/dist/schemes/commands/GetSession.d.ts +2 -0
  167. package/src/types/dist/schemes/commands/GetSession.js +2 -0
  168. package/src/types/dist/schemes/commands/GetSpaceMembers.d.ts +3 -0
  169. package/src/types/dist/schemes/commands/GetSpaceMembers.js +2 -0
  170. package/src/types/dist/schemes/commands/GetSpaceRooms.d.ts +3 -0
  171. package/src/types/dist/schemes/commands/GetSpaceRooms.js +2 -0
  172. package/src/types/dist/schemes/commands/JoinRoom.d.ts +3 -0
  173. package/src/types/dist/schemes/commands/JoinRoom.js +2 -0
  174. package/src/types/dist/schemes/commands/JoinSpace.d.ts +3 -0
  175. package/src/types/dist/schemes/commands/JoinSpace.js +2 -0
  176. package/src/types/dist/schemes/commands/LeaveRoom.d.ts +3 -0
  177. package/src/types/dist/schemes/commands/LeaveRoom.js +2 -0
  178. package/src/types/dist/schemes/commands/LeaveSpace.d.ts +3 -0
  179. package/src/types/dist/schemes/commands/LeaveSpace.js +2 -0
  180. package/src/types/dist/schemes/commands/SetPermissionOverwrites.d.ts +8 -0
  181. package/src/types/dist/schemes/commands/SetPermissionOverwrites.js +2 -0
  182. package/src/types/dist/schemes/commands/UpdateRole.d.ts +7 -0
  183. package/src/types/dist/schemes/commands/UpdateRole.js +2 -0
  184. package/src/types/dist/schemes/commands/UpdateRoom.d.ts +5 -0
  185. package/src/types/dist/schemes/commands/UpdateRoom.js +2 -0
  186. package/src/types/dist/schemes/commands/UpdateSpace.d.ts +4 -0
  187. package/src/types/dist/schemes/commands/UpdateSpace.js +2 -0
  188. package/src/types/dist/schemes/events/AckReports.d.ts +4 -0
  189. package/src/types/dist/schemes/events/AckReports.js +2 -0
  190. package/src/types/dist/schemes/events/Bye.d.ts +3 -0
  191. package/src/types/dist/schemes/events/Bye.js +2 -0
  192. package/src/types/dist/schemes/events/ComputedPermissions.d.ts +5 -0
  193. package/src/types/dist/schemes/events/ComputedPermissions.js +2 -0
  194. package/src/types/dist/schemes/events/Error.d.ts +4 -0
  195. package/src/types/dist/schemes/events/Error.js +2 -0
  196. package/src/types/dist/schemes/events/NewMessage.d.ts +6 -0
  197. package/src/types/dist/schemes/events/NewMessage.js +2 -0
  198. package/src/types/dist/schemes/events/NewRole.d.ts +5 -0
  199. package/src/types/dist/schemes/events/NewRole.js +2 -0
  200. package/src/types/dist/schemes/events/NewRoom.d.ts +5 -0
  201. package/src/types/dist/schemes/events/NewRoom.js +2 -0
  202. package/src/types/dist/schemes/events/NewTopic.d.ts +5 -0
  203. package/src/types/dist/schemes/events/NewTopic.js +2 -0
  204. package/src/types/dist/schemes/events/Ok.d.ts +2 -0
  205. package/src/types/dist/schemes/events/Ok.js +2 -0
  206. package/src/types/dist/schemes/events/Owners.d.ts +8 -0
  207. package/src/types/dist/schemes/events/Owners.js +2 -0
  208. package/src/types/dist/schemes/events/PermissionOverwriteTargets.d.ts +10 -0
  209. package/src/types/dist/schemes/events/PermissionOverwriteTargets.js +2 -0
  210. package/src/types/dist/schemes/events/PermissionOverwrites.d.ts +8 -0
  211. package/src/types/dist/schemes/events/PermissionOverwrites.js +2 -0
  212. package/src/types/dist/schemes/events/PermissionOverwritesUpdated.d.ts +8 -0
  213. package/src/types/dist/schemes/events/PermissionOverwritesUpdated.js +2 -0
  214. package/src/types/dist/schemes/events/RoleDeleted.d.ts +4 -0
  215. package/src/types/dist/schemes/events/RoleDeleted.js +2 -0
  216. package/src/types/dist/schemes/events/RoleUpdated.d.ts +5 -0
  217. package/src/types/dist/schemes/events/RoleUpdated.js +2 -0
  218. package/src/types/dist/schemes/events/RoomDeleted.d.ts +3 -0
  219. package/src/types/dist/schemes/events/RoomDeleted.js +2 -0
  220. package/src/types/dist/schemes/events/RoomJoined.d.ts +4 -0
  221. package/src/types/dist/schemes/events/RoomJoined.js +2 -0
  222. package/src/types/dist/schemes/events/RoomLeft.d.ts +3 -0
  223. package/src/types/dist/schemes/events/RoomLeft.js +2 -0
  224. package/src/types/dist/schemes/events/RoomMemberJoined.d.ts +5 -0
  225. package/src/types/dist/schemes/events/RoomMemberJoined.js +2 -0
  226. package/src/types/dist/schemes/events/RoomMemberLeft.d.ts +4 -0
  227. package/src/types/dist/schemes/events/RoomMemberLeft.js +2 -0
  228. package/src/types/dist/schemes/events/RoomMemberUpdated.d.ts +6 -0
  229. package/src/types/dist/schemes/events/RoomMemberUpdated.js +2 -0
  230. package/src/types/dist/schemes/events/RoomMembers.d.ts +5 -0
  231. package/src/types/dist/schemes/events/RoomMembers.js +2 -0
  232. package/src/types/dist/schemes/events/RoomUpdated.d.ts +4 -0
  233. package/src/types/dist/schemes/events/RoomUpdated.js +2 -0
  234. package/src/types/dist/schemes/events/Session.d.ts +7 -0
  235. package/src/types/dist/schemes/events/Session.js +2 -0
  236. package/src/types/dist/schemes/events/SpaceDeleted.d.ts +3 -0
  237. package/src/types/dist/schemes/events/SpaceDeleted.js +2 -0
  238. package/src/types/dist/schemes/events/SpaceJoined.d.ts +4 -0
  239. package/src/types/dist/schemes/events/SpaceJoined.js +2 -0
  240. package/src/types/dist/schemes/events/SpaceLeft.d.ts +3 -0
  241. package/src/types/dist/schemes/events/SpaceLeft.js +2 -0
  242. package/src/types/dist/schemes/events/SpaceMemberJoined.d.ts +5 -0
  243. package/src/types/dist/schemes/events/SpaceMemberJoined.js +2 -0
  244. package/src/types/dist/schemes/events/SpaceMemberLeft.d.ts +4 -0
  245. package/src/types/dist/schemes/events/SpaceMemberLeft.js +2 -0
  246. package/src/types/dist/schemes/events/SpaceMemberUpdated.d.ts +6 -0
  247. package/src/types/dist/schemes/events/SpaceMemberUpdated.js +2 -0
  248. package/src/types/dist/schemes/events/SpaceMembers.d.ts +5 -0
  249. package/src/types/dist/schemes/events/SpaceMembers.js +2 -0
  250. package/src/types/dist/schemes/events/SpaceRooms.d.ts +5 -0
  251. package/src/types/dist/schemes/events/SpaceRooms.js +2 -0
  252. package/src/types/dist/schemes/events/SpaceUpdated.d.ts +4 -0
  253. package/src/types/dist/schemes/events/SpaceUpdated.js +2 -0
  254. package/src/types/dist/schemes/events/TopicDeleted.d.ts +4 -0
  255. package/src/types/dist/schemes/events/TopicDeleted.js +2 -0
  256. package/src/types/dist/schemes/events/UserUpdated.d.ts +4 -0
  257. package/src/types/dist/schemes/events/UserUpdated.js +2 -0
  258. package/src/types/src/index.ts +2 -0
  259. package/src/types/src/schemes/Room.ts +1 -1
  260. package/src/types/src/schemes/Topic.ts +6 -1
  261. package/src/types/src/schemes/commands/CreateTopic.ts +2 -2
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { Topic } from "./Topic";
2
+ export type RoomType = 'Text';
3
+ export interface Room {
4
+ id: string;
5
+ spaceId: string | null;
6
+ name: string;
7
+ description: string;
8
+ type: RoomType;
9
+ defaultTopic: Topic | null;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { User } from "./User";
2
+ import { SpaceMember } from "./SpaceMember";
3
+ export interface RoomMember {
4
+ user: User | null;
5
+ spaceMember: SpaceMember | null;
6
+ roles: string[] | null;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface RoomSummary {
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { Role } from "./Role";
2
+ export interface Space {
3
+ id: string;
4
+ name: string;
5
+ roles: Role[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { User } from "./User";
2
+ export interface SpaceMember {
3
+ user: User | null;
4
+ roles: string[];
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { MessageReference } from "./commands/CreateTopic";
2
+ import { Message } from "./Message";
3
+ export interface Topic {
4
+ id: string;
5
+ name: string;
6
+ messageCount: number;
7
+ messageRef?: MessageReference;
8
+ lastMessage?: Message;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export type UserFlag = 'bot' | 'temp';
2
+ export interface User {
3
+ id: string;
4
+ nick: string;
5
+ avatar: string;
6
+ flags: UserFlag[];
7
+ online: boolean;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { Space } from "./Space";
2
+ import { Room } from "./Room";
3
+ export interface UserState {
4
+ spaces: Space[];
5
+ rooms: Room[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface Ack {
3
+ location: ChatLocation;
4
+ messageId?: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface AssignRole {
3
+ roleId: string;
4
+ userId: string;
5
+ location: ChatLocation;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface CreateMessage {
3
+ location: ChatLocation;
4
+ content: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface CreateOwner {
3
+ location: ChatLocation;
4
+ userId: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface CreateRole {
2
+ spaceId: string;
3
+ name: string;
4
+ color: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { RoomType } from "../Room";
2
+ export interface CreateRoom {
3
+ spaceId: string;
4
+ name: string;
5
+ description: string;
6
+ type: RoomType;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface CreateSpace {
2
+ name: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { ChatLocation } from "../ChatLocation";
2
+ import { CreateMessage } from "./CreateMessage";
3
+ export interface MessageReference {
4
+ topicId: string;
5
+ messageId: string;
6
+ }
7
+ export interface CreateTopic {
8
+ location: ChatLocation;
9
+ name: string;
10
+ messageRef: MessageReference | null;
11
+ initialMessage: Omit<CreateMessage, 'location'> | null;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface DeassignRole {
3
+ roleId: string;
4
+ userId: string;
5
+ location: ChatLocation;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface DeleteOwner {
3
+ location: ChatLocation;
4
+ userId: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface DeleteRole {
2
+ roleId: string;
3
+ spaceId: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface DeleteRoom {
2
+ id: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface DeleteSpace {
2
+ id: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface DeleteTopic {
3
+ location: ChatLocation;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface GetAckReports {
3
+ location: ChatLocation;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface GetComputedPermissions {
3
+ location: ChatLocation;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface GetOwners {
3
+ location: ChatLocation;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface GetPermissionOverwriteTargets {
3
+ location: ChatLocation;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface GetPermissionOverwrites {
3
+ location: ChatLocation;
4
+ target: 'User' | 'Role';
5
+ targetId: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface GetRoomMembers {
2
+ id: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export interface GetSession {
2
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface GetSpaceMembers {
2
+ id: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface GetSpaceRooms {
2
+ id: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface JoinRoom {
2
+ id: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface JoinSpace {
2
+ id: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface LeaveRoom {
2
+ id: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface LeaveSpace {
2
+ id: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { PermissionOverwritesValue } from "../PermissionOverwritesValue";
2
+ import { ChatLocation } from "../ChatLocation";
3
+ export interface SetPermissionOverwrites {
4
+ location: ChatLocation;
5
+ target: 'User' | 'Role';
6
+ targetId: string;
7
+ overwrites: PermissionOverwritesValue;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export interface UpdateRole {
2
+ spaceId: string;
3
+ id: string;
4
+ priority?: number;
5
+ name?: string;
6
+ color?: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface UpdateRoom {
2
+ id: string;
3
+ name?: string;
4
+ description?: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface UpdateSpace {
2
+ id: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { AckReport } from "../AckReport";
2
+ export interface AckReports {
3
+ reports: AckReport[];
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface Bye {
2
+ reason: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface ComputedPermissions {
3
+ permissions: number;
4
+ location: ChatLocation;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface Error {
2
+ code: string;
3
+ message: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { Message } from "../Message";
2
+ import { ChatLocation } from "../ChatLocation";
3
+ export interface NewMessage {
4
+ location: ChatLocation;
5
+ message: Message;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { Role } from "../Role";
2
+ export interface NewRole {
3
+ spaceId: string;
4
+ role: Role;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { RoomSummary } from "../RoomSummary";
2
+ export interface NewRoom {
3
+ summary: RoomSummary;
4
+ spaceId: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { Topic } from "../Topic";
2
+ export interface NewTopic {
3
+ roomId: string;
4
+ topic: Topic;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export interface Ok {
2
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { ChatLocation } from "../ChatLocation";
2
+ import { RoomMember } from "../RoomMember";
3
+ import { SpaceMember } from "../SpaceMember";
4
+ export interface Owners {
5
+ location: ChatLocation;
6
+ spaceMembers: SpaceMember[] | null;
7
+ roomMembers: RoomMember[] | null;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { ChatLocation } from "../ChatLocation";
2
+ import { SpaceMember } from "../SpaceMember";
3
+ import { RoomMember } from "../RoomMember";
4
+ import { Role } from "../Role";
5
+ export interface PermissionOverwriteTargets {
6
+ location: ChatLocation;
7
+ spaceMembers: SpaceMember[] | null;
8
+ roomMembers: RoomMember[] | null;
9
+ roles: Role[] | null;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { PermissionOverwritesValue } from "../PermissionOverwritesValue";
2
+ import { ChatLocation } from "../ChatLocation";
3
+ export interface PermissionOverwrites {
4
+ location: ChatLocation;
5
+ target: 'User' | 'Role';
6
+ targetId: string;
7
+ overwrites: PermissionOverwritesValue;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { PermissionOverwritesValue } from "../PermissionOverwritesValue";
2
+ import { ChatLocation } from "../ChatLocation";
3
+ export interface PermissionOverwritesUpdated {
4
+ location: ChatLocation;
5
+ target: 'User' | 'Role';
6
+ targetId: string;
7
+ overwrites: PermissionOverwritesValue;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface RoleDeleted {
2
+ id: string;
3
+ spaceId: string;
4
+ }