polfan-server-js-client 0.1.1 → 0.1.6
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.
- package/.gitmodules +3 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/polfan-server-js-client.iml +3 -1
- package/.idea/vcs.xml +1 -1
- package/README.md +17 -17
- package/build/index.js +3282 -1
- package/build/index.js.map +1 -1
- package/build/types/AbstractChatClient.d.ts +26 -9
- package/build/types/AbstractRestClient.d.ts +1 -1
- package/build/types/EventTarget.d.ts +2 -0
- package/build/types/IndexedObjectCollection.d.ts +6 -3
- package/build/types/Permissions.d.ts +65 -0
- package/build/types/WebSocketChatClient.d.ts +1 -1
- package/build/types/index.d.ts +4 -1
- package/build/types/state-tracker/AsyncUtils.d.ts +14 -0
- package/build/types/state-tracker/ChatStateTracker.d.ts +26 -0
- package/build/types/state-tracker/MessagesManager.d.ts +39 -0
- package/build/types/state-tracker/PermissionsManager.d.ts +41 -0
- package/build/types/state-tracker/RoomsManager.d.ts +49 -0
- package/build/types/state-tracker/SpacesManager.d.ts +52 -0
- package/build/types/state-tracker/functions.d.ts +2 -0
- package/build/types/types/src/index.d.ts +82 -0
- package/build/types/types/src/schemes/AckReport.d.ts +7 -0
- package/build/types/types/src/schemes/ChatLocation.d.ts +5 -0
- package/build/types/types/src/schemes/Envelope.d.ts +5 -0
- package/build/types/types/src/schemes/Message.d.ts +7 -0
- package/build/types/types/src/schemes/PermissionOverwritesValue.d.ts +4 -0
- package/build/types/types/src/schemes/Role.d.ts +6 -0
- package/build/types/types/src/schemes/Room.d.ts +10 -0
- package/build/types/types/src/schemes/RoomMember.d.ts +7 -0
- package/build/types/types/src/schemes/RoomSummary.d.ts +5 -0
- package/build/types/types/src/schemes/Space.d.ts +6 -0
- package/build/types/types/src/schemes/SpaceMember.d.ts +5 -0
- package/build/types/types/src/schemes/Topic.d.ts +5 -0
- package/build/types/types/src/schemes/User.d.ts +8 -0
- package/build/types/types/src/schemes/UserState.d.ts +6 -0
- package/build/types/types/src/schemes/commands/Ack.d.ts +5 -0
- package/build/types/types/src/schemes/commands/AssignRole.d.ts +6 -0
- package/build/types/types/src/schemes/commands/CreateMessage.d.ts +5 -0
- package/build/types/types/src/schemes/commands/CreateOwner.d.ts +5 -0
- package/build/types/types/src/schemes/commands/CreateRole.d.ts +5 -0
- package/build/types/types/src/schemes/commands/CreateRoom.d.ts +7 -0
- package/build/types/types/src/schemes/commands/CreateSpace.d.ts +3 -0
- package/build/types/types/src/schemes/commands/CreateTopic.d.ts +12 -0
- package/build/types/types/src/schemes/commands/DeassignRole.d.ts +6 -0
- package/build/types/types/src/schemes/commands/DeleteOwner.d.ts +5 -0
- package/build/types/types/src/schemes/commands/DeleteRole.d.ts +4 -0
- package/build/types/types/src/schemes/commands/DeleteRoom.d.ts +3 -0
- package/build/types/types/src/schemes/commands/DeleteSpace.d.ts +3 -0
- package/build/types/types/src/schemes/commands/DeleteTopic.d.ts +4 -0
- package/build/types/types/src/schemes/commands/GetAckReports.d.ts +4 -0
- package/build/types/types/src/schemes/commands/GetComputedPermissions.d.ts +4 -0
- package/build/types/types/src/schemes/commands/GetOwners.d.ts +4 -0
- package/build/types/types/src/schemes/commands/GetPermissionOverwriteTargets.d.ts +4 -0
- package/build/types/types/src/schemes/commands/GetPermissionOverwrites.d.ts +6 -0
- package/build/types/types/src/schemes/commands/GetRoomMembers.d.ts +3 -0
- package/build/types/types/src/schemes/commands/GetSession.d.ts +2 -0
- package/build/types/types/src/schemes/commands/GetSpaceMembers.d.ts +3 -0
- package/build/types/types/src/schemes/commands/GetSpaceRooms.d.ts +3 -0
- package/build/types/types/src/schemes/commands/JoinRoom.d.ts +3 -0
- package/build/types/types/src/schemes/commands/JoinSpace.d.ts +3 -0
- package/build/types/types/src/schemes/commands/LeaveRoom.d.ts +3 -0
- package/build/types/types/src/schemes/commands/LeaveSpace.d.ts +3 -0
- package/build/types/types/src/schemes/commands/SetPermissionOverwrites.d.ts +8 -0
- package/build/types/types/src/schemes/commands/UpdateRole.d.ts +7 -0
- package/build/types/types/src/schemes/commands/UpdateRoom.d.ts +5 -0
- package/build/types/types/src/schemes/commands/UpdateSpace.d.ts +4 -0
- package/build/types/types/src/schemes/events/AckReports.d.ts +4 -0
- package/build/types/types/src/schemes/events/Bye.d.ts +3 -0
- package/build/types/types/src/schemes/events/ComputedPermissions.d.ts +5 -0
- package/build/types/types/src/schemes/events/Error.d.ts +4 -0
- package/build/types/types/src/schemes/events/NewMessage.d.ts +6 -0
- package/build/types/types/src/schemes/events/NewRole.d.ts +5 -0
- package/build/types/types/src/schemes/events/NewRoom.d.ts +5 -0
- package/build/types/types/src/schemes/events/NewTopic.d.ts +5 -0
- package/build/types/types/src/schemes/events/Ok.d.ts +2 -0
- package/build/types/types/src/schemes/events/Owners.d.ts +8 -0
- package/build/types/types/src/schemes/events/PermissionOverwriteTargets.d.ts +10 -0
- package/build/types/types/src/schemes/events/PermissionOverwrites.d.ts +8 -0
- package/build/types/types/src/schemes/events/PermissionOverwritesUpdated.d.ts +8 -0
- package/build/types/types/src/schemes/events/RoleDeleted.d.ts +4 -0
- package/build/types/types/src/schemes/events/RoleUpdated.d.ts +5 -0
- package/build/types/types/src/schemes/events/RoomDeleted.d.ts +3 -0
- package/build/types/types/src/schemes/events/RoomJoined.d.ts +4 -0
- package/build/types/types/src/schemes/events/RoomLeft.d.ts +3 -0
- package/build/types/types/src/schemes/events/RoomMemberJoined.d.ts +5 -0
- package/build/types/types/src/schemes/events/RoomMemberLeft.d.ts +4 -0
- package/build/types/types/src/schemes/events/RoomMemberUpdated.d.ts +6 -0
- package/build/types/types/src/schemes/events/RoomMembers.d.ts +5 -0
- package/build/types/types/src/schemes/events/RoomUpdated.d.ts +4 -0
- package/build/types/types/src/schemes/events/Session.d.ts +7 -0
- package/build/types/types/src/schemes/events/SpaceDeleted.d.ts +3 -0
- package/build/types/types/src/schemes/events/SpaceJoined.d.ts +4 -0
- package/build/types/types/src/schemes/events/SpaceLeft.d.ts +3 -0
- package/build/types/types/src/schemes/events/SpaceMemberJoined.d.ts +5 -0
- package/build/types/types/src/schemes/events/SpaceMemberLeft.d.ts +4 -0
- package/build/types/types/src/schemes/events/SpaceMemberUpdated.d.ts +6 -0
- package/build/types/types/src/schemes/events/SpaceMembers.d.ts +5 -0
- package/build/types/types/src/schemes/events/SpaceRooms.d.ts +5 -0
- package/build/types/types/src/schemes/events/SpaceUpdated.d.ts +4 -0
- package/build/types/types/src/schemes/events/TopicDeleted.d.ts +4 -0
- package/build/types/types/src/schemes/events/UserUpdated.d.ts +4 -0
- package/jest.config.ts +199 -0
- package/package.json +4 -22
- package/src/AbstractChatClient.ts +50 -16
- package/src/AbstractRestClient.ts +65 -65
- package/src/AuthClient.ts +1 -1
- package/src/EventTarget.ts +9 -0
- package/src/IndexedObjectCollection.ts +21 -4
- package/src/Permissions.ts +46 -0
- package/src/WebApiChatClient.ts +2 -2
- package/src/WebSocketChatClient.ts +6 -5
- package/src/index.ts +7 -2
- package/src/state-tracker/AsyncUtils.ts +38 -0
- package/src/state-tracker/ChatStateTracker.ts +42 -0
- package/src/state-tracker/MessagesManager.ts +154 -0
- package/src/state-tracker/PermissionsManager.ts +306 -0
- package/src/state-tracker/RoomsManager.ts +272 -0
- package/src/state-tracker/SpacesManager.ts +267 -0
- package/src/state-tracker/functions.ts +25 -0
- package/src/types/README.md +2 -0
- package/src/types/package-lock.json +31 -0
- package/src/types/package.json +16 -0
- package/src/types/src/index.ts +168 -0
- package/src/types/src/schemes/AckReport.ts +7 -0
- package/src/types/src/schemes/ChatLocation.ts +5 -0
- package/src/types/src/schemes/Envelope.ts +5 -0
- package/src/types/src/schemes/Message.ts +8 -0
- package/src/types/src/schemes/PermissionOverwritesValue.ts +4 -0
- package/src/types/src/schemes/Role.ts +6 -0
- package/src/types/src/schemes/Room.ts +12 -0
- package/src/types/src/schemes/RoomMember.ts +8 -0
- package/src/types/src/schemes/RoomSummary.ts +5 -0
- package/src/types/src/schemes/Space.ts +7 -0
- package/src/types/src/schemes/SpaceMember.ts +6 -0
- package/src/types/src/schemes/Topic.ts +5 -0
- package/src/types/src/schemes/User.ts +9 -0
- package/src/types/src/schemes/UserState.ts +7 -0
- package/src/types/src/schemes/commands/Ack.ts +6 -0
- package/src/types/src/schemes/commands/AssignRole.ts +7 -0
- package/src/types/src/schemes/commands/CreateMessage.ts +6 -0
- package/src/types/src/schemes/commands/CreateOwner.ts +6 -0
- package/src/types/src/schemes/commands/CreateRole.ts +5 -0
- package/src/types/src/schemes/commands/CreateRoom.ts +8 -0
- package/src/types/src/schemes/commands/CreateSpace.ts +3 -0
- package/src/types/src/schemes/commands/CreateTopic.ts +14 -0
- package/src/types/src/schemes/commands/DeassignRole.ts +7 -0
- package/src/types/src/schemes/commands/DeleteOwner.ts +6 -0
- package/src/types/src/schemes/commands/DeleteRole.ts +4 -0
- package/src/types/src/schemes/commands/DeleteRoom.ts +3 -0
- package/src/types/src/schemes/commands/DeleteSpace.ts +3 -0
- package/src/types/src/schemes/commands/DeleteTopic.ts +5 -0
- package/src/types/src/schemes/commands/GetAckReports.ts +5 -0
- package/src/types/src/schemes/commands/GetComputedPermissions.ts +5 -0
- package/src/types/src/schemes/commands/GetOwners.ts +5 -0
- package/src/types/src/schemes/commands/GetPermissionOverwriteTargets.ts +5 -0
- package/src/types/src/schemes/commands/GetPermissionOverwrites.ts +7 -0
- package/src/types/src/schemes/commands/GetRoomMembers.ts +3 -0
- package/src/types/src/schemes/commands/GetSession.ts +2 -0
- package/src/types/src/schemes/commands/GetSpaceMembers.ts +3 -0
- package/src/types/src/schemes/commands/GetSpaceRooms.ts +3 -0
- package/src/types/src/schemes/commands/JoinRoom.ts +3 -0
- package/src/types/src/schemes/commands/JoinSpace.ts +3 -0
- package/src/types/src/schemes/commands/LeaveRoom.ts +3 -0
- package/src/types/src/schemes/commands/LeaveSpace.ts +3 -0
- package/src/types/src/schemes/commands/SetPermissionOverwrites.ts +9 -0
- package/src/types/src/schemes/commands/UpdateRole.ts +7 -0
- package/src/types/src/schemes/commands/UpdateRoom.ts +5 -0
- package/src/types/src/schemes/commands/UpdateSpace.ts +4 -0
- package/src/types/src/schemes/events/AckReports.ts +5 -0
- package/src/types/src/schemes/events/Bye.ts +3 -0
- package/src/types/src/schemes/events/ComputedPermissions.ts +6 -0
- package/src/types/src/schemes/events/Error.ts +4 -0
- package/src/types/src/schemes/events/NewMessage.ts +7 -0
- package/src/types/src/schemes/events/NewRole.ts +6 -0
- package/src/types/src/schemes/events/NewRoom.ts +6 -0
- package/src/types/src/schemes/events/NewTopic.ts +6 -0
- package/src/types/src/schemes/events/Ok.ts +3 -0
- package/src/types/src/schemes/events/Owners.ts +9 -0
- package/src/types/src/schemes/events/PermissionOverwriteTargets.ts +11 -0
- package/src/types/src/schemes/events/PermissionOverwrites.ts +9 -0
- package/src/types/src/schemes/events/PermissionOverwritesUpdated.ts +9 -0
- package/src/types/src/schemes/events/RoleDeleted.ts +4 -0
- package/src/types/src/schemes/events/RoleUpdated.ts +6 -0
- package/src/types/src/schemes/events/RoomDeleted.ts +3 -0
- package/src/types/src/schemes/events/RoomJoined.ts +5 -0
- package/src/types/src/schemes/events/RoomLeft.ts +3 -0
- package/src/types/src/schemes/events/RoomMemberJoined.ts +6 -0
- package/src/types/src/schemes/events/RoomMemberLeft.ts +4 -0
- package/src/types/src/schemes/events/RoomMemberUpdated.ts +7 -0
- package/src/types/src/schemes/events/RoomMembers.ts +6 -0
- package/src/types/src/schemes/events/RoomUpdated.ts +5 -0
- package/src/types/src/schemes/events/Session.ts +8 -0
- package/src/types/src/schemes/events/SpaceDeleted.ts +3 -0
- package/src/types/src/schemes/events/SpaceJoined.ts +5 -0
- package/src/types/src/schemes/events/SpaceLeft.ts +3 -0
- package/src/types/src/schemes/events/SpaceMemberJoined.ts +6 -0
- package/src/types/src/schemes/events/SpaceMemberLeft.ts +4 -0
- package/src/types/src/schemes/events/SpaceMemberUpdated.ts +7 -0
- package/src/types/src/schemes/events/SpaceMembers.ts +6 -0
- package/src/types/src/schemes/events/SpaceRooms.ts +6 -0
- package/src/types/src/schemes/events/SpaceUpdated.ts +5 -0
- package/src/types/src/schemes/events/TopicDeleted.ts +5 -0
- package/src/types/src/schemes/events/UserUpdated.ts +5 -0
- package/src/types/tsconfig.json +75 -0
- package/tests/async-utils.test.ts +30 -0
- package/tests/permissions.test.ts +14 -0
- package/tests/space-roles.test.ts +43 -0
- package/webpack.config.js +1 -1
- package/build/types/ChatStateTracker.d.ts +0 -54
- package/src/ChatStateTracker.ts +0 -326
|
@@ -0,0 +1,168 @@
|
|
|
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 {GetAckReports} from "./schemes/commands/GetAckReports";
|
|
65
|
+
import {Ack} from "./schemes/commands/Ack";
|
|
66
|
+
import {AckReports} from "./schemes/events/AckReports";
|
|
67
|
+
import {AckReport} from "./schemes/AckReport";
|
|
68
|
+
import {UserUpdated} from "./schemes/events/UserUpdated";
|
|
69
|
+
import {UpdateRoom} from "./schemes/commands/UpdateRoom";
|
|
70
|
+
import {UpdateSpace} from "./schemes/commands/UpdateSpace";
|
|
71
|
+
import {RoomUpdated} from "./schemes/events/RoomUpdated";
|
|
72
|
+
import {SpaceUpdated} from "./schemes/events/SpaceUpdated";
|
|
73
|
+
import {ChatLocation} from "./schemes/ChatLocation";
|
|
74
|
+
import {GetPermissionOverwriteTargets} from "./schemes/commands/GetPermissionOverwriteTargets";
|
|
75
|
+
import {PermissionOverwriteTargets} from "./schemes/events/PermissionOverwriteTargets";
|
|
76
|
+
import { CreateOwner } from "./schemes/commands/CreateOwner";
|
|
77
|
+
import { DeleteOwner } from "./schemes/commands/DeleteOwner";
|
|
78
|
+
import { GetOwners } from "./schemes/commands/GetOwners";
|
|
79
|
+
import { Owners } from "./schemes/events/Owners";
|
|
80
|
+
import { Ok } from "./schemes/events/Ok";
|
|
81
|
+
import {RoomType} from "./schemes/Room";
|
|
82
|
+
|
|
83
|
+
export {
|
|
84
|
+
// objects
|
|
85
|
+
Envelope,
|
|
86
|
+
Message,
|
|
87
|
+
AckReport,
|
|
88
|
+
Role,
|
|
89
|
+
Room,
|
|
90
|
+
RoomType,
|
|
91
|
+
RoomMember,
|
|
92
|
+
RoomSummary,
|
|
93
|
+
Space,
|
|
94
|
+
SpaceMember,
|
|
95
|
+
Topic,
|
|
96
|
+
User,
|
|
97
|
+
UserState,
|
|
98
|
+
PermissionOverwritesValue,
|
|
99
|
+
ChatLocation,
|
|
100
|
+
// events
|
|
101
|
+
Bye,
|
|
102
|
+
Error,
|
|
103
|
+
NewMessage,
|
|
104
|
+
AckReports,
|
|
105
|
+
NewRole,
|
|
106
|
+
NewRoom,
|
|
107
|
+
NewTopic,
|
|
108
|
+
ComputedPermissions,
|
|
109
|
+
PermissionOverwrites,
|
|
110
|
+
PermissionOverwritesUpdated,
|
|
111
|
+
RoleDeleted,
|
|
112
|
+
RoleUpdated,
|
|
113
|
+
RoomDeleted,
|
|
114
|
+
RoomUpdated,
|
|
115
|
+
RoomJoined,
|
|
116
|
+
RoomLeft,
|
|
117
|
+
RoomMemberJoined,
|
|
118
|
+
RoomMemberLeft,
|
|
119
|
+
RoomMembers,
|
|
120
|
+
RoomMemberUpdated,
|
|
121
|
+
UserUpdated,
|
|
122
|
+
Session,
|
|
123
|
+
SpaceDeleted,
|
|
124
|
+
SpaceUpdated,
|
|
125
|
+
SpaceJoined,
|
|
126
|
+
SpaceLeft,
|
|
127
|
+
SpaceMemberJoined,
|
|
128
|
+
SpaceMemberLeft,
|
|
129
|
+
SpaceMembers,
|
|
130
|
+
SpaceMemberUpdated,
|
|
131
|
+
SpaceRooms,
|
|
132
|
+
TopicDeleted,
|
|
133
|
+
PermissionOverwriteTargets,
|
|
134
|
+
Owners,
|
|
135
|
+
Ok,
|
|
136
|
+
// commands
|
|
137
|
+
AssignRole,
|
|
138
|
+
CreateMessage,
|
|
139
|
+
Ack,
|
|
140
|
+
CreateRole,
|
|
141
|
+
CreateRoom,
|
|
142
|
+
CreateSpace,
|
|
143
|
+
CreateTopic,
|
|
144
|
+
DeassignRole,
|
|
145
|
+
DeleteRole,
|
|
146
|
+
DeleteRoom,
|
|
147
|
+
DeleteSpace,
|
|
148
|
+
DeleteTopic,
|
|
149
|
+
SetPermissionOverwrites,
|
|
150
|
+
GetPermissionOverwrites,
|
|
151
|
+
GetComputedPermissions,
|
|
152
|
+
GetRoomMembers,
|
|
153
|
+
GetSession,
|
|
154
|
+
GetSpaceMembers,
|
|
155
|
+
GetSpaceRooms,
|
|
156
|
+
GetAckReports,
|
|
157
|
+
JoinRoom,
|
|
158
|
+
JoinSpace,
|
|
159
|
+
LeaveRoom,
|
|
160
|
+
LeaveSpace,
|
|
161
|
+
UpdateRole,
|
|
162
|
+
UpdateSpace,
|
|
163
|
+
UpdateRoom,
|
|
164
|
+
GetPermissionOverwriteTargets,
|
|
165
|
+
CreateOwner,
|
|
166
|
+
DeleteOwner,
|
|
167
|
+
GetOwners,
|
|
168
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {ChatLocation} from "../ChatLocation";
|
|
2
|
+
import {CreateMessage} from "./CreateMessage";
|
|
3
|
+
|
|
4
|
+
export interface MessageReference {
|
|
5
|
+
topicId: string;
|
|
6
|
+
messageId: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface CreateTopic {
|
|
10
|
+
location: ChatLocation;
|
|
11
|
+
name: string;
|
|
12
|
+
messageRef: MessageReference | null;
|
|
13
|
+
initialMessage: Omit<CreateMessage, 'location'> | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {PermissionOverwritesValue} from "../PermissionOverwritesValue";
|
|
2
|
+
import {ChatLocation} from "../ChatLocation";
|
|
3
|
+
|
|
4
|
+
export interface SetPermissionOverwrites {
|
|
5
|
+
location: ChatLocation;
|
|
6
|
+
target: 'User' | 'Role';
|
|
7
|
+
targetId: string;
|
|
8
|
+
overwrites: PermissionOverwritesValue;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {ChatLocation} from "../ChatLocation";
|
|
2
|
+
import {RoomMember} from "../RoomMember";
|
|
3
|
+
import {SpaceMember} from "../SpaceMember";
|
|
4
|
+
|
|
5
|
+
export interface Owners {
|
|
6
|
+
location: ChatLocation;
|
|
7
|
+
spaceMembers: SpaceMember[] | null;
|
|
8
|
+
roomMembers: RoomMember[] | null;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {ChatLocation} from "../ChatLocation";
|
|
2
|
+
import {SpaceMember} from "../SpaceMember";
|
|
3
|
+
import {RoomMember} from "../RoomMember";
|
|
4
|
+
import {Role} from "../Role";
|
|
5
|
+
|
|
6
|
+
export interface PermissionOverwriteTargets {
|
|
7
|
+
location: ChatLocation;
|
|
8
|
+
spaceMembers: SpaceMember[] | null;
|
|
9
|
+
roomMembers: RoomMember[] | null;
|
|
10
|
+
roles: Role[] | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {PermissionOverwritesValue} from "../PermissionOverwritesValue";
|
|
2
|
+
import {ChatLocation} from "../ChatLocation";
|
|
3
|
+
|
|
4
|
+
export interface PermissionOverwrites {
|
|
5
|
+
location: ChatLocation;
|
|
6
|
+
target: 'User' | 'Role';
|
|
7
|
+
targetId: string;
|
|
8
|
+
overwrites: PermissionOverwritesValue;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {PermissionOverwritesValue} from "../PermissionOverwritesValue";
|
|
2
|
+
import {ChatLocation} from "../ChatLocation";
|
|
3
|
+
|
|
4
|
+
export interface PermissionOverwritesUpdated {
|
|
5
|
+
location: ChatLocation;
|
|
6
|
+
target: 'User' | 'Role';
|
|
7
|
+
targetId: string;
|
|
8
|
+
overwrites: PermissionOverwritesValue;
|
|
9
|
+
}
|