polfan-server-js-client 0.1.991 → 0.1.993

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 (286) hide show
  1. package/build/index.js +856 -143
  2. package/build/index.js.map +1 -1
  3. package/build/types/AbstractChatClient.d.ts +5 -1
  4. package/build/types/state-tracker/MessagesManager.d.ts +9 -11
  5. package/build/types/state-tracker/RoomMessagesHistory.d.ts +17 -0
  6. package/build/types/state-tracker/RoomsManager.d.ts +4 -2
  7. package/build/types/state-tracker/TopicHistoryWindow.d.ts +58 -0
  8. package/build/types/types/src/index.d.ts +6 -2
  9. package/build/types/types/src/schemes/FollowedTopic.d.ts +0 -1
  10. package/build/types/types/src/schemes/Message.d.ts +8 -2
  11. package/{src/types/dist/schemes/commands/Ack.d.ts → build/types/types/src/schemes/commands/GetMessages.d.ts} +3 -2
  12. package/build/types/types/src/schemes/commands/GetTopics.d.ts +4 -0
  13. package/build/types/types/src/schemes/events/FollowedTopics.d.ts +2 -0
  14. package/{src/types/dist/schemes/events/NewMessage.d.ts → build/types/types/src/schemes/events/Messages.d.ts} +3 -3
  15. package/build/types/types/src/schemes/events/Topics.d.ts +6 -0
  16. package/package.json +1 -1
  17. package/src/AbstractChatClient.ts +8 -0
  18. package/src/state-tracker/MessagesManager.ts +51 -74
  19. package/src/state-tracker/RoomMessagesHistory.ts +78 -0
  20. package/src/state-tracker/RoomsManager.ts +22 -2
  21. package/src/state-tracker/TopicHistoryWindow.ts +257 -0
  22. package/src/types/src/index.ts +10 -1
  23. package/src/types/src/schemes/FollowedTopic.ts +0 -1
  24. package/src/types/src/schemes/Message.ts +9 -2
  25. package/src/types/src/schemes/commands/GetMessages.ts +7 -0
  26. package/src/types/src/schemes/commands/GetTopics.ts +4 -0
  27. package/src/types/src/schemes/events/FollowedTopics.ts +2 -0
  28. package/src/types/src/schemes/events/Messages.ts +7 -0
  29. package/src/types/src/schemes/events/Topics.ts +7 -0
  30. package/tests/history-window.test.ts +129 -0
  31. package/build/types/types/dist/index.d.ts +0 -1
  32. package/build/types/types/dist/schemes/ChatLocation.d.ts +0 -1
  33. package/build/types/types/dist/schemes/Envelope.d.ts +0 -1
  34. package/build/types/types/dist/schemes/FollowedTopic.d.ts +0 -1
  35. package/build/types/types/dist/schemes/Message.d.ts +0 -1
  36. package/build/types/types/dist/schemes/PermissionOverwritesValue.d.ts +0 -1
  37. package/build/types/types/dist/schemes/Role.d.ts +0 -1
  38. package/build/types/types/dist/schemes/Room.d.ts +0 -1
  39. package/build/types/types/dist/schemes/RoomMember.d.ts +0 -1
  40. package/build/types/types/dist/schemes/RoomSummary.d.ts +0 -1
  41. package/build/types/types/dist/schemes/Space.d.ts +0 -1
  42. package/build/types/types/dist/schemes/SpaceMember.d.ts +0 -1
  43. package/build/types/types/dist/schemes/Topic.d.ts +0 -1
  44. package/build/types/types/dist/schemes/User.d.ts +0 -1
  45. package/build/types/types/dist/schemes/UserState.d.ts +0 -1
  46. package/build/types/types/dist/schemes/commands/Ack.d.ts +0 -1
  47. package/build/types/types/dist/schemes/commands/AssignRole.d.ts +0 -1
  48. package/build/types/types/dist/schemes/commands/CreateMessage.d.ts +0 -1
  49. package/build/types/types/dist/schemes/commands/CreateOwner.d.ts +0 -1
  50. package/build/types/types/dist/schemes/commands/CreateRole.d.ts +0 -1
  51. package/build/types/types/dist/schemes/commands/CreateRoom.d.ts +0 -1
  52. package/build/types/types/dist/schemes/commands/CreateSpace.d.ts +0 -1
  53. package/build/types/types/dist/schemes/commands/CreateTopic.d.ts +0 -1
  54. package/build/types/types/dist/schemes/commands/DeassignRole.d.ts +0 -1
  55. package/build/types/types/dist/schemes/commands/DeleteOwner.d.ts +0 -1
  56. package/build/types/types/dist/schemes/commands/DeleteRole.d.ts +0 -1
  57. package/build/types/types/dist/schemes/commands/DeleteRoom.d.ts +0 -1
  58. package/build/types/types/dist/schemes/commands/DeleteSpace.d.ts +0 -1
  59. package/build/types/types/dist/schemes/commands/DeleteTopic.d.ts +0 -1
  60. package/build/types/types/dist/schemes/commands/FollowTopic.d.ts +0 -1
  61. package/build/types/types/dist/schemes/commands/GetComputedPermissions.d.ts +0 -1
  62. package/build/types/types/dist/schemes/commands/GetFollowedTopics.d.ts +0 -1
  63. package/build/types/types/dist/schemes/commands/GetOwners.d.ts +0 -1
  64. package/build/types/types/dist/schemes/commands/GetPermissionOverwriteTargets.d.ts +0 -1
  65. package/build/types/types/dist/schemes/commands/GetPermissionOverwrites.d.ts +0 -1
  66. package/build/types/types/dist/schemes/commands/GetRoomMembers.d.ts +0 -1
  67. package/build/types/types/dist/schemes/commands/GetSession.d.ts +0 -1
  68. package/build/types/types/dist/schemes/commands/GetSpaceMembers.d.ts +0 -1
  69. package/build/types/types/dist/schemes/commands/GetSpaceRooms.d.ts +0 -1
  70. package/build/types/types/dist/schemes/commands/JoinRoom.d.ts +0 -1
  71. package/build/types/types/dist/schemes/commands/JoinSpace.d.ts +0 -1
  72. package/build/types/types/dist/schemes/commands/LeaveRoom.d.ts +0 -1
  73. package/build/types/types/dist/schemes/commands/LeaveSpace.d.ts +0 -1
  74. package/build/types/types/dist/schemes/commands/SetPermissionOverwrites.d.ts +0 -1
  75. package/build/types/types/dist/schemes/commands/UnfollowTopic.d.ts +0 -1
  76. package/build/types/types/dist/schemes/commands/UpdateRole.d.ts +0 -1
  77. package/build/types/types/dist/schemes/commands/UpdateRoom.d.ts +0 -1
  78. package/build/types/types/dist/schemes/commands/UpdateSpace.d.ts +0 -1
  79. package/build/types/types/dist/schemes/events/Bye.d.ts +0 -1
  80. package/build/types/types/dist/schemes/events/ComputedPermissions.d.ts +0 -1
  81. package/build/types/types/dist/schemes/events/Error.d.ts +0 -1
  82. package/build/types/types/dist/schemes/events/FollowedTopicUpdated.d.ts +0 -1
  83. package/build/types/types/dist/schemes/events/FollowedTopics.d.ts +0 -1
  84. package/build/types/types/dist/schemes/events/NewMessage.d.ts +0 -1
  85. package/build/types/types/dist/schemes/events/NewRole.d.ts +0 -1
  86. package/build/types/types/dist/schemes/events/NewRoom.d.ts +0 -1
  87. package/build/types/types/dist/schemes/events/NewTopic.d.ts +0 -1
  88. package/build/types/types/dist/schemes/events/Ok.d.ts +0 -1
  89. package/build/types/types/dist/schemes/events/Owners.d.ts +0 -1
  90. package/build/types/types/dist/schemes/events/PermissionOverwriteTargets.d.ts +0 -1
  91. package/build/types/types/dist/schemes/events/PermissionOverwrites.d.ts +0 -1
  92. package/build/types/types/dist/schemes/events/PermissionOverwritesUpdated.d.ts +0 -1
  93. package/build/types/types/dist/schemes/events/RoleDeleted.d.ts +0 -1
  94. package/build/types/types/dist/schemes/events/RoleUpdated.d.ts +0 -1
  95. package/build/types/types/dist/schemes/events/RoomDeleted.d.ts +0 -1
  96. package/build/types/types/dist/schemes/events/RoomJoined.d.ts +0 -1
  97. package/build/types/types/dist/schemes/events/RoomLeft.d.ts +0 -1
  98. package/build/types/types/dist/schemes/events/RoomMemberJoined.d.ts +0 -1
  99. package/build/types/types/dist/schemes/events/RoomMemberLeft.d.ts +0 -1
  100. package/build/types/types/dist/schemes/events/RoomMemberUpdated.d.ts +0 -1
  101. package/build/types/types/dist/schemes/events/RoomMembers.d.ts +0 -1
  102. package/build/types/types/dist/schemes/events/RoomUpdated.d.ts +0 -1
  103. package/build/types/types/dist/schemes/events/Session.d.ts +0 -1
  104. package/build/types/types/dist/schemes/events/SpaceDeleted.d.ts +0 -1
  105. package/build/types/types/dist/schemes/events/SpaceJoined.d.ts +0 -1
  106. package/build/types/types/dist/schemes/events/SpaceLeft.d.ts +0 -1
  107. package/build/types/types/dist/schemes/events/SpaceMemberJoined.d.ts +0 -1
  108. package/build/types/types/dist/schemes/events/SpaceMemberLeft.d.ts +0 -1
  109. package/build/types/types/dist/schemes/events/SpaceMemberUpdated.d.ts +0 -1
  110. package/build/types/types/dist/schemes/events/SpaceMembers.d.ts +0 -1
  111. package/build/types/types/dist/schemes/events/SpaceRooms.d.ts +0 -1
  112. package/build/types/types/dist/schemes/events/SpaceUpdated.d.ts +0 -1
  113. package/build/types/types/dist/schemes/events/TopicDeleted.d.ts +0 -1
  114. package/build/types/types/dist/schemes/events/TopicFollowed.d.ts +0 -1
  115. package/build/types/types/dist/schemes/events/TopicUnfollowed.d.ts +0 -1
  116. package/build/types/types/dist/schemes/events/UserUpdated.d.ts +0 -1
  117. package/src/types/dist/index.d.ts +0 -88
  118. package/src/types/dist/index.js +0 -2
  119. package/src/types/dist/schemes/ChatLocation.d.ts +0 -5
  120. package/src/types/dist/schemes/ChatLocation.js +0 -2
  121. package/src/types/dist/schemes/Envelope.d.ts +0 -5
  122. package/src/types/dist/schemes/Envelope.js +0 -2
  123. package/src/types/dist/schemes/FollowedTopic.d.ts +0 -7
  124. package/src/types/dist/schemes/FollowedTopic.js +0 -2
  125. package/src/types/dist/schemes/Message.d.ts +0 -8
  126. package/src/types/dist/schemes/Message.js +0 -2
  127. package/src/types/dist/schemes/PermissionOverwritesValue.d.ts +0 -4
  128. package/src/types/dist/schemes/PermissionOverwritesValue.js +0 -2
  129. package/src/types/dist/schemes/Role.d.ts +0 -6
  130. package/src/types/dist/schemes/Role.js +0 -2
  131. package/src/types/dist/schemes/Room.d.ts +0 -10
  132. package/src/types/dist/schemes/Room.js +0 -2
  133. package/src/types/dist/schemes/RoomMember.d.ts +0 -7
  134. package/src/types/dist/schemes/RoomMember.js +0 -2
  135. package/src/types/dist/schemes/RoomSummary.d.ts +0 -5
  136. package/src/types/dist/schemes/RoomSummary.js +0 -2
  137. package/src/types/dist/schemes/Space.d.ts +0 -6
  138. package/src/types/dist/schemes/Space.js +0 -2
  139. package/src/types/dist/schemes/SpaceMember.d.ts +0 -5
  140. package/src/types/dist/schemes/SpaceMember.js +0 -2
  141. package/src/types/dist/schemes/Topic.d.ts +0 -9
  142. package/src/types/dist/schemes/Topic.js +0 -2
  143. package/src/types/dist/schemes/User.d.ts +0 -8
  144. package/src/types/dist/schemes/User.js +0 -2
  145. package/src/types/dist/schemes/UserState.d.ts +0 -6
  146. package/src/types/dist/schemes/UserState.js +0 -2
  147. package/src/types/dist/schemes/commands/Ack.js +0 -2
  148. package/src/types/dist/schemes/commands/AssignRole.d.ts +0 -6
  149. package/src/types/dist/schemes/commands/AssignRole.js +0 -2
  150. package/src/types/dist/schemes/commands/CreateMessage.d.ts +0 -5
  151. package/src/types/dist/schemes/commands/CreateMessage.js +0 -2
  152. package/src/types/dist/schemes/commands/CreateOwner.d.ts +0 -5
  153. package/src/types/dist/schemes/commands/CreateOwner.js +0 -2
  154. package/src/types/dist/schemes/commands/CreateRole.d.ts +0 -5
  155. package/src/types/dist/schemes/commands/CreateRole.js +0 -2
  156. package/src/types/dist/schemes/commands/CreateRoom.d.ts +0 -7
  157. package/src/types/dist/schemes/commands/CreateRoom.js +0 -2
  158. package/src/types/dist/schemes/commands/CreateSpace.d.ts +0 -3
  159. package/src/types/dist/schemes/commands/CreateSpace.js +0 -2
  160. package/src/types/dist/schemes/commands/CreateTopic.d.ts +0 -12
  161. package/src/types/dist/schemes/commands/CreateTopic.js +0 -2
  162. package/src/types/dist/schemes/commands/DeassignRole.d.ts +0 -6
  163. package/src/types/dist/schemes/commands/DeassignRole.js +0 -2
  164. package/src/types/dist/schemes/commands/DeleteOwner.d.ts +0 -5
  165. package/src/types/dist/schemes/commands/DeleteOwner.js +0 -2
  166. package/src/types/dist/schemes/commands/DeleteRole.d.ts +0 -4
  167. package/src/types/dist/schemes/commands/DeleteRole.js +0 -2
  168. package/src/types/dist/schemes/commands/DeleteRoom.d.ts +0 -3
  169. package/src/types/dist/schemes/commands/DeleteRoom.js +0 -2
  170. package/src/types/dist/schemes/commands/DeleteSpace.d.ts +0 -3
  171. package/src/types/dist/schemes/commands/DeleteSpace.js +0 -2
  172. package/src/types/dist/schemes/commands/DeleteTopic.d.ts +0 -4
  173. package/src/types/dist/schemes/commands/DeleteTopic.js +0 -2
  174. package/src/types/dist/schemes/commands/FollowTopic.d.ts +0 -4
  175. package/src/types/dist/schemes/commands/FollowTopic.js +0 -2
  176. package/src/types/dist/schemes/commands/GetComputedPermissions.d.ts +0 -4
  177. package/src/types/dist/schemes/commands/GetComputedPermissions.js +0 -2
  178. package/src/types/dist/schemes/commands/GetFollowedTopics.d.ts +0 -4
  179. package/src/types/dist/schemes/commands/GetFollowedTopics.js +0 -2
  180. package/src/types/dist/schemes/commands/GetOwners.d.ts +0 -4
  181. package/src/types/dist/schemes/commands/GetOwners.js +0 -2
  182. package/src/types/dist/schemes/commands/GetPermissionOverwriteTargets.d.ts +0 -4
  183. package/src/types/dist/schemes/commands/GetPermissionOverwriteTargets.js +0 -2
  184. package/src/types/dist/schemes/commands/GetPermissionOverwrites.d.ts +0 -6
  185. package/src/types/dist/schemes/commands/GetPermissionOverwrites.js +0 -2
  186. package/src/types/dist/schemes/commands/GetRoomMembers.d.ts +0 -3
  187. package/src/types/dist/schemes/commands/GetRoomMembers.js +0 -2
  188. package/src/types/dist/schemes/commands/GetSession.d.ts +0 -2
  189. package/src/types/dist/schemes/commands/GetSession.js +0 -2
  190. package/src/types/dist/schemes/commands/GetSpaceMembers.d.ts +0 -3
  191. package/src/types/dist/schemes/commands/GetSpaceMembers.js +0 -2
  192. package/src/types/dist/schemes/commands/GetSpaceRooms.d.ts +0 -3
  193. package/src/types/dist/schemes/commands/GetSpaceRooms.js +0 -2
  194. package/src/types/dist/schemes/commands/JoinRoom.d.ts +0 -3
  195. package/src/types/dist/schemes/commands/JoinRoom.js +0 -2
  196. package/src/types/dist/schemes/commands/JoinSpace.d.ts +0 -3
  197. package/src/types/dist/schemes/commands/JoinSpace.js +0 -2
  198. package/src/types/dist/schemes/commands/LeaveRoom.d.ts +0 -3
  199. package/src/types/dist/schemes/commands/LeaveRoom.js +0 -2
  200. package/src/types/dist/schemes/commands/LeaveSpace.d.ts +0 -3
  201. package/src/types/dist/schemes/commands/LeaveSpace.js +0 -2
  202. package/src/types/dist/schemes/commands/SetPermissionOverwrites.d.ts +0 -8
  203. package/src/types/dist/schemes/commands/SetPermissionOverwrites.js +0 -2
  204. package/src/types/dist/schemes/commands/UnfollowTopic.d.ts +0 -4
  205. package/src/types/dist/schemes/commands/UnfollowTopic.js +0 -2
  206. package/src/types/dist/schemes/commands/UpdateRole.d.ts +0 -7
  207. package/src/types/dist/schemes/commands/UpdateRole.js +0 -2
  208. package/src/types/dist/schemes/commands/UpdateRoom.d.ts +0 -5
  209. package/src/types/dist/schemes/commands/UpdateRoom.js +0 -2
  210. package/src/types/dist/schemes/commands/UpdateSpace.d.ts +0 -4
  211. package/src/types/dist/schemes/commands/UpdateSpace.js +0 -2
  212. package/src/types/dist/schemes/events/Bye.d.ts +0 -3
  213. package/src/types/dist/schemes/events/Bye.js +0 -2
  214. package/src/types/dist/schemes/events/ComputedPermissions.d.ts +0 -5
  215. package/src/types/dist/schemes/events/ComputedPermissions.js +0 -2
  216. package/src/types/dist/schemes/events/Error.d.ts +0 -4
  217. package/src/types/dist/schemes/events/Error.js +0 -2
  218. package/src/types/dist/schemes/events/FollowedTopicUpdated.d.ts +0 -4
  219. package/src/types/dist/schemes/events/FollowedTopicUpdated.js +0 -2
  220. package/src/types/dist/schemes/events/FollowedTopics.d.ts +0 -4
  221. package/src/types/dist/schemes/events/FollowedTopics.js +0 -2
  222. package/src/types/dist/schemes/events/NewMessage.js +0 -2
  223. package/src/types/dist/schemes/events/NewRole.d.ts +0 -5
  224. package/src/types/dist/schemes/events/NewRole.js +0 -2
  225. package/src/types/dist/schemes/events/NewRoom.d.ts +0 -5
  226. package/src/types/dist/schemes/events/NewRoom.js +0 -2
  227. package/src/types/dist/schemes/events/NewTopic.d.ts +0 -5
  228. package/src/types/dist/schemes/events/NewTopic.js +0 -2
  229. package/src/types/dist/schemes/events/Ok.d.ts +0 -2
  230. package/src/types/dist/schemes/events/Ok.js +0 -2
  231. package/src/types/dist/schemes/events/Owners.d.ts +0 -8
  232. package/src/types/dist/schemes/events/Owners.js +0 -2
  233. package/src/types/dist/schemes/events/PermissionOverwriteTargets.d.ts +0 -10
  234. package/src/types/dist/schemes/events/PermissionOverwriteTargets.js +0 -2
  235. package/src/types/dist/schemes/events/PermissionOverwrites.d.ts +0 -8
  236. package/src/types/dist/schemes/events/PermissionOverwrites.js +0 -2
  237. package/src/types/dist/schemes/events/PermissionOverwritesUpdated.d.ts +0 -8
  238. package/src/types/dist/schemes/events/PermissionOverwritesUpdated.js +0 -2
  239. package/src/types/dist/schemes/events/RoleDeleted.d.ts +0 -4
  240. package/src/types/dist/schemes/events/RoleDeleted.js +0 -2
  241. package/src/types/dist/schemes/events/RoleUpdated.d.ts +0 -5
  242. package/src/types/dist/schemes/events/RoleUpdated.js +0 -2
  243. package/src/types/dist/schemes/events/RoomDeleted.d.ts +0 -3
  244. package/src/types/dist/schemes/events/RoomDeleted.js +0 -2
  245. package/src/types/dist/schemes/events/RoomJoined.d.ts +0 -4
  246. package/src/types/dist/schemes/events/RoomJoined.js +0 -2
  247. package/src/types/dist/schemes/events/RoomLeft.d.ts +0 -3
  248. package/src/types/dist/schemes/events/RoomLeft.js +0 -2
  249. package/src/types/dist/schemes/events/RoomMemberJoined.d.ts +0 -5
  250. package/src/types/dist/schemes/events/RoomMemberJoined.js +0 -2
  251. package/src/types/dist/schemes/events/RoomMemberLeft.d.ts +0 -4
  252. package/src/types/dist/schemes/events/RoomMemberLeft.js +0 -2
  253. package/src/types/dist/schemes/events/RoomMemberUpdated.d.ts +0 -6
  254. package/src/types/dist/schemes/events/RoomMemberUpdated.js +0 -2
  255. package/src/types/dist/schemes/events/RoomMembers.d.ts +0 -5
  256. package/src/types/dist/schemes/events/RoomMembers.js +0 -2
  257. package/src/types/dist/schemes/events/RoomUpdated.d.ts +0 -4
  258. package/src/types/dist/schemes/events/RoomUpdated.js +0 -2
  259. package/src/types/dist/schemes/events/Session.d.ts +0 -7
  260. package/src/types/dist/schemes/events/Session.js +0 -2
  261. package/src/types/dist/schemes/events/SpaceDeleted.d.ts +0 -3
  262. package/src/types/dist/schemes/events/SpaceDeleted.js +0 -2
  263. package/src/types/dist/schemes/events/SpaceJoined.d.ts +0 -4
  264. package/src/types/dist/schemes/events/SpaceJoined.js +0 -2
  265. package/src/types/dist/schemes/events/SpaceLeft.d.ts +0 -3
  266. package/src/types/dist/schemes/events/SpaceLeft.js +0 -2
  267. package/src/types/dist/schemes/events/SpaceMemberJoined.d.ts +0 -5
  268. package/src/types/dist/schemes/events/SpaceMemberJoined.js +0 -2
  269. package/src/types/dist/schemes/events/SpaceMemberLeft.d.ts +0 -4
  270. package/src/types/dist/schemes/events/SpaceMemberLeft.js +0 -2
  271. package/src/types/dist/schemes/events/SpaceMemberUpdated.d.ts +0 -6
  272. package/src/types/dist/schemes/events/SpaceMemberUpdated.js +0 -2
  273. package/src/types/dist/schemes/events/SpaceMembers.d.ts +0 -5
  274. package/src/types/dist/schemes/events/SpaceMembers.js +0 -2
  275. package/src/types/dist/schemes/events/SpaceRooms.d.ts +0 -5
  276. package/src/types/dist/schemes/events/SpaceRooms.js +0 -2
  277. package/src/types/dist/schemes/events/SpaceUpdated.d.ts +0 -4
  278. package/src/types/dist/schemes/events/SpaceUpdated.js +0 -2
  279. package/src/types/dist/schemes/events/TopicDeleted.d.ts +0 -4
  280. package/src/types/dist/schemes/events/TopicDeleted.js +0 -2
  281. package/src/types/dist/schemes/events/TopicFollowed.d.ts +0 -4
  282. package/src/types/dist/schemes/events/TopicFollowed.js +0 -2
  283. package/src/types/dist/schemes/events/TopicUnfollowed.d.ts +0 -4
  284. package/src/types/dist/schemes/events/TopicUnfollowed.js +0 -2
  285. package/src/types/dist/schemes/events/UserUpdated.d.ts +0 -4
  286. package/src/types/dist/schemes/events/UserUpdated.js +0 -2
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1,88 +0,0 @@
1
- import { Envelope } from "./schemes/Envelope";
2
- import { Message } from "./schemes/Message";
3
- import { PermissionOverwritesValue } from "./schemes/PermissionOverwritesValue";
4
- import { Role } from "./schemes/Role";
5
- import { Room } from "./schemes/Room";
6
- import { RoomMember } from "./schemes/RoomMember";
7
- import { RoomSummary } from "./schemes/RoomSummary";
8
- import { Space } from "./schemes/Space";
9
- import { SpaceMember } from "./schemes/SpaceMember";
10
- import { Topic } from "./schemes/Topic";
11
- import { User } from "./schemes/User";
12
- import { UserState } from "./schemes/UserState";
13
- import { Bye } from "./schemes/events/Bye";
14
- import { Error } from "./schemes/events/Error";
15
- import { Session } from "./schemes/events/Session";
16
- import { ComputedPermissions } from "./schemes/events/ComputedPermissions";
17
- import { SpaceJoined } from "./schemes/events/SpaceJoined";
18
- import { SpaceLeft } from "./schemes/events/SpaceLeft";
19
- import { SpaceMemberJoined } from "./schemes/events/SpaceMemberJoined";
20
- import { SpaceMemberLeft } from "./schemes/events/SpaceMemberLeft";
21
- import { SpaceMemberUpdated } from "./schemes/events/SpaceMemberUpdated";
22
- import { SpaceDeleted } from "./schemes/events/SpaceDeleted";
23
- import { SpaceMembers } from "./schemes/events/SpaceMembers";
24
- import { SpaceRooms } from "./schemes/events/SpaceRooms";
25
- import { NewRole } from "./schemes/events/NewRole";
26
- import { RoleDeleted } from "./schemes/events/RoleDeleted";
27
- import { RoomJoined } from "./schemes/events/RoomJoined";
28
- import { RoomLeft } from "./schemes/events/RoomLeft";
29
- import { RoomMemberJoined } from "./schemes/events/RoomMemberJoined";
30
- import { RoomMemberLeft } from "./schemes/events/RoomMemberLeft";
31
- import { RoomMembers } from "./schemes/events/RoomMembers";
32
- import { RoomMemberUpdated } from "./schemes/events/RoomMemberUpdated";
33
- import { NewRoom } from "./schemes/events/NewRoom";
34
- import { RoomDeleted } from "./schemes/events/RoomDeleted";
35
- import { NewTopic } from "./schemes/events/NewTopic";
36
- import { TopicDeleted } from "./schemes/events/TopicDeleted";
37
- import { NewMessage } from "./schemes/events/NewMessage";
38
- import { PermissionOverwritesUpdated } from "./schemes/events/PermissionOverwritesUpdated";
39
- import { PermissionOverwrites } from "./schemes/events/PermissionOverwrites";
40
- import { GetSession } from "./schemes/commands/GetSession";
41
- import { GetComputedPermissions } from "./schemes/commands/GetComputedPermissions";
42
- import { JoinSpace } from "./schemes/commands/JoinSpace";
43
- import { LeaveSpace } from "./schemes/commands/LeaveSpace";
44
- import { CreateSpace } from "./schemes/commands/CreateSpace";
45
- import { DeleteSpace } from "./schemes/commands/DeleteSpace";
46
- import { GetSpaceMembers } from "./schemes/commands/GetSpaceMembers";
47
- import { GetSpaceRooms } from "./schemes/commands/GetSpaceRooms";
48
- import { CreateRole } from "./schemes/commands/CreateRole";
49
- import { DeleteRole } from "./schemes/commands/DeleteRole";
50
- import { RoleUpdated } from "./schemes/events/RoleUpdated";
51
- import { AssignRole } from "./schemes/commands/AssignRole";
52
- import { DeassignRole } from "./schemes/commands/DeassignRole";
53
- import { SetPermissionOverwrites } from "./schemes/commands/SetPermissionOverwrites";
54
- import { GetPermissionOverwrites } from "./schemes/commands/GetPermissionOverwrites";
55
- import { JoinRoom } from "./schemes/commands/JoinRoom";
56
- import { LeaveRoom } from "./schemes/commands/LeaveRoom";
57
- import { CreateRoom } from "./schemes/commands/CreateRoom";
58
- import { DeleteRoom } from "./schemes/commands/DeleteRoom";
59
- import { GetRoomMembers } from "./schemes/commands/GetRoomMembers";
60
- import { CreateTopic } from "./schemes/commands/CreateTopic";
61
- import { DeleteTopic } from "./schemes/commands/DeleteTopic";
62
- import { CreateMessage } from "./schemes/commands/CreateMessage";
63
- import { UpdateRole } from "./schemes/commands/UpdateRole";
64
- import { Ack } from "./schemes/commands/Ack";
65
- import { UserUpdated } from "./schemes/events/UserUpdated";
66
- import { UpdateRoom } from "./schemes/commands/UpdateRoom";
67
- import { UpdateSpace } from "./schemes/commands/UpdateSpace";
68
- import { RoomUpdated } from "./schemes/events/RoomUpdated";
69
- import { SpaceUpdated } from "./schemes/events/SpaceUpdated";
70
- import { ChatLocation } from "./schemes/ChatLocation";
71
- import { GetPermissionOverwriteTargets } from "./schemes/commands/GetPermissionOverwriteTargets";
72
- import { PermissionOverwriteTargets } from "./schemes/events/PermissionOverwriteTargets";
73
- import { CreateOwner } from "./schemes/commands/CreateOwner";
74
- import { DeleteOwner } from "./schemes/commands/DeleteOwner";
75
- import { GetOwners } from "./schemes/commands/GetOwners";
76
- import { Owners } from "./schemes/events/Owners";
77
- import { Ok } from "./schemes/events/Ok";
78
- import { RoomType } from "./schemes/Room";
79
- import { MessageReference } from "./schemes/commands/CreateTopic";
80
- import { FollowTopic } from "./schemes/commands/FollowTopic";
81
- import { FollowedTopics } from "./schemes/events/FollowedTopics";
82
- import { FollowedTopic } from "./schemes/FollowedTopic";
83
- import { UnfollowTopic } from "./schemes/commands/UnfollowTopic";
84
- import { TopicUnfollowed } from "./schemes/events/TopicUnfollowed";
85
- import { TopicFollowed } from "./schemes/events/TopicFollowed";
86
- import { GetFollowedTopics } from "./schemes/commands/GetFollowedTopics";
87
- import { FollowedTopicUpdated } from "./schemes/events/FollowedTopicUpdated";
88
- export { Envelope, Message, Role, Room, RoomType, RoomMember, RoomSummary, Space, SpaceMember, Topic, FollowedTopic, User, UserState, PermissionOverwritesValue, ChatLocation, MessageReference, Bye, Error, NewMessage, NewRole, NewRoom, NewTopic, TopicFollowed, TopicUnfollowed, FollowedTopics, FollowedTopicUpdated, ComputedPermissions, PermissionOverwrites, PermissionOverwritesUpdated, RoleDeleted, RoleUpdated, RoomDeleted, RoomUpdated, RoomJoined, RoomLeft, RoomMemberJoined, RoomMemberLeft, RoomMembers, RoomMemberUpdated, UserUpdated, Session, SpaceDeleted, SpaceUpdated, SpaceJoined, SpaceLeft, SpaceMemberJoined, SpaceMemberLeft, SpaceMembers, SpaceMemberUpdated, SpaceRooms, TopicDeleted, PermissionOverwriteTargets, Owners, Ok, AssignRole, CreateMessage, Ack, CreateRole, CreateRoom, CreateSpace, CreateTopic, FollowTopic, UnfollowTopic, GetFollowedTopics, DeassignRole, DeleteRole, DeleteRoom, DeleteSpace, DeleteTopic, SetPermissionOverwrites, GetPermissionOverwrites, GetComputedPermissions, GetRoomMembers, GetSession, GetSpaceMembers, GetSpaceRooms, JoinRoom, JoinSpace, LeaveRoom, LeaveSpace, UpdateRole, UpdateSpace, UpdateRoom, GetPermissionOverwriteTargets, CreateOwner, DeleteOwner, GetOwners, };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export interface ChatLocation {
2
- spaceId?: string;
3
- roomId?: string;
4
- topicId?: string;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export interface Envelope<T = any> {
2
- type: string;
3
- ref?: string;
4
- data: T;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { ChatLocation } from "./ChatLocation";
2
- export interface FollowedTopic {
3
- location: ChatLocation;
4
- lastAckMessageId: string | null;
5
- missed: number | null;
6
- missedMoreThan: number | null;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import { User } from "./User";
2
- export interface Message {
3
- id: string;
4
- createdAt: string;
5
- author: User;
6
- content: string;
7
- topicRef: string | null;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export interface PermissionOverwritesValue {
2
- allow: number | null;
3
- deny: number | null;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export interface Role {
2
- id: string;
3
- priority: number;
4
- name: string;
5
- color?: string;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export interface RoomSummary {
2
- id: string;
3
- name: string;
4
- description: string;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { Role } from "./Role";
2
- export interface Space {
3
- id: string;
4
- name: string;
5
- roles: Role[];
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { User } from "./User";
2
- export interface SpaceMember {
3
- user: User | null;
4
- roles: string[];
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { Space } from "./Space";
2
- import { Room } from "./Room";
3
- export interface UserState {
4
- spaces: Space[];
5
- rooms: Room[];
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface AssignRole {
3
- roleId: string;
4
- userId: string;
5
- location: ChatLocation;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface CreateMessage {
3
- location: ChatLocation;
4
- content: string;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface CreateOwner {
3
- location: ChatLocation;
4
- userId: string;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export interface CreateRole {
2
- spaceId: string;
3
- name: string;
4
- color: string;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { RoomType } from "../Room";
2
- export interface CreateRoom {
3
- spaceId: string;
4
- name: string;
5
- description: string;
6
- type: RoomType;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export interface CreateSpace {
2
- name: string;
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
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;
11
- initialMessage?: Omit<CreateMessage, 'location'>;
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface DeassignRole {
3
- roleId: string;
4
- userId: string;
5
- location: ChatLocation;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface DeleteOwner {
3
- location: ChatLocation;
4
- userId: string;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export interface DeleteRole {
2
- roleId: string;
3
- spaceId: string;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export interface DeleteRoom {
2
- id: string;
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export interface DeleteSpace {
2
- id: string;
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface DeleteTopic {
3
- location: ChatLocation;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface FollowTopic {
3
- location: ChatLocation;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface GetComputedPermissions {
3
- location: ChatLocation;
4
- }