@flashphoner/sfusdk 2.0.273 → 2.0.274
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/dist/client.version +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/sdk/constants.d.ts +299 -51
- package/dist/sdk/constants.js +70 -18
- package/dist/sdk/constants.js.map +1 -1
- package/dist/sdk/sfu-extended.d.ts +134 -44
- package/dist/sdk/sfu-extended.js +426 -86
- package/dist/sdk/sfu-extended.js.map +1 -1
- package/package.json +1 -1
package/dist/client.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.0.
|
|
1
|
+
2.0.274-bcb9d48d1e96c772ca4df776ffa4e02f7d94beb0
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Sfu } from "./sdk/sfu";
|
|
2
2
|
import { SfuExtended } from "./sdk/sfu-extended";
|
|
3
|
-
import { SfuEvent, RoomEvent, State, RoomState, WS_PING_INTERVAL_MS, WS_PINGS_MISSING_THRESHOLD, StatsType } from "./sdk/constants";
|
|
3
|
+
import { SfuEvent, RoomEvent, SpaceEvent, State, RoomState, WS_PING_INTERVAL_MS, WS_PINGS_MISSING_THRESHOLD, StatsType } from "./sdk/constants";
|
|
4
4
|
export declare const sfu: Sfu;
|
|
5
5
|
export declare const sfuExtended: SfuExtended;
|
|
6
|
-
export { Sfu, SfuExtended, SfuEvent, RoomEvent, State, RoomState, WS_PING_INTERVAL_MS, WS_PINGS_MISSING_THRESHOLD, StatsType };
|
|
6
|
+
export { Sfu, SfuExtended, SfuEvent, RoomEvent, SpaceEvent, State, RoomState, WS_PING_INTERVAL_MS, WS_PINGS_MISSING_THRESHOLD, StatsType };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StatsType = exports.WS_PINGS_MISSING_THRESHOLD = exports.WS_PING_INTERVAL_MS = exports.RoomState = exports.State = exports.RoomEvent = exports.SfuEvent = exports.SfuExtended = exports.Sfu = exports.sfuExtended = exports.sfu = void 0;
|
|
3
|
+
exports.StatsType = exports.WS_PINGS_MISSING_THRESHOLD = exports.WS_PING_INTERVAL_MS = exports.RoomState = exports.State = exports.SpaceEvent = exports.RoomEvent = exports.SfuEvent = exports.SfuExtended = exports.Sfu = exports.sfuExtended = exports.sfu = void 0;
|
|
4
4
|
const sfu_1 = require("./sdk/sfu");
|
|
5
5
|
Object.defineProperty(exports, "Sfu", { enumerable: true, get: function () { return sfu_1.Sfu; } });
|
|
6
6
|
const sfu_extended_1 = require("./sdk/sfu-extended");
|
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "SfuExtended", { enumerable: true, get: function
|
|
|
8
8
|
const constants_1 = require("./sdk/constants");
|
|
9
9
|
Object.defineProperty(exports, "SfuEvent", { enumerable: true, get: function () { return constants_1.SfuEvent; } });
|
|
10
10
|
Object.defineProperty(exports, "RoomEvent", { enumerable: true, get: function () { return constants_1.RoomEvent; } });
|
|
11
|
+
Object.defineProperty(exports, "SpaceEvent", { enumerable: true, get: function () { return constants_1.SpaceEvent; } });
|
|
11
12
|
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return constants_1.State; } });
|
|
12
13
|
Object.defineProperty(exports, "RoomState", { enumerable: true, get: function () { return constants_1.RoomState; } });
|
|
13
14
|
Object.defineProperty(exports, "WS_PING_INTERVAL_MS", { enumerable: true, get: function () { return constants_1.WS_PING_INTERVAL_MS; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAgB1B,oFAhBI,SAAG,OAgBJ;AAfP,qDAA+C;AAgB3C,4FAhBI,0BAAW,OAgBJ;AAff,+CASyB;AAOrB,yFAfA,oBAAQ,OAeA;AACR,0FAfA,qBAAS,OAeA;AACT,2FAfA,sBAAU,OAeA;AACV,sFAfA,iBAAK,OAeA;AACL,0FAfA,qBAAS,OAeA;AACT,oGAfA,+BAAmB,OAeA;AACnB,2GAfA,sCAA0B,OAeA;AAC1B,0FAfA,qBAAS,OAeA;AAZA,QAAA,GAAG,GAAG,IAAI,SAAG,EAAE,CAAC;AAChB,QAAA,WAAW,GAAG,IAAI,0BAAW,EAAE,CAAC"}
|
package/dist/sdk/constants.d.ts
CHANGED
|
@@ -39,11 +39,7 @@ export declare enum SfuEvent {
|
|
|
39
39
|
CHAT_MESSAGES_COUNT = "CHAT_MESSAGES_COUNT",
|
|
40
40
|
FIRST_AND_LAST_CHAT_MESSAGE = "FIRST_AND_LAST_CHAT_MESSAGE",
|
|
41
41
|
MESSAGE_ATTACHMENTS_SEARCH_RESULT = "MESSAGE_ATTACHMENTS_SEARCH_RESULT",
|
|
42
|
-
LOAD_BOOKMARKED_MESSAGES_RESULT = "LOAD_BOOKMARKED_MESSAGES_RESULT",
|
|
43
42
|
LOAD_MESSAGES_WITH_MENTIONS_RESULT = "LOAD_MESSAGES_WITH_MENTIONS_RESULT",
|
|
44
|
-
BOOKMARK_DELETED = "BOOKMARK_DELETED",
|
|
45
|
-
BOOKMARK_EDITED = "BOOKMARK_EDITED",
|
|
46
|
-
CHAT_WITH_BOOKMARKS_DELETED = "CHAT_WITH_BOOKMARKS_DELETED",
|
|
47
43
|
SEND_MESSAGE_SYNC = "SEND_MESSAGE_SYNC",
|
|
48
44
|
AUTHENTICATION_STATUS = "AUTHENTICATION_STATUS"
|
|
49
45
|
}
|
|
@@ -95,6 +91,33 @@ export declare enum RoomEvent {
|
|
|
95
91
|
STOP_TRACK = "STOP_TRACK",
|
|
96
92
|
BITRATE_TEST_STATUS = "BITRATE_TEST_STATUS"
|
|
97
93
|
}
|
|
94
|
+
export declare enum SpaceEvent {
|
|
95
|
+
USER_SPACES = "USER_SPACES",
|
|
96
|
+
SPACE_CREATED = "SPACE_CREATED",
|
|
97
|
+
NEW_SPACE = "NEW_SPACE",
|
|
98
|
+
SPACE_DELETED = "SPACE_DELETED",
|
|
99
|
+
SPACE_OVERVIEW_UPDATED = "SPACE_OVERVIEW_UPDATED",
|
|
100
|
+
NEW_SPACE_CATEGORY = "NEW_SPACE_CATEGORY",
|
|
101
|
+
SPACE_CATEGORY_DELETED = "SPACE_CATEGORY_DELETED",
|
|
102
|
+
SPACE_CATEGORY_UPDATED = "SPACE_CATEGORY_UPDATED",
|
|
103
|
+
NEW_SPACE_CHANNEL = "NEW_SPACE_CHANNEL",
|
|
104
|
+
SPACE_CHANNEL_UPDATED = "SPACE_CHANNEL_UPDATED",
|
|
105
|
+
SPACE_CHANNEL_DELETED = "SPACE_CHANNEL_DELETED",
|
|
106
|
+
SPACE_CHANNEL_MOVED = "SPACE_CHANNEL_MOVED",
|
|
107
|
+
NEW_SPACE_THREAD = "NEW_SPACE_THREAD",
|
|
108
|
+
SPACE_THREAD_DELETED = "SPACE_THREAD_DELETED",
|
|
109
|
+
SPACE_THREAD_UPDATED = "SPACE_THREAD_UPDATED",
|
|
110
|
+
SPACE_INVITE_CREATED = "SPACE_INVITE_CREATED",
|
|
111
|
+
SPACE_INVITE_REVOKED = "SPACE_INVITE_REVOKED",
|
|
112
|
+
NEW_SPACE_ROLE = "NEW_SPACE_ROLE",
|
|
113
|
+
SPACE_ROLE_UPDATED = "SPACE_ROLE_UPDATED",
|
|
114
|
+
SPACE_ROLE_DELETED = "SPACE_ROLE_DELETED",
|
|
115
|
+
USER_JOINED_TO_SPACE = "USER_JOINED_TO_SPACE",
|
|
116
|
+
USER_LEFT_SPACE = "USER_LEFT_SPACE",
|
|
117
|
+
ADDED_ROLE_TO_MEMBER = "ADDED_ROLE_TO_MEMBER",
|
|
118
|
+
REMOVED_ROLE_FROM_MEMBER = "REMOVED_ROLE_FROM_MEMBER",
|
|
119
|
+
ROLE_PERMISSION_SECTIONS = "ROLE_PERMISSION_SECTIONS"
|
|
120
|
+
}
|
|
98
121
|
export declare enum State {
|
|
99
122
|
NEW = "NEW",
|
|
100
123
|
PENDING = "PENDING",
|
|
@@ -187,10 +210,8 @@ export declare enum Operations {
|
|
|
187
210
|
RESET_PASSWORD = "RESET_PASSWORD",
|
|
188
211
|
GET_CHAT_MESSAGES_COUNT = "GET_CHAT_MESSAGES_COUNT",
|
|
189
212
|
SEARCH_MESSAGE_ATTACHMENTS = "SEARCH_MESSAGE_ATTACHMENTS",
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
LOAD_BOOKMARKED_MESSAGES = "LOAD_BOOKMARKED_MESSAGES",
|
|
193
|
-
LOAD_MESSAGES_WITH_MENTIONS = "LOAD_MESSAGES_WITH_MENTIONS"
|
|
213
|
+
LOAD_MESSAGES_WITH_MENTIONS = "LOAD_MESSAGES_WITH_MENTIONS",
|
|
214
|
+
LEASE_TRACK = "LEASE_TRACK"
|
|
194
215
|
}
|
|
195
216
|
export declare enum ParticipantRole {
|
|
196
217
|
OWNER = "OWNER",
|
|
@@ -262,10 +283,10 @@ export declare enum InternalApi {
|
|
|
262
283
|
GET_USER_CHATS = "getUserChats",
|
|
263
284
|
GET_PUBLIC_CHANNELS = "getPublicChannels",
|
|
264
285
|
LOAD_CHAT = "loadChat",
|
|
265
|
-
|
|
286
|
+
LOAD_MESSAGES = "loadMessages",
|
|
266
287
|
SEARCH_CHAT_MESSAGES = "searchChatMessages",
|
|
267
|
-
|
|
268
|
-
|
|
288
|
+
GET_MESSAGES_COUNT = "getMessagesCount",
|
|
289
|
+
GET_FIRST_AND_LAST_MESSAGE = "getFirstAndLastMessage",
|
|
269
290
|
CREATE_CHAT = "createChat",
|
|
270
291
|
DELETE_CHAT = "deleteChat",
|
|
271
292
|
RENAME_CHAT = "renameChat",
|
|
@@ -307,22 +328,43 @@ export declare enum InternalApi {
|
|
|
307
328
|
CHANGE_USER_PHONE_NUMBER = "changeUserPhoneNumber",
|
|
308
329
|
CHANGE_USER_HOST_KEY = "changeUserHostKey",
|
|
309
330
|
CHANGE_USER_TIMEZONE = "changeUserTimezone",
|
|
310
|
-
|
|
311
|
-
|
|
331
|
+
EDIT_MESSAGE = "editMessage",
|
|
332
|
+
DELETE_MESSAGE = "deleteMessage",
|
|
312
333
|
SIGN_UP = "signUp",
|
|
313
334
|
REMOVE_USER = "removeUser",
|
|
314
335
|
RESET_PASSWORD_REQUEST = "resetPasswordRequest",
|
|
315
336
|
RESET_PASSWORD = "resetPassword",
|
|
316
337
|
SEARCH_MESSAGE_ATTACHMENTS = "searchMessageAttachments",
|
|
317
|
-
ADD_MESSAGE_TO_BOOKMARKS = "addMessageToBookmarks",
|
|
318
|
-
REMOVE_MESSAGE_FROM_BOOKMARKS = "removeMessageFromBookmarks",
|
|
319
|
-
LOAD_BOOKMARKED_MESSAGES = "loadBookmarkedMessages",
|
|
320
338
|
LOAD_MESSAGES_WITH_MENTIONS = "loadMessagesWithMentions",
|
|
321
339
|
LEASE_TRACK = "leaseTrack",
|
|
322
340
|
LOGOUT = "logout",
|
|
323
341
|
START_BITRATE_TEST = "startBitrateTest",
|
|
324
342
|
END_BITRATE_TEST = "endBitrateTest",
|
|
325
|
-
GET_TEST_LATENCY = "getBitrateLatency"
|
|
343
|
+
GET_TEST_LATENCY = "getBitrateLatency",
|
|
344
|
+
GET_USER_SPACES = "getUserSpaces",
|
|
345
|
+
CREATE_SPACE = "createSpace",
|
|
346
|
+
DELETE_SPACE = "deleteSpace",
|
|
347
|
+
LEAVE_SPACE = "leaveSpace",
|
|
348
|
+
UPDATE_SPACE_OVERVIEW = "updateSpaceOverview",
|
|
349
|
+
CREATE_SPACE_CATEGORY = "createSpaceCategory",
|
|
350
|
+
DELETE_SPACE_CATEGORY = "deleteSpaceCategory",
|
|
351
|
+
UPDATE_SPACE_CATEGORY = "updateSpaceCategory",
|
|
352
|
+
CREATE_SPACE_CHANNEL = "createSpaceChannel",
|
|
353
|
+
UPDATE_SPACE_CHANNEL = "updateSpaceChannel",
|
|
354
|
+
MOVE_SPACE_CHANNEL = "moveSpaceChannel",
|
|
355
|
+
DELETE_SPACE_CHANNEL = "deleteSpaceChannel",
|
|
356
|
+
CREATE_SPACE_THREAD = "createSpaceThread",
|
|
357
|
+
UPDATE_SPACE_THREAD = "updateSpaceThread",
|
|
358
|
+
DELETE_SPACE_THREAD = "deleteSpaceThread",
|
|
359
|
+
GENERATE_SPACE_INVITE = "generateNewSpaceInvite",
|
|
360
|
+
REVOKE_SPACE_INVITE = "revokeSpaceInvite",
|
|
361
|
+
JOIN_SPACE_BY_INVITE_CODE = "joinSpaceByInviteCode",
|
|
362
|
+
ADD_SPACE_ROLE = "addSpaceRole",
|
|
363
|
+
UPDATE_SPACE_ROLE = "updateSpaceRole",
|
|
364
|
+
DELETE_SPACE_ROLE = "deleteSpaceRole",
|
|
365
|
+
ADD_ROLE_TO_MEMBER = "addRoleToMember",
|
|
366
|
+
REMOVE_ROLE_FROM_MEMBER = "removeRoleFromMember",
|
|
367
|
+
GET_ROLE_PERMISSIONS = "getRolePermissions"
|
|
326
368
|
}
|
|
327
369
|
export declare enum ContactError {
|
|
328
370
|
USER_CAN_NOT_SEND_INVITE_TO_HIMSELF = "User can not send invite to himself"
|
|
@@ -333,7 +375,6 @@ export declare enum ChatError {
|
|
|
333
375
|
CAN_NOT_SEND_MESSAGE_WITHOUT_CHAT_ID = "Can't send message without a chatId",
|
|
334
376
|
USER_MUST_BE_A_CHAT_MEMBER_TO_SEND_MESSAGES = "User must be a chat member to send messages",
|
|
335
377
|
CAN_NOT_CANCEL_SENDING_ATTACHMENT = "Can't cancel sending attachment",
|
|
336
|
-
CAN_NOT_EDIT_MESSAGE_WITHOUT_CHAT_ID = "Can't edit message without chatId",
|
|
337
378
|
CAN_NOT_EDIT_MESSAGE_WITHOUT_MESSAGE_ID = "Can't edit message without messageId",
|
|
338
379
|
EDIT_MESSAGE_ERROR_CHAT_DOES_NOT_EXISTS = "Failed to edit message, chat doesn't exist",
|
|
339
380
|
EDIT_MESSAGE_ERROR_MESSAGE_DOES_NOT_EXISTS = "Failed to edit message, message doesn't exist",
|
|
@@ -342,8 +383,7 @@ export declare enum ChatError {
|
|
|
342
383
|
DELETE_MESSAGE_ERROR_MESSAGE_DOES_NOT_EXISTS = "Failed to delete message, message doesn't exist",
|
|
343
384
|
CAN_NOT_ADD_MEMBER_TO_PRIVATE_CHAT = "Adding a member to the private chat is not allowed",
|
|
344
385
|
CAN_NOT_REMOVE_MEMBER_FROM_PRIVATE_CHAT = "Removing a member from the private chat is not allowed",
|
|
345
|
-
CAN_NOT_RENAME_PRIVATE_CHAT = "Renaming the private chat is not allowed"
|
|
346
|
-
CAN_NOT_ADD_DELETED_MESSAGE_TO_BOOKMARKS = "Can't add deleted message to bookmarks"
|
|
386
|
+
CAN_NOT_RENAME_PRIVATE_CHAT = "Renaming the private chat is not allowed"
|
|
347
387
|
}
|
|
348
388
|
export declare enum ChatSectionsError {
|
|
349
389
|
PAGE_NOT_FOUND = "Page not found"
|
|
@@ -382,9 +422,13 @@ export declare enum UserManagementError {
|
|
|
382
422
|
EMAIL_VERIFICATION_FAILED_BY_TIMEOUT = "Email verification failed by timeout",
|
|
383
423
|
EMAIL_NOT_FOUND = "Email not found"
|
|
384
424
|
}
|
|
425
|
+
export declare enum SpaceError {
|
|
426
|
+
USER_ALREADY_JOINED = "User already joined",
|
|
427
|
+
RESTRICTED_ACCESS = "Restricted access"
|
|
428
|
+
}
|
|
385
429
|
export declare const ATTACHMENT_CHUNK_SIZE = 100000;
|
|
386
430
|
export declare type InternalMessage = {
|
|
387
|
-
type: SfuEvent | RoomEvent | InternalApi;
|
|
431
|
+
type: SfuEvent | RoomEvent | SpaceEvent | InternalApi;
|
|
388
432
|
roomId: string;
|
|
389
433
|
internalMessageId: string;
|
|
390
434
|
};
|
|
@@ -615,7 +659,8 @@ export declare type MessageStatusUpdate = {
|
|
|
615
659
|
};
|
|
616
660
|
export declare type MessageStatus = {
|
|
617
661
|
id: string;
|
|
618
|
-
|
|
662
|
+
targetEntityType: MessageTargetEntityType;
|
|
663
|
+
targetEntityId: MessageTargetEntityId;
|
|
619
664
|
parentMessage: Message;
|
|
620
665
|
delivered: boolean;
|
|
621
666
|
state: MessageState;
|
|
@@ -628,7 +673,8 @@ export declare type MessageStatus = {
|
|
|
628
673
|
dateOfEdit: number;
|
|
629
674
|
};
|
|
630
675
|
export declare type AttachmentStatus = {
|
|
631
|
-
|
|
676
|
+
targetEntityType: MessageTargetEntityType;
|
|
677
|
+
targetEntityId: MessageTargetEntityId;
|
|
632
678
|
messageId: string;
|
|
633
679
|
id: string;
|
|
634
680
|
name: string;
|
|
@@ -652,7 +698,8 @@ export declare type MessageAttachmentData = {
|
|
|
652
698
|
id: string;
|
|
653
699
|
};
|
|
654
700
|
export declare type AttachmentRequest = {
|
|
655
|
-
|
|
701
|
+
targetEntityType: MessageTargetEntityType;
|
|
702
|
+
targetEntityId: MessageTargetEntityId;
|
|
656
703
|
messageId: string;
|
|
657
704
|
messageTransferId?: number;
|
|
658
705
|
attachmentId: string;
|
|
@@ -666,10 +713,22 @@ export declare type Attachment = AttachmentRequest & {
|
|
|
666
713
|
export declare type AttachmentRequestAck = InternalMessage & {
|
|
667
714
|
attachmentRequest: AttachmentRequest;
|
|
668
715
|
};
|
|
716
|
+
export declare enum MessageTargetEntityType {
|
|
717
|
+
CHAT = "CHAT",
|
|
718
|
+
CHANNEL = "CHANNEL",
|
|
719
|
+
THREAD = "THREAD"
|
|
720
|
+
}
|
|
721
|
+
export declare type MessageTargetEntityId = {
|
|
722
|
+
chatId?: string;
|
|
723
|
+
spaceId?: string;
|
|
724
|
+
channelId?: string;
|
|
725
|
+
threadId?: string;
|
|
726
|
+
};
|
|
669
727
|
export declare type Message = {
|
|
670
728
|
id: string;
|
|
671
729
|
parentMessage?: Message;
|
|
672
|
-
|
|
730
|
+
targetEntityType: MessageTargetEntityType;
|
|
731
|
+
targetEntityId: MessageTargetEntityId;
|
|
673
732
|
date: number;
|
|
674
733
|
from: UserId;
|
|
675
734
|
to?: UserId;
|
|
@@ -680,7 +739,6 @@ export declare type Message = {
|
|
|
680
739
|
privateMessage: boolean;
|
|
681
740
|
edited: boolean;
|
|
682
741
|
dateOfEdit: number;
|
|
683
|
-
bookmarked: boolean;
|
|
684
742
|
};
|
|
685
743
|
export declare type SfuMessageEvent = InternalMessage & {
|
|
686
744
|
message: Message;
|
|
@@ -703,14 +761,16 @@ export declare type AttachmentStatusEvent = InternalMessage & {
|
|
|
703
761
|
status: AttachmentStatus;
|
|
704
762
|
};
|
|
705
763
|
export declare type UpdateMessagesDeliveryStatusEvent = InternalMessage & {
|
|
706
|
-
|
|
764
|
+
targetEntityType: MessageTargetEntityType;
|
|
765
|
+
targetEntityId: MessageTargetEntityId;
|
|
707
766
|
dateFrom: number;
|
|
708
767
|
dateTo: number;
|
|
709
768
|
userId: string;
|
|
710
769
|
status: DeliveryStatus;
|
|
711
770
|
};
|
|
712
771
|
export declare type LastReadMessageUpdated = InternalMessage & {
|
|
713
|
-
|
|
772
|
+
targetEntityType: MessageTargetEntityType;
|
|
773
|
+
targetEntityId: MessageTargetEntityId;
|
|
714
774
|
updateInfo: LastReadMessageUpdate;
|
|
715
775
|
};
|
|
716
776
|
export declare type LastReadMessageUpdate = {
|
|
@@ -861,7 +921,8 @@ export declare type ChatLoadedEvent = InternalMessage & {
|
|
|
861
921
|
chat: Chat;
|
|
862
922
|
};
|
|
863
923
|
export declare type ChatMessagesEvent = InternalMessage & {
|
|
864
|
-
|
|
924
|
+
targetEntityType: MessageTargetEntityType;
|
|
925
|
+
targetEntityId: MessageTargetEntityId;
|
|
865
926
|
messages: Array<Message>;
|
|
866
927
|
};
|
|
867
928
|
export declare type ChatSearchResultEvent = InternalMessage & {
|
|
@@ -905,25 +966,16 @@ export declare type UserTimezoneChangedEvent = InternalMessage & {
|
|
|
905
966
|
timezone: UserTimezone;
|
|
906
967
|
};
|
|
907
968
|
export declare type MessageEdited = InternalMessage & {
|
|
908
|
-
|
|
969
|
+
targetEntityType: MessageTargetEntityType;
|
|
970
|
+
targetEntityId: MessageTargetEntityId;
|
|
909
971
|
message: Message;
|
|
910
972
|
};
|
|
911
973
|
export declare type MessageDeleted = InternalMessage & {
|
|
912
|
-
|
|
974
|
+
targetEntityType: MessageTargetEntityType;
|
|
975
|
+
targetEntityId: MessageTargetEntityId;
|
|
913
976
|
messageId: string;
|
|
914
977
|
state: MessageState;
|
|
915
978
|
};
|
|
916
|
-
export declare type BookmarkDeleted = InternalMessage & {
|
|
917
|
-
chatId: string;
|
|
918
|
-
id: string;
|
|
919
|
-
};
|
|
920
|
-
export declare type ChatWithBookmarksDeleted = InternalMessage & {
|
|
921
|
-
chatId: string;
|
|
922
|
-
deletedBookmarksCount: number;
|
|
923
|
-
};
|
|
924
|
-
export declare type BookmarkEdited = InternalMessage & {
|
|
925
|
-
bookmark: MessageInfo;
|
|
926
|
-
};
|
|
927
979
|
export declare type SignUpStatus = InternalMessage & {
|
|
928
980
|
id: UserId;
|
|
929
981
|
nickname: UserNickname;
|
|
@@ -934,11 +986,13 @@ export declare type ResetPasswordRequestStatus = InternalMessage & {
|
|
|
934
986
|
confirmed: boolean;
|
|
935
987
|
};
|
|
936
988
|
export declare type ChatMessagesCount = InternalMessage & {
|
|
937
|
-
|
|
989
|
+
targetEntityType: MessageTargetEntityType;
|
|
990
|
+
targetEntityId: MessageTargetEntityId;
|
|
938
991
|
messagesCount: number;
|
|
939
992
|
};
|
|
940
993
|
export declare type FirstAndLastChatMessage = InternalMessage & {
|
|
941
|
-
|
|
994
|
+
targetEntityType: MessageTargetEntityType;
|
|
995
|
+
targetEntityId: MessageTargetEntityId;
|
|
942
996
|
firstMessageId: string;
|
|
943
997
|
firstMessageDate: number;
|
|
944
998
|
lastMessageId: string;
|
|
@@ -949,7 +1003,8 @@ export declare enum MessageAttachmentMediaType {
|
|
|
949
1003
|
other = "other"
|
|
950
1004
|
}
|
|
951
1005
|
export declare type AttachmentInfo = {
|
|
952
|
-
|
|
1006
|
+
targetEntityType: MessageTargetEntityType;
|
|
1007
|
+
targetEntityId: MessageTargetEntityId;
|
|
953
1008
|
messageId: string;
|
|
954
1009
|
id: string;
|
|
955
1010
|
name: string;
|
|
@@ -965,7 +1020,8 @@ export declare type MessageAttachmentsSearchResult = InternalMessage & {
|
|
|
965
1020
|
};
|
|
966
1021
|
export declare type MessageInfo = {
|
|
967
1022
|
id: string;
|
|
968
|
-
|
|
1023
|
+
targetEntityType: MessageTargetEntityType;
|
|
1024
|
+
targetEntityId: MessageTargetEntityId;
|
|
969
1025
|
parentMessage: MessageInfo;
|
|
970
1026
|
date: number;
|
|
971
1027
|
clientDate: number;
|
|
@@ -976,16 +1032,208 @@ export declare type MessageInfo = {
|
|
|
976
1032
|
privateMessage: boolean;
|
|
977
1033
|
edited: boolean;
|
|
978
1034
|
dateOfEdit: number;
|
|
979
|
-
bookmarked: boolean;
|
|
980
|
-
};
|
|
981
|
-
export declare type LoadBookmarkedMessagesResult = InternalMessage & {
|
|
982
|
-
messages: Array<MessageInfo>;
|
|
983
|
-
totalSize: number;
|
|
984
1035
|
};
|
|
985
1036
|
export declare type LoadMessagesWithMentionsResult = InternalMessage & {
|
|
986
1037
|
messages: Array<MessageInfo>;
|
|
987
1038
|
totalSize: number;
|
|
988
1039
|
};
|
|
1040
|
+
export declare type SfuSpaceRolePermission = {
|
|
1041
|
+
name: string;
|
|
1042
|
+
displayName: string;
|
|
1043
|
+
description: string;
|
|
1044
|
+
position: number;
|
|
1045
|
+
};
|
|
1046
|
+
export declare type SfuSpaceRolePermissionSection = {
|
|
1047
|
+
name: string;
|
|
1048
|
+
displayName: string;
|
|
1049
|
+
position: number;
|
|
1050
|
+
permissions: Array<SfuSpaceRolePermission>;
|
|
1051
|
+
};
|
|
1052
|
+
export declare type SfuSpaceRole = {
|
|
1053
|
+
id: string;
|
|
1054
|
+
name: string;
|
|
1055
|
+
color: string;
|
|
1056
|
+
permissions: Array<string>;
|
|
1057
|
+
};
|
|
1058
|
+
export declare type SfuSpaceMember = {
|
|
1059
|
+
userId: string;
|
|
1060
|
+
nickname: string;
|
|
1061
|
+
roles: Array<string>;
|
|
1062
|
+
};
|
|
1063
|
+
export declare type SfuSpaceCategory = {
|
|
1064
|
+
id: string;
|
|
1065
|
+
name: string;
|
|
1066
|
+
creator: string;
|
|
1067
|
+
createdAt: number;
|
|
1068
|
+
};
|
|
1069
|
+
export declare type SfuSpaceThread = {
|
|
1070
|
+
id: string;
|
|
1071
|
+
name: string;
|
|
1072
|
+
creator: string;
|
|
1073
|
+
private: boolean;
|
|
1074
|
+
createdAt: number;
|
|
1075
|
+
members: Array<string>;
|
|
1076
|
+
lastReadMessageId: string;
|
|
1077
|
+
lastReadMessageDate: number;
|
|
1078
|
+
};
|
|
1079
|
+
export declare type SfuSpaceChannel = {
|
|
1080
|
+
id: string;
|
|
1081
|
+
categoryId: string;
|
|
1082
|
+
name: string;
|
|
1083
|
+
creator: string;
|
|
1084
|
+
private: boolean;
|
|
1085
|
+
accessRights: SfuSpaceChannelAccessRights;
|
|
1086
|
+
createdAt: number;
|
|
1087
|
+
members: Array<string>;
|
|
1088
|
+
threads: Array<SfuSpaceThread>;
|
|
1089
|
+
lastReadMessageId: string;
|
|
1090
|
+
lastReadMessageDate: number;
|
|
1091
|
+
};
|
|
1092
|
+
export declare type SfuSpaceInvite = {
|
|
1093
|
+
inviteCode: string;
|
|
1094
|
+
inviter: string;
|
|
1095
|
+
uses: number;
|
|
1096
|
+
createdAt: number;
|
|
1097
|
+
expiresAt: number;
|
|
1098
|
+
};
|
|
1099
|
+
export declare type SfuSpaceUserBan = {
|
|
1100
|
+
id: string;
|
|
1101
|
+
userId: string;
|
|
1102
|
+
bannedAt: number;
|
|
1103
|
+
};
|
|
1104
|
+
export declare type SfuSpaceChannelAccessRights = {
|
|
1105
|
+
roles: Array<string>;
|
|
1106
|
+
members: Array<string>;
|
|
1107
|
+
};
|
|
1108
|
+
export declare type SfuSpace = {
|
|
1109
|
+
id: string;
|
|
1110
|
+
name: string;
|
|
1111
|
+
owner: string;
|
|
1112
|
+
createdAt: number;
|
|
1113
|
+
roles: Array<SfuSpaceRole>;
|
|
1114
|
+
members: Array<SfuSpaceMember>;
|
|
1115
|
+
categories: Array<SfuSpaceCategory>;
|
|
1116
|
+
channels: Array<SfuSpaceChannel>;
|
|
1117
|
+
invites: Array<SfuSpaceInvite>;
|
|
1118
|
+
bans: Array<SfuSpaceUserBan>;
|
|
1119
|
+
permissions: Array<SfuSpaceRolePermission>;
|
|
1120
|
+
};
|
|
1121
|
+
export declare type SpaceCreatedEvent = InternalMessage & {
|
|
1122
|
+
space: SfuSpace;
|
|
1123
|
+
};
|
|
1124
|
+
export declare type NewSpaceEvent = InternalMessage & {
|
|
1125
|
+
space: SfuSpace;
|
|
1126
|
+
};
|
|
1127
|
+
export declare type SpaceDeletedEvent = InternalMessage & {
|
|
1128
|
+
id: string;
|
|
1129
|
+
};
|
|
1130
|
+
export declare type SpaceOverviewUpdated = InternalMessage & {
|
|
1131
|
+
id: string;
|
|
1132
|
+
name: string;
|
|
1133
|
+
};
|
|
1134
|
+
export declare type NewSpaceCategoryEvent = InternalMessage & {
|
|
1135
|
+
spaceId: string;
|
|
1136
|
+
category: SfuSpaceCategory;
|
|
1137
|
+
};
|
|
1138
|
+
export declare type SpaceCategoryDeleted = InternalMessage & {
|
|
1139
|
+
spaceId: string;
|
|
1140
|
+
categoryId: string;
|
|
1141
|
+
};
|
|
1142
|
+
export declare type SpaceCategoryUpdated = InternalMessage & {
|
|
1143
|
+
spaceId: string;
|
|
1144
|
+
categoryId: string;
|
|
1145
|
+
name: string;
|
|
1146
|
+
};
|
|
1147
|
+
export declare type NewSpaceChannelEvent = InternalMessage & {
|
|
1148
|
+
spaceId: string;
|
|
1149
|
+
channel: SfuSpaceChannel;
|
|
1150
|
+
};
|
|
1151
|
+
export declare type SpaceChannelUpdated = InternalMessage & {
|
|
1152
|
+
spaceId: string;
|
|
1153
|
+
channelId: string;
|
|
1154
|
+
private: boolean;
|
|
1155
|
+
name: string;
|
|
1156
|
+
accessRights: SfuSpaceChannelAccessRights;
|
|
1157
|
+
members: Array<string>;
|
|
1158
|
+
};
|
|
1159
|
+
export declare type SpaceChannelMoved = InternalMessage & {
|
|
1160
|
+
spaceId: string;
|
|
1161
|
+
categoryId: string;
|
|
1162
|
+
channelId: string;
|
|
1163
|
+
};
|
|
1164
|
+
export declare type SpaceChannelDeleted = InternalMessage & {
|
|
1165
|
+
spaceId: string;
|
|
1166
|
+
channelId: string;
|
|
1167
|
+
};
|
|
1168
|
+
export declare type NewSpaceThreadEvent = InternalMessage & {
|
|
1169
|
+
spaceId: string;
|
|
1170
|
+
channelId: string;
|
|
1171
|
+
thread: SfuSpaceThread;
|
|
1172
|
+
};
|
|
1173
|
+
export declare type SpaceThreadUpdated = InternalMessage & {
|
|
1174
|
+
spaceId: string;
|
|
1175
|
+
channelId: string;
|
|
1176
|
+
threadId: string;
|
|
1177
|
+
name: string;
|
|
1178
|
+
};
|
|
1179
|
+
export declare type SpaceThreadDeleted = InternalMessage & {
|
|
1180
|
+
spaceId: string;
|
|
1181
|
+
channelId: string;
|
|
1182
|
+
threadId: string;
|
|
1183
|
+
};
|
|
1184
|
+
export declare type SpaceInviteCreated = InternalMessage & {
|
|
1185
|
+
spaceId: string;
|
|
1186
|
+
invite: SfuSpaceInvite;
|
|
1187
|
+
};
|
|
1188
|
+
export declare type SpaceInviteRevoked = InternalMessage & {
|
|
1189
|
+
spaceId: string;
|
|
1190
|
+
inviteCode: string;
|
|
1191
|
+
};
|
|
1192
|
+
export declare type NewSpaceRoleAdded = InternalMessage & {
|
|
1193
|
+
spaceId: string;
|
|
1194
|
+
role: SfuSpaceRole;
|
|
1195
|
+
members: Array<string>;
|
|
1196
|
+
};
|
|
1197
|
+
export declare type SpaceRoleUpdated = InternalMessage & {
|
|
1198
|
+
spaceId: string;
|
|
1199
|
+
roleId: string;
|
|
1200
|
+
name: string;
|
|
1201
|
+
color: string;
|
|
1202
|
+
permissions: Array<string>;
|
|
1203
|
+
membersForAddRole: Array<string>;
|
|
1204
|
+
membersForDeleteRole: Array<string>;
|
|
1205
|
+
};
|
|
1206
|
+
export declare type SpaceRoleDeleted = InternalMessage & {
|
|
1207
|
+
spaceId: string;
|
|
1208
|
+
roleId: string;
|
|
1209
|
+
};
|
|
1210
|
+
export declare type UserSpacesEvent = InternalMessage & {
|
|
1211
|
+
spaces: Array<SfuSpace>;
|
|
1212
|
+
};
|
|
1213
|
+
export declare type UserJoinedToSpaceEvent = InternalMessage & {
|
|
1214
|
+
spaceId: string;
|
|
1215
|
+
userId: string;
|
|
1216
|
+
nickname: string;
|
|
1217
|
+
channels: Array<string>;
|
|
1218
|
+
threads: Array<string>;
|
|
1219
|
+
};
|
|
1220
|
+
export declare type UserLeftSpace = InternalMessage & {
|
|
1221
|
+
spaceId: string;
|
|
1222
|
+
userId: string;
|
|
1223
|
+
};
|
|
1224
|
+
export declare type AddedRoleToMember = InternalMessage & {
|
|
1225
|
+
spaceId: string;
|
|
1226
|
+
roleId: string;
|
|
1227
|
+
memberId: string;
|
|
1228
|
+
};
|
|
1229
|
+
export declare type RemovedRoleFromMember = InternalMessage & {
|
|
1230
|
+
spaceId: string;
|
|
1231
|
+
roleId: string;
|
|
1232
|
+
memberId: string;
|
|
1233
|
+
};
|
|
1234
|
+
export declare type RolePermissionSectionsEvent = InternalMessage & {
|
|
1235
|
+
permissionSections: Array<SfuSpaceRolePermissionSection>;
|
|
1236
|
+
};
|
|
989
1237
|
export declare enum SortOrder {
|
|
990
1238
|
ASC = 0,
|
|
991
1239
|
DESC = 1
|