polfan-server-js-client 0.1.99922 → 0.1.99924

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 (153) hide show
  1. package/.gitmodules +3 -3
  2. package/.idea/deployment.xml +1 -8
  3. package/.idea/workspace.xml +153 -0
  4. package/build/index.js +157 -8
  5. package/build/index.js.map +1 -1
  6. package/build/types/AbstractChatClient.d.ts +114 -108
  7. package/build/types/AbstractRestClient.d.ts +21 -21
  8. package/build/types/AuthClient.d.ts +16 -16
  9. package/build/types/EventTarget.d.ts +18 -18
  10. package/build/types/FilesClient.d.ts +15 -15
  11. package/build/types/IndexedObjectCollection.d.ts +56 -56
  12. package/build/types/Permissions.d.ts +77 -69
  13. package/build/types/WebApiChatClient.d.ts +30 -30
  14. package/build/types/WebSocketChatClient.d.ts +38 -38
  15. package/build/types/index.d.ts +9 -9
  16. package/build/types/state-tracker/AsyncUtils.d.ts +15 -15
  17. package/build/types/state-tracker/ChatStateTracker.d.ts +31 -26
  18. package/build/types/state-tracker/EmoticonsManager.d.ts +15 -0
  19. package/build/types/state-tracker/MessagesManager.d.ts +55 -55
  20. package/build/types/state-tracker/PermissionsManager.d.ts +42 -42
  21. package/build/types/state-tracker/RoomMessagesHistory.d.ts +17 -17
  22. package/build/types/state-tracker/RoomsManager.d.ts +53 -53
  23. package/build/types/state-tracker/SpacesManager.d.ts +52 -52
  24. package/build/types/state-tracker/TopicHistoryWindow.d.ts +75 -75
  25. package/build/types/state-tracker/functions.d.ts +2 -2
  26. package/build/types/types/src/index.d.ts +102 -95
  27. package/build/types/types/src/schemes/ChatLocation.d.ts +5 -5
  28. package/build/types/types/src/schemes/Emoticon.d.ts +8 -0
  29. package/build/types/types/src/schemes/Envelope.d.ts +5 -5
  30. package/build/types/types/src/schemes/FollowedTopic.d.ts +6 -6
  31. package/build/types/types/src/schemes/Message.d.ts +13 -13
  32. package/build/types/types/src/schemes/PermissionOverwritesValue.d.ts +4 -4
  33. package/build/types/types/src/schemes/Role.d.ts +6 -6
  34. package/build/types/types/src/schemes/Room.d.ts +16 -16
  35. package/build/types/types/src/schemes/RoomMember.d.ts +7 -7
  36. package/build/types/types/src/schemes/RoomSummary.d.ts +5 -5
  37. package/build/types/types/src/schemes/Space.d.ts +13 -13
  38. package/build/types/types/src/schemes/SpaceMember.d.ts +5 -5
  39. package/build/types/types/src/schemes/SpaceSummary.d.ts +7 -7
  40. package/build/types/types/src/schemes/Topic.d.ts +8 -8
  41. package/build/types/types/src/schemes/User.d.ts +8 -8
  42. package/build/types/types/src/schemes/UserState.d.ts +6 -6
  43. package/build/types/types/src/schemes/commands/Ack.d.ts +5 -5
  44. package/build/types/types/src/schemes/commands/AssignRole.d.ts +6 -6
  45. package/build/types/types/src/schemes/commands/CreateEmoticon.d.ts +5 -0
  46. package/build/types/types/src/schemes/commands/CreateMessage.d.ts +6 -6
  47. package/build/types/types/src/schemes/commands/CreateOwner.d.ts +5 -5
  48. package/build/types/types/src/schemes/commands/CreateRole.d.ts +5 -5
  49. package/build/types/types/src/schemes/commands/CreateRoom.d.ts +8 -8
  50. package/build/types/types/src/schemes/commands/CreateSpace.d.ts +3 -3
  51. package/build/types/types/src/schemes/commands/CreateTopic.d.ts +8 -8
  52. package/build/types/types/src/schemes/commands/DeassignRole.d.ts +6 -6
  53. package/build/types/types/src/schemes/commands/DeleteEmoticon.d.ts +3 -0
  54. package/build/types/types/src/schemes/commands/DeleteOwner.d.ts +5 -5
  55. package/build/types/types/src/schemes/commands/DeleteRole.d.ts +4 -4
  56. package/build/types/types/src/schemes/commands/DeleteRoom.d.ts +3 -3
  57. package/build/types/types/src/schemes/commands/DeleteSpace.d.ts +3 -3
  58. package/build/types/types/src/schemes/commands/DeleteTopic.d.ts +4 -4
  59. package/build/types/types/src/schemes/commands/FollowTopic.d.ts +4 -4
  60. package/build/types/types/src/schemes/commands/GetComputedPermissions.d.ts +4 -4
  61. package/build/types/types/src/schemes/commands/GetDiscoverableSpaces.d.ts +2 -2
  62. package/build/types/types/src/schemes/commands/GetEmoticons.d.ts +3 -0
  63. package/build/types/types/src/schemes/commands/GetFollowedTopics.d.ts +4 -4
  64. package/build/types/types/src/schemes/commands/GetMessages.d.ts +6 -6
  65. package/build/types/types/src/schemes/commands/GetOwners.d.ts +4 -4
  66. package/build/types/types/src/schemes/commands/GetPermissionOverwriteTargets.d.ts +4 -4
  67. package/build/types/types/src/schemes/commands/GetPermissionOverwrites.d.ts +6 -6
  68. package/build/types/types/src/schemes/commands/GetRoomMembers.d.ts +3 -3
  69. package/build/types/types/src/schemes/commands/GetSession.d.ts +2 -2
  70. package/build/types/types/src/schemes/commands/GetSpaceMembers.d.ts +3 -3
  71. package/build/types/types/src/schemes/commands/GetSpaceRooms.d.ts +3 -3
  72. package/build/types/types/src/schemes/commands/GetTopics.d.ts +4 -4
  73. package/build/types/types/src/schemes/commands/JoinRoom.d.ts +3 -3
  74. package/build/types/types/src/schemes/commands/JoinSpace.d.ts +3 -3
  75. package/build/types/types/src/schemes/commands/LeaveRoom.d.ts +3 -3
  76. package/build/types/types/src/schemes/commands/LeaveSpace.d.ts +3 -3
  77. package/build/types/types/src/schemes/commands/SetPermissionOverwrites.d.ts +8 -8
  78. package/build/types/types/src/schemes/commands/UnfollowTopic.d.ts +4 -4
  79. package/build/types/types/src/schemes/commands/UpdateRole.d.ts +7 -7
  80. package/build/types/types/src/schemes/commands/UpdateRoom.d.ts +6 -6
  81. package/build/types/types/src/schemes/commands/UpdateSpace.d.ts +11 -9
  82. package/build/types/types/src/schemes/commands/UpdateTopic.d.ts +5 -5
  83. package/build/types/types/src/schemes/events/Bye.d.ts +3 -3
  84. package/build/types/types/src/schemes/events/ComputedPermissions.d.ts +5 -5
  85. package/build/types/types/src/schemes/events/DiscoverableSpaces.d.ts +4 -4
  86. package/build/types/types/src/schemes/events/EmoticonDeleted.d.ts +4 -0
  87. package/build/types/types/src/schemes/events/Emoticons.d.ts +6 -0
  88. package/build/types/types/src/schemes/events/Error.d.ts +4 -4
  89. package/build/types/types/src/schemes/events/FollowedTopicUpdated.d.ts +4 -4
  90. package/build/types/types/src/schemes/events/FollowedTopics.d.ts +6 -6
  91. package/build/types/types/src/schemes/events/Messages.d.ts +6 -6
  92. package/build/types/types/src/schemes/events/NewEmoticon.d.ts +4 -0
  93. package/build/types/types/src/schemes/events/NewMessage.d.ts +4 -4
  94. package/build/types/types/src/schemes/events/NewRole.d.ts +5 -5
  95. package/build/types/types/src/schemes/events/NewRoom.d.ts +5 -5
  96. package/build/types/types/src/schemes/events/NewTopic.d.ts +5 -5
  97. package/build/types/types/src/schemes/events/Ok.d.ts +2 -2
  98. package/build/types/types/src/schemes/events/Owners.d.ts +8 -8
  99. package/build/types/types/src/schemes/events/PermissionOverwriteTargets.d.ts +10 -10
  100. package/build/types/types/src/schemes/events/PermissionOverwrites.d.ts +8 -8
  101. package/build/types/types/src/schemes/events/PermissionOverwritesUpdated.d.ts +8 -8
  102. package/build/types/types/src/schemes/events/RoleDeleted.d.ts +4 -4
  103. package/build/types/types/src/schemes/events/RoleUpdated.d.ts +5 -5
  104. package/build/types/types/src/schemes/events/RoomDeleted.d.ts +3 -3
  105. package/build/types/types/src/schemes/events/RoomJoined.d.ts +4 -4
  106. package/build/types/types/src/schemes/events/RoomLeft.d.ts +3 -3
  107. package/build/types/types/src/schemes/events/RoomMemberJoined.d.ts +5 -5
  108. package/build/types/types/src/schemes/events/RoomMemberLeft.d.ts +4 -4
  109. package/build/types/types/src/schemes/events/RoomMemberUpdated.d.ts +6 -6
  110. package/build/types/types/src/schemes/events/RoomMembers.d.ts +5 -5
  111. package/build/types/types/src/schemes/events/RoomUpdated.d.ts +4 -4
  112. package/build/types/types/src/schemes/events/Session.d.ts +7 -7
  113. package/build/types/types/src/schemes/events/SpaceDeleted.d.ts +3 -3
  114. package/build/types/types/src/schemes/events/SpaceJoined.d.ts +4 -4
  115. package/build/types/types/src/schemes/events/SpaceLeft.d.ts +3 -3
  116. package/build/types/types/src/schemes/events/SpaceMemberJoined.d.ts +5 -5
  117. package/build/types/types/src/schemes/events/SpaceMemberLeft.d.ts +4 -4
  118. package/build/types/types/src/schemes/events/SpaceMemberUpdated.d.ts +6 -6
  119. package/build/types/types/src/schemes/events/SpaceMembers.d.ts +5 -5
  120. package/build/types/types/src/schemes/events/SpaceRooms.d.ts +5 -5
  121. package/build/types/types/src/schemes/events/SpaceUpdated.d.ts +4 -4
  122. package/build/types/types/src/schemes/events/TopicDeleted.d.ts +4 -4
  123. package/build/types/types/src/schemes/events/TopicFollowed.d.ts +4 -4
  124. package/build/types/types/src/schemes/events/TopicUnfollowed.d.ts +4 -4
  125. package/build/types/types/src/schemes/events/TopicUpdated.d.ts +6 -6
  126. package/build/types/types/src/schemes/events/Topics.d.ts +6 -6
  127. package/build/types/types/src/schemes/events/UserUpdated.d.ts +4 -4
  128. package/jest.config.ts +199 -199
  129. package/package.json +1 -1
  130. package/src/AbstractChatClient.ts +17 -2
  131. package/src/AuthClient.ts +45 -45
  132. package/src/EventTarget.ts +48 -48
  133. package/src/IndexedObjectCollection.ts +225 -225
  134. package/src/Permissions.ts +2 -0
  135. package/src/WebApiChatClient.ts +94 -94
  136. package/src/WebSocketChatClient.ts +131 -131
  137. package/src/index.ts +22 -22
  138. package/src/state-tracker/ChatStateTracker.ts +46 -41
  139. package/src/state-tracker/EmoticonsManager.ts +67 -0
  140. package/src/state-tracker/RoomMessagesHistory.ts +73 -73
  141. package/src/types/src/index.ts +14 -0
  142. package/src/types/src/schemes/Emoticon.ts +9 -0
  143. package/src/types/src/schemes/commands/CreateEmoticon.ts +5 -0
  144. package/src/types/src/schemes/commands/DeleteEmoticon.ts +3 -0
  145. package/src/types/src/schemes/commands/GetEmoticons.ts +3 -0
  146. package/src/types/src/schemes/commands/UpdateSpace.ts +3 -0
  147. package/src/types/src/schemes/events/EmoticonDeleted.ts +4 -0
  148. package/src/types/src/schemes/events/Emoticons.ts +7 -0
  149. package/src/types/src/schemes/events/NewEmoticon.ts +5 -0
  150. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  151. package/.idea/modules.xml +0 -8
  152. package/.idea/php.xml +0 -18
  153. package/.idea/polfan-server-js-client.iml +0 -10
@@ -1,13 +1,13 @@
1
- import { Role } from "./Role";
2
- export type SpaceDiscoverable = 'NotRequested' | 'Requested' | 'Accepted' | 'Declined';
3
- export interface Space {
4
- id: string;
5
- name: string;
6
- description: string;
7
- roles: Role[];
8
- systemRoom: string | null;
9
- defaultRooms: string[];
10
- icon: string | null;
11
- banner: string | null;
12
- discoverable: SpaceDiscoverable;
13
- }
1
+ import { Role } from "./Role";
2
+ export type SpaceDiscoverable = 'NotRequested' | 'Requested' | 'Accepted' | 'Declined';
3
+ export interface Space {
4
+ id: string;
5
+ name: string;
6
+ description: string;
7
+ roles: Role[];
8
+ systemRoom: string | null;
9
+ defaultRooms: string[];
10
+ icon: string | null;
11
+ banner: string | null;
12
+ discoverable: SpaceDiscoverable;
13
+ }
@@ -1,5 +1,5 @@
1
- import { User } from "./User";
2
- export interface SpaceMember {
3
- user: User | null;
4
- roles: string[];
5
- }
1
+ import { User } from "./User";
2
+ export interface SpaceMember {
3
+ user: User | null;
4
+ roles: string[];
5
+ }
@@ -1,7 +1,7 @@
1
- export interface SpaceSummary {
2
- id: string;
3
- name: string;
4
- description: string;
5
- icon: string;
6
- banner: string;
7
- }
1
+ export interface SpaceSummary {
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ icon: string;
6
+ banner: string;
7
+ }
@@ -1,8 +1,8 @@
1
- import { Message } from "./Message";
2
- export interface Topic {
3
- id: string;
4
- name: string;
5
- messageCount: number;
6
- refMessage?: Message;
7
- lastMessage?: Message;
8
- }
1
+ import { Message } from "./Message";
2
+ export interface Topic {
3
+ id: string;
4
+ name: string;
5
+ messageCount: number;
6
+ refMessage?: Message;
7
+ lastMessage?: Message;
8
+ }
@@ -1,8 +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
- }
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,6 +1,6 @@
1
- import { Space } from "./Space";
2
- import { Room } from "./Room";
3
- export interface UserState {
4
- spaces: Space[];
5
- rooms: Room[];
6
- }
1
+ import { Space } from "./Space";
2
+ import { Room } from "./Room";
3
+ export interface UserState {
4
+ spaces: Space[];
5
+ rooms: Room[];
6
+ }
@@ -1,5 +1,5 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface Ack {
3
- location: ChatLocation;
4
- messageId?: string;
5
- }
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface Ack {
3
+ location: ChatLocation;
4
+ messageId?: string;
5
+ }
@@ -1,6 +1,6 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface AssignRole {
3
- roleId: string;
4
- userId: string;
5
- location: ChatLocation;
6
- }
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface AssignRole {
3
+ roleId: string;
4
+ userId: string;
5
+ location: ChatLocation;
6
+ }
@@ -0,0 +1,5 @@
1
+ export interface CreateEmoticon {
2
+ name: string;
3
+ fileId: string;
4
+ spaceId?: string;
5
+ }
@@ -1,6 +1,6 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface CreateMessage {
3
- location: ChatLocation;
4
- content: string;
5
- attachments?: string[];
6
- }
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface CreateMessage {
3
+ location: ChatLocation;
4
+ content: string;
5
+ attachments?: string[];
6
+ }
@@ -1,5 +1,5 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface CreateOwner {
3
- location: ChatLocation;
4
- userId: string;
5
- }
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface CreateOwner {
3
+ location: ChatLocation;
4
+ userId: string;
5
+ }
@@ -1,5 +1,5 @@
1
- export interface CreateRole {
2
- spaceId: string;
3
- name: string;
4
- color: string;
5
- }
1
+ export interface CreateRole {
2
+ spaceId: string;
3
+ name: string;
4
+ color: string;
5
+ }
@@ -1,8 +1,8 @@
1
- import { RoomType } from "../Room";
2
- export interface CreateRoom {
3
- type: RoomType;
4
- spaceId?: string;
5
- name?: string;
6
- description?: string;
7
- recipientIds?: string[];
8
- }
1
+ import { RoomType } from "../Room";
2
+ export interface CreateRoom {
3
+ type: RoomType;
4
+ spaceId?: string;
5
+ name?: string;
6
+ description?: string;
7
+ recipientIds?: string[];
8
+ }
@@ -1,3 +1,3 @@
1
- export interface CreateSpace {
2
- name: string;
3
- }
1
+ export interface CreateSpace {
2
+ name: string;
3
+ }
@@ -1,8 +1,8 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- import { CreateMessage } from "./CreateMessage";
3
- export interface CreateTopic {
4
- location: ChatLocation;
5
- name: string;
6
- refMessageId?: string;
7
- initialMessage?: Omit<CreateMessage, 'location'>;
8
- }
1
+ import { ChatLocation } from "../ChatLocation";
2
+ import { CreateMessage } from "./CreateMessage";
3
+ export interface CreateTopic {
4
+ location: ChatLocation;
5
+ name: string;
6
+ refMessageId?: string;
7
+ initialMessage?: Omit<CreateMessage, 'location'>;
8
+ }
@@ -1,6 +1,6 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface DeassignRole {
3
- roleId: string;
4
- userId: string;
5
- location: ChatLocation;
6
- }
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface DeassignRole {
3
+ roleId: string;
4
+ userId: string;
5
+ location: ChatLocation;
6
+ }
@@ -0,0 +1,3 @@
1
+ export interface DeleteEmoticon {
2
+ id: string;
3
+ }
@@ -1,5 +1,5 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface DeleteOwner {
3
- location: ChatLocation;
4
- userId: string;
5
- }
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface DeleteOwner {
3
+ location: ChatLocation;
4
+ userId: string;
5
+ }
@@ -1,4 +1,4 @@
1
- export interface DeleteRole {
2
- roleId: string;
3
- spaceId: string;
4
- }
1
+ export interface DeleteRole {
2
+ roleId: string;
3
+ spaceId: string;
4
+ }
@@ -1,3 +1,3 @@
1
- export interface DeleteRoom {
2
- id: string;
3
- }
1
+ export interface DeleteRoom {
2
+ id: string;
3
+ }
@@ -1,3 +1,3 @@
1
- export interface DeleteSpace {
2
- id: string;
3
- }
1
+ export interface DeleteSpace {
2
+ id: string;
3
+ }
@@ -1,4 +1,4 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface DeleteTopic {
3
- location: ChatLocation;
4
- }
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface DeleteTopic {
3
+ location: ChatLocation;
4
+ }
@@ -1,4 +1,4 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface FollowTopic {
3
- location: ChatLocation;
4
- }
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface FollowTopic {
3
+ location: ChatLocation;
4
+ }
@@ -1,4 +1,4 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface GetComputedPermissions {
3
- location: ChatLocation;
4
- }
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface GetComputedPermissions {
3
+ location: ChatLocation;
4
+ }
@@ -1,2 +1,2 @@
1
- export interface GetDiscoverableSpaces {
2
- }
1
+ export interface GetDiscoverableSpaces {
2
+ }
@@ -0,0 +1,3 @@
1
+ export interface GetEmoticons {
2
+ spaceId?: string;
3
+ }
@@ -1,4 +1,4 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface GetFollowedTopics {
3
- location: ChatLocation;
4
- }
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface GetFollowedTopics {
3
+ location: ChatLocation;
4
+ }
@@ -1,6 +1,6 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface GetMessages {
3
- location: ChatLocation;
4
- before?: string;
5
- after?: string;
6
- }
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface GetMessages {
3
+ location: ChatLocation;
4
+ before?: string;
5
+ after?: string;
6
+ }
@@ -1,4 +1,4 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface GetOwners {
3
- location: ChatLocation;
4
- }
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface GetOwners {
3
+ location: ChatLocation;
4
+ }
@@ -1,4 +1,4 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface GetPermissionOverwriteTargets {
3
- location: ChatLocation;
4
- }
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface GetPermissionOverwriteTargets {
3
+ location: ChatLocation;
4
+ }
@@ -1,6 +1,6 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface GetPermissionOverwrites {
3
- location: ChatLocation;
4
- target: 'User' | 'Role';
5
- targetId: string;
6
- }
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface GetPermissionOverwrites {
3
+ location: ChatLocation;
4
+ target: 'User' | 'Role';
5
+ targetId: string;
6
+ }
@@ -1,3 +1,3 @@
1
- export interface GetRoomMembers {
2
- id: string;
3
- }
1
+ export interface GetRoomMembers {
2
+ id: string;
3
+ }
@@ -1,2 +1,2 @@
1
- export interface GetSession {
2
- }
1
+ export interface GetSession {
2
+ }
@@ -1,3 +1,3 @@
1
- export interface GetSpaceMembers {
2
- id: string;
3
- }
1
+ export interface GetSpaceMembers {
2
+ id: string;
3
+ }
@@ -1,3 +1,3 @@
1
- export interface GetSpaceRooms {
2
- id: string;
3
- }
1
+ export interface GetSpaceRooms {
2
+ id: string;
3
+ }
@@ -1,4 +1,4 @@
1
- export interface GetTopics {
2
- roomId: string;
3
- topicIds: string[];
4
- }
1
+ export interface GetTopics {
2
+ roomId: string;
3
+ topicIds: string[];
4
+ }
@@ -1,3 +1,3 @@
1
- export interface JoinRoom {
2
- id: string;
3
- }
1
+ export interface JoinRoom {
2
+ id: string;
3
+ }
@@ -1,3 +1,3 @@
1
- export interface JoinSpace {
2
- id: string;
3
- }
1
+ export interface JoinSpace {
2
+ id: string;
3
+ }
@@ -1,3 +1,3 @@
1
- export interface LeaveRoom {
2
- id: string;
3
- }
1
+ export interface LeaveRoom {
2
+ id: string;
3
+ }
@@ -1,3 +1,3 @@
1
- export interface LeaveSpace {
2
- id: string;
3
- }
1
+ export interface LeaveSpace {
2
+ id: string;
3
+ }
@@ -1,8 +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
- }
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
+ }
@@ -1,4 +1,4 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface UnfollowTopic {
3
- location: ChatLocation;
4
- }
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface UnfollowTopic {
3
+ location: ChatLocation;
4
+ }
@@ -1,7 +1,7 @@
1
- export interface UpdateRole {
2
- spaceId: string;
3
- id: string;
4
- priority?: number;
5
- name?: string;
6
- color?: string;
7
- }
1
+ export interface UpdateRole {
2
+ spaceId: string;
3
+ id: string;
4
+ priority?: number;
5
+ name?: string;
6
+ color?: string;
7
+ }
@@ -1,6 +1,6 @@
1
- export interface UpdateRoom {
2
- id: string;
3
- name?: string;
4
- description?: string;
5
- flags?: number;
6
- }
1
+ export interface UpdateRoom {
2
+ id: string;
3
+ name?: string;
4
+ description?: string;
5
+ flags?: number;
6
+ }
@@ -1,9 +1,11 @@
1
- export interface UpdateSpace {
2
- id: string;
3
- name?: string;
4
- description?: string;
5
- systemRoom?: string | null;
6
- defaultRooms?: string[];
7
- icon?: string | null;
8
- banner?: string | null;
9
- }
1
+ import { SpaceDiscoverable } from "../Space";
2
+ export interface UpdateSpace {
3
+ id: string;
4
+ name?: string;
5
+ description?: string;
6
+ systemRoom?: string | null;
7
+ defaultRooms?: string[];
8
+ icon?: string | null;
9
+ banner?: string | null;
10
+ discoverable?: SpaceDiscoverable;
11
+ }
@@ -1,5 +1,5 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface UpdateTopic {
3
- location: ChatLocation;
4
- name?: string;
5
- }
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface UpdateTopic {
3
+ location: ChatLocation;
4
+ name?: string;
5
+ }
@@ -1,3 +1,3 @@
1
- export interface Bye {
2
- reason: string;
3
- }
1
+ export interface Bye {
2
+ reason: string;
3
+ }
@@ -1,5 +1,5 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- export interface ComputedPermissions {
3
- permissions: number;
4
- location: ChatLocation;
5
- }
1
+ import { ChatLocation } from "../ChatLocation";
2
+ export interface ComputedPermissions {
3
+ permissions: number;
4
+ location: ChatLocation;
5
+ }
@@ -1,4 +1,4 @@
1
- import { SpaceSummary } from "../SpaceSummary";
2
- export interface DiscoverableSpaces {
3
- summaries: SpaceSummary[];
4
- }
1
+ import { SpaceSummary } from "../SpaceSummary";
2
+ export interface DiscoverableSpaces {
3
+ summaries: SpaceSummary[];
4
+ }
@@ -0,0 +1,4 @@
1
+ export interface EmoticonDeleted {
2
+ emoticonId: string;
3
+ spaceId?: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ import { Emoticon } from "../Emoticon";
2
+ import { ChatLocation } from "../ChatLocation";
3
+ export interface Emoticons {
4
+ emoticons: Emoticon[];
5
+ location: ChatLocation;
6
+ }
@@ -1,4 +1,4 @@
1
- export interface Error {
2
- code: string;
3
- message: string;
4
- }
1
+ export interface Error {
2
+ code: string;
3
+ message: string;
4
+ }
@@ -1,4 +1,4 @@
1
- import { FollowedTopic } from "../FollowedTopic";
2
- export interface FollowedTopicUpdated {
3
- followedTopic: FollowedTopic;
4
- }
1
+ import { FollowedTopic } from "../FollowedTopic";
2
+ export interface FollowedTopicUpdated {
3
+ followedTopic: FollowedTopic;
4
+ }
@@ -1,6 +1,6 @@
1
- import { FollowedTopic } from "../FollowedTopic";
2
- import { ChatLocation } from "../ChatLocation";
3
- export interface FollowedTopics {
4
- location: ChatLocation;
5
- followedTopics: FollowedTopic[];
6
- }
1
+ import { FollowedTopic } from "../FollowedTopic";
2
+ import { ChatLocation } from "../ChatLocation";
3
+ export interface FollowedTopics {
4
+ location: ChatLocation;
5
+ followedTopics: FollowedTopic[];
6
+ }
@@ -1,6 +1,6 @@
1
- import { ChatLocation } from "../ChatLocation";
2
- import { Message } from "../Message";
3
- export interface Messages {
4
- location: ChatLocation;
5
- messages: Message[];
6
- }
1
+ import { ChatLocation } from "../ChatLocation";
2
+ import { Message } from "../Message";
3
+ export interface Messages {
4
+ location: ChatLocation;
5
+ messages: Message[];
6
+ }